Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add tygwan/cc-initializer --skill "doc-confirm"
Install specific skill from multi-skill repository
# Description
Document generation confirmation flow. Shows preview of documents to be generated and asks for user confirmation before proceeding. Used by /init and brainstorming skills.
# SKILL.md
name: doc-confirm
description: Document generation confirmation flow. Shows preview of documents to be generated and asks for user confirmation before proceeding. Used by /init and brainstorming skills.
Document Generation Confirmation
Purpose
μμ΄λμ΄κ° μ 리λλ©΄ λ¬Έμ μμ± μ μ μ¬μ©μ νμΈμ λ°λ νλ‘μ°μ
λλ€.
μ΄λ₯Ό ν΅ν΄ μ¬μ©μκ° μμ±λ λ¬Έμλ₯Ό 미리 νμΈνκ³ μ§ν μ¬λΆλ₯Ό κ²°μ ν μ μμ΅λλ€.
Trigger Points
/init --full- Discovery μλ£ νbrainstorming- λμμΈ κ²μ¦ μλ£ ν- μλ νΈμΆ -
/doc-confirmμ§μ μ€ν
Flow
[μμ΄λμ΄ μ 리 μλ£]
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Document Generation Preview β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β π Project Summary β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β Name: {project_name} β
β Type: {project_type} β
β Complexity: {LOW|MEDIUM|HIGH} β
β β
β π Documents to Generate β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β β docs/PRD.md β
β β’ User Stories: ~{count} β
β β’ Core Features: {features} β
β β’ Requirements: ~{count} β
β β
β β docs/TECH-SPEC.md β
β β’ Architecture: {architecture_type} β
β β’ Tech Stack: {tech_stack} β
β β’ Components: ~{count} β
β β
β β docs/PROGRESS.md β
β β’ Phases: {phase_count} β
β β’ Tasks: ~{task_count} β
β β
β β docs/CONTEXT.md β
β β’ AI context optimization β
β β
β π Additional (if HIGH complexity) β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β docs/phases/phase-1/ β
β βββ SPEC.md, TASKS.md, CHECKLIST.md β
β ... (total {phase_count} phases) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
User Interaction
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β μ λ΄μ©μΌλ‘ λ¬Έμλ₯Ό μμ±νμκ² μ΅λκΉ? β
β β
β [ β
Submit ] - λ¬Έμ μμ± μ§ν β
β [ βοΈ Edit ] - DISCOVERY.md μμ ν λ€μ νμΈ β
β [ β Cancel ] - μ·¨μ (DISCOVERY.mdλ§ μ μ₯) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Actions by Choice
Submit
Action: Proceed with document generation
Steps:
1. Trigger dev-docs-writer agent
2. Generate: PRD.md, TECH-SPEC.md, PROGRESS.md, CONTEXT.md
3. If HIGH complexity β Trigger doc-splitter β Phase structure
4. Show completion summary
Edit
Action: Allow user to modify discovery
Steps:
1. Open/show DISCOVERY.md for editing
2. Wait for user to confirm edits
3. Re-run preview with updated content
4. Show confirmation again
Cancel
Action: Save discovery only
Steps:
1. Ensure DISCOVERY.md is saved
2. Show message: "Discovery saved. Run '/init --generate' later to create documents."
3. Exit without generating documents
Preview Generation Logic
Extract from DISCOVERY.md:
project_name: From "# Project Name" or first heading
project_type: From "Type:" field
complexity: From "Complexity:" field or auto-detect
features:
- Parse "## Core Features" section
- Count bullet points
tech_stack:
- Parse "## Tech Stack" section
- Extract languages, frameworks, tools
phases:
- If complexity = HIGH: estimate 5-8 phases
- If complexity = MEDIUM: estimate 3-5 phases
- If complexity = LOW: estimate 1-3 phases
tasks:
- Estimate: phases Γ 5-10 tasks per phase
Integration
With /init --full
/init --full
β
βββ Framework Setup
β
βββ project-discovery β DISCOVERY.md
β
βββ [NEW] doc-confirm (this skill)
β β
β βββ Submit β Continue to document generation
β βββ Edit β Back to discovery refinement
β βββ Cancel β Stop (DISCOVERY.md saved)
β
βββ dev-docs-writer β Documents
With brainstorming
brainstorming
β
βββ Understanding the idea (Q&A)
β
βββ Exploring approaches
β
βββ Presenting the design (incremental)
β
βββ Design validated β Save draft
β
βββ [NEW] doc-confirm (this skill)
β β
β βββ Submit β dev-docs-writer β Full documents
β βββ Edit β Back to design refinement
β βββ Cancel β Keep design doc only
β
βββ (Optional) Implementation setup
Output Format
Preview Template
## π Document Generation Preview
### Project Summary
- **Name**: {name}
- **Type**: {type}
- **Complexity**: {complexity}
- **Tech Stack**: {stack}
### Documents to Generate
| Document | Content |
|----------|---------|
| `docs/PRD.md` | User stories, features, requirements |
| `docs/TECH-SPEC.md` | Architecture, components, APIs |
| `docs/PROGRESS.md` | Phase tracking, milestones |
| `docs/CONTEXT.md` | AI context optimization |
### Estimated Structure
- **Phases**: {phase_count}
- **Tasks**: ~{task_count}
- **Complexity Level**: {complexity}
---
**μ λ΄μ©μΌλ‘ λ¬Έμλ₯Ό μμ±νμκ² μ΅λκΉ?**
1. β
**Submit** - λ¬Έμ μμ± μ§ν
2. βοΈ **Edit** - DISCOVERY.md μμ ν λ€μ νμΈ
3. β **Cancel** - μ·¨μ (Discoveryλ§ μ μ₯)
Usage Examples
Direct Usage
# κΈ°μ‘΄ DISCOVERY.mdλ₯Ό κΈ°λ°μΌλ‘ νμΈ
/doc-confirm
# νΉμ νμΌ μ§μ
/doc-confirm --source docs/DISCOVERY.md
Integrated Usage (Automatic)
# /init --full κ³Όμ μμ μλ μ€ν
/init --full
# ... discovery ...
# [μλ] doc-confirm μ€ν
# ... user confirms ...
# [μλ] document generation ...
# brainstorming κ³Όμ μμ μλ μ€ν
/brainstorming "μλ‘μ΄ κΈ°λ₯ μμ΄λμ΄"
# ... Q&A, design ...
# [μλ] doc-confirm μ€ν
# ... user confirms ...
# [μλ] document generation ...
Key Principles
- Never Skip Confirmation: μμ΄λμ΄κ° μ 리λλ©΄ νμ νμΈ λ¨κ³ κ±°μΉ¨
- Clear Preview: μμ±λ λ¬Έμλ₯Ό λͺ νν 미리 보μ¬μ€
- User Control: μ¬μ©μκ° μ§ν/μμ /μ·¨μ κ²°μ
- Preserve Work: Cancelν΄λ DISCOVERY.mdλ μ μ₯λ¨
- Iterative: Edit μ ν μ 무ν λ°λ³΅ κ°λ₯
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.