agentleFS
mentealternementealterne/GYOS/skills/decide/SKILL.md

decide

Skill1 starsChanged 5 days agoApache-2.0View on GitHub

Records a decision in a product GYOS set up, in the right place and format: a context's decision log or a project ADR, with its id, its reasons, what it supersedes, and a Confirmation that ties it to a scenario, a test or an invariant. Use when the user runs /gyos:decide, says "let's decide", "record this decision", "we're changing our mind about…", or a choice was just made that the code alone won't explain.

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

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 65 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask, one question at a time, only what's missing:

    line 22
  2. Distinctive:

    What else was considered,: if anything. "Nothing" is a valid answer.

    line 26
  3. Distinctive:

    Never fill a reason in yourself.

    line 33
  4. Distinctive:

    Search for anything the decision would contradict:

    line 37
  5. Very specific:

    Numbers are never reused: Look up the highest existing id, never guess it: in the context's decisions.md, its decisions-archive.md, and …

    line 63
  6. Distinctive:

    The Active rows: add them, and remove any superseded row.

    line 80
  7. Distinctive:

    The ceilings: if a file is over its ceiling after the write, say so.

    line 88
  8. Very specific:

    If scripts/gyos-doctor.ts exists, run it: it checks that every Confirmation resolves.

    line 92

“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

Decide

You write one decision down so that the next person, or agent, finds it before contradicting it. The format is the product's docs/decisions/README.md: read it first, and follow it exactly.

1. Understand it

docs/decisions/README.md must exist. If it doesn't, the product wasn't set up with GYOS: suggest /gyos:init and stop.

Ask, one question at a time, only what's missing:

  • What was decided, in one sentence.
  • Why: the forces in tension, and what it achieves.
  • What it costs: what is accepted in exchange.
  • What else was considered, if anything. "Nothing" is a valid answer; write it down as such.
  • How to know it still holds: which scenario, test or invariant would fail if the code drifted away from it.
  • When to revisit it.
  • If it is a lasting rule (something that must never happen in the domain): what goes wrong without it. That is its trap, and it becomes an invariant (step 4).

Never fill a reason in yourself. A decision recorded with an invented reason is worse than none.

2. Confront it

Search for anything the decision would contradict:

  • the Active tables in .claude/skills/*/development/decisions.md, and the ADRs in docs/decisions/;
  • the promises in the affected skills' scenarios.md and .feature files;
  • the invariants in their architecture.md.

If something contradicts it, name it, with file and line, and ask whether the new decision supersedes it.

  • Yes:

    • the new entry says supersedes: <id>;
    • the old one gets superseded by: <id>;
    • its row leaves every Active table that lists it.

    Those are the only edits allowed on the old entry. A promise or an invariant that rested on the old decision changes too, with the user's consent: the scenario is updated, the invariant is marked retired, never renumbered.

  • No: the two can't both hold. Stop and ask the user to reconcile them: reword the new decision, or drop it. Never record two decisions that contradict each other.

3. Choose where it goes

The decisionGoes toId
About one context, no real alternatives weighedThat skill's development/decisions.md log, plus an Active row<context>-D<n>, the next free number
Spans contexts, is a junction, changes a default, or weighed real alternativesA new docs/decisions/NNNN-<title>.md, plus an Active row in every context it bindsADR-NNNN, the next free number

Numbers are never reused. Look up the highest existing id, never guess it: in the context's decisions.md, its decisions-archive.md, and every file in docs/decisions/.

4. Write it

  • The heading (### <id> — <title> (<date>), or # ADR-NNNN — … for an ADR) and the status line.
  • The summary sentence: "In the context of …, facing …, we decided for … (and against …), to achieve …, accepting …".
  • Confirmation, in the README's syntax. It must resolve: the scenario, test or invariant exists. If none exists yet, write Confirmation: Unverified: <the check that should be added>, and add that check to the context's development/todo.md. Never point a Confirmation at a scenario or test that doesn't exist.
  • For an ADR: Context, Options considered, Consequences.
  • Confidence and the revisit trigger.

Then:

  • The Active rows: add them, and remove any superseded row.
  • A junction: also add its row to the Junctions table in docs/context-map.md, linking the ADR.
  • A lasting rule becomes an invariant in the context's architecture.md, with the user's consent:
    • its number is the highest C<n> in that file plus one, retired numbers included;
    • its trap is the one the user gave in step 1;
    • the decision's Confirmation points at it.
  • The ceilings: if a file is over its ceiling after the write, say so. Pruning an Active table means turning decisions into invariants or ADRs, which needs the user's consent; propose it, don't do it silently.

If scripts/gyos-doctor.ts exists, run it: it checks that every Confirmation resolves. Tell the user which files you wrote.

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.