agentleFS
OpentypeAIOpentypeAI/opentype-claude-plugin/skills/decide/SKILL.md

decide

Skill0 starsChanged 2 months agoApache-2.0View on GitHub

Get typed decisions with calibrated probabilities from OpenType (Neon 1.1) for branching logic, classification, triage, routing tickets, ranking options or scoring on a scale. Use when a workflow must pick a branch from fuzzy input (is this a bug or a feature request, which team owns this, how urgent is it 1-5), when the user wants probabilities rather than a guess, or when several related questions about one input should be answered together. For a single structured JSON extraction or a pass/fail judgment against a schema, use the verdict skill instead.

67 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use handover-prompt, scheduled-agent-design and 10 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.
  • dominik1001Skill

    handover-prompt

    Write a short handover prompt for a new session. Use when the user asks for a handover, or to continue this work in another session.

    Also in 5 projects that use this

  • dominik1001Skill

    scheduled-agent-design

    Use when creating, changing or reviewing a Claude Code routine (a scheduled or event-triggered cloud agent) for this repository, its prompt, schedule, model, environment or connectors, a skill a routine runs, or a file in `.agents/routines/`.

    Also in 5 projects that use this

  • ai-analyst-labSkill

    improve-context

    Diagnose a context-related analytical failure, propose the smallest relevant change, compare the same evaluation cases before and after, and produce an accept, revise, or revert receipt. Use when the user asks to improve context, fix a definition or example, test whether context helped, or invokes /improve-context.

    Also in 5 projects that use this

  • yn01Skill

    mcp-tool-design

    Use this skill when designing or reviewing MCP server tools — choosing between Tool, Resource, and Prompt primitives; writing tool descriptions that Claude will reliably select; designing input schemas; handling errors in agent-friendly ways; or thinking through idempotency and side effects. Also trigger when the user is building MCP tools intended for use by agents (orchestrators, subagents, Generator/Evaluator loops) rather than direct human interaction. When in doubt, trigger early — design mistakes are expensive to fix after integration.

    Also in 5 projects that use this

  • geemusSkill

    review-agents-md

    Audits AGENTS.md files and equivalent agent instruction files (CLAUDE.md, CURSOR.md, Copilot instructions) for completeness, accuracy, and agent-friendliness, producing structured, actionable feedback. Cross-references file paths, scripts, and branch names against the actual repository to catch stale or incorrect guidance. Formats every finding with format-review-comments and runs a refine-prose pass before presenting results. TRIGGER when: user asks to review, audit, check, inspect, analyze, or evaluate an AGENTS.md, CLAUDE.md, or agent instruction file. DO NOT TRIGGER when: user asks to review a pull request (use review-pr instead) or to evaluate a skill file (use review-skill instead).

    Also in 5 projects that use this

  • ModelEngine-GroupSkill

    upgrade-dependency

    升级项目中的指定依赖包到新版本并验证变更。当用户要求升级依赖、更新包版本时触发。参数为包名、原版本和新版本。

    Also in 5 projects that use this

  • +1 more from dominik1001

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 65 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Call the opentype_decide MCP tool.

    line 9
  2. Very specific:

    When invoked as /opentype:decide, the request is: $ARGUMENTS If it names a file, a selection or an earlier message, read it and put its …

    line 11
  3. Very specific:

    If it names a file, a selection or an earlier message, read it and put its content in state.

    line 12
  4. Distinctive:

    If the probabilities are flat across options, the state is missing information.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 65 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.

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

Typed decisions with probabilities

Call the opentype_decide MCP tool. One call answers several questions about one state, and each answer carries a probability you can threshold on.

When invoked as /opentype:decide, the request is: $ARGUMENTS If it names a file, a selection or an earlier message, read it and put its content in state. If it is empty, ask what to decide.

Build the request

  • state: the thing being decided about (a string, or a JSON object such as {"ticket": "...", "plan": "pro"}). Include everything the questions need (the ticket text, the diff summary, the log excerpt). Do not paraphrase away details.
  • questions: an object keyed by your own short ids. Each question has a type:
    • noul: a yes/no question; the answer is P(yes). Phrase instructions so that "yes" is the case you act on. Optional criteria: {"true": "what counts as yes", "false": "what counts as no"}.
    • choice: pick one of 2 to 20 options. criteria maps each option name to a description, or to null when the name says it all. Use short single-word option names.
    • score: a rating on an ordered scale. criteria is an array of 2 to 20 level names, lowest first (level 0). Use short single-word level names.
    • Optional depends_on (question ids) orders questions into stages, and ask_if ({"question_id": ["answer", ...]}) asks a question only when an earlier answer matches; otherwise it comes back skipped.
  • instructions: shared context for all the questions (the domain, the policy).
  • draws (1 to 8, default 1): more draws average out noise. Use 3 or more when the answer drives something expensive or irreversible.
  • idempotency_key: set a stable key (for example a hash of the input) when you might retry, so a retry replays and is not billed twice.

Example:

{
  "state": "Checkout returns 500 when the cart has more than 50 items. Started after yesterday's deploy.",
  "instructions": "You triage engineering tickets.",
  "questions": {
    "is_bug": { "type": "noul", "instructions": "is this a defect in existing behaviour?" },
    "team": { "type": "choice", "instructions": "which team owns it?",
              "criteria": { "payments": "checkout, billing, refunds", "catalog": "products and search", "platform": null } },
    "urgency": { "type": "score", "instructions": "how urgent is it?",
                 "criteria": ["low", "medium", "high", "critical"],
                 "depends_on": ["is_bug"], "ask_if": { "is_bug": ["yes"] } }
  }
}

Act on the result

  • Branch on the probability, not only the label. Default thresholds: act at 0.8 or above, ask the user between 0.5 and 0.8, and treat anything below 0.5 as "no" or "unclear".
  • Report each answer with its probability, for example team: payments (0.91).
  • If the probabilities are flat across options, the state is missing information. Say what is missing instead of picking one.

Each call is billed as one decision run. Batch the questions about one input into one call.

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.