enforcing-doc-hierarchy

Audit repository Markdown documentation against authoritative chains and propose fixes.

2|1|Updated Jan 19, 2025
One-click install
npx skills add https://github.com/qte77/Agents-eval --skill enforcing-doc-hierarchy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: enforcing-doc-hierarchy
Source: https://github.com/qte77/Agents-eval/tree/main/.claude/skills/enforcing-doc-hierarchy
Command: npx skills add https://github.com/qte77/Agents-eval --skill enforcing-doc-hierarchy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures repository documentation follows the project's defined authority chains by detecting broken references, duplicates, scope creep, wrong-authority placements, symlink issues, and chain breaks so documentation remains single-source-of-truth and maintainable.

Core Features & Use Cases

  • Authority-chain audit: Walks both the Project Documentation and Claude Code Infrastructure chains to verify each document references the correct next-authority and that symlinks resolve to current sprint PRDs.
  • Reference & duplicate detection: Finds broken cross-references, stale paths, and content duplicated across documents and classifies violations by type for targeted remediation.
  • Guided alignment: Proposes minimal, authoritative fixes (move, link, or replace) and applies changes only after user approval to preserve intent and avoid accidental overwrites.
  • Use Case: Run after a large rename or when reviewing a PR touching docs to prevent scope-creep and enforce where requirements, user workflows, and technical designs must live.

Quick Start

Run enforcing-doc-hierarchy on the repository root to audit both authority chains, list violations, and propose user-approved fixes.

Frequently Asked Questions about enforcing-doc-hierarchy

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

FAQPage Schema
How do I audit markdown documentation for broken cross-references and symlinks?▼

To audit markdown documentation for broken cross-references and symlinks, run an authority-chain audit across repository files to validate paths, resolve symlinks to current sprint PRDs, and produce a findings table of violations.

What is documentation authority-chain alignment and how does it work?▼

Documentation authority-chain alignment verifies that each document references the correct next-authority file and that symlinks resolve properly. It walks project documentation and Claude Code infrastructure chains to enforce a single-source-of-truth structure.

How do I detect duplicate content across project markdown files?▼

To detect duplicate content across project markdown files, an audit scans documents like CONTRIBUTING.md and architecture docs, identifies overlapping content, and classifies violations by type for targeted remediation.

Can I enforce single-source documentation hierarchy when reviewing a pull request?▼

You can enforce single-source documentation hierarchy when reviewing a pull request by auditing moved or renamed files to detect scope creep, wrong-authority placements, and chain breaks before merging changes.

What is the best way to fix stale documentation paths and wrong-authority placements?▼

The best way to fix stale documentation paths and wrong-authority placements is to apply a guided alignment process that proposes minimal, authoritative fixes like moving or replacing content, applying changes only after user approval.

When should I run a documentation hierarchy audit on my repository?▼

You should run a documentation hierarchy audit after a large file rename, when reviewing a PR touching docs, or during periodic hygiene checks to prevent scope creep and maintain authoritative requirement placements.