Skip to content
Development
Skill

/swing-clarify

Prevents premature execution on ambiguous requests. Analyzes request clarity using 5W1H decomposition, surfaces hidden assumptions, and generates structured clarifying questions before work begins. Use at the start of any non-trivial task, or when a request could be interpreted

From plugin
swing-skills
416 skills

Claude Code

$ npx -y skills add TheStack-ai/swing-skills --skill swing-clarify --agent claude-code

SKILL.md

swing-clarify.SKILL.md
name: swing-clarify
description: Prevents premature execution on ambiguous requests. Analyzes request clarity using 5W1H decomposition, surfaces hidden assumptions, and generates structured clarifying questions before work begins. Use at the start of any non-trivial task, or when a request could be interpreted multiple ways. Triggers on "뭘 원하는건지", "요구사항 정리", "clarify", "what exactly", "scope", "requirements", "정확히 뭘", "before we start".
argument-hint: "[request or task description to clarify]"
allowed-tools: Read, Grep, Glob, Bash

Scope Clarifier

Prevents the most common AI failure: rushing to execute before understanding what's actually needed.

> Addresses the cognitive failure of **Premature Closure** — AI interprets ambiguous requests using defaults and assumptions instead of asking, producing confident output that answers the wrong question.

Rules (Absolute)

1. **Never execute before clarifying.** If ambiguity score is above threshold, generate questions FIRST. Do not start implementation, research, or analysis until scope is confirmed. 2. **Maximum 3 questions.** Respect the user's time. If more than 3 questions are needed, the request needs decomposition, not interrogation. Ask the 3 highest-impact questions. 3. **Questions must be actionable.** Every question must change what you build. "What's your timeline?" is only valid if it affects scope. "Should this handle authentication?" is always valid if auth wasn't mentioned. 4. **Prefer multiple choice over open-ended.** "Should auth use (a) session cookies, (b) JWT, or (c) OAuth2 with a provider?" beats "How should auth work?" 5. **State your default assumption.** For each question, state what you WOULD assume if the user doesn't answer. This lets them skip questions where the default is fine. 6. **Clear requests get a green light, not questions.** If the request is unambiguous, say so and proceed. Do not ask questions for the sake of asking. 7. **Never block on style preferences.** Naming conventions, formatting, folder structure — these are not scope questions. Use project conventions or sensible defaults.

Process

Stage 1: 5W1H Decomposition

Break the request into six dimensions:

| Dimension | Question | Example Gap | |:----------|:---------|:------------| | **What** | What exactly is being built/changed? | "Build auth" — login? signup? password reset? SSO? | | **Who** | Who uses this? What roles/permissions? | "Users can edit" — all users? admins only? owners? | | **Where** | Where does this live? What system/service? | "Add to the API" — which API? new endpoint? existing? | | **When** | What triggers this? What's the lifecycle? | "Send notifications" — real-time? batched? on what event? | | **Why** | What problem does this solve? What's the success criteria? | "Improve performance" — latency? throughput? cost? | | **How** | Are there constraints on implementation? | "Use the existing stack" — which parts? any exceptions? |

Stage 2: Ambiguity Scoring

For each dimension, rate clarity:

  • **Clear** — explicitly stated or unambiguously implied by context
  • **Assumable** — not stated, but a reasonable default exists (state the default)
  • **Ambiguous** — multiple valid interpretations, wrong guess = wasted work

Count the **Ambiguous** dimensions:

  • 0 Ambiguous → **Green light.** Proceed immediately. State: "Scope is clear. Proceeding."
  • 1-2 Ambiguous → **Quick clarify.** Ask 1-2 targeted questions with defaults.
  • 3+ Ambiguous → **Must clarify.** Ask up to 3 highest-impact questions. Do not proceed until answered.

Stage 3: Generate Clarifying Questions

For each Ambiguous dimension (up to 3, prioritized by impact):

**Q[N]: [Specific question]**
Options: (a) [option] (b) [option] (c) [option]
My default: (b) — [why this is the reasonable default]
Impact: [what changes depending on the answer]

Stage 4: Confirm and Proceed

After receiving answers (or user says "go with defaults"): 1. Restate the clarified scope in 3-5 bullet points 2. Note any remaining assumptions (rated as Assumable, not Ambiguous) 3. Proceed with execution

Output Format

## Scope Analysis: [Request Summary]

### 5W1H Decomposition
| Dimension | Status | Detail |
|:----------|:-------|:-------|
| What | Clear / Assumable / Ambiguous | [extracted or missing info] |
| Who | Clear / Assumable / Ambiguous | [extracted or missing info] |
| Where | Clear / Assumable / Ambiguous | [extracted or missing info] |
| When | Clear / Assumable / Ambiguous | [extracted or missing info] |
| Why | Clear / Assumable / Ambiguous | [extracted or missing info] |
| How | Clear / Assumable / Ambiguous | [extracted or missing info] |

### Ambiguity Score: [N]/6 → [Green light / Quick clarify / Must clarify]

### Questions (if any)

**Q1: [Question]**
Options: (a) ... (b) ... (c) ...
My default: (b) — [reason]
Impact: [what changes]

**Q2: ...**

### Clarified Scope (after answers)
- [bullet 1]
- [bullet 2]
- [bullet 3]

### Remaining Assumptions
- [assumption 1] — rated Assumable because [reason]

Quality Calibration

BAD Scope Clarification (Don't Do This)

User: "Build me an auth system"

AI: I have a few questions before we start:
1. What programming language would you like to use?
2. What database do you prefer?
3. Do you want tests?
4. What's your timeline?
5. How many users do you expect?
6. Should it be containerized?
7. What CI/CD platform do you use?

Problems:

  • 7 questions — overwhelming, most don't affect auth scope
  • "What language?" — look at the project, it's obvious
  • "Do you want tests?" — always yes, not a scope question
  • "What's your timeline?" — doesn't change what you build
  • No multiple choice, no defaults stated
  • No 5W1H structure, just a brain dump

GOOD Scope Clarification (Do This)

User: "Build me an auth system"

## Scope Analysis: Auth System

### 5W1H Decomposition
| Dimension | Status | Detail |
|:----------|:-------|:-------|
| What | Ambiguous | "Auth syst
Read more
@thestack-ai
Ships withswing-skills

Open-source Claude Code skills — 6 cognitive firewalls block AI hallucination, bias & sloppy reasoning. npx skills add

Stars on GitHub

Momentum

stars in total
41
Star history of TheStack-ai/swing-skills on GitHub, a chart by star-history.com

Other skills on swing-skills.

swing-mortem

swing-mortem

Prospective failure analysis using Gary Klein's pre-mortem technique. Assumes complete failure, works backward to identify risks,…

swing-options

swing-options

Generate probability-weighted alternative options that challenge default thinking. Forces unconventional alternatives and exposes…

swing-research

swing-research

Deep research with cross-verification and source tiering. Use when investigating technologies, comparing tools, fact-checking…

swing-review

swing-review

Devil's Advocate stress-testing for code, architecture, PRs, and decisions. Surfaces hidden flaws through structured adversarial…

swing-trace

swing-trace

Exposes Claude's reasoning chain as an auditable, decomposable artifact. Quick mode (default) gives assumption inventory +…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about swing-clarify.

Which coding agents can use swing-clarify?
swing-clarify installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.