skills/clarify/SKILL.md
Resolve ambiguities interactively with tracked changes. Works with scope, code review, and other skills.
npx skillsauth add srnnkls/tropos clarifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
Security scan pending...
This skill is queued for security scanning. Results will appear when the scan completes.
Resolve ambiguities by updating documents directly with tracked changes. Context-aware: adapts to scopes, code reviews, or standalone use.
Use for:
Don't use for:
/scope creation)/scope)The skill auto-detects context based on what's available:
| Context | Detection | Source |
|---------|-----------|--------|
| Scope | ./scopes/*/*/validation.yaml exists | ambiguity_scan + markers |
| Code Review | Recent ~/.claude/reviews/*.md | Review issues/questions |
| Standalone | Neither above | User-provided questions |
Scope context:
./scopes/*/*/ (lifecycle dirs: draft, active, done)validation.yaml from scope directoryambiguity_scan section for areas with status: partial or status: missingstatus: openCode review context:
~/.claude/reviews/Standalone:
For each candidate (prioritized by impact), use AskUserQuestion:
Header: ${AREA}
Question: ${DESCRIPTION}
multiSelect: false
Options:
- [Generated options based on context]
- Defer: Skip for now
Prioritization: Scope > Behavior > Data Model > Constraints > Edge Cases > Integration > Terminology
When a clarification is resolved, update the relevant section in the source document:
| Clarification Area | Target Document | Target Section | |--------------------|-----------------|----------------| | Scope | scope.md | Requirements, Scope | | Behavior | scope.md | Requirements, Behavior | | Data Model | scope.md | Data Model | | Constraints | scope.md | Constraints | | Edge Cases | scope.md | Edge Cases | | Integration | scope.md | Integration Points | | Terminology | scope.md | Terminology |
Update approach:
Create a new session entry in clarification_sessions:
clarification_sessions:
- id: S00${N}
timestamp: ${ISO_TIMESTAMP}
source: clarify # or scope-review, code review if invoked from there
questions:
- id: Q001
question: "${QUESTION}"
answer: "${ANSWER}"
area: ${TAXONOMY_AREA}
doc_updates:
- file: scope.md
section: Requirements
action: modified
doc_updates tracks exactly which files/sections changed for audit trail.
For each resolved clarification from ambiguity gaps:
ambiguity_scan.${area}.status to clearambiguity_scan.${area}.gapsFor each resolved marker:
status: open to status: resolvedresolution: "${USER_ANSWER}"For Initiative scopes:
| Source | Target File | Target Section | |--------|-------------|----------------| | Scope gap | scope.md | ## Requirements or ## Scope | | Behavior gap | scope.md | ## Requirements / Behavior subsection | | Data Model gap | scope.md | ## Data Model | | Constraints gap | scope.md | ## Constraints | | Edge Cases gap | scope.md | ## Edge Cases | | Integration gap | scope.md | ## Integration Points | | Terminology gap | scope.md | ## Terminology |
[Load validation.yaml]
[Run ambiguity scan]
- scope: partial (1 gap)
- data_model: missing (2 gaps)
[Check markers]
- M001 (Constraints): open
Candidates:
1. Scope: "User role boundaries unclear"
2. Data Model: "Schema for notifications not defined"
3. Data Model: "Retention policy not specified"
4. Constraints: "Authentication method not specified"
---
Header: Scope
Question: What user roles exist and what are their boundaries?
Options:
- Admin/User: Two-tier with admin full access
- Role-based: Granular permissions per feature
- Defer: Skip for now
User selects: Admin/User
[Update scope.md#requirements]
Added: "Two-tier role system: Admin (full access), User (standard permissions)"
[Record session]
clarification_sessions:
- id: S001
timestamp: 2025-01-15T10:30:00Z
source: clarify
questions:
- id: Q001
question: "What user roles exist and what are their boundaries?"
answer: "Two-tier: Admin (full access), User (standard permissions)"
area: scope
doc_updates:
- file: scope.md
section: Requirements
action: modified
[Update ambiguity_scan]
scope:
status: clear
gaps: []
---
Header: Constraints
Question: Which authentication method should be used?
...
Command: /clarify [context]
Invoked from:
scope - Clarify during scope creation or reviewcode review - Clarify code review findingsimplement - Resolve blocking markers before executionRelated skills:
scope - Creates scopes with ambiguity_scan and markersimplement - Checks for blocking markers before executiontools
External code-review harness (`peer` zsh tool): canonical model registry, idle-stall watchdog, and self-parallelising fan-out to codex/gemini. Use when dispatching external (non-Claude) reviewers from the review or implement pipelines — call `peer run`/`peer <harness>` instead of `codex exec`/`gcloud`+Vertex directly.
testing
Unified validation dispatcher. Auto-detects validation type from argument or presents selection menu. Routes to test, implement (verify), or hooks-test.
development
Test-driven development methodology (RED-GREEN-REFACTOR). Use when implementing features, fixing bugs, or changing behavior - write failing test first, then minimal code to pass.
development
Create new Claude Code skills following project patterns and best practices. Use when building new skills, extracting reusable capabilities, or converting commands to skills.