MANDATORY before any implementation. Explores ideas through dialogue, then produces comprehensive technical analysis (Czech) with architecture, phases, risk analysis, and cross-check reviews.
A single skill that takes you from a vague idea to a reviewed technical analysis document, ready for implementation planning. Combines collaborative dialogue (understanding what to build) with rigorous technical analysis (how to build it).
Announce at start: "I'm using the analysis skill to turn this idea into a technical analysis."
Output: docs/plans/YYYY-MM-DD-<topic>.md — a single document containing both the design rationale and the full technical analysis.
Output language: Czech (the document). Code examples and CLI commands remain in English.
Goal: Understand what we're building and why before writing anything.
If the user already has a clear spec or design doc — skip to Phase 2. Not every idea needs 20 questions.
If the idea is vague or open-ended:
Exploring approaches:
Validating the design direction:
Key principles for Phase 1:
Design for isolation and clarity:
Working in existing codebases:
Before writing anything, thoroughly explore the project:
Write in Czech. Follow this document structure:
# <Topic> — <Stručný popis>
## Popis
Co se buduje a proč.
### Proč
- Motivace (bullet points)
- Business hodnota
- Technický dluh který se řeší
## Aktuální stav
Jak věci fungují dnes. Zahrňte:
- Relevantní code paths s file:line referencemi
- Data flow diagramy (ASCII nebo popis)
- Současná omezení
| Aspekt | Současný stav | Navrhovaný stav |
|--------|--------------|-----------------|
| ... | ... | ... |
## Návrh řešení
### Architektura
Celkový přístup. Diagramy kde to pomáhá.
### Databázové změny (pokud jsou)
Definice tabulek s kompletním DDL:
| Sloupec | Typ | Popis |
|---------|-----|-------|
| ... | ... | ... |
Migrační skripty, seed data.
### Změny v servisní vrstvě
Nové služby, upravené služby. Pouze signatury metod a interfaces — NE implementační kód.
DI registrace.
### Změny v UI (pokud jsou)
Nové views/stránky, navigace.
### Konfigurace
Nové config hodnoty, feature flagy.
## Dotčené soubory
### Nové soubory
- `cesta/k/souboru.ext` — popis
### Upravené soubory
- `cesta/k/souboru.ext:123-145` — co se mění a proč
### Soubory BEZ změn (důležité)
- `cesta/k/souboru.ext` — proč není třeba měnit
## Implementační fáze
Logické celky, NE micro-tasky (ty patří do writing-plans).
Každá fáze je koherentní kus práce.
**Každá fáze se stane separátním plan souborem** při writing-plans.
### Fáze 1: <Název>
- Co je zahrnuto
- Očekávaný výsledek
- Závislosti na jiných fázích
- [ ] Checklist hlavních kroků
### Fáze 2: <Název>
- ...
## Rizika a mitigace
| Riziko | Dopad | Pravděpodobnost | Mitigace |
|--------|-------|-----------------|----------|
| ... | ... | ... | ... |
## Testování
### Unit testy
- Seznam testovacích scénářů s očekávaným chováním
### Integrační / manuální testy
- End-to-end scénáře
### Verifikace
- Příkazy ke spuštění (build, test suite)
- Grep kontroly na zbylé hardcoded hodnoty apod.
## Poznámky
Idempotence, edge cases, výkonnostní úvahy, zpětná kompatibilita.
## Reference
- Odkazy na relevantní dokumentaci
- Odkazy na podobné implementace v codebase
Before saving, verify the analysis covers all of the following:
If any section is not applicable, explicitly note "N/A" with a brief reason rather than omitting it.
Save the document to docs/plans/YYYY-MM-DD-<topic>.md. Commit to git.
REQUIRED: After saving, dispatch four review subagents in parallel using the Task tool.
Business Analyst Review:
Task tool:
subagent_type: general-purpose
description: "BA review of analysis"
prompt: >
You are a Business Analyst reviewer.
Read and follow the cf-powers:review-as-ba skill exactly.
Document to review: docs/plans/YYYY-MM-DD-<topic>.md
Provide your structured review following the skill's output format.
Developer Review:
Task tool:
subagent_type: general-purpose
description: "Dev review of analysis"
prompt: >
You are a Developer reviewer.
Read and follow the cf-powers:review-as-dev skill exactly.
Document to review: docs/plans/YYYY-MM-DD-<topic>.md
Read the actual codebase to verify all claims. Provide your structured review
following the skill's output format.
Security Review:
Task tool:
subagent_type: general-purpose
description: "Security review of analysis"
prompt: >
You are a Security Engineer reviewer.
Read and follow the cf-powers:review-as-security skill exactly.
Document to review: docs/plans/YYYY-MM-DD-<topic>.md
Read the actual codebase to verify security claims. Check CLAUDE.md for
project-specific security invariants. Provide your structured review
following the skill's output format.
Performance Review:
Task tool:
subagent_type: general-purpose
description: "Performance review of analysis"
prompt: >
You are a Performance Engineer reviewer.
Read and follow the cf-powers:review-as-perf skill exactly.
Document to review: docs/plans/YYYY-MM-DD-<topic>.md
Read the actual schema, queries, and code to verify performance claims.
Provide your structured review following the skill's output format.
After all reviewers return:
"Analýza je hotová a prošla cross-checkem. Jak chcete pokračovat?"
Options:
cf-powers:writing-plans