consistency-guard

Generate dependency maps and run cross-document consistency checks.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/0xEdenY/eden-claude-skills --skill consistency-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: consistency-guard
Source: https://github.com/0xEdenY/eden-claude-skills/tree/main/consistency-guard
Command: npx skills add https://github.com/0xEdenY/eden-claude-skills --skill consistency-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

文件一致性校验。当用户说"PRD和代码对得上吗"、"有没有忘改的"、"文档是不是过期了"、"检查一致性"、"依赖校验"时触发。

Core Features & Use Cases

项目文件(PRD、tasks.md、code、CLAUDE.md、progress.md)之间有依赖关系。上游变了下游可能需要更新。本 Skill 管理这些依赖的可见性和一致性。 不变原则:

  • 依赖单向(PRD → tasks → code → tests,不反向)
  • 边界即契约(每类文档对下游有明确承诺)
  • 变更传播最小化(只校验受影响的下游,不全量扫描)

三个工作流

| 工作流 | 触发词 | 做什么 | |--------|--------|--------| | W1 生成依赖地图 | "生成依赖地图"、"更新依赖地图" | 扫描项目文件,生成 docs/dependency-map.md | | W2 一致性校验 | "检查一致性"、"依赖校验" | 按地图逐条校验,级联检查,产出报告 | | W3 偏离标记 | "标记偏离" | 在上游文件插入 DIVERGENCE 标记 |

Quick Start

Use the consistency-guard to generate a dependency map and run downstream consistency checks.

Frequently Asked Questions about consistency-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check cross-document consistency between a PRD and code?

Cross-document consistency checks validate alignment across PRD, tasks, code, and tests by applying deterministic rules to a generated dependency map. This verifies that upstream changes properly propagate to downstream artifacts without scanning the entire project.

What is a document dependency map for project management?

A document dependency map is a generated artifact defining one-way directional links between project files like PRD, tasks, and code. It establishes boundaries and contracts to trace provenance and identify exactly which downstream items require updates.

How do I generate a dependency map for my project artifacts?

Generate a dependency map by triggering a scan of your project files to output a dependency-map.md document. This map serves as the structural baseline for all subsequent consistency validations and divergence tagging across artifacts.

How do I track outdated documentation after code changes?

Track outdated documentation by running consistency checks that compare code against the baseline dependency map. When upstream artifacts change, the system flags downstream documents for divergence and optionally inserts DIVERGENCE tags directly into the affected files.

Does consistency validation require specific project file structures?

Consistency validation requires explicit document dependencies and recognizable project artifacts like PRD, tasks.md, code, and tests. It applies to projects with established one-way directional flows where document boundaries act as contracts for downstream propagation.

Can I automate traceability and quality assurance for software documentation?

Automate traceability and quality assurance by applying deterministic validation rules across your dependency map. This generates a consistency report detailing alignment status and provenance tracking, minimizing change propagation to only affected downstream artifacts.