spec
БесплатноБез исполняемых скриптовНе проверенDesigns and develops specs following the spec-driven method. Asks clarifying questions before proposing structure, and builds the spec section by section. Use…
от Klerith★ 425 звёзд на GitHubОб этом скилле
/spec — Guided spec designer
Session context
Today's date (use this for the spec header, never guess it):
!date +%F
Specs that already exist:
!ls specs/ 2>/dev/null || echo "The specs/ folder does not exist yet"
This skill helps you produce a useful spec following the spec-driven method. You don't write code here. Your job is to help the user clarify what they want to build, ask questions when something is not well-defined enough, and develop the spec section by section until it is ready to be saved into specs/.
Philosophy
A spec is not decorative documentation. It is the contract that drives later execution. If the spec is vague, the code will improvise. That is why this flow is deliberately slow during the definition phase and fast during the writing phase.
Read template.md (in the same directory as this skill) to see the full structure the spec will follow. Lean on it at every step.
Command flow
- Follow the four phases in order. Never skip Phase 2 — the questions are the whole point. If the user wants to go faster, remind them that the cost of a bad spec gets paid later in code. (Phase 3 does have a fast path once Phase 2 is genuinely complete; see below.)
- Your replies must be in the same language as the initial prompt. E.g.: if the initial prompt is in Spanish, your replies must be in Spanish; if it is in English, your replies must be in English.
Phase 1 — Understand the context
Before asking questions about the feature, make sure you have project context:
- Read the project-memory file, if one exists. Try in order and stop at the first hit:
CLAUDE.md,AGENTS.md,GEMINI.md,README.md. This adapts the skill to whichever agent is running it (Claude Code, Codex, Gemini CLI, etc.). - Look at the
specs/listing in the session context above to see which specs already exist and how they are numbered. - If previous specs exist, read at least the two most recent ones to pick up the project's conventions — including the language they are written in and the exact wording they use for states and section headings. A new spec must match the existing ones.
If the $ARGUMENTS argument comes in empty, ask the user for an initial single-sentence description of what they want to build. If the description does not fit in one sentence, that is the first signal that the feature is too big — suggest splitting it before continuing.
Phase 2 — Clarify through questions
This is the most important phase of the command. Your job here is to detect ambiguities and ask, not to assume.
Ask questions in blocks of 3 to 5 at a time (not one single question followed by another single question — that is exhausting). After each block, wait for an answer before continuing.
Question categories you should always consider:
- Scope: What is in and what is NOT? Which parts of the feature are deferred to another spec?
- Data: What new structures are introduced? How are they named? Where do they live?
- Integration: Does this feature depend on previous specs? Does it modify something existing or only add?
- Persistence: Is anything saved between sessions? Where? With what versioning?
- UX and states: What does it look like when it works? What does it look like when it fails? Are there intermediate states?
- Risks: What can break this? What happens in the degraded case?
- Closed decisions: Is there any decision the user has already made and does not want to reopen?
How to phrase the questions:
- Use concrete questions, not open-ended ones. ❌ "How do you imagine persistence?" → ✅ "Is persistence localStorage, IndexedDB, or a JSON file on disk?"
- When you offer options, give 2–4, mark which one is your recommendation and why.
- If your agent exposes a native multiple-choice question tool (in Claude Code:
AskUserQuestion), use it for these blocks instead of writing the options as prose — the user picks instead of typing. Put your recommendation first and label it. Fall back to a numbered markdown list when no such tool exists. - If you spot an answer that would open Pandora's box (e.g. "and we also want multiplayer"), point out that it deserves its own spec and ask whether we leave it out of this one's scope.
When to stop asking:
Stop when you can answer these three questions without assuming anything:
- Which files will appear or change?
- What is the first executable step and what is the last one?
- How do I verify the feature is finished?
If you still cannot answer one of them, keep asking.
Phase 3 — Write the spec
Once Phase 2 is closed, decide how to write it:
If you already have all the information you need — meaning you can answer the three Phase 2 questions (which files change, what the first and last executable steps are, how to verify it is finished) without assuming anything — then do not go section by section. Write the complete spec and jump straight to Phase 4 to save the file
Установить spec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepWriteAskUserQuestionBash(ls:*)Bash(cat:*)Bash(date:*)Вложенные файлы
FAQ
Что делает скилл spec?
Designs and develops specs following the spec-driven method. Asks clarifying questions before proposing structure, and builds the spec section by section. Use it when starting a large feature, before writing code.
Как установить скилл spec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic