dev-planning
dev-planning
Unified planning document pipeline for all project types, organized by domain. The first 4 steps are shared across all domains. Step 5 branches by domain type. Step 6 generates a test specification referencing IDs from all previous steps.
When to Use
- User says "기획", "planning", "설계", "plan backend", "plan frontend", "plan infra"
- User says "기획 문서", "기획 문서 만들어줘", "dev planning", "API 설계", "UI 설계"
- Starting a new project that needs structured design documents
- Adding a major feature that requires multi-document planning
When NOT to Use
- Fixing a single endpoint, component, or small tweak
- Editing or updating existing specification documents
- Work that doesn't need multi-document planning
Pipeline Overview
Step 0: Tech stack detection + domain type classification
Step 0.5: Domain analysis & document discovery
Step 1: Requirements -> <domain>/requirements/requirements.md [common]
Step 2: User Stories -> <domain>/requirements/user-stories.md [common]
Step 3: Use Cases -> <domain>/workflows/use-cases.md [common]
Step 4: Sequence Diagrams -> <domain>/workflows/sequence-diagram.md [common]
Step 5: Domain-Specific Spec -> <domain>/workflows/<spec>.md [branched]
Backend: api-spec.md
Frontend: component-spec.md
Infra: infra-spec.md
Step 6: Test Specification -> <domain>/workflows/test-spec.md [common]
Step 7: README (table of contents)
For multi-domain projects, Steps 1-6 repeat per domain. Step 7 runs once.
Output Structure
docs/en/specifications/
├── architecture.md # Cross-cutting (created by init-docs)
├── infrastructure.md # Cross-cutting (created by init-docs)
├── config.md # Cross-cutting (created by init-docs)
├── README.md # Index of all domains/documents (Step 7)
└── <domain>/
├── requirements/
│ ├── requirements.md # Step 1
│ └── user-stories.md # Step 2
└── workflows/
├── use-cases.md # Step 3
├── sequence-diagram.md # Step 4
├── api-spec.md # Step 5 (backend only)
├── component-spec.md # Step 5 (frontend only)
├── infra-spec.md # Step 5 (infra only)
└── test-spec.md # Step 6
ID System
Each document assigns its own IDs. These IDs are referenced by test-spec.md
to derive test cases. Planning/design documents (Steps 1-5) contain no test
definitions — only IDs.
| Document | ID Format | Example |
|---|---|---|
| Requirements | FR-<AREA>-NN, NFR-<CAT>-NN |
FR-AUTH-01, NFR-SEC-01 |
| User Stories | US-NN, AC-USNN-NN |
US-01, AC-US01-01 |
| Use Cases | UC-<AREA>-NN |
UC-AUTH-01 |
| Sequence Diagrams | (references UC-XXX) | — |
| Domain Spec | (endpoint/component names) | — |
Navigation
Every domain document includes two navigation blocks:
Top — sequential prev/next for linear reading:
> [← Requirements](requirements.md) | [User Stories →](user-stories.md)
First document omits "←", last document omits "→".
Bottom — full index to jump to any document:
---
> **All Documents**
> [Requirements](../requirements/requirements.md) | ... | [Test Spec](test-spec.md)
The current document is shown in bold instead of a link.
Step-by-Step Instructions
Step 0: Detect Tech Stack + Domain Type
Before generating any documents, detect the project's tech stack and classify the domain type.
- Scan for project manifests:
- Python:
pyproject.toml,requirements.txt,setup.py - Node.js:
package.json,tsconfig.json - Java:
pom.xml,build.gradle - Go:
go.mod - Rust:
Cargo.toml - Ruby:
Gemfile - Infrastructure:
terraform/,kubernetes/,docker-compose.yml,ansible/
- Python:
- Detect framework, database, ORM, API style, architecture pattern
- Scan directory structure —
src/,app/,pages/,components/,deploy/ - Classify the domain type based on detected stack:
- Backend: Server framework detected (FastAPI, Express, Spring Boot, Gin, etc.)
- Frontend: UI framework detected (React, Vue, Angular, Next.js, Nuxt, etc.)
- Infra: Infrastructure-as-code detected (Terraform, Kubernetes, Ansible, etc.)
- If both backend and frontend exist, ask the user which domain to plan first
Summarize and confirm with the user:
Detected tech stack:
- Language: ...
- Framework: ...
- Domain type: Backend / Frontend / Infra
Does this look correct?
Wait for confirmation before proceeding.
Step 0.5: Domain Analysis & Document Discovery
Domain Analysis
- Ask the user to describe major feature areas
- Propose domain groupings (e.g.,
auth,dashboard,payment) - Always create at least one domain directory
- Present proposed structure and wait for confirmation
Document Discovery
- Scan
README.md,CLAUDE.md, all.mdfiles underdocs/en/specifications/anddocs/en/policy/ - Classify each by first 30 lines:
requirements/user-stories/use-cases/api-spec/sequence-diagram/architecture/config/infrastructure/deployment/policy/other - Present discovered documents grouped by category using
@-reference format - Carry confirmed document list to all subsequent steps
If no documents found, record "No project documents found" and proceed.
Step 1: Requirements
Output: <domain>/requirements/requirements.md
- Load template:
references/common/requirements-template.md - Load discovered docs classified as
requirements,user-stories, orarchitecture - Ask user for: system purpose, stakeholders, core features, non-functional requirements, constraints
- Generate document with:
- System context diagram (C4Context Mermaid)
- Functional requirements grouped by area (
FR-<AREA>-NNformat) - Non-functional requirements (
NFR-<CAT>-NNformat) - Constraints (technical, architecture, operational)
- Requirements traceability matrix
- Wait for review
Step 1 complete: Requirements generated. Please review. Ready to proceed?
Step 2: User Stories
Output: <domain>/requirements/user-stories.md
- Load template:
references/common/user-stories-template.md - Load Step 1 output
- For each major feature, create user stories:
- As a [role], I want to [capability], So that [benefit]
- Acceptance criteria with
AC-USNN-NNIDs in Given/When/Then format - Non-functional requirements per story
- Related requirements references
- Include story-requirement traceability table with AC count
- Wait for review
Step 2 complete: User stories generated. Please review. Ready to proceed?
Step 3: Use Cases
Output: <domain>/workflows/use-cases.md
- Load template:
references/common/use-cases-template.md - Load previous outputs: Steps 1-2
- Load discovered docs classified as
use-casesorarchitecture - For each use case (
UC-<AREA>-NN), define:- Basic information (actors, related requirements, related user stories)
- Preconditions and postconditions
- Main flow with sequenceDiagram Mermaid
- Alternative flows with branch points
- Include actor definitions, use case diagram, relationship table
- Wait for review
Step 3 complete: Use cases generated. Please review. Ready to proceed?
Step 4: Sequence Diagrams
Output: <domain>/workflows/sequence-diagram.md
- Load template:
references/common/sequence-diagram-template.md - Load previous outputs: Steps 1-3
- For each major flow, create:
- sequenceDiagram Mermaid showing architecture layer interactions
- Participants labeled as
FileName<br/>(Layer)notation - Key steps and related code references
- Include:
- Architecture layer structure
- Normal flows, error handling flows
- Performance optimization points
- Wait for review
Step 4 complete: Sequence diagrams generated. Please review. Ready to proceed?
Step 5: Domain-Specific Specification
Output: <domain>/workflows/<spec>.md
Branch based on the domain type detected in Step 0:
If Backend: API Specification
Output: <domain>/workflows/api-spec.md
- Load template:
references/backend/api-spec-template.md - Load previous outputs: Steps 1-4
- For each API endpoint, define:
- HTTP method, path, authentication requirements
- Request/response schemas with JSON examples
- curl and JavaScript examples
- Error responses
- Include: endpoint catalog, data models, authentication flow, error codes
- Wait for review
If Frontend: Component Specification
Output: <domain>/workflows/component-spec.md
- Load template:
references/frontend/component-spec-template.md - Load previous outputs: Steps 1-4
- Load discovered docs classified as
api-spec— use as endpoint source - Define:
- UI overview (views, URLs, access levels, responsive strategy)
- Component tree with Mermaid hierarchy
- Shared and page-specific components with TypeScript prop interfaces
- State management strategy and store definitions
- API endpoint list with request/response DTOs
- Caching strategy and error handling patterns
- Wait for review
If Infra: Infrastructure Specification
Output: <domain>/workflows/infra-spec.md
- Load template:
references/infra/infra-spec-template.md - Load previous outputs: Steps 1-4
- Define:
- Deployment topology
- Environment configurations
- CI/CD pipeline
- Resource definitions, monitoring, security
- Wait for review
Step 5 complete: Domain specification generated. Please review. Ready to proceed?
Step 6: Test Specification
Output: <domain>/workflows/test-spec.md
- Load template:
references/common/test-spec-template.md - Load all previous outputs: Steps 1-5
- Derive test cases by scanning IDs from earlier documents:
AC-USNN-NNfrom user stories -> E2E and acceptance testsUC-<AREA>-NNmain/alternative flows -> integration and unit tests- Domain spec endpoints/components -> contract tests
- Generate:
- Test matrix with Test IDs (
T-NNN), source references, type, priority - Mocking boundaries for unit/integration/E2E levels
- Proposed test file structure
- Test-requirement traceability matrix
- Test matrix with Test IDs (
- Wait for review
Step 6 complete: Test specification generated. Please review. Ready to proceed to README?
Step 7: Generate README
Output: docs/en/specifications/README.md
After all domains complete Steps 1-6:
- Single-domain: table of contents linking all documents (6 per domain + test-spec)
- Multi-domain: section per domain + optional per-domain README.md
- If README exists, merge rather than overwrite
- Include discovered documents in a Related Project Documents section
Report all generated file paths on completion.
Planning complete. Generated documents:
<domain>/requirements/requirements.md<domain>/requirements/user-stories.md<domain>/workflows/use-cases.md<domain>/workflows/sequence-diagram.md<domain>/workflows/<domain-spec>.md<domain>/workflows/test-spec.mddocs/en/specifications/README.md
Document Rules
- Language: English
- Meta block: Created, Last Modified, Status, Tech Stack, Reference Documents
- Mermaid:
sequenceDiagramfor flows,C4Contextfor system context,graph TD/LRfor hierarchies - TypeScript:
interfacefor props, stores, DTOs (frontend domain) - IDs: FR-XXX, NFR-XXX, US-NN, AC-USNN-NN, UC-XXX — no test content in planning docs
- Cross-references: FR -> UC -> Domain Spec -> Test Spec links
- Given/When/Then: Acceptance criteria format in user stories
- Participant notation:
FileName<br/>(Layer)in sequence diagrams - References: Each step loads all previous step outputs before generating
- Review gate: Never proceed to the next step without user approval
- Navigation: Every domain document has top (prev/next) and bottom (all documents) navigation
- Navigation placeholders: Templates use
<domain-spec>as a placeholder in navigation links. When generating documents, replace with the actual domain spec filename:api-spec(backend),component-spec(frontend),infra-spec(infra) @-references: Use for discovered docs per @docs/en/policy/reference-convention.md
More from ywj3493/claude-skills
new-policy
Creates a new policy document in docs/en/policy/ with the standard format, and simultaneously creates its Korean translation in docs/ko/policy/. Use this when the team needs to establish a new working rule or standard. Triggered by "add a policy", "create a policy for X", "새 정책 만들어줘", "규칙 문서화", or describing a convention that needs to be formalized.
22new-issue
Creates a new issue for tracking work. When a git remote exists, creates a GitHub Issue via `gh` CLI, sets up a working branch, and opens a draft PR linked to the issue. When no remote is configured, falls back to creating local issue documents in docs/en/issue/ with Korean translations. Use this whenever starting new work — features, bug fixes, tasks, or investigations. The user may say "create an issue", "new issue", "이슈 만들어줘", or simply describe work they want to start.
21init-docs
Initializes the standard docs/ directory structure for a new project. Creates docs/en/{specifications,issue,policy}/, docs/ko/{specifications,issue,policy}/, and docs/reference/, seeds initial policy documents in both English and Korean, and places a CLAUDE.md in the project root. Use this when starting a fresh project that should follow the standard documentation system.
19sync-dev
Audits docs/specifications/, docs/issue/, and docs/policy/ for English documents that are missing a Korean translation in docs/dev/, or where the Korean version appears out of date compared to the English source, then creates or updates those translations. Use this to keep docs/dev/ in sync. Triggered by "sync docs", "번역 동기화", "update translations", "sync dev", or "mirror docs".
10sync-translations
Audits docs/en/specifications/, docs/en/issue/, and docs/en/policy/ for English documents that are missing a Korean translation in docs/ko/, or where the Korean version appears out of date compared to the English source, then creates or updates those translations. Use this to keep docs/ko/ in sync. Triggered by "sync docs", "번역 동기화", "update translations", "sync translations", or "mirror docs".
10frontend-planning
[DEPRECATED] Use dev-planning instead. Former 6-step frontend planning pipeline.
10