enforcing-doc-hierarchy

enforcing-doc-hierarchy is a skill for Claude Code from qte77/claude-code-plugins. It costs 37 tokens per session (1,512 once invoked), scanned A, original, Apache-2.0.

A documentation review that checks a project's documents against a declared order of authority and purpose.

In plain words
What is it for?
Use it to review documentation structure and identify which file should own each piece of information, with changes requiring approval.
Why use it?
It finds broken links, duplicate information, misplaced content, and outdated references before they confuse readers or coding agents.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code; mentions AGENTS.md.

Part of the docs-governance plugin — 2 skills shipped together

Good fit Use it to review documentation structure and identify which file should own each piece of information, with changes requiring approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qte77/claude-code-plugins/enforcing-doc-hierarchy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add qte77/claude-code-plugins --skill enforcing-doc-hierarchy
Clone the repo
git clone --depth 1 https://github.com/qte77/claude-code-plugins

Made for: Claude Code.

Or install docs-governance, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for enforcing-doc-hierarchy

README.md
[![agentmods](https://agentmods.dev/badge/skills/qte77/claude-code-plugins/enforcing-doc-hierarchy/github.svg)](https://agentmods.dev/skills/qte77/claude-code-plugins/enforcing-doc-hierarchy)
Your own site
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/enforcing-doc-hierarchy"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/enforcing-doc-hierarchy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for enforcing-doc-hierarchy

Your own site · 80×15
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/enforcing-doc-hierarchy"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/enforcing-doc-hierarchy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01512
Opus 5.5 $0.00015 $0.00605
Sonnet 5.5 $0.00007 $0.00302
Haiku 4.5 $0.00004 $0.00151

Measured 8d ago against content hash e390b659f134, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

enforcing-doc-hierarchy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/docs-governance/skills/enforcing-doc-hierarchy/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Enforce Documentation Hierarchy

Scope: $ARGUMENTS

Audits documentation against the project's declared hierarchy, then aligns violations with user approval.

Phase 1: Discover

The authoritative hierarchy lives where the qte77 doc-structure canon (SoT) places it: CONTRIBUTING.md's ## Documentation hierarchy statement. The canon's model is README = the project contract, CONTRIBUTING = conventions + the hierarchy statement, AGENTS = behavioural rules, CLAUDE = a one-line @AGENTS.md pointer (never a copy).

Read the project's declaration, looking in order:

  1. CONTRIBUTING.md — ## Documentation hierarchy section (canonical location; table or list)
  2. AGENTS.md — "Key references" or "Information sources" section
  3. README.md — "Documentation" / "Refs" section (links to authoritative docs)

Extract:

  • Entry points: which docs are human vs agent entry points
  • Authority map: which doc owns which content type
  • Anti-redundancy rule: stated or implied (default: no duplication across docs)

If no hierarchy is declared, report that as the first finding and stop. Treat the canon model above as the expected baseline and flag deviations from it.

Phase 2: Audit

Detect violations across the scope. For each finding, record:

Source File Line Type Description
path Lnn type what's wrong

Violation Types

  • broken-link: Reference target does not exist (moved, renamed, deleted, wrong case)
  • duplicate: Same content (3+ lines) appears in both an authority doc and a dependent doc
  • misplaced: Content is in the wrong doc per the discovered authority map, OR a doc in the hierarchy is not referenced by its parent
  • lint-compat: HTML comments before frontmatter
  • config-drift: Inline <!-- markdownlint-disable/enable --> for a rule already disabled in .markdownlint.json. These are dead code that causes false positives when the enable directive re-activates a globally-disabled rule
  • unused-link-def: [key]: url link definition with no corresponding [text][key] or [key] reference in the file

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed e390b659f134
  2. 12d ago Changed 99cd95d8bc32
  3. 2mo ago Changed · +2 lines d2136e77ee24
  4. 3mo ago First seen · 136 lines · 37 tokens per session scan A bfa41a90ff95

Subscribe to this mod's changes

enforcing-doc-hierarchy is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 37 tokens to every session and 1,512 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

enforcing-doc-hierarchy compared with skills from other repositories

enforcing-doc-hierarchy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enforcing-doc-hierarchyqte77/claude-code-pluginsSkill3yesterdayApache-2.0A37Claude Code
android-kotlin-composeand3r817/dot-claude-pluginsSkill22mo agoMITA84Claude Code
android-kotlin-coroutinesand3r817/dot-claude-pluginsSkill22mo agoMITA87Claude Code
codex-advisorand3r817/dot-claude-pluginsSkill22mo agoMITA85Claude Code
ast-grepand3r817/dot-claude-pluginsSkill22mo agoMITA75Claude Code
github-cliand3r817/dot-claude-pluginsSkill22mo agoMITA52Claude Code
android-analysisand3r817/dot-claude-pluginsSkill22mo agoMITB63Claude Code