clarify · mag123c — скилл для Claude Code: уточнение требований и установка
Скилл уточняет требования к задаче, выбирает глубину анализа по сложности и готовит план реализации. При росте неопределённости переходит к исследованию кодовой базы.
npx skills add mag123c/toktrack --skill clarify -a claude-codeЧто делает clarify
clarify помогает превратить расплывчатый запрос в план, по которому можно писать код. Для простых задач он задаёт уточняющие вопросы, фиксирует область работ и критерии успеха. Для сложных задач исследует кодовую базу с помощью параллельных субагентов, формирует черновик требований и углубляет анализ, пока критические неизвестные не будут устранены.
Скилл создаёт .dev/specs/{name}/DRAFT.md и .dev/specs/{name}/PLAN.md, а решения по архитектуре и компромиссам записывает в .dev/DECISIONS.md. План должен включать способ проверки через тесты и ссылаться на /implement. После показа плана агент сразу вызывает /implement, не переходя в режим планирования. Для работы требуются файлы контекста .claude/ai-context/architecture.md и .claude/ai-context/conventions.md; если область задачи остаётся неясной после трёх раундов вопросов, скилл переключается на глубокий анализ.
Какие задачи решает
- Уточнить требования перед началом разработки
- Разобрать неоднозначную задачу и определить её границы
- Исследовать несколько модулей перед выбором архитектуры
- Зафиксировать причины решений и отвергнутые альтернативы
- Подготовить план с критериями успеха и проверкой тестами
Примеры запросов агенту
- Уточни требования к новой функции и подготовь план реализации.
- Разберись, как перенести текущую схему базы данных без поломки API, и сначала исследуй кодовую базу.
- Помоги определить архитектуру новой функции, зафиксируй решения в
.dev/DECISIONS.mdи подготовь план для/implement.
Как установить clarify
1Через Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill clarify -a claude-code2Вручную: положить файлы
~/.claude/skills/clarify/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/clarify/
1Через Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill clarify -a codex2Вручную: положить файлы
.agents/skills/clarify/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill clarify -a cursor2Вручную: положить файлы
.cursor/skills/clarify/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mag123c/toktrack clarify2Вручную: положить файлы
.github/skills/clarify/SKILL.md1Через Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill clarify -a gemini-cli2Командой платформы
gemini skills install https://github.com/mag123c/toktrack --path .claude/skills/clarifyВручную: положить файлы
.devin/skills/clarify/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mag123c/toktrack --skill clarify -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о clarify
Как установить clarify в Claude Code?
Выполни npx skills add mag123c/toktrack --skill clarify -a claude-code. Файл скилла будет доступен по пути ~/.claude/skills/clarify/SKILL.md.
Что делает скилл clarify?
Он уточняет требования, оценивает сложность задачи и выбирает краткий или углублённый процесс анализа. Результатом становится план реализации с критериями проверки и записью архитектурных решений.
Когда clarify переключается на глубокий анализ?
Переход происходит, если после трёх раундов вопросов границы задачи остаются неясными, появляются новые неизвестные, расширяется область изменений или обнаруживаются риски для базы данных, авторизации либо обратной совместимости API.
Исходный текст
SKILL.md · MIT
---
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
---
# /clarify — Adaptive Requirements Clarification
## Chain (MUST)
| Previous | Current | Next |
|----------|---------|------|
| Session start | /clarify | Present PLAN inline → /implement |
## Core Model
```
/clarify → Measure complexity → Clear enough?
├─ Yes → Present PLAN inline → /implement
└─ No → Deeper clarify (explore, analyze, DRAFT...)
→ Re-measure → Repeat
```
Exit condition: **"Is this enough info to implement?"** — Critical Unknown=0 + remaining items are made visible (Provenance).
---
## Reference Files (load as needed — chaining)
| 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.
---
## Step 0: Route — Complexity Assessment
Measure complexity internally upon receiving request (do not expose to user).
### Complexity Signals
| 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 |
- **LOW** → Shallow Path (completed within this file)
- **HIGH** → Deep Path (see `deep/DEEP.md`)
- **Ambiguous** → Start Shallow, monitor escalation conditions
---
## Shallow Path (Low Complexity)
Remove ambiguity via quick Q&A, generate minimal specs, and present the PLAN inline.
### Execution
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`
### Rules
- No assumptions → Ask questions
- Clarify to TDD-ready level
- Target resolution within 3 rounds
### Escalation → Deep Path
Switch to Deep Path if any of these are detected:
- Scope still undefined after 3 rounds of questions
- New uncertainties keep emerging from user answers
- Impact scope expanded beyond initial estimate (single → multi-module)
- Risk indicators found (DB schema, auth, breaking changes)
- User doesn't know the approach itself ("I don't know how to do this")
On switch: Inform "Scope is more complex than expected. Exploring the codebase first." then follow the process in `deep/DEEP.md`.
---
## Deep Path
**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)
---
## DECISIONS.md Recording (MUST)
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 |
```markdown
## 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 File Requirements
Plan files must include:
- Specify implementation via `/implement` skill
- Verification method (test execution)
- Confirmation that `.dev/DECISIONS.md` recording is complete
**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.
---
## NEXT STEP (Auto-execute)
After presenting the PLAN inline, call `/implement` **immediately**. Do NOT enter plan mode; do not ask "Should I implement?".
© mag123c · MIT · mag123c/toktrack
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — clarify от других авторов.