.claude/skills/clarify/SKILL.md
Intensive requirement clarification using structured AskUserQuestion workflow. Gathers MUST_HAVE (blocking) and NICE_TO_HAVE (optional) information before implementation. Use when: (1) starting new feature implementation, (2) requirements are ambiguous, (3) multiple approaches possible, (4) before writing any code. Triggers: /clarify, 'clarify requirements', 'ask questions', 'gather requirements'.
npx skillsauth add alfredolopez80/multi-agent-ralph-loop clarifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Systematically gather requirements using TLDR semantic search + AskUserQuestion tool.
~/.claude/settings.json or CLI/env varsANTHROPIC_DEFAULT_*_MODEL env vars/clarify # Start intensive questioning for current task
AUTOMATIC - Before asking questions, use semantic search to understand existing code:
# Find existing related functionality (95% token savings)
tldr semantic "$USER_TASK_KEYWORDS" .
# Example: For "add authentication", find existing auth code
tldr semantic "authentication login session user password" .
# Get structure overview for context
tldr structure . --lang "$PRIMARY_LANGUAGE"
This helps formulate better questions based on what already exists in the codebase.
Before asking structured questions, apply Aristotle Phase 1 (Assumption Autopsy):
Example: User says "optimize database queries". Assumption Autopsy reveals: "We assume queries are the bottleneck, not the schema design or the caching layer." The first MUST_HAVE question should challenge this assumption.
These MUST be answered before proceeding:
AskUserQuestion:
questions:
- question: "What is the primary goal of this feature?"
header: "Goal"
multiSelect: false
options:
- label: "New user-facing feature"
- label: "Internal refactoring"
- label: "Bug fix"
- label: "Performance optimization"
Functional Requirements
Technical Constraints
Integration Points
Testing & Validation
Deployment
Accept defaults but still ask:
AskUserQuestion:
questions:
- question: "Implementation preferences?"
header: "Approach"
multiSelect: true
options:
- label: "Minimal changes"
- label: "Include tests"
- label: "Add documentation"
AskUserQuestion:
questions:
- question: "What problem does this solve?"
header: "Problem"
options:
- label: "User pain point"
description: "Direct user-facing issue"
- label: "Technical debt"
description: "Code maintainability"
- label: "Performance issue"
description: "Speed/resource usage"
- label: "Security concern"
description: "Vulnerability fix"
AskUserQuestion:
questions:
- question: "What is the scope?"
header: "Scope"
options:
- label: "Single file"
- label: "Single module"
- label: "Multiple modules"
- label: "Cross-system"
AskUserQuestion:
questions:
- question: "Priority level?"
header: "Priority"
options:
- label: "Critical (blocking)"
- label: "High (this sprint)"
- label: "Medium (this quarter)"
- label: "Low (backlog)"
| Phase | TLDR Command | Purpose |
|-------|--------------|---------|
| Before questions | tldr semantic "$KEYWORDS" . | Find related code |
| Context gathering | tldr structure . | Codebase overview |
| Dependency check | tldr deps "$FILE" . | Impact analysis |
Optimal Scenario: Pure Agent Teams (Native)
This skill uses Pure Agent Teams with native coordination - no custom subagent specialization needed.
TeamCreate (optional)
→ AskUserQuestion for requirements
→ Native agent executes clarification
→ Complete
development
Living knowledge base management. Actions: search (query vault), save (store learning), index (update indices), compile (raw->wiki->rules graduation), init (create vault structure). Follows Karpathy pipeline: ingest->compile->query. Use when: (1) searching accumulated knowledge, (2) saving learnings, (3) compiling raw notes into wiki, (4) initializing a new vault. Triggers: /vault, 'vault search', 'knowledge base', 'save learning'.
testing
Produce a verifiable technical specification before coding. 6 mandatory sections: Interfaces, Behaviors, Invariants (from Aristotle Phase 2), File Plan, Test Plan, Exit Criteria (executable bash commands + expected results). Use when: (1) before implementing features with complexity > 4, (2) as Step 1.5 in orchestrator workflow, (3) when requirements need formalization. Triggers: /spec, 'create spec', 'write specification', 'technical spec'.
testing
Pre-launch shipping checklist orchestrating /gates, /security, /browser-test, /perf. Ensures nothing ships without passing all quality checks. Use when: (1) before deploying, (2) before merging to main, (3) before release. Triggers: /ship, 'ship it', 'ready to deploy', 'pre-launch check'.
development
Performance optimization skill. Core Web Vitals via Lighthouse, bundle size analysis, metrics tracking over time. Use when: (1) optimizing frontend performance, (2) analyzing bundle size, (3) tracking metrics regression. Triggers: /perf, 'performance audit', 'core web vitals', 'bundle size'.