implement
TDD implementation (RED→GREEN→REFACTOR) → verify → review
Adaptive requirements clarification with auto-depth routing. Shallow (Q&A) for simple tasks, Deep (exploration + DRAFT + PLAN) for complex ones. Escalates automatically when ambiguity persists.
$ npx -y skills add mag123c/toktrack --skill clarify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/clarifyContext preview
The summary Claude sees to decide when to auto-load this skill.
Adaptive requirements clarification with auto-depth routing. Shallow (Q&A) for simple tasks, Deep (exploration + DRAFT + PLAN) for complex ones. Escalates automatically when ambiguity persists.
name: clarify description: | Adaptive requirements clarification with auto-depth routing. Shallow (Q&A) for simple tasks, Deep (exploration + DRAFT + PLAN) for complex ones. Escalates automatically when ambiguity persists. required_context: - .claude/ai-context/architecture.md - .claude/ai-context/conventions.md allowed-tools: - Read - Grep - Glob - Task - Write - AskUserQuestion
| Previous | Current | Next | |----------|---------|------| | Session start | /clarify | Present PLAN inline → /implement |
/clarify → Measure complexity → Clear enough?
├─ Yes → Present PLAN inline → /implement
└─ No → Deeper clarify (explore, analyze, DRAFT...)
→ Re-measure → RepeatExit condition: **"Is this enough info to implement?"** — Critical Unknown=0 + remaining items are made visible (Provenance).
---
| When | File | |------|------| | Tagging provenance on key decisions/assumptions / probe decisions | `references/provenance.md` | | Pre-PLAN user confirmation | `references/checkpoint.md` | | When document authority/reading order is unclear | `references/doc-roles.md` | | Full Deep path procedure | `deep/DEEP.md` | | PLAN/DRAFT structure (Lite/Full + Clarify Verdict) | `templates/` |
> Inline essentials only: **probe-don't-tag** (if cheaply verifiable, measure instead of tagging), **PLAN=intent · WRAP/DECISIONS=fact**, **do not hide inferences**. Details in the references above.
---
Measure complexity internally upon receiving request (do not expose to user).
| Signal | LOW | HIGH | |--------|-----|------| | Request length | Short and specific | Long or ambiguous | | Keywords | "add", "fix", "change" | "design", "migration", "from scratch" | | Uncertainty | None | "not sure", "how should I" | | Impact scope | Single file/module | Cross-cutting, multiple services | | Risk | Low (UI, text) | High (DB, auth, breaking API) | | Existing patterns | Clearly exist | None or unfamiliar stack |
---
Remove ambiguity via quick Q&A, generate minimal specs, and present the PLAN inline.
1. **Record**: Log original request + identify ambiguous parts 2. **Question**: `AskUserQuestion` (specific options, 2-3 rounds) 3. **Escalation Check**: Check escalation conditions (see below) 4. **Create DRAFT**: Write `.dev/specs/{name}/DRAFT.md` (minimal version — What, Why, Scope, Success Criteria) 5. **Summary + Create PLAN**: Before/After comparison → Write `.dev/specs/{name}/PLAN.md` 6. **Present PLAN**: Present the PLAN inline in the conversation (do NOT enter plan mode), then immediately call `/implement`. The plan file must be written to `.dev/specs/{name}/PLAN.md`
Switch to Deep Path if any of these are detected:
On switch: Inform "Scope is more complex than expected. Exploring the codebase first." then follow the process in `deep/DEEP.md`.
---
**When complexity is HIGH or escalated from Shallow.**
See `deep/DEEP.md` for the full process.
Summary: 1. Classify intent (7 types) → Determine strategy 2. 3 parallel exploration agents → Understand codebase 3. Generate DRAFT → Interview → Continuously update 4. On user explicit request → Analysis agents → Generate PLAN → Reviewer loop 5. Present PLAN inline → immediately call `/implement` (no plan mode entry)
---
Record decisions in `.dev/DECISIONS.md` before finalizing plan:
| Situation | Required Record | |-----------|----------------| | New feature design | Decision background, alternatives, reasoning | | Architecture choice | Considered options, selection rationale | | Trade-offs | What was sacrificed and what was gained |
## YYYY-MM-DD: {feature-name}
- **Decision**: What was decided
- **Reason**: Why this choice was made
- **Alternatives**: Options considered but not chosen
- **Reference**: .dev/specs/{feature-name}/PLAN.md (if exists)---
Plan files must include:
**Plan File Location**: The PLAN must be written to `.dev/specs/{name}/PLAN.md`.
**Important**: Plans that do not use `/implement` will not be approved.
---
After presenting the PLAN inline, call `/implement` **immediately**. Do NOT enter plan mode; do not ask "Should I implement?".
Ultra-fast token & cost tracker for LLM Token Usage (e.g. Claude Code)
TDD implementation (RED→GREEN→REFACTOR) → verify → review
Multi-agent code review for Rust CLI/TUI. UX Review inactive (terminal UI — no web frontend). Code Review only. Includes Rust/clippy-specific checklist.
Self-healing verification loop (test → clippy → fmt)