项目文档一致性检查
up-analyze
检查规格、阶段、决策与可追溯性标记之间的一致性。
- License 许可
- MIT
- 所属仓库
- apresmoi/unpack
- 最近更新
- 2026-02-10
- Stars
- ★ 13
- Forks
- 0
01 前言 Front Matter
- name
- up-analyze
- description
- Check consistency between specs, phases, decisions, and traceability markers
03 SKILL.md 正文
Analyze project consistency
Run a read-only cross-reference scan of the documentation system and report findings. This skill never modifies files.
Procedure
-
Read all project docs:
- All spec files:
.unpack/docs/specs/*.md - All phase files:
.unpack/docs/phases/phase-*.md(skipphase-template.md) - Project memory:
.unpack/docs/_meta/project-memory.md - ADRs:
.unpack/docs/decisions/adr-*.md - Index:
.unpack/docs/index.md
- All spec files:
-
Run these checks:
Coverage — For each requirement, feature, or named entity in specs, check if at least one phase work item references it (via
[S:]markers or by content match). Report requirements with no phase coverage.Orphan tasks — If
[S:]markers are present, check for work items that reference spec sections that don't exist. Also flag work items with markers pointing to deleted or renamed sections.Stale references — Check phase
## Linkssections for spec files or sections that no longer exist.Decision lag — For each accepted decision in
project-memory.md, check if the relevant spec content is consistent. Flag cases where a decision says one thing but the spec still says the old thing.Dependency integrity — Check that every
depends_onentry in phase frontmatter references an existing phase that is notabandoned.Stuck phases — Flag phases that are
in_progressorblockedwith anupdateddate older than 7 days.Change log consistency — If specs have
## Change logentries, check that the referenced phase and decision IDs exist. -
Output findings to the console as a formatted report:
## Analysis Results ### <Check name> (N found) - Finding with specific file and section references ### Summary - X specs, Y phases, Z decisions scanned - N findings (breakdown by severity) - Recommendation (if any) -
Severity levels:
- High: coverage gaps, stale references, decision lag (things that could cause building the wrong thing)
- Medium: orphan tasks, stuck phases (things that indicate drift)
- Low: change log inconsistencies, missing markers (cosmetic / hygiene)
-
If no findings, report a clean bill of health.
-
Do not create files or modify anything. This is a diagnostic-only skill. If findings suggest action, recommend it but do not take it.
04 同仓库更多 Skills
项目进度阶段与阻碍查看
up-status
显示项目进度、各阶段、阻碍因素以及下一个可执行阶段。
项目状态Markdown快照导出
up-snapshot
将当前项目状态导出为可移植的 Markdown 快照,供外部研究使用。
下一构建阶段执行
up-next
执行下一个可运行的构建阶段
Unpack 项目初始化
up-init
基于 Unpack 模板初始化新项目
代码规范提取
up-extract-standards
扫描示例代码仓库,提取其编码模式并生成规范文件
指南文档生成更新
up-document
在 guide/ 目录中生成或更新易读的文档(支持 Mintlify)