spec
Propose, agree, and write changes to a project's spec -- a short document, by default `docs/spec.md`, that holds only what the user and the agent working with…
от maragudk★ 30 звёзд на GitHub
Установить spec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Spec
A project's spec is a short document, by default docs/spec.md, that holds only what the user and the agent working with them have explicitly agreed. It states what the product is and guarantees. Agents may own the code, but the user and the agent own the spec together, so no word of it changes without the user. A project can name further documents that work the same way (in its AGENTS.md, for example); everything here applies to them too.
Starting a spec
Create a spec only when the user asks for one. Never create it unprompted. The file opens by stating its own rule:
# Spec
This document holds only what <user> and <agent> have explicitly agreed to write here. Nothing is added or changed without that agreement. Keep it concise.
Use the user's name and your own. Then fill it the way any change is made, below.
Making a change
Check that it belongs (see the next section). If it doesn't, say where it goes instead and offer to put it there.
Propose the exact wording in a quote block, with where it goes, and ask for agreement:
Under Groups, after Anyone can start a group:
Members can leave a group at any time. Leaving stops their digests at once. Their past messages stay in the group.
Agree to that wording?
Revise until the user says yes. They may reword it, add to it, or ask for it shorter, over several rounds. Show the full revised sentence each time, not a description of the change.
Write it verbatim once they agree explicitly. Don't polish it on the way in; a better word is a new proposal.
Put one change to the user at a time, and wait for the answer before raising the next. If an answer is vague, covers two proposals at once, or could mean something other than what you proposed, it is not agreement: ask what was agreed. Removing or rewording an entry, including one of your own, goes through the same steps.
What belongs in it
Agreed rules about what the product is and guarantees: behaviour a user can rely on, architecture and formats that are expensive to change, and goals. Each entry is a bold short name followed by one to a few sentences, grouped under a few headings.
## Groups
- **Members can leave a group at any time.** Leaving stops their digests at once. Their past messages stay in the group.
Before proposing, ask yourself: would the user call this a spec thing, or is it too low-level? These belong elsewhere:
- Implementation detail and how something was done -- read from the code, its tests, and the diary.
- What is agreed but not built, and open design questions -- in the project's to-do document.
- A running list of what is supported or planned -- in a roadmap.
The spec is read at the start of work on the project, so keep it short. When an entry grows, propose splitting its detail out to where it belongs.
The spec is the newest word
Where the spec and an older conversation, note, or document differ, the spec holds. When the spec changes, bring the README, site, to-do entries, and anything else that restates the rule into line with it, as a follow-up job. Never change the spec to match them.
If the work turns out to need something the spec rules out, that is not a detail to decide alone. Stop that part of the work and bring it to the user as a proposed change.
Who edits it
Nothing goes into the spec without the user's explicit agreement on the exact wording, and the agent talking with the user is the one who gets it. That agent may write the agreed wording itself, or hand it to a writer or another small sub-agent: the brief then quotes the wording exactly and says where it goes, and the sub-agent writes it in verbatim, changes nothing else in the spec, and does not improve the wording.
A writer may also be asked to draft wording, or a first spec. A draft is a proposal: it comes back in the writer's report, never in the spec file, and goes to the user through the agent talking with them.
Otherwise, sub-agents do not edit the spec. A builder, or a writer working on something else, that finds it silent, contradictory, or in the way of the work says so in its report with a proposed sentence, for the agent talking with the user to propose. When you brief a sub-agent on a project with a spec, tell it this.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл spec?
Propose, agree, and write changes to a project's spec -- a short document, by default `docs/spec.md`, that holds only what the user and the agent working with them have explicitly agreed -- and to any other document the project says is treated the same way. Use whenever you are about to add to, change, or remove from such a document, even a single word; when the user says "let's put that in the spec", "add it to the spec", "is that in the spec?", or "should the spec say..."; when a sub-agent's work finds the spec silent on something, contradicting itself, or ruling out what the work needs; when briefing a sub-agent to write agreed wording into a spec or to draft some; and when the user asks to start a spec. Consult it before touching the file. Not for ordinary documentation (README, guides, the diary, to-do notes) or for just reading the spec at the start of work.
Как установить скилл spec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…