← ClaudeAtlas

context-indexlisted

Regenerate .context/index.yaml from all .context/**/*.md frontmatter, and validate all files carry standard YAML frontmatter. Use when the index is stale, files were added or removed, or the pre-commit hook blocks on missing frontmatter. DO NOT use to create new context files (use context-file skill instead), to edit index.yaml by hand, or as a substitute for fixing frontmatter issues at the source. Triggers: 'update context index', 'regenerate index', 'context index stale', 'sync context', 'what context files exist', 'frontmatter missing', 'index .context'.
pantheon-org/skill-quality-auditor · ★ 2 · Data & Documents · score 68
Install: claude install-skill pantheon-org/skill-quality-auditor
# Context Index Scan, validate, and index all `.context/` files. ## Prerequisites - One or more `.context/` files with valid or fixable YAML frontmatter - The `context-file` skill to add or repair frontmatter on files that lack it - Shell access to run the skill's scripts ## Quick Start ```bash # Regenerate the index scripts/regenerate-context-index.sh # Check staged files for missing frontmatter scripts/check-context-frontmatter.sh .context/**/*.md ``` ## What It Does 1. Scans all `.context/**/*.md` files 2. Reads YAML frontmatter (`title`, `type`, `status`, `date`, `related`) from each 3. Writes `.context/index.yaml` — one entry per file, sorted by path 4. Prints any files missing required frontmatter to stderr (excluded from the index) The generated `index.yaml` looks like: ```yaml plans: - path: ".context/plans/example-plan.md" title: "Example Plan" status: ACTIVE date: 2026-07-01 findings: - path: ".context/findings/topic-2026-07-01.md" title: "Finding: Topic" status: ACTIVE date: 2026-07-01 ``` ## When to Use - After creating, renaming, or deleting a `.context/` file - When the pre-commit hook blocks with "Missing YAML frontmatter" - When asked "what plans / findings / analyses exist?" - After bulk imports or retroactive frontmatter migration ## When Not to Use - Do not run this as a substitute for creating a missing file — create the file first using the `context-file` skill - Do not edit `.context/index.yaml` by hand — it is f