원클릭으로
csw
Analyze a decision end-to-end: gather context, compare options, score tradeoffs, and present one clear recommendation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Analyze a decision end-to-end: gather context, compare options, score tradeoffs, and present one clear recommendation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
When stuck on a specific problem, stop coding, gather context, and ask /deep or /pro for a fresh perspective.
Reframe recurring or wrong-shaped problems into a design where the bug cannot happen.
Run 5 Whys plus /big reframing to trace a symptom to structural root cause before fixing.
Batch operations across files with confidence-based auto-apply. Use for renaming, search-replace, refactoring code, updating text/markdown, migrating terminology, and API migrations. Run `bun tools/refactor.ts --help` for detailed command reference.
Save active session context, git state, recent commits, and next steps to one tracking issue before compaction or handoff.
Pause implementation for architecture or understanding discussion, checkpoint context, then resume with captured decisions.
SOC 직업 분류 기준
| name | csw |
| effort | max |
| description | Analyze a decision end-to-end: gather context, compare options, score tradeoffs, and present one clear recommendation. |
| argument-hint | <topic or question to analyze> |
Keywords: csw, complete staff work, options, analysis, decision, tradeoffs, compare, alternatives, which approach, how should we
A military/executive decision protocol: don't just describe the problem — present it with ALL context, ALL options analyzed, and a clear recommendation. The decision-maker says "approved" or picks an option. Nothing left to research.
Follow [[../agent-system/references/resolver|resolver quality plateau]]: keep routing MECE, concrete, and boundary-aware.
Not for: Quick questions (just answer), debugging (use /tests debug), getting unstuck (use /fresh).
Before forming ANY opinion, understand the full picture:
# Search codebase for relevant code
# Grep for patterns, types, usages, prior art
# Search session history for prior discussions
bun recall "<topic keywords>"
bun recall "<related terms>" --raw
# Check related beads
km bd query "<topic>"
# Read related docs, CLAUDE.md sections, design docs
Collect: existing code, prior decisions, constraints, user preferences, related patterns elsewhere in the codebase. Write a 1-3 paragraph Context section summarizing what you found.
Generate options broadly before evaluating. Include:
Aim for 6-8 options. Quantity forces creativity — you can cut weak ones later.
For EACH option, show a concrete example: actual code, config, syntax, or file structure. Not "we could use a factory pattern" but the actual factory function with real types. The decision-maker must see what they're choosing, not read about it abstractly.
For each option:
| Dimension | What to Write |
|---|---|
| Concrete example | Real code/config/syntax — 5-20 lines showing the approach |
| Pros | What's genuinely good (be specific, not "clean" or "simple") |
| Cons | What's genuinely bad (be honest — every option has cons) |
| Effort | Lines changed, files touched, breaking changes, migration needed |
| Risk | What could go wrong, edge cases, future regret |
Kill weak options here. If an option is clearly dominated (another option is better on every dimension), note why and drop it. Final set should be 3-6 genuine contenders.
Pick 4-6 dimensions that actually matter for THIS decision (not generic). Score each surviving option.
| Option | <dim1> | <dim2> | <dim3> | <dim4> | <dim5> |
| ------ | ------ | ------ | ------ | ------ | ------ |
| A: ... | ++ | + | - | ++ | o |
| B: ... | + | ++ | + | - | + |
| ... | | | | | |
Scoring: ++ great, + good, o neutral, - bad, -- terrible.
Choose dimensions that differentiate — if every option scores the same on a dimension, it doesn't help the decision.
State clearly:
Re-read the entire analysis and challenge it:
Update the analysis with any corrections. If the recommendation changes, that's the system working.
Present the analysis directly in the conversation — do not write it to a file. Only persist to a bead if the user explicitly asks. The decision-maker reads it inline and says "approved" or picks an option.
## CSW: <topic>
### Context
<1-3 paragraphs — what exists now, what triggered this decision, constraints, prior art>
### Options
#### Option A: <descriptive name>
```<lang>
<concrete example — real code/config/syntax>
```
...
[repeat for each surviving option]
| Option | |||||
|---|---|---|---|---|---|
| A: ... | ++ | + | - | ++ | o |
| B: ... | ... |
<which option and why — 2-3 sentences referencing the matrix>
First step:
<traps, anti-patterns, tempting-but-wrong paths — be specific>
## Anti-Patterns
| Don't | Why |
|-------|-----|
| Skip context gathering | You'll miss constraints and prior decisions |
| Stop at 2-3 options | Forces false dichotomy; the best option is often #5 |
| Write abstract descriptions instead of code | "Use a factory" means nothing — show the factory |
| Soften cons for your preferred option | Dishonest analysis leads to bad decisions |
| Skip self-review | First-draft recommendations are often just the most obvious, not the best |
| Make the matrix generic | "Simplicity, Performance, Maintainability" for every decision is useless |
| Present without a recommendation | The whole point is the decision-maker says "approved", not "let me think" |
| Bury the recommendation | Lead with context, but make the recommendation unmissable |
## Wave-loop fan-out (canonical: /tent JIT bead context completion)
The context-gathering phase of CSW is JIT BCC applied to a decision instead of a bead. Fan out via `Explore` sub-agents in ONE message:
- One agent per option being evaluated (gather evidence for/against)
- One agent per constraint named in the prompt (verify constraint still holds)
- One agent for prior-art: similar decisions in this repo or industry
- One agent for blast-radius: who/what depends on the area this decision touches
- One agent for "what did past sessions decide on adjacent questions?" (`bun recall`)
Returns: comparative evidence per option, surfacing trade-offs the user can call. No hard wave cap; stop on fixed-point or clear winner. Canonical: `.claude/skills/tent/SKILL.md#jit-bead-context-completion`.