spec-rewrite
Audit and iteratively rewrite Gherkin acceptance criteria (.feature files, scenarios, or spec.md Gherkin blocks) for newcomer context, plain English, and…
от Integralist★ 31 звезда на GitHub
Установить spec-rewrite в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Improve background context, plain-English clarity, and concision in Gherkin
acceptance criteria through a bounded back-and-forth between the main agent and
a blank-slate newcomer subagent. Preserve exact behaviour and contract
literals. Wording-only edits to docs/specs/ are editorial under
spec-delta; if a requested change alters required
behaviour, stop and follow that skill instead. When a living .feature file
drives executable acceptance tests (such as Godog), changing step text also
requires updating bound step-definition patterns so scenarios stay wired and
passing.
Source and mode. Use --source=<path|#number|url> to name a local
.feature or spec.md file, a GitHub issue (#<number> or URL holding a
spec.md Root Issue Artifact), or a GitHub PR (#<number> or URL whose diff
touches .feature or spec.md Gherkin). Ask if no source is clear from the
prompt or session. Infer GitHub handling from a URL, #<number>, or an active
GitHub-tracked project in this session (use gh to distinguish an issue from a
PR when given #<number>): for a GitHub issue, read and follow
GITHUB-ISSUES.md to inspect and update the
spec.md Root Issue Artifact; for a GitHub PR, inspect its changed Gherkin via
gh and edit files locally only when the current checkout matches the PR
branch, otherwise propose rewrites without touching an unrelated checkout. Pass
--scenario=<name> to restrict edits to one Scenario, Scenario Outline, or
Rule. Pass --audit-only to run the newcomer audit and report findings
without proposing a rewrite.
Workflow
- Load full context. Read the source Gherkin (or named scenario), root
GLOSSARY.md(or legacyCONTEXT.md), SPEC-FORMAT.md, voice-product, and CONCISE-PROSE.md. For living.featurefiles, locate any bound step definitions (such as Godog initializers and step patterns) so you know which bindings will break if step text changes. - Run a blank-slate newcomer audit. Following
SUBAGENT-STEERABILITY.md, spawn a
fresh read-only subagent with only the source Gherkin text, root
GLOSSARY.mdorCONTEXT.md(if present), and the absolute path to SPEC-FORMAT.md#newcomer-check. Withhold source code, diffs, step definitions, and chat history so it reads without repo memory. Ask it to returnCOMPLETE/INCOMPLETEplus concrete findings: missingFeature:/Rule:background, unexplained jargon or acronyms, implementation leaks, verbose steps, or unclear actors and outcomes. If--audit-onlywas passed or no real issues exist, report the result and stop. - Rewrite while preserving the contract. Using your full context, revise
only what fixes verified findings: orient newcomers in
Feature:andRule:descriptions, replace unexplained jargon with plain English or glossary terms, tighten verbose steps, and keep exact contract literals (statuses, error codes, field names, timing) and behaviour intact. If step text changes in a living.featurefile with bound acceptance tests (such as Godog), prepare the matching step-definition pattern updates following conventions-acceptance-tests so the suite stays green (or keep step text bound when only improvingFeature:/Rule:context). - Re-check with a fresh blank-slate pass. Send the revised Gherkin (again without code, diffs, or your reasoning) to a fresh read-only newcomer subagent to confirm every finding is closed and no new jargon appeared. Cap the audit-rewrite loop at 2 rounds; if a tension remains after round 2, stop and surface the trade-off to the user.
- Approve, apply, and verify. Show the Gherkin diff together with every
matching step-definition update (or list required Godog/runner updates
explicitly if proposing rewrites against a remote PR without local edits),
and confirm the edit stays editorial under
spec-delta. Wait for explicit approval before writing local files or updating a GitHub Issue Artifact. After applying local edits, run the project's spec and acceptance test targets (such asmake check-specsand the Godog/acceptance suite) to confirm no undefined or failing steps remain, and report any unrun checks as verification gaps.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл spec-rewrite?
Audit and iteratively rewrite Gherkin acceptance criteria (.feature files, scenarios, or spec.md Gherkin blocks) for newcomer context, plain English, and concision without changing required behaviour. Use when asked to rewrite, clarify, polish, or audit acceptance criteria, a feature file, or Gherkin scenarios.
Как установить скилл spec-rewrite?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-rewrite запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…