tygwan

doc-confirm

1
0
# Install this skill:
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

  1. /init --full - Discovery μ™„λ£Œ ν›„
  2. brainstorming - λ””μžμΈ 검증 μ™„λ£Œ ν›„
  3. μˆ˜λ™ 호좜 - /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

  1. Never Skip Confirmation: 아이디어가 μ •λ¦¬λ˜λ©΄ 항상 확인 단계 κ±°μΉ¨
  2. Clear Preview: 생성될 λ¬Έμ„œλ₯Ό λͺ…ν™•νžˆ 미리 λ³΄μ—¬μ€Œ
  3. User Control: μ‚¬μš©μžκ°€ μ§„ν–‰/μˆ˜μ •/μ·¨μ†Œ κ²°μ •
  4. Preserve Work: Cancel해도 DISCOVERY.mdλŠ” μ €μž₯됨
  5. 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.