Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Current branch,
git branch --show-current - Uncommitted .md files (sample, first 10; empty = none matched or the probe returned nothing),
git status --porcelain | grep -E '\.md"?$' | head -10
Purpose
Agent-facing instruction markdown (CLAUDE.md/AGENTS.md, .claude/rules/, skill/agent/command
bodies, their bundled spokes) has a load cost set by its tier: always-loaded content is paid
every session, invocation-loaded content recurs for the rest of the session once triggered, and
on-demand content is free until read. This skill audits both directions: content that should move
down a tier (split opportunities), and hub/spoke structures whose pointers no longer let an agent
pull exactly the file it needs (structure defects). It is a read-only classifier: findings carry
treatment guidance; the author applies every edit.
Read context/tier-model.md for the full tier tables, official numbers,
split triggers, and pointer-quality criteria when adjudicating a finding that needs the exact
threshold, routing rule, or citation posture (Anthropic-prescribed vs corroborated vs community).
Finding shapes and treatments
| Lane | Shape | What it looks like | Default tier | Treatment |
|---|---|---|---|---|
| split | oversize | File at/approaching its tier's size guidance (SKILL.md approaching the line cap /playbooks:skill-authoring (if enabled) ## Body records and /skill-quality:check (if enabled) enforces; CLAUDE.md approaching the memory page's size target; references per the TOC bands). Ceilings, not targets. Size alone below the cap is no finding | 2 | Add a hierarchy layer: name the sections to push into spokes, each behind a conditioned pointer |
| split | mixed-concerns | Mutually-exclusive contexts co-resident (content that never co-executes), category straddle, multi-topic rules file, cross-file contradiction | 2 | Split by concern. One topic per file; name the proposed split seams |
| split | tier-mismatch | Content at the wrong tier: a procedure grown inside CLAUDE.md (→ skill), path-local rules in a global file (→ scoped rule), reference detail inline in a hub (→ spoke), always-loaded content not needed every session (→ demote behind a pointer) | 1 when an official routing rule decides it; else 2 | Route down-tier per the rule, unless owned upstream (see Hard rules); the finding names source section and destination surface |
| structure | blind-pointer | Pointer with no when-to-read clause, unmarked execute-vs-read intent, or a vague target name (doc2.md, utils) | 2 | Attach the condition and intent; rename the target descriptively. On skill descriptions, a missing when-not-to-use clause is advisory color (community-sourced), never a violation |
| structure | orphan-spoke | Bundled spoke no hub references. Unreachable by pointer | 2 | 3-way: add the missing pointer, merge the content up, or delete the spoke |
| structure | deep-nesting | Spoke-to-spoke chain, required reading more than one level from the hub (documented partial-read failure) | 2; 1 when the chain is the only path to required content | Re-link the deep target directly from the hub, or flatten |
| structure | missing-toc | Reference file with no TOC above both sources' TOC thresholds = definite; between the two thresholds = awareness only, citing the source conflict on the TOC threshold | 1 (above both) / 3 (between them) | Add a TOC at top (or a grep recipe for lookup-shaped content) |
Thresholds are advisory and tier-calibrated, never hard gates; consuming repos refine them in
their own CLAUDE.md / rules. There is deliberately no "should have spokes" shape: a small
single-file skill is never flagged for lacking spokes.
- Pointer: when sizing a CLAUDE.md, fetch
live. For the missing-toc bands, the pages
Structure longer reference files with a table of contents
and skill-creator's
disagree on the TOC threshold; fetch both live when placing a file in a band.
Action router
| Action | Args | Behavior |
|---|---|---|
| <target> (default) | empty → uncommitted .md files from git; file path → single file; dir path → recursive batch | run ${CLAUDE_SKILL_DIR}/scripts/detect.sh on the targets; map its facts onto the shapes table via the judgment rules below |
| audit [target] | same target rules | explicit form of the default; same behavior |
| --repo <repo> (and the other target forms) | beside either action | that action once per repository, per