decide
Skill18 starsChanged 2 months agoApache-2.0View on GitHub
Use when you need fast, cheap, calibrated judgments about text — classification, routing, scoring, relevance, guardrails — with a local model instead of an LLM call. Covers the three question primitives and how to write good ones.
31 other projects use a version of this.
Adopted by
Most recently taken up by
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- brianshepardpss/plugin-studiotheir own version, first seen Oct 2, 2026
- Blakeem/aipromptguide-workflowstheir own version, first seen Sep 30, 2026
- ArcticFox2029/chamnantheir own version, first seen Sep 30, 2026
- skyf0xx/gambittheir own version, first seen Sep 30, 2026
- vsekhar/decidetheir own version, first seen Sep 27, 2026
Used with
Projects with it also use orient, map and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
moredipSkillorient
Orient yourself to this codebase by reading the README and documentation
Also in 3 projects that use this
srpadronoSkillmap
Crawls a codebase to discover all user journeys and creates a journey map (journeys.json) with test coverage status. Use when starting UI test coverage work, auditing existing coverage, or exploring a new codebase's user flows.
Also in 3 projects that use this
AnthropicSkillbrief
Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.
Also in 3 projects that use this
MicrosoftSkillreport
Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.
Also in 3 projects that use this
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 4 projects that use this
SentrySkillonboard
Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.
Also in 3 projects that use this
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- superset-sh/superset★ 15ksame name
- coreyhaines31/makerskills★ 840same name
- BlockRunAI/blockrun-mcp★ 393same name
- kv0906/pm-kit★ 138same name
- me2resh/agent-decision-record★ 49same name
- alirezarezvani/gaios★ 45same name
- seandavi/lifeos-template★ 43same name
- jesgarram/arete★ 40same name
- skyf0xx/gambit★ 25same name
- wrg32786/aigent-os★ 19same name
21 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- browser-decideSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 30 edited versions we read keep these.
3
Distinctive
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
- Very specific: line 63
One state, many questions: Every question in a single decide() call is answered in the same forward pass.
- Distinctive: line 67
Put the evidence in the state, not the question: If the model needs a chunk of text to judge, that text is the state.
- Distinctive: line 79
Do not: treat a high confidence as proof of correctness on a new domain.
- Distinctive: line 80
Do not: use confidence gating as your only safety layer.
“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Typed decisions with a local System 1 model
localdecide runs an open-weight decision model locally. It answers questions about a
state in one forward pass and returns calibrated probabilities. It never writes
text — that is the point, not a limitation: prose costs latency and can be
hallucinated, probabilities cannot.
Reach for this when you have a judgment to make many times, the answer is one of a few options (or a number, or yes/no), and you do not need an explanation.
The three primitives
from localdecide import Decider, choice, noul, score| Primitive | Question shape | Returns |
choice | pick one of a closed set of named options | the key, probabilities per option, confidence |
score | place the state on an ordered rubric | expected level (float over the levels), the distribution |
noul | is this proposition true? | P(true) in 0..1 |
d = Decider()
r = d.decide(ticket_text, {
"queue": choice("Which team owns this?", {"billing": "refunds and invoices",
"infra": "outages and deploys",
"support": "how-to questions"}),
"urgency": score("How urgent?", ["whenever", "this week", "today", "now"]),
"angry": noul("Does the writer express anger or threat?"),
})
if r.ok:
if r.answers.confidence("queue") < 0.7:
escalate(r) # do not act on a coin flip
elif r.answers.noul("angry") > 0.8:
page_a_human(r)
else:
route(r.answers.choice("queue"))Writing questions that work
Say what each option means, not just its name. The model reads your criteria text
as its decision context. {"billing": "refunds, invoices, payment problems"} beats
{"billing": "billing"}.
Keep choices narrow. Under ~20 options. Beyond that the per-option token budget degrades (the harness chunks automatically, but a two-step coarse-to-fine question is better written by you: pick the category, then the item).
Prefer score over five nouls. One ordered rubric gives you an expected value
and a distribution; five separate yes/no questions give you five numbers you then have
to combine yourself.
One state, many questions. Every question in a single decide() call is answered
in the same forward pass. Asking three questions costs barely more than asking one, so
batch them rather than looping.
Put the evidence in the state, not the question. If the model needs a chunk of text to judge, that text is the state. Questions should be short and structural.
Confidence: use it, do not worship it
The returned confidence is calibrated on the model's own training distribution, which means it is meaningful in-domain and meaningless outside it. The upstream Laya benchmarks show a model reporting 95% confidence while scoring 0% accuracy on a script it cannot read. So:
- Do branch on confidence with a threshold tuned on your own labelled data.
- Do route low-confidence items to a human or a bigger model.
- Do not treat a high confidence as proof of correctness on a new domain.
- Do not use confidence gating as your only safety layer.
Calibration
Base weights ship with raw temperature logits; fitting one scalar temperature on a sample of your own data materially improves calibration error (upstream reports ECE 0.466 → 0.081 for Laya with a single fitted scalar per question type). If you are about to gate on thresholds, fit the temperature first — otherwise your 0.7 threshold is arbitrary.
Failure behaviour
Everything fails open. No model, no key, timeout, rate limit, malformed answer, low
confidence: you get Decision(ok=False) and your flow continues on its own path.
Inspect .ok and .error — never assume success.
result = d.decide(state, questions)
if not result.ok:
return my_rule_based_fallback(state) # your existing logic stays in chargeWhen not to use this
- Anything that needs prose out. It cannot write. Use it to decide, then let a normal model write.
- Sequential reasoning. It answers one round of questions about one state. It has no scratchpad and no plan. Multi-step logic belongs in your code.
- High-stakes single decisions with no verification. It is fast and cheap; when the cost of being wrong is high, use it to triage and verify the survivors properly.
- A domain it was not trained on, with no fine-tuning budget. Zero-shot on your own data is weak. Budget for a fine-tune (upstream reports ~5 GPU-hours for a browser head) or do not adopt it for that task.
Cost and latency, honestly
On an M4 with the MLX runtime: 10–30 ms per decision on short states, up to ~100 decisions/second throughput, zero marginal cost, and nothing leaves the machine. A decision via a hosted equivalent costs about $0.00006–$0.0004 depending on payload, so the local runtime is a latency and privacy win more than a price win at small volume.
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.

