# Document Hierarchy

> Avoid competing sources of truth. Use when adding, moving, or adapting docs.

- Skill: `lubochka/document-hierarchy` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lubochka/document-hierarchy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lubochka/document-hierarchy/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: lubochka (https://skillmd.com/u/lubochka)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lubochka/document-hierarchy

---


# Document Hierarchy

## Purpose
Avoid competing sources of truth.

## When to Use
Use when adding, moving, or adapting docs.

## Inputs
README, rules files, architecture docs, generated docs, indexes.

## Steps
1. Identify canonical docs.
2. Identify derived or generated docs.
3. Link instead of duplicating where possible.
4. Update indexes when hierarchy changes.

## Gates
The repository has one clear entry path and no accidental duplicate authority.

## Evidence
Updated indexes, links, and hierarchy notes.

## Anti-Patterns
Creating a second "main" guide with conflicting rules.

## Related
`documentation-sync`, `authority-chain`

