agentleFS
PanPanFRPanPanFR/oh-my-openkilo/skills/jev-decision/SKILL.md

jev-decision

Skill9 starsChanged 3 months agoMITView on GitHub

Fast structured decisions via System One decision endpoint (Jev jev-1.13). Use for routing, triage, delegation, review/test/UI gates. Returns typed choice/noul/score with probabilities, not text. Triggers: jev, systemone, triage, route, delegation gate, review gate, test scope.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test: node ~/.config/opencode/skills/jev-decision/scripts/jev-decide.mjs -Preset triage -State "hello".

    line 27
  2. Distinctive:

    No auto-router plugin (deleted by design — manual complex-only calls).

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Jev Decision (System One, bring-your-own endpoint)

Jev is a decision-only model. It never generates text or code. It scores a state string against typed questions and returns calibrated answers in ~100-500ms. Use it at decision points; keep the chat LLM for generation.

  • Endpoint: POST <JEV_ENDPOINT> (full decision URL, e.g. https://<YOUR_PROVIDER_BASE_URL>/systemone). Supply via -Endpoint param, JEV_ENDPOINT env var, or providers.<your-provider>.settings.baseURL in opencode.json (script appends /systemone).
  • Model: openrouter/typesafe/jev-1.13 default (verified live 2026-09-23, context 200k). Override via -Model param or JEV_MODEL env var.
  • Auth: Authorization: Bearer <your key> - supply via -ApiKey param, JEV_API_KEY env var, or providers.<your-provider>.settings.apiKey in opencode.json.
  • Wrapper: node ~/.config/opencode/skills/jev-decision/scripts/jev-decide.mjs -Preset <name> -State "<state>"
  • State structure: Goal: <request> | Files: <git status --short> | Diff: <git diff --stat> | Risks: <known risks>. Dense, structured facts maximize confidence.
  • Pure Q&A / read-only chat: skip triage gate entirely.
  • State with quotes/newlines/backticks: pipe via stdin to node script, or pass -StateFile <path> (CLI quoting breaks otherwise)

Setup (fill in your own endpoint + key)

This repo ships no endpoint and no key. Fill in your own before calling:

  1. Pick a System One-compatible decision provider and create a key.
  2. Set env vars in your shell profile (or pass -Endpoint / -ApiKey per call):
    • JEV_ENDPOINT = full decision URL (e.g. https://<YOUR_PROVIDER_BASE_URL>/systemone)
    • JEV_API_KEY = your key (optional JEV_MODEL overrides the default model)
  3. Or configure providers.<your-provider>.settings.baseURL + settings.apiKey in opencode.json (the script reads the first provider with both set; {env:VAR} placeholders are resolved).
  4. Test: node ~/.config/opencode/skills/jev-decision/scripts/jev-decide.mjs -Preset triage -State "hello". Missing values fail fast with a Setup pointer, never with a credential.

Question schema (verified against live endpoint)

  • choice: { "type": "choice", "instructions": "...", "criteria": { "<opt>": "<what it means>" } } -> { "choice": "<opt>", "probabilities": {...}, "confidence": 0..1 }
  • noul (yes/no): { "type": "noul", "instructions": "...?" } -> { "noul": 0..1 } (probability YES)
  • score: { "type": "score", "instructions": "...", "criteria": ["<dim1>", "<dim2>"] } -> { "score": 0..1, "legend": {...}, "confidence": 0..1 }
  • Multiple questions in one call run in parallel. Keep state dense: request + diff stat + risk signals, 2-6 sentences.

Presets (wrapper -Preset, fixed questions, agent only supplies -State)

PresetQuestions
triagetask_type choice[simple-edit, feature, ui, refactor, bug, docs, recon], needs_plan noul, risk score[security, blast-radius]
routeagent choice[builder, planner, designer, tester, reviewer, documenter], needs_planner noul, needs_subagent noul, fit score[domain-match, context-cost]
delegationowner choice[builder-inline, designer, reviewer, tester, documenter], can_parallel noul, complexity score[coordination-cost, domain-risk], needs_subagent noul, context_isolation score[coordination-cost, context-cost]
skill-matchskill_pick choice[runtime candidates + none], load_now noul, mismatch_risk score[context-waste, guidance-mismatch]
reviewspec_match score[spec-coverage, scope-discipline], security_risk score[injection, auth, exposure], merge_ready noul, needs_tester noul
testneeds_tests noul, test_scope choice[unit, integration, e2e, all], bug_risk score[regression-likelihood, blast-radius]
uineeds_designer noul, ui_complexity score[layout, interaction, visual-system], a11y_risk score[keyboard, contrast, focus]
verifyspec_fit score[requirement-coverage, constraint-fit], decision_risk score[failure-impact, reversibility], proceed noul, needs_human noul
curate-memoryis_durable noul, action choice[save, lesson, drop], quality score[specificity, future-reusability]
loop-breakeris_stuck noul, action choice[rollback-git, fresh-approach, ask-human, continue-tweak], root_cause score[assumption-gap, tooling-environment]

Custom questions: -QuestionsJson '{...}' (overrides preset).

Routing layer (agent / skill / subagent classification)

Three decision points, wired via rules/jev-routing.md (manual, complex-only — no auto-router plugin by design):

  1. Agent routing (-Preset route, manual — once at task start for non-trivial work): who owns the task — builder, planner, designer, tester, reviewer, documenter. needs_subagent uncertain → default inline (cheaper); needs_planner uncertain → treat as YES (safer).
  2. Skill routing (-Preset skill-match -CandidatesJson '<shortlist>'): LLM shortlists 2-8 candidate skills from descriptions (obvious/none → load/skip directly, no call), Jev picks (or none). Candidates = { "skill-name": "one-line evidence" }, max 12, non-empty names, merged into the skill_pick choice criteria. LLM proposes, Jev disposes — same anti-hallucination rule as the Verify pattern. Apply the answers together: load_now >=0.7 → load immediately; <=0.3 or UNCERTAIN → defer until the matching work starts (never spend context on a maybe). mismatch_risk dimension >=0.7 → re-check the shortlist before loading.
  3. Subagent dispatch (-Preset delegation, extended): needs_subagent noul + context_isolation score[coordination-cost, context-cost] alongside the existing owner/parallel questions. Spawn only on YES (>=0.7); uncertain → inline.

No auto-router plugin (deleted by design — manual complex-only calls); verdicts are advisory — explicit user instructions always win.

Verify pattern (anti-hallucination)

LLM proposes, Jev disposes. Research first (webfetch docs, check code/patterns), then verify — never ask Jev to choose from an empty head.

State must contain: (1) proposal, (2) alternatives with one-line rejection reason each, (3) evidence (doc URLs, file:line refs, constraints). No alternatives/evidence -> do more research first, do not call.

Picking among candidates (custom choice, options filled by the agent from its own research): pass -QuestionsJson with a pick choice whose criteria maps each candidate to its evidence summary, plus spec_fit score and needs_human noul. Risk-tiered bar (strict only where it hurts); all score tiers below read max probabilities dimension, never aggregate score. LOW risk (decision_risk all dims <=0.3, reversible, small blast radius): proceed>=0.6 + needs_human<=0.4 -> implement, log numbers in one line; below -> treat as MID. MID: proceed>=0.7 + needs_human<=0.3 -> implement with the risk noted in output; needs_human>=0.7 or proceed<=0.3 -> ask; middle -> research once, re-verify, then implement-with-note unless needs_human>=0.7. HIGH risk (decision_risk any dim >=0.7, or auth/payment/migration/irreversible whatever the score): proceed>=0.8 + needs_human<=0.2 + confidence>=0.5 -> implement, else ask with numbers; never guess through a low score here. Same tiers for pick (use its confidence). Batch: collect every verify-ask in a phase and ask once, not once per decision. Max 2 verify calls per decision.

Thresholds (apply everywhere, deterministic)

  • noul: >=0.7 = YES, <=0.3 = NO, else UNCERTAIN -> take the safer branch (needs_plan=true, needs_tester=true, needs_tests=true). (verify preset uses its own strict bar, see Verify pattern).
  • choice: use .choice; if .confidence < 0.4 -> UNCERTAIN -> default builder-inline (triage/delegation), builder (route), or all (test_scope).
  • score: read probabilities (index -> dimension via legend), NEVER the aggregate score — aggregate tracks only the LAST dimension (verified live 2026-09-23: risk security=0.46/blast=0.54 -> score 0.54). Per-dimension: prob >=0.7 = HIGH, <=0.3 = LOW. Any risk/security_risk/bug_risk dimension >=0.7 always adds reviewer (plus tester on auth/migration/payment); gate the security dimension directly, never via aggregate.
  • score confidence: score.confidence < 0.4 -> UNCERTAIN -> safer branch: risk dims (risk/security_risk/bug_risk/decision_risk) treated HIGH, all other dims treated as the conservative default (needs_plan/needs_tester/needs_tests = true).
  • curate-memory: is_durable <= 0.3 or action == "drop" -> abort save, echo reason; action == "lesson" -> route to memory_lesson_save.
  • loop-breaker: is_stuck >= 0.7 -> hard stop on further code edits; strictly execute chosen action (rollback, fresh approach, or ask human).

Fallback (hard rule)

Script failure (network, 401/403/429, 400, timeout) -> proceed with LLM judgment, never block, note Jev unavailable, used LLM judgment in one line. Never retry more than once per decision point. Never use Jev as model/small_model/agents.*.model (it cannot generate text or call tools).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.