d
Skill424 starsChanged 2 months agoMITView on GitHub
Jev request router: validates the requested outcome, then dispatches to the matched agent, skill, and pipeline.
- Reads credentials
In this repository62 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- assessmentSkill
- dataSkill
- business-opsSkill
- code-qualitySkill
- comment-qualitySkill
- condenseSkill
- joy-checkSkill
- content-engineSkill
- contentSkill
- headlinesSkill
- image-genSkill
- image-to-videoSkill
- series-plannerSkill
- topic-brainstormerSkill
- video-editingSkill
- writingSkill
- domainSkill
- cli-designSkill
- frontendSkill
- frontend-slidesSkill
- jev-designSkill
- webgl-card-effectsSkill
- game-asset-generatorSkill
- game-devSkill
- motion-pipelineSkill
- browser-jev-automationSkill
- cve-source-checkSkill
- deploySkill
- endpoint-validatorSkill
- headless-cron-creatorSkill
- kubernetesSkill
- githubSkill
- accountsSkill
- auto-dreamSkill
- building-with-jevSkill
- codexSkill
- docs-sync-checkerSkill
- doSkill
- grill-jevSkill
- toolkitSkill
- workflow-helpSkill
- debuggingSkill
- plant-seedSkill
- processSkill
- pr-workflowSkill
- quickSkill
- testingSkill
- with-anti-rationalizationSkill
- workflowSkill
- worktree-agentSkill
- programmingSkill
- architecture-deepeningSkill
- codebase-analyzerSkill
- markdown-converterSkill
- news-collectionSkill
- researchSkill
- roastSkill
- video-transcriptSkill
- integration-checkerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
After intent alignment resolves: === routing banner.
- Very specific: line 50
When JEV_RESULT is already in context (the jev-route-injector hook ran the script before your first token), use it and skip the command …
- Very specific: line 92
Do not run Phases 3–5 or call build-dispatch.py.
- Very specific: line 128
Before selecting the work method, write PROPOSED_INTENT: a concise one- or two-sentence restatement of what the user wants accomplished.
- Very specific: line 140
Run the Jev validator even when the hook already supplied JEV_RESULT.intent_alignment.
- Distinctive: line 143
Put the request, route JSON, and proposed intent in temporary files rather than shell-splicing user text, then call:
- Very specific: line 317
After any execution that produces a plan, spec, or design artifact, run grill-jev automatically before declaring the work complete.
- Distinctive: line 335
Ask whether to address findings before proceeding or accept and move on
- Distinctive: line 337
If no high-signal findings (exit code 0): proceed, note "grill-jev: clean".
- Very specific: line 351
When changing how the router or validator builds or sends Jev requests, apply skills/shared-patterns/jev-production-lessons.md: stage …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/d — Jev Router
Classifies requests through Jev and dispatches to the matched agent, skill, and pipeline. Before every dispatch, it restates the requested outcome and uses Jev to check that the restatement and route preserve it.
The classification path has four layers: a deterministic pre-route.py
force-route guard (offline, runs first, authoritative for git/security
only), a configured Jev transport presence check, a two-stage classification
(a cheap wide-rank stage 1 over all manifest candidates plus a trivial-bypass
gate, then a full-detail shortlist-rerank stage 2 with per-candidate fit
checks, stack/fan-out signals, and domain-attachment checks), and a
deterministic attachment step that lists the extra skills to load.
Design rationale: ${CLAUDE_SKILL_DIR}/references/jev-classifier-design.md.
Phase Banners
Every phase: /d > Phase N: PHASE_NAME — description...
After intent alignment resolves: === routing banner. Both required.
Phase 1: CLASSIFY
scripts/jev-route.py owns the entire classification in one subprocess call.
When JEV_RESULT is already in context (the jev-route-injector hook ran the script before your first token), use it and skip the command below.
REQUEST_FILE=$(mktemp); printf '%s' "{user_request}" > "$REQUEST_FILE"
python3 "$SDIR/jev-route.py" --request-file "$REQUEST_FILE" --json-compact
rm -f "$REQUEST_FILE"Resolve $SDIR: ${HOME}/.claude/scripts, falling back through
.hermes/.factory/.codex/.reasonix, or the repo's scripts/
directory.
Hold the result as JEV_RESULT. Shape (stable — see design reference for
full schema):
available, jev_called, matched, fallback, fallback_reason,
agent, agent_source, skill, pipeline, attach, complexity,
confidence, match_type, reasoning, stack, signals,
signal_scores, domain_scores, source, latency_ms, usage, agents,
gate_score, fits_scores, stage1_shortlist, pre_route_hint, and
intent_alignment (the hook-generated baseline alignment receipt).
attach is the list of extra skills that ride with skill (for example
programming for Go work, testing when tests are part of the work). The
script already validated every name; it is the whole Phase 4 stack.
latency_ms and usage are itemized dicts
({"stage1_ms","stage2_ms","total_ms"} and {"stage1","stage2"}). Read
.total_ms for a single latency figure.
Gate: fallback == true → Phase 1F. Every matched result,
including source == "jev-trivial-bypass", proceeds to Phase 2: ALIGN INTENT.
Phase 1T: TRIVIAL-BYPASS (source == "jev-trivial-bypass")
Stage 1's gate fired: gate_score below threshold, no agent/skill/pipeline
is needed. It remains a direct-handling path, but it must still pass through
Phase 2 so the user outcome is restated and Jev validates it. After an
aligned Phase 2 result, show Classification: Trivial and
Source: jev-trivial-bypass, then answer or do the one-line action directly.
Do not run Phases 3–5 or call build-dispatch.py. Stop there.
Phase 1F: UNAVAILABLE (fallback == true)
Jev could not classify this request. JEV_RESULT.source explains why:
unavailable— neither configured Jev transport is available./daccepts Vercel AI Gateway (AI_GATEWAY_API_KEY) or the direct Jev API (TYPESAFE_API_KEY), selected byJEV_TRANSPORT=auto|vercel|direct.invalid-pick— Jev's pick was not a valid manifest name.error— a Jev call timed out or failed.
Show:
===================================================================
/d: Jev unavailable — [JEV_RESULT.fallback_reason]
Use /do for manifest-based routing.
===================================================================Fail open to /do's full routing flow and continue the request. Do not reject
the request merely because Vercel AI Gateway is unavailable.
Phase 2: ALIGN INTENT (required for every matched /d route)
MANDATORY STOP: For every matched /d invocation, write
PROPOSED_INTENT and run the validator on that exact text before any routing
banner, dispatch, answer, edit, or other action. JEV_RESULT.intent_alignment
is only the hook baseline and does not satisfy Phase 2. This requirement has no
exception for force routes, trivial routes, or an apparently aligned baseline.
Before selecting the work method, write PROPOSED_INTENT: a concise one- or
two-sentence restatement of what the user wants accomplished. State the
outcome and each deliverable the request names or directly requires. Copy
every explicit constraint in the user's words: limits ("only", "at most"),
exclusions ("don't touch", "do not deploy"), required methods, and
authorization boundaries. Do not add deliverables the user did not ask for,
such as extra tests, docs, cleanup, refactors, or verification steps. Do not
add notes about missing inputs or preconditions; the validator decides
whether clarification is needed. Do not describe the selected agent, skill,
or implementation mechanics as the outcome. Preserve the user's words where
precision matters.
Run the Jev validator even when the hook already supplied
JEV_RESULT.intent_alignment; that receipt validates a conservative baseline,
while this call validates the actual restatement that will enter the task spec.
Put the request, route JSON, and proposed intent in temporary files rather
than shell-splicing user text, then call:
python3 "$SDIR/jev-intent-align.py" \
--request-file "$REQUEST_FILE" \
--route-file "$ROUTE_FILE" \
--proposed-intent-file "$INTENT_FILE" \
--json-compactThe validator sends one bounded state and all independent questions together
through the selected Jev transport. It checks whether the outcome and constraints
are preserved, the route can cover the material scope, the restatement is too
narrow, it introduces unrequested work, and essential clarification is needed.
It returns aligned, clarification_needed, issues, and raw scores.
Show this before the routing banner:
Intent alignment (/d):
-> Restated outcome: [PROPOSED_INTENT]
-> Jev: [aligned|review|unavailable] [issues, if any]Gate:
clarification_needed == true→ ask one concise question that names the essential ambiguity; do not dispatch until answered.alignment == alignedandsource == jev-trivial-bypass→ direct handling in Phase 1T; otherwise → Phase 3.alignment == reviewbecause scope is lost, work was added, or the route cannot cover the request → correctPROPOSED_INTENTor the route and run this validator once more. Carry unresolved issues intotask_spec.gaps; do not silently proceed as though Jev approved it.alignment == unavailableorerror→ state that validation was unavailable, preserve the verbatim request and proposed intent in the task spec, then continue under the normal/drouting result. Gateway outage must not become a false request rejection.
This runtime gate applies to every matched route, including force-routes and
trivial bypasses. A Phase 1 fallback cannot run this gate because no usable Jev
route exists; it fails open to /do as described in Phase 1F.
This is an instruction gate enforced by the /d contract, not a hook-enforced
technical boundary. The user remains the final backstop if an agent violates it.
Phase 3: DECIDE (fallback == false, after aligned intent)
JEV_RESULT.source is either pre-route-force (a git/PR or security force
route kept its skill and pipeline, or Jev failed on another force match) or
jev (Jev classification, manifest-validated). A non-safety force match
appears only as pre_route_hint: Jev saw it on its shortlist and made the
pick.
Apply directly:
agent/skill/pipeline: useJEV_RESULT's values as-is. Already validated against the live manifest membership sets inside the script.agent_source: skill-defaultmeans Jev found no domain agent and the script used the skill's owning agent.agentisnullorgeneral-purpose: pick from/do's Agent-greediness table (skills/meta/do/SKILL.md, Phase 2 Step 0b) when a row fits the request's domain. Otherwise keepgeneral-purposeand write a one-linefallback_reason:general-purpose: <why no listed agent covers this>.complexity: useJEV_RESULT.complexitywhen set. Whennull(always forpre-route-force), default tomedium, except a single one-line trivial fix →simple.- Confidence:
JEV_RESULT.confidence(high/medium/low).
Routing banner (Phase 2 intent block + routing block, both required, printed together):
===================================================================
ROUTING (/d): [brief summary]
===================================================================
Intent (/d):
-> Restated: [PROPOSED_INTENT]
-> Alignment: [aligned|review|unavailable] [— issues, if any]
Selected:
-> Agent: [JEV_RESULT.agent] - [JEV_RESULT.reasoning]
-> Skill: [JEV_RESULT.skill] - [JEV_RESULT.reasoning]
-> Attached: [JEV_RESULT.attach, comma-separated, or "none"]
-> Pipeline: [JEV_RESULT.pipeline, if set]
-> Source: [JEV_RESULT.source] (confidence: [JEV_RESULT.confidence])
Invoking...
===================================================================The Intent block must be populated from the Phase 2 validator run. Printing
the banner with a placeholder or omitting the Intent block is a Phase 2 skip
and is not allowed.
Gate: Agent+skill set, banner shown. Phase 4.
Phase 4: ENHANCE (attach skills)
stack = JEV_RESULT.attach, in order, plus anti-rationalization-core.
Copy the names exactly. Do not add, rename, or drop skills: the script built
attach from these rules, and build-dispatch.py rejects any name absent
from skills/INDEX.json.
| Source | Attaches |
JEV_RESULT.stack (pre-route, e.g. a .go file with PR or security work) | its entries, first |
| Agent domain floor | programming for Go, Kotlin, PHP, and Swift agents; kubernetes for kubernetes-helm-engineer; frontend for ui-design-engineer |
domain_scores at 0.6 or higher | programming, frontend, kubernetes, testing, building-with-jev, research |
tests_requested / comprehensive_review / objective_loop_worthy | testing / review / workflow |
local_only | local-only shared pattern |
At most three skills are attached beyond skill. Two adjustments stay with
you:
comprehensive_reviewattachedreviewand a real multi-file diff exists:right-size-review.pyoutranks it, so dropreviewfromstack.signals.research_neededis true: addresearch-coordinator-engineerto the fan-out agents.
Fan-out agents: union JEV_RESULT.agents (script-computed fan-out picks,
each passed its per-candidate fit check) into the research_needed agent
list, deduped. Dispatch fan-out agents as separate parallel Agent tool
calls alongside the primary build-dispatch.py dispatch.
Gate: Stack applied. Phase 5.
Phase 5: EXECUTE
Build the task spec with request_verbatim unchanged and intent exactly
PROPOSED_INTENT; include any unresolved alignment issue in gaps, then invoke
build-dispatch.py:
python3 "$SDIR/build-dispatch.py" --json '{
"agent": "<JEV_RESULT.agent>", "skill": "<JEV_RESULT.skill; omit when agent-only>",
"pipeline": "<JEV_RESULT.pipeline; omit when null>",
"complexity": "<from Phase 2>",
"model": "inherit",
"context_mode": "summary",
"provider": "<anthropic|openai|other>",
"manual_model_override": false,
"health": "-",
"fallback_reason": "<REQUIRED when agent=general-purpose; omit otherwise>",
"stack": ["<JEV_RESULT.attach, in order>", "anti-rationalization-core"],
"task_spec": {"request_verbatim": "<user message, unchanged>", "intent": "...",
"constraints": "<applicable rules, limits, and authorization>",
"decisions": "...",
"gaps": "...",
"acceptance": "<command> -> <expected>",
"files": "<owned paths; optional line ranges>", "ownership": "<worker scope>",
"operator_context": "..."},
"flags": {"worktree": false, "local_only": false, "thinking_override": null},
"token_remaining": 480000
}'The builder validates each name against its index, then emits the dispatch action. For Complex or creation requests, apply creation detection, plan-file gating, quality-loop, workflow dispatch, fan-out, and auto-pipeline fallback.
Gate: Agent invoked, results delivered.
Post-execute: GRILL-JEV (plan/spec/design output)
After any execution that produces a plan, spec, or design artifact, run
grill-jev automatically before declaring the work complete. This applies
whenever the agent's output contains phases, steps, checklists, or a
structured implementation plan.
Detection: the agent wrote task_plan.md, a spec file, a design document,
or the response itself is a structured plan with numbered steps or phases.
# File artifact
python3 scripts/grill-jev.py --file task_plan.md --mode plan
# Inline plan (write to temp file first, then grill)
python3 scripts/grill-jev.py --file /tmp/plan_output.md --mode planPrint the findings report. If high-signal findings exist (exit code 1):
- Show findings to the user
- Ask whether to address findings before proceeding or accept and move on
If no high-signal findings (exit code 0): proceed, note "grill-jev: clean".
Skip grill-jev when:
- The output is code only (no plan structure) — use
--mode codeinstead - The output is a pure research response with no actionable steps
- grill-jev is itself the requested action (avoid recursion)
Error handling
Errors inside jev-route.py resolve to fallback: true, source: "error" —
Phase 1F reports the error and fails open to /do.
When changing how the router or validator builds or sends Jev requests, apply
skills/shared-patterns/jev-production-lessons.md: stage requests at or under the reliable size, send each
stage's requests together, and retry by status code.
References
${CLAUDE_SKILL_DIR}/references/jev-classifier-design.md— request/response contract, fallback conditions, phase-by-phase design decisions${CLAUDE_SKILL_DIR}/SPEC.md,${CLAUDE_SKILL_DIR}/EVAL.md— maintenance contract and regression cases (load only when creating, evaluating, or redesigning this skill)scripts/jev-route.py,scripts/jev-intent-align.py,scripts/jev_transport.py,scripts/jev_vercel.py,scripts/jev_gateway/jev_vercel_gateway.mjs,scripts/pre-route.py,scripts/routing-manifest.py,scripts/build-dispatch.py- Jev hook:
hooks/jev-route-injector-userprompt.py(UserPromptSubmit) precomputesJEV_RESULT
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

