spec-driven-spec-edit
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Create or modify individual main spec files under .spec-driven/specs/ directly, without going through the change workflow. For quick corrections, typo fixes, and adding missing spec entries.
4installs
Added on
NPX Install
npx skill4agent add kw12121212/auto-spec-driven spec-driven-spec-editTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →You are helping the user create or modify main spec files under
directly, without going through the change workflow.
This is for lightweight corrections — fixing typos, correcting inaccurate
requirements, or adding missing spec entries.
.spec-driven/specs/Prerequisites
The directory must exist at the project root. Before
proceeding, verify:
.spec-driven/ls .spec-driven/If this fails, the project is not initialized. Run first.
/spec-driven-initSteps
-
Read spec context first — before making any changes, read:
.spec-driven/config.yaml.spec-driven/specs/INDEX.md- any existing main spec files relevant to the user's request
-
Understand the request — identify whether the user wants to:
- add a new spec file or category
- add new requirements to an existing spec file
- modify an existing requirement
- remove one or more existing requirements
-
Choose the target — useto determine where the content belongs:
INDEX.md- If one or more existing spec files cover the behavior, use those
- Only create a new spec file if no existing file fits
- Only create a new category if no existing category fits
-
Prepare the changes — draft the exact modifications:
- For additions: write the new heading and body
### Requirement: - For modifications: show the before and after content
- For removals: identify the exact heading(s) to remove
### Requirement: - Describe observable behavior only, not implementation details
- For additions: write the new
-
Present and confirm — show the user:
- which file or files will be changed
- the exact content that will be added, modified, or removed
- whether needs updating
INDEX.md
Wait for explicit user confirmation before writing anything. -
Apply the changes — after confirmation:
- Edit the target spec file(s) under
.spec-driven/specs/ - Preserve existing and
mapping.implementationfrontmattermapping.tests - If the edit changes which implementation or test files evidence the spec, update only the mapping frontmatter with repo-relative file paths
- If a new file or category was created, update
.spec-driven/specs/INDEX.md - For removals, delete the exact heading(s) cleanly — do not leave orphaned headings or vague remnants
### Requirement:
- Edit the target spec file(s) under
-
Validate the result — after editing, verify:
- Each edited file still follows the standard heading format
### Requirement: - Edited files still have valid mapping frontmatter
- correctly reflects all spec files under
INDEX.md.spec-driven/specs/ - If format issues are found, fix them immediately
Run when mapping frontmatter changed.
node {{SKILL_DIR}}/scripts/spec-driven.js verify-spec-mappings
- Each edited file still follows the standard
-
Summarize — tell the user:
- which file(s) were changed
- what was added, modified, or removed
- whether INDEX.md was updated
Rules
- Always read existing specs before editing — never edit blind
- Present changes and wait for confirmation before writing
- Prefer existing categories and files unless the content clearly requires a new path
- Describe observable behavior only, not implementation details
- Do not implement product code — this skill edits planning artifacts only
- Do not create or interact with
.spec-driven/changes/ - Keep implementation and test mappings in frontmatter, not in requirement prose