swing-clarify
Prevents premature execution on ambiguous requests. Analyzes request clarity using 5W1H decomposition, surfaces hidden assumptions, and generates structured…
Exposes Claude's reasoning chain as an auditable, decomposable artifact. Quick mode (default) gives assumption inventory + weakest-link in 2 stages. Full mode (--full) adds decision branching, confidence decomposition, and falsification conditions. Triggers on "왜 그렇게 생각해",
$ npx -y skills add TheStack-ai/swing-skills --skill swing-trace --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/swing-traceContext preview
The summary Claude sees to decide when to auto-load this skill.
Exposes Claude's reasoning chain as an auditable, decomposable artifact. Quick mode (default) gives assumption inventory + weakest-link in 2 stages. Full mode (--full) adds decision branching, confidence decomposition, and falsification conditions. Triggers on "왜 그렇게 생각해",
name: swing-trace description: Exposes Claude's reasoning chain as an auditable, decomposable artifact. Quick mode (default) gives assumption inventory + weakest-link in 2 stages. Full mode (--full) adds decision branching, confidence decomposition, and falsification conditions. Triggers on "왜 그렇게 생각해", "reasoning", "근거", "show your work", "어떻게 그 결론이", "trace", "판단 근거", "why do you think that". argument-hint: "[question to trace] [--full for complete 5-stage analysis]" allowed-tools: Read, Grep, Glob, Bash, Agent
Anti-black-box engine that makes reasoning chains visible, auditable, and decomposable.
> Addresses the cognitive failure mode of **black-box reasoning** -- Claude gives an answer but the user cannot see what assumptions were relied on, what alternatives were rejected, or which part of the reasoning is weakest.
1. **Never present a single-path narrative.** Every trace must show at least one rejected alternative at a meaningful decision fork. "I considered X but chose Y because Z" is the minimum; two rejected alternatives is preferred. 2. **Confidence decomposition requires 3+ sub-components.** Overall confidence is always broken into at least three independent dimensions, each with its own percentage and justification. 3. **Every assumption gets rated.** Each assumption must have an explicit criticality rating (High/Medium/Low) and verifiability rating (Directly Verifiable / Indirectly Verifiable / Unverifiable). No unrated assumptions. 4. **Weakest Link is MANDATORY.** Never skip it. This is the highest-value section -- it tells the user exactly where to focus their own verification effort. 5. **No confidence theater.** Do not assign high confidence (>80%) without specific justification. Vague appeals to "experience" or "common knowledge" are banned. Every confidence level must cite a concrete basis. 6. **Distinguish evidence types.** Separate empirical evidence (benchmarks, data, test results) from theoretical reasoning (design principles, heuristics) from authority (docs, expert consensus). Label which type supports each claim. 7. **Trace must be falsifiable.** Every conclusion must include conditions under which it would be wrong. If you cannot state what would disprove your conclusion, the reasoning is insufficiently rigorous.
When invoked without `--full`, execute only: 1. **Stage 1: Claim Isolation** — break into atomic claims 2. **Stage 2: Assumption Inventory** — enumerate assumptions with criticality/verifiability 3. **Stage 5: Weakest Link & Alternative Conclusion** — identify the single most fragile assumption
Skip Stages 3 (Decision Tree) and 4 (Confidence Decomposition).
Quick mode output format:
## Reasoning Trace: [Claim] ### Atomic Claims 1. [Claim 1] 2. [Claim 2] ### Assumption Inventory | # | Assumption | Criticality | Verifiability | |---|-----------|-------------|---------------| | A1 | ... | High/Med/Low | Direct/Indirect/Unverifiable | ### Weakest Link **Assumption [A#]:** [restate] - **Why weakest:** [explanation] - **If wrong:** [alternative conclusion] - **How to verify:** [concrete steps]
When invoked with `--full`, execute all 5 stages as documented below.
Execute these 5 stages sequentially. Do NOT skip stages.
Identify the exact claim(s) being traced. Separate compound questions into atomic claims.
Input: "Why did you recommend microservices over a monolith?" Atomic claims: 1. Microservices are a better architectural fit for this project 2. The team can handle microservices operational complexity 3. The migration cost is justified by long-term benefits
Each atomic claim gets its own assumption inventory and confidence score.
For each atomic claim, enumerate every assumption the reasoning depends on. Each assumption gets three attributes:
| # | Assumption | Criticality | Verifiability | |---|-----------|-------------|---------------| | A1 | [Statement] | **High** -- conclusion changes if wrong | Directly Verifiable -- can test/measure | | A2 | [Statement] | **Medium** -- conclusion weakens if wrong | Indirectly Verifiable -- can infer from proxy data | | A3 | [Statement] | **Low** -- conclusion survives if wrong | Unverifiable -- must be accepted or rejected on judgment |
**Criticality scale:**
**Verifiability scale:**
At each significant fork in the reasoning, document:
1. **Decision point:** What question needed answering? 2. **Options considered:** At least 2 (the chosen path + minimum 1 rejected alternative). 3. **Evaluation criteria:** What factors determined the choice? 4. **Chosen path:** Which option was selected? 5. **Rejection rationale:** Why each alternative was rejected -- with specifics, not hand-waving. 6. **Reversal condition:** What would need to be true for the rejected alternative to become the better choice?
Decision Point: Database selection ├─ Option A: PostgreSQL [CHOSEN] │ Strengths: ACID compliance, JSON support, ecosystem maturity │ Evidence type: Empirical (benchmarks) + Authority (industry adoption data) │ ├─ Option B: SQLite [REJECTED] │ Strengths: Zero-config, embedded, fast for reads │ Rejection: Write concurrency limit (~5 writers) incompatible with │ multi-instance deployment requirem
Open-source Claude Code skills — 6 cognitive firewalls block AI hallucination, bias & sloppy reasoning. npx skills add
Repo: TheStack-ai/swing-skills
Prevents premature execution on ambiguous requests. Analyzes request clarity using 5W1H decomposition, surfaces hidden assumptions, and generates structured…
Prospective failure analysis using Gary Klein's pre-mortem technique. Assumes complete failure, works backward to identify risks, leading indicators, and…
Generate probability-weighted alternative options that challenge default thinking. Forces unconventional alternatives and exposes hidden assumptions behind the…
Deep research with cross-verification and source tiering. Use when investigating technologies, comparing tools, fact-checking claims, evaluating architectures,…
Devil's Advocate stress-testing for code, architecture, PRs, and decisions. Surfaces hidden flaws through structured adversarial analysis with metacognitive…