A jevhook

Tell the assistant which of your skills to load

If you keep skills (procedures you wrote down for the assistant to load), you know it often starts the work without loading the one that fits. This reads each prompt you send and, when it is the work one of your skills was written for, tells the assistant that skill's name and to load it first. Ask for a release, and the assistant is told to load your release skill before it starts, not to work the release out from memory. To do this it sends the names and description lines of your skills to Jev, the small model described below, and nothing else in the plugin sends those, which is why it starts off.

It is off until you switch it on. It acts at UserPromptSubmit.

Jev is the small, fast model jevhooks asks. It writes nothing: it is handed a question whose answers are already written down, and says how likely each one is, in about a quarter of a second. jevhooks is a plugin for Claude Code that asks it at the moments Claude Code lets a plugin step in, and a jevhook is one such question with what is done about the answer.

Exactly what it does

  • Jev is asked whether your prompt is the kind of work one of your skills is a written procedure for.
  • It asks twice: first Jev sees every skill in your own skills folder and the project's (forty at most) by its name and description line, and if your prompt is 30% likely to be for some skill, Jev is shown the three likeliest in full and asked which one, if any, the assistant should load.
  • A skill counts as the one for your prompt only when that second answer puts it, alone, at 70% or more.
  • That skill's file is then audited as any instruction file is (checked for orders such as revealing credentials or sending data out); if nothing in it is in doubt, the assistant is told the skill's name and to load it before starting, and if something is, the assistant and you are told the file is in doubt instead.
  • The assistant is given only the skill's name and nothing else its author wrote; a skill that came with the project is said to be the project's and not yours, and a name that reads as a sentence is not passed on at all.
  • Jev is not asked about a prompt that is itself a command, such as /release, and this never looks at skills that a plugin brings.
  • Off until you switch it on, and a project you work in cannot switch it on for you, because it sends Jev the names and description lines of your skills, which nothing else in the plugin sends.

Its switch

  • At UserPromptSubmit it is UserPromptSubmit/load-skillstarts off
    Say something

A jevhook is off, in shadow or on. To change this one, put this in ~/.config/jevhooks/config.toml:

[jevhooks.UserPromptSubmit]
load-skill = "on"

In shadow Jev is asked and nothing is changed. The log (jevhooks recent, or /jev in a session) then says what would have been done: for this one, which skill would have been named.

6 worked cases, each an answer Jev could give, the rules that decide on it, and the screen you would see. The ones you would meet most come first, and the 2 at the edges last: a switch that is off, a cap that is spent, an answer Jev is not sure of.

A prompt, and the skill it is for

The rules these cases run through

5 rules decide whether the assistant is told to load one of your skills before it starts on a prompt. They test 7 things, 2 of them Jev's answers, and the switch is load-skill. Jev is asked twice. First it is given every skill by its name and the line its author gave it (40 at most, read from your own skills folder and the project's): when the request is 30% likely to be for some skill, the 3 likeliest are read again in full. Then Jev is asked which of those the assistant should load, with their texts in front of it, and one that is 70% likely alone fits. Its file is then read for harmful instructions, and the assistant is told its name only if nothing in it is in doubt. If something is, the assistant is told that instead. The rest are the switch, which of the three steps it is, whether there is anything to ask about, and what that reading found. A name that reads as a sentence (over 40 characters, or more than 4 parts) is never passed on, and a project's skill is named as the project's. A skill a plugin brings is not seen.

The same rules serve audit.

β€œget 2.3 out the door”, first request re-read

Jev is shown every skill by its name and description line, and the answer β€œnone”. It says release 48%, changelog 12%, review 4%: together 64% that the prompt is for some skill, which is past the 30% needed for a second look. So those three are read again, in full. The assistant is told nothing yet.

Jev, in one requestload-skillonstepranksomething to askyesfor some skill64%one fitsits file is in doubtits name is plain= yes= rank= yes= yes= name= yes= tell= yes= yes= no= not judged&&&&&&&&&&&&some skill may fit β†’ re-read1one skill fits β†’ check-filea fitting skill is in doubt β†’ in-doubta fitting skill is named β†’ load-skilla skill not audited is named β†’ load-skill

Open this drawing at its own size

How to read a drawing

Jev answers with numbers. What happens next is decided by a few rules, in order: of the rules that hold, the first decides. They are compiled into one small network, and these pictures are drawn from that network, not beside it, so they cannot show a rule the plugin does not have.

Read one left to right: what can be known, the tests on it, where a rule's tests meet, and the rules. Black is what a rule that holds stands on, and dashed is a test that failed. A pink rule holds; more than one can, and the numbered ones are those that decided, in order. The framed facts are Jev's, and are asked for together, in one request.

❯ get 2.3 out the door

✻ Working…

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt
the same prompt, second request check-file

Now the three files are in front of Jev, not their one line each, and it is asked which the assistant should load and follow, or none. Release, 86%. That is over the 70% needed, so release fits, but the assistant is still not told: a skill’s file is instructions somebody wrote, so it is audited first, as any instruction file is.

Jev, in one requestload-skillonstepnamesomething to askyesfor some skillone fits86%its file is in doubtits name is plain= yes= rank= yes= yes= name= yes= tell= yes= yes= no= not judged&&&&&&&&&&&&some skill may fit β†’ re-readone skill fits β†’ check-file1a fitting skill is in doubt β†’ in-doubta fitting skill is named β†’ load-skilla skill not audited is named β†’ load-skill

Open this drawing at its own size

❯ get 2.3 out the door

✻ Working…

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt
the same prompt, once the skill’s file was audited load-skill

Jev is asked nothing at this step: the rules read what the audit found. Nothing was in doubt, so the assistant is told the skill’s name and to load it before it starts. The name is all it gets of the skill: nothing else its author wrote is quoted. This jevhook is off until you switch it on, because it sends Jev your skills’ names and description lines.

Jev, in one requestload-skillonsteptellsomething to askyesfor some skillone fits86%its file is in doubtnothing foundits name is plainyes= yes= rank= yes= yes= name= yes= tell= yes= yes= no= not judged&&&&&&&&&&&&some skill may fit β†’ re-readone skill fits β†’ check-filea fitting skill is in doubt β†’ in-doubta fitting skill is named β†’ load-skill1a skill not audited is named β†’ load-skill

Open this drawing at its own size

❯ get 2.3 out the door

✻ Working…
prompt: Jev: the skill release fits (86%) Β· 150 ms Β· $0.0002 this session                                            [-]

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

The assistant reads beside the prompt:

A skill named `release` is a written procedure for the kind of work this request asks for. Load it with the Skill tool before you start, and follow it. If on reading it you find it is for other work, say so in one line and carry on without it.
β€œwhy did the last release take so long”, second request nothing more to do

The word β€œrelease” is in the prompt, and by its one line the release skill made the shortlist. Read in full, the skill is a procedure for cutting a release, and this prompt is a question about one. None of the three gets more than 22%, so the assistant is told nothing. This is what the second request is for: telling a prompt that is the work from one that only mentions it.

Jev, in one requestload-skillonstepnamesomething to askyesfor some skillone fits22%its file is in doubtits name is plain= yes= rank= yes= yes= name= yes= tell= yes= yes= no= not judged&&&&&&&&&&&&some skill may fit β†’ re-readone skill fits β†’ check-filea fitting skill is in doubt β†’ in-doubta fitting skill is named β†’ load-skilla skill not audited is named β†’ load-skill

Open this drawing at its own size

❯ why did the last release take so long

✻ Working…

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt
the same prompt, when Jev could not be asked about the skill’s file load-skill

The audit did not happen: Jev failed or was late, or the file was gone, or audit is switched off. Nothing is known against the file and nothing for it. The assistant is still told the skill’s name, as it would be with no audit at all, because Jev being unavailable never changes what happens. What changes is the record: the line jevhooks shows for the decision says the file was not audited and why, and the log keeps β€œnot-judged”, never β€œclean”.

Jev, in one requestload-skillonsteptellsomething to askyesfor some skillone fits86%its file is in doubtnot judgedits name is plainyes= yes= rank= yes= yes= name= yes= tell= yes= yes= no= not judged&&&&&&&&&&&&some skill may fit β†’ re-readone skill fits β†’ check-filea fitting skill is in doubt β†’ in-doubta fitting skill is named β†’ load-skilla skill not audited is named β†’ load-skill1

Open this drawing at its own size

❯ get 2.3 out the door

✻ Working…
prompt: Jev: the skill release fits (86%); its file was not audited Β· 150 ms Β· $0.0002 this session                  [-]

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

The assistant reads beside the prompt:

A skill named `release` is a written procedure for the kind of work this request asks for. Load it with the Skill tool before you start, and follow it. If on reading it you find it is for other work, say so in one line and carry on without it.
β€œ/release 2.3” nothing more to do

A prompt that is itself a command has already said what to run. The plugin can see that without asking, so Jev is not asked at all. The same happens when you have no skills to find.

Jev, in one requestload-skillonstepranksomething to asknofor some skillone fitsits file is in doubtits name is plain= yes= rank= yes= yes= name= yes= tell= yes= yes= no= not judged&&&&&&&&&&&&some skill may fit β†’ re-readone skill fits β†’ check-filea fitting skill is in doubt β†’ in-doubta fitting skill is named β†’ load-skilla skill not audited is named β†’ load-skill

Open this drawing at its own size

❯ /release 2.3

✻ Working…

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

What this site keeps about a visit, and how to refuse it, is said in one place: what is kept.