AgentSkillsCN

clarify

模糊性检测与澄清循环。在每个阶段(specify、plan、task、revise)中调用,以探测并化解模糊之处。同时更新检查点文档。

SKILL.md
--- frontmatter
name: clarify
description: Ambiguity Detection & Clarification Loop. 모든 단계(specify, plan, task, revise)에서 호출되어 모호함을 탐지하고 해소합니다. 체크포인트 문서를 업데이트합니다.

Clarify Skill

모호함을 탐지하고 해소하는 핵심 프로세스입니다. specify, plan, task, revise 단계에서 필수로 호출됩니다.

When to Use

  • /specify, /plan, /task, /revise 실행 시 자동 호출
  • 체크포인트 문서가 존재할 때
  • 모호함 해소가 필요할 때

Process

code
1. Load Context
   ↓
2. Ambiguity Scan (10 categories)
   ↓
3. Generate Coverage Map
   ↓
4. Prioritize Questions (Impact × Uncertainty)
   ↓
5. Ask One Question (with recommendation)
   ↓
6. Record Answer → Checkpoint
   ↓
7. Loop until no ambiguity

Step 1: Load Context

현재 단계의 체크포인트와 의존 체크포인트를 로드합니다.

code
# 체크포인트 경로
docs/.checkpoints/{feature}-specify.md
docs/.checkpoints/{feature}-plan.md
docs/.checkpoints/{feature}-task.md

의존 관계:

  • specify: 없음
  • plan: specify 참조
  • task: specify, plan 참조
  • revise: 모든 체크포인트 참조

Step 2: Ambiguity Scan

taxonomy.json의 10개 카테고리에 대해 분석합니다.

CategoryCheck ItemsImpact
Functional Scopegoals, out-of-scope, user roleshigh
Domain & Data Modelentities, relationships, lifecyclehigh
Interaction & UXuser journeys, error statesmedium
Non-Functionalperformance, security, scalabilityhigh
Integrationexternal APIs, failure modesmedium
Edge Casesnegative scenarios, conflictsmedium
Constraintstechnical limits, tradeoffshigh
Terminologyglossary, deprecated termslow
Completion Signalsacceptance criteria, DoDmedium
MiscTODO markers, vague adjectiveslow

각 카테고리에 대해 상태 판단:

  • Clear: 명확하게 정의됨
  • Partial: 일부만 정의됨 (질문 후보)
  • Missing: 정의 없음 (질문 필수)

Step 3: Generate Coverage Map

체크포인트의 Coverage Map 섹션을 업데이트합니다.

markdown
## Coverage Map
| Category | Status | Notes |
|----------|--------|-------|
| Functional Scope | Clear | 기능 범위 명확 |
| Domain & Data Model | Partial | 엔티티 관계 불명확 |
| Integration | Missing | 외부 API 미정의 |

Step 4: Prioritize Questions

질문 우선순위 = Impact × Uncertainty

code
Priority Score = category.impact × (1 - clarity)

where:
- impact: high=3, medium=2, low=1
- clarity: Clear=1.0, Partial=0.5, Missing=0.0

최대 5개의 질문을 큐에 추가합니다.

Step 5: Ask One Question

한 번에 1개 질문만 출력합니다.

Multiple Choice Format

markdown
**Recommended:** Option A - <1-2문장 추천 이유>

| Option | Description |
|--------|-------------|
| A | <설명> |
| B | <설명> |
| C | <설명> |

Reply with option letter, "yes"/"recommended", or short answer (<=5 words).

Short Answer Format

markdown
**Suggested:** <제안 답변> - <간단한 이유>

Format: Short answer (<=5 words). Reply "yes"/"suggested" to accept, or provide your own.

Step 6: Record Answer

사용자 답변을 체크포인트의 Clarifications 섹션에 기록합니다.

markdown
## Clarifications
### Session 2026-01-29
- Q: 인증 방식은? → A: JWT + refresh token
- Q: 세션 만료 시간? → A: 24시간

동시에 관련 섹션도 업데이트:

  • Functional → Content의 Functional Requirements
  • Data Model → Content의 Data Model
  • Non-Functional → Content의 해당 섹션

Step 7: Loop Until Complete

Coverage Map의 모든 카테고리가 Clear가 되거나, 세션 질문 한도(10개)에 도달하면 종료합니다.

종료 조건

  1. 모든 카테고리 Clear
  2. 세션 질문 10개 도달
  3. 사용자가 "done", "good", "no more" 입력

종료 시 동작

  • 체크포인트 status를 clarified 또는 ready로 업데이트
  • Open Questions 섹션 업데이트
  • 호출한 skill로 제어 반환

Output

markdown
## Clarify Complete

**Questions Asked**: 5
**Coverage**: 8/10 Clear, 2/10 Partial

### Updated Sections
- Functional Requirements (3 items added)
- Data Model (entity relationships clarified)

**Checkpoint**: docs/.checkpoints/{feature}-{stage}.md updated

Integration with Other Skills

code
/specify → clarify() → checkpoint 생성/업데이트
/plan    → clarify() → checkpoint 생성/업데이트
/task    → clarify() → checkpoint 생성/업데이트
/revise  → clarify() → checkpoint 업데이트

Error Handling

  • 체크포인트 파일 없음 → 호출 skill이 먼저 생성
  • 사용자 답변 모호 → 같은 질문 재질문 (disambiguation)
  • 네트워크/파일 에러 → 에러 메시지 후 재시도 옵션