用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/petar-djukic/coding-skills --skill align-specs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | align-specs |
| description | Read **docs/constitutions/design.yaml** first and hold it as the authority for the rest of this session. |
Apply this command workflow. Treat any text after its invocation as the command input.
Read docs/constitutions/design.yaml first and hold it as the authority for the rest of this session.
Find all specification files in the project:
docs/VISION.yamldocs/ARCHITECTURE.yamldocs/SPECIFICATIONS.yaml (if present)docs/road-map.yaml (if present)docs/specs/product-requirements/prd*.yamldocs/specs/use-cases/rel*.yamldocs/specs/test-suites/test-rel*.yamldocs/engineering/eng*.yamlList every file found. Skip any that do not exist.
For each file, read it, then apply the constitution's format rules for that document type:
Required fields: Add any field that the constitution schema lists as required but is absent. Use a short placeholder value — do not invent content. Mark placeholders clearly (e.g. # TODO: fill in).
Field names: Rename any field whose key does not match the schema exactly.
Style: Apply the style rules from the constitution — active voice, present tense, remove forbidden terms, no bold in prose paragraphs, no horizontal rules. Do not rewrite substance; fix only what violates a rule.
Naming conventions: Check each file's name against the naming_conventions block in the constitution (e.g. prd[NNN]-[feature-name].yaml, rel[NN].[N]-uc[NNN]-[short-name].yaml). Rename the file if it does not match. Update any cross-references in other files that point to the old name.
Traceability: Apply the traceability_invariants block (T1–T5) from the constitution. Fix what you can in the spec files. Flag gaps you cannot resolve without human input as # TODO: link missing. Do not fabricate IDs.
Write each aligned file back to disk in place.
Run the repo's consistency check — mage audit, or mage analyze where the target is named that way — after all files are written.
Fix any errors it reports. Re-run until it exits 0 or until remaining errors require human input (in which case list them clearly).
Commit all changes:
git add -A
git commit -m "Align specifications to design constitution"
Report: how many files changed, what structural edits you made, and any TODOs that require human input.