openspec-templater
Update existing Openspec spec files to match the standard spec template format. Ensures consistency and completeness across all specs in a project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update existing Openspec spec files to match the standard spec template format. Ensures consistency and completeness across all specs in a project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze code-to-spec coverage in an Openspec project and generate a compliance score and report.
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
| name | openspec-templater |
| description | Update existing Openspec spec files to match the standard spec template format. Ensures consistency and completeness across all specs in a project. |
| license | MIT |
| compatibility | Requires a codebase using Openspec with specs in the `openspec/specs/` directory and code referencing specs via comments. |
| metadata | {"author":"user","version":"1.0","generatedBy":"copilot"} |
Help users quickly update existing Openspec spec files to match the standard spec template (.github/skills/openspec-templater/spec_template.md). Ensures consistency, completeness, and traceability across all specs in a project.
openspec-coverage skill and spec completeness scores are low.When asked to apply the template to one or more spec files, follow these steps:
Read .github/skills/openspec-templater/spec_template.md to understand the required sections:
Read the full content of the existing spec file. Identify which sections are present, missing, or need reorganization.
For each section in the template:
_Not applicable — [brief reason]._## Open Queries describing what needs clarification.src/, include/, and test/ directories).## Covered Code section listing the files and methods covered by the spec, using the following format:
## Covered Code
- src/example.cpp:
- ExampleClass::exampleMethod
- include/example.h:
- ExampleClass::exampleMethod
## Covered Code
_No code mapping found. Add file and method references here._
## Open Queries._No open queries._## Change History:
- [YYYY-MM-DD] - openspec-templater - Restructured to match spec template.
## Covered Code section should now be generated automatically based on the codebase scan, not copied from the previous spec content._Not applicable — [reason]._ rather than omitting the section.When a change has been archived (moved to openspec/changes/archive/), use this workflow to generate a properly formatted spec file that will be picked up by openspec-coverage:
openspec/changes/archive/<date>-<name>/.proposal.md, design.md, and any existing spec files inside the specs/ subfolder of the archive.specs/ subfolder (e.g. openspec/changes/archive/<date>-<name>/specs/<name>_spec.md).## Covered Code section.openspec/specs/ — archive specs live inside the archive folder; openspec-coverage scans both locations automatically.Note: Only archived changes are templated and included in coverage. Pending proposals in
openspec/changes/(non-archived) should not be templated until the change is complete and archived.
openspec/specs/transport_layer_spec.md."openspec/specs/ to match the new template."my_feature_spec.md using the openspec-templater skill."openspec/changes/archive/2026-03-16-add-header-support/specs/header_support_spec.md."The canonical template is located at:
.github/skills/openspec-templater/spec_template.md
Always read the latest version of this file before applying the template to any spec.
openspec-coverage — applying the template improves spec completeness scores.