agentleFS
enderyildirimenderyildirim/claude-skills/skills/decide/SKILL.md

decide

Skill1 starsChanged 8 months agoMITView on GitHub

Guided decision flow using the interactive AskUserQuestion UI — structured options the user clicks to answer, not text walls. Usage: /decide [topic]

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use orient, map and 7 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.
  • moredipSkill

    orient

    Orient yourself to this codebase by reading the README and documentation

    Also in 3 projects that use this

  • srpadronoSkill

    map

    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

  • AnthropicSkill

    brief

    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

  • MicrosoftSkill

    report

    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

  • SentrySkill

    onboard

    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

  • SentrySkill

    review

    Fixture review skill.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 7

    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:

    Read the user's selections, adapt remaining questions accordingly

    line 18
  2. Distinctive:

    ALWAYS use the AskUserQuestion tool to present choices: Never fall back to markdown tables or numbered lists.

    line 26
  3. Very specific:

    When you have a recommendation, put it as the first option and append (Recommended) to the label:

    line 48
  4. Very specific:

    Use the preview field on options when the user needs to visually compare concrete artifacts:

    line 65
  5. Distinctive:

    Call AskUserQuestion with the first batch

    line 105
  6. Distinctive:

    After the user answers:

    line 109
  7. Distinctive:

    If answers change the remaining questions, adapt silently

    line 112
  8. Distinctive:

    Call AskUserQuestion with the next batch

    line 113
  9. Distinctive:

    After all questions are answered, present a Decision Summary:

    line 117

“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.

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

Decide — Guided Decision Flow

Turn any multi-question decision process into an interactive, click-to-answer experience using the AskUserQuestion tool. Instead of writing numbered lists or markdown tables for the user to read through, you present questions in Claude Code's native selection UI.

How It Works

The user invokes /decide [topic]. You then:

  1. Silently identify all decision points for the topic
  2. Prioritize them — foundational decisions first, then dependent ones
  3. Present questions using the AskUserQuestion tool (1-4 per batch)
  4. Read the user's selections, adapt remaining questions accordingly
  5. Repeat until all decisions are made
  6. Present a final summary

Using AskUserQuestion

ALWAYS use the AskUserQuestion tool to present choices. Never fall back to markdown tables or numbered lists.

Batching Strategy

AskUserQuestion supports 1-4 questions per call. Use this wisely:

  • Independent questions — batch up to 4 together (e.g., food theme + drink choice + music genre)
  • Dependent questions — ask in separate batches (e.g., ask "indoor or outdoor?" first, then location-specific questions in the next batch)
  • Simple topics (3-4 total questions) — can often be done in 1-2 batches
  • Complex topics (6-10 total questions) — use 3-4 batches, grouping related decisions

Question Structure

Each question in the AskUserQuestion call requires:

  • question — Clear, specific question ending with ?
  • header — Short label, max 12 chars (e.g., "Database", "Auth", "Deploy")
  • options — 2-4 choices, each with a label and description
  • multiSelect — true if multiple options can be combined, false for mutually exclusive choices

Recommendation Pattern

When you have a recommendation, put it as the first option and append (Recommended) to the label:

{
  "question": "Which database should we use?",
  "header": "Database",
  "options": [
    {"label": "PostgreSQL (Recommended)", "description": "Full-featured, JSON support, extensions ecosystem"},
    {"label": "SQLite", "description": "Zero config, embedded, great for small scale"},
    {"label": "MySQL", "description": "Battle-tested, wide hosting support"}
  ],
  "multiSelect": false
}

Preview Feature

Use the preview field on options when the user needs to visually compare concrete artifacts:

  • ASCII mockups of UI layouts
  • Code snippets showing different implementations
  • Configuration examples
  • Architecture diagrams
{
  "question": "Which layout for the dashboard?",
  "header": "Layout",
  "options": [
    {
      "label": "Sidebar nav (Recommended)",
      "description": "Fixed sidebar with collapsible sections",
      "preview": "┌──────┬─────────────────┐\n│ Nav  │                 │\n│      │    Content       │\n│ Home │                 │\n│ Data │                 │\n│ Sets │                 │\n└──────┴─────────────────┘"
    },
    {
      "label": "Top nav",
      "description": "Horizontal navbar with dropdown menus",
      "preview": "┌─────────────────────────┐\n│  Home  Data  Settings   │\n├─────────────────────────┤\n│                         │\n│       Content           │\n│                         │\n└─────────────────────────┘"
    }
  ],
  "multiSelect": false
}

Previews trigger a side-by-side layout in the UI — option list on the left, preview on the right. Only use for single-select questions.


Flow Control

Starting the flow

After /decide [topic]:

  1. Silently map out all decision points
  2. Silently determine batching (which questions are independent, which depend on prior answers)
  3. Optionally write one short context line before the first AskUserQuestion call
  4. Call AskUserQuestion with the first batch

Between batches

After the user answers:

  1. Acknowledge briefly — one short line summarizing what was chosen
  2. If answers change the remaining questions, adapt silently
  3. Call AskUserQuestion with the next batch

Ending the flow

After all questions are answered, present a Decision Summary:

## Decisions Made

| Decision | Choice |
|----------|--------|
| Database | PostgreSQL |
| ORM | Prisma |
| Auth | Session-based |
| Deploy | Railway |

Ready to proceed, or want to revisit any of these?

Adaptive Behavior

  • If the user selects "Other" with custom text — respect it, incorporate into the flow
  • If the user wants to go back — re-present the previous batch via AskUserQuestion
  • If context changes mid-flow — adapt remaining questions, don't re-ask settled decisions unless now invalid
  • If the topic only has 1-2 decisions — single AskUserQuestion call, no need for multiple rounds

Rules

  • Always use AskUserQuestion — never markdown tables, never numbered lists, never inline text options
  • Be opinionated — put your recommendation first with (Recommended) suffix
  • Use previews for visual decisions — layouts, code patterns, UI mockups
  • Keep descriptions short — one line per option description, no paragraphs
  • Batch smartly — independent questions together, dependent ones in separate calls
  • No code changes — this skill only makes decisions, it doesn't implement them
  • Respect previous answers — each subsequent batch should factor in what was already decided

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.