一键导入
spec-document
Write or update one docs-substrate artifact - feature, rule, glossary, model, or architecture - from code, for owner review
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write or update one docs-substrate artifact - feature, rule, glossary, model, or architecture - from code, for owner review
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify, review, and push pending work as one milestone commit
Drive the current branch's PR to merge-ready: CI green and every review comment handled, ending with an outcome label
After owner accept: guard-checked squash-merge of the current branch's PR, base sync and branch cleanup
Open a pull request for the current branch against its target, using the repo template
Triage PR review comments: fix, discuss, or decline with reason - every thread answered
Cut a release: version, changelog, tag, and release object — policy-driven across trunk/gitflow and tag-only/full
| name | spec-document |
| description | Write or update one docs-substrate artifact - feature, rule, glossary, model, or architecture - from code, for owner review |
| argument-hint | <type: feature|rule|glossary|model|architecture> <name/topic> |
| agent | spec-docs-writer |
Maintain the knowledge substrate: add or correct a feature baseline, record a numbered business rule, add a glossary term, update the domain model, or refresh the architecture map. Drafts from code, marked confirmed/inferred; the owner approves. This is the engine the spec lifecycle uses to keep docs in sync (spec-create/spec-close/spec-cancel/spec-execute Phase D call into these conventions); it also runs standalone for ad-hoc doc maintenance.
Learn from the project (read two sibling docs in the target folder; mimic, don't invent) -> profile (features_dir / rules_dir / decisions_dir / ...) -> ai-first-docs default. The type sets the template (references/doc-types.md):
features/<feature>.md: what it does TODAY + EARS criteria; business language, no code / types / class-names.rules/R-NNN-<slug>.md: one atomic, numbered, testable business rule, paired 1:1 with a contract test.glossary.md: one precise meaning, relations to other terms.model.md: domain aggregates and invariants.architecture/<...>: condensed arc42 / dependency-map / golden-path, container/component level.confirmed / inferred. Never state intent the code does not show - business rules in config, database rows, or runtime extensions are invisible to static drafting; flag them, don't fabricate.R-NNN / NNNN- zero-padded, one concept one name.inferred until the owner confirms.spec-create. Decisions - spec-decision. Drift detection - spec-audit-docs.inferred and flag config / DB / runtime intent for functional tests.