Skip to content
Back to skills

Decision

ASecurity

Use when the user must pick between options — an agent has finished work and needs them to choose how to proceed, the user was told "waiting for your decision about X", or they say "display decision", "what''s the decision on/about X", "show me my options for X", "let me choose", "walk me through the open decisions", "what are my action items", "give me a menu of choices", or give a GitHub issue/PR number or URL.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 19, 2026
ai-agentsgoshellbashgitbackend

Works with

  • claude code
  • claude desktop
  • cursor
  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add Tamircohen28/tamirs-superpowers --skill decision --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Decision?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Decision
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tamircohen28-decision/badge)](https://www.skillsdirectory.com/skills/tamircohen28-decision)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: decision
description: 'Use when the user must pick between options — an agent has finished work and needs them to choose how to proceed, the user was told "waiting for your decision about X", or they say "display decision", "what''s the decision on/about X", "show me my options for X", "let me choose", "walk me through the open decisions", "what are my action items", "give me a menu of choices", or give a GitHub issue/PR number or URL.'
when_to_use: '"display decision 141 to me simply and let me choose", "what are my open decisions", "walk me through the action items one by one", "summarize issue #57 and give me options", "let me choose between X and Y".'
argument-hint: "[decision description, GitHub issue/PR number or URL, or empty to scan the conversation]"
arguments: []
disable-model-invocation: false
user-invocable: true
allowed-tools:
  - AskUserQuestion
disallowed-tools: []
model: sonnet
effort: medium
context: ''
agent: ''
hooks: {}
paths: []
shell: bash
metadata:
  tamirs:
    visibility: public
    category: dev-workflow
    role: none
    updated-date: '2026-08-19'
    validation-tier: 0
    capabilities:
      required:
        - skills
      optional:
        - ask_user_question
        - github_cli
        - shell
    tags:
      - decision
      - ask-user-question
      - github-issue
      - action-items
      - portable
  capability: dev-workflow
  tags:
    - decision
    - ask-user-question
    - github-issue
    - action-items
  updated-date: "2026-07-20"
---

# Decision

## Why this skill exists

After a long stretch of work — or when reading a GitHub issue full of open questions — the user is handed either a wall of prose ("I did X, Y, Z... let me know what you think about the auth approach") or nothing at all, and has to reconstruct the actual choice themselves. This skill's only job is to close that gap: take whatever decision is pending, strip it down to plain language, and hand it back as an **explicit numbered menu** — never as freeform prose the user has to parse and reply to in kind.

The *menu* is the contract. The *mechanism* that renders it is a platform detail.

## Validation tier

Tier 0 (edit-time). This skill runs no repository validation and makes no commits.

## Resolve the interaction mechanism (do this first)

Read `core/capabilities/platforms.json` and look up `ask_user_question` for the current platform.

| `ask_user_question` status | Mechanism |
|---|---|
| `native` / `native-experimental` | Call the **AskUserQuestion** tool. Preferred — it renders a real picker and captures a structured answer. |
| `partial` / `emulated` / `adapter` | Use the tool if it is actually present in this session; otherwise fall back to the numbered-options block below. |
| `unsupported` / `unknown` / registry unreadable | Use the **numbered-options fallback**. Do not announce a missing feature; just render the menu. |

Cheap runtime check when the registry cannot be read: if the `AskUserQuestion` tool is listed in this session's tools, it is available. Never call it speculatively to find out.

### Numbered-options fallback (portable, always valid)

```
<1–3 sentence plain-language summary>

Which do you want?
  1) <option label> — <one clause on what it means>
  2) <option label> — <one clause>
  3) <option label> — <one clause>
  4) Something else — tell me what.

Reply with a number.
```

Rules the fallback inherits from the tool path, unchanged:
- summary **before** the menu, always;
- 2–4 mutually exclusive options, grounded in real context;
- recommended option first, labelled `(Recommended)`;
- an explicit escape hatch (option 4 above) standing in for the tool's built-in "Other";
- one decision per menu — never fold several decisions into one block.

## Resolve the input

1. **Argument looks like a GitHub issue/PR** — a bare number (`57`, `#57`) or a GitHub URL containing `/issues/` or `/pull/`:
   ```bash
   # Infer owner/repo from the URL, or from the current repo if none is given
   gh issue view <number> --json title,body,comments,url -R <owner/repo>
   ```
   If that 404s, or the URL/context says `/pull/`, retry with `gh pr view` instead. If no repo can be inferred (not inside a git checkout, ambiguous), ask the user which repo before fetching.

   `gh` is an **optional** capability. If `github_cli` is unavailable on this platform, say so plainly and ask the user to paste the issue text — never silently skip the decision.

2. **Argument is non-empty text** — treat it as a topic/description, not a literal ID. Search the current conversation for the decision it best matches. Numbers like "141" in a user's example phrasing are illustrative, not a real numbering scheme to look up — match on content, not on the digits.

3. **No argument** — scan the whole current conversation for every unresolved decision or action item (places where work was completed but a choice was deferred, a question was raised and never answered, or the conversation explicitly says something is "waiting on you").

4. **An objective is active** — if `.dev-files/objectives/<id>/objective.json` exists and the decision came out of that work, name the objective in the summary line so the user knows which piece of work is waiting on them.

## Summarize in plain language

Before presenting any menu, write 1–3 sentences with no jargon:
- What needs to be decided.
- Why it matters, in one clause — not a re-explanation of the whole implementation.

Assume the user already saw the work leading up to this point; the summary orients them, it doesn't re-teach them.

## Present the choice

Never ask a decision in bare prose and never accept "just reply with your answer" in place of a menu. Render it through whichever mechanism the capability lookup selected:

**AskUserQuestion path** (Claude Code / Claude Desktop):
- `question`: the decision framed as a question (e.g. "Which secret backend should we use?").
- `header`: ≤12 chars naming the decision's topic.
- `options`: 2–4 mutually exclusive choices **grounded in what was actually discussed** — in the conversation, or in the issue body/comments. Do not invent options nobody raised. If the conversation's own reasoning points to a clear best choice, put it first and add "(Recommended)" to its label.
- If the decision is genuinely open-ended with no natural short list, offer the smallest sensible set of anchor options — the tool's built-in "Other" already covers anything not listed, so never leave `options` empty to compensate.

**Fallback path** (Cursor, Codex, Gemini CLI, OpenCode, or any session without the tool): render the numbered-options block above. Same option-sourcing rules, same recommendation rule, plus the explicit "Something else" escape hatch.

## Multiple decisions: walk through one at a time

Triggered by an empty-argument scan that finds more than one item, or an explicit "walk me through" request:

1. First, list what was found — one short line per decision — so the user sees the whole set before diving in.
2. Present each decision **on its own**, in the order it came up: one AskUserQuestion call each, or one numbered block each. Wait for the answer before moving to the next one — never batch several decisions into a single multi-question call or a single combined menu.
3. After the last one, recap all choices made in a short list, one line per decision.

## Edge cases

- **Nothing pending** (empty-argument scan finds no open decisions): say so plainly and stop. Don't invent a decision to justify the menu.
- **Ambiguous text match** (the argument could refer to more than one candidate decision): list the candidates briefly and ask which one — via the same mechanism — before proceeding; don't guess which one they meant.
- **`gh` fetch fails or `gh` is absent**: report it plainly (don't retry silently) and fall back to asking the user to paste the decision directly.
- **Capability registry missing**: fall back to numbered options. A missing registry never blocks a decision.

## After the answer

State the user's choice back in one line, then continue with whatever the obvious next step is (implementing the chosen option, closing out the loop) if that's clearly part of the same turn. This skill's job ends at capturing an explicit decision — not at re-litigating it.

## Hard rules

- Never fabricate options that weren't grounded in the conversation, the issue body, or its comments.
- Never batch multiple decisions into one menu during a walkthrough — one at a time, always.
- Never present a bare menu with no plain-language summary first.
- Never swallow a `gh` fetch error — surface it and fall back to asking the user directly.
- Never treat AskUserQuestion as required. It is an enhancement; the numbered fallback is the portable contract and must produce the same decision quality.
- Never call AskUserQuestion "to see if it works". Resolve availability from the capability registry or the session's tool list first.

## Examples

| Input | Behavior |
|---|---|
| `display decision 141 to me simply and let me choose` | "141" isn't a real ID — treat as freeform text, match against the conversation's closest open decision. If none found, say so. |
| *(empty, right after finishing a long task)* `waiting for your decision about X` | Scan the conversation; likely one open decision — summarize and ask immediately. |
| `summarize issue #57 and give me options` | `gh issue view 57`, summarize plainly, build options from the issue body/discussion. |
| `walk me through the open decisions` | Scan conversation for all pending items, list them, then walk through sequentially. |
| Same request on Codex / Gemini CLI / OpenCode | Identical summary and identical option set — rendered as a numbered block instead of a picker. |

Files in this skill

  • SKILL.md9.8 KB
  • evals/evals.json3.4 KB
  • evals/trigger-evals.json1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.