Skip to content

CLAUDE.md curator hook + /claude-md-audit (0.10.0)#3

Merged
illinigirl merged 1 commit into
mainfrom
claude-md-audit
Jun 22, 2026
Merged

CLAUDE.md curator hook + /claude-md-audit (0.10.0)#3
illinigirl merged 1 commit into
mainfrom
claude-md-audit

Conversation

@illinigirl

Copy link
Copy Markdown
Owner

Keep an auto-loaded CLAUDE.md lean — the toolkit's nudge-hook + judgment-skill pattern, 4th instance (after failure-mode→/failure-scan, coverage-nudge→/coverage-audit, subagent-nudge→/orchestrate).

Principle: CLAUDE.md is the index (always-relevant directives); skills are the chapters (on-demand reference).

What's here

  • claude-md-curator/ hook (PostToolUse, CLAUDE.md/AGENTS.md only) — mechanical-only, no LLM call. Two triggers:
    • Prevention (every sizable addition, ≥ CLAUDE_MD_ADD_LINES=10): "directive or reference? — if reference, make it a skill instead of growing the file." The cheapest bloat to remove is the bloat that never lands.
    • Budget (over CLAUDE_MD_LINE_BUDGET=200): nudge a full audit, debounced once/session.
    • CLAUDE_MD_AUDIT_DISABLED off-switch; never auto-edits; fail-open. The archive file is deliberately not a target.
  • /claude-md-audit skill — reads the whole file (+ CLAUDE.archive.md), reports concision/currency/usefulness/redundancy/length, and on approval applies a three-way triage: keep & tighten / extract to a skill (primary release valve) / archive stale to CLAUDE.archive.md (not auto-loaded → zero per-session cost).
  • New context-doc-bloat catalog entry, cross-linked to stated-not-derived-doc-facts.
  • Wired into hooks.json + CI; README section + layout; plugin & marketplace → 0.10.0.
  • claude-md-audit-DESIGN.md — the design note it was built from.

Verification

  • claude-md-curator 14/14 tests (prevention, budget, debounce, target-scoping incl. archive excluded, disable, fail-safes).
  • All 5 hook suites green; ruff clean; manifests valid; claude plugin validate passes.

🤖 Generated with Claude Code

Keep an auto-loaded CLAUDE.md lean — the toolkit's nudge-hook + judgment-skill
pattern, 4th instance. Principle: CLAUDE.md is the index (always-relevant
directives); skills are the chapters (on-demand reference).

- claude-md-curator/ (PostToolUse, CLAUDE.md/AGENTS.md only): mechanical-only.
  Prevention — every sizable addition (>= CLAUDE_MD_ADD_LINES, default 10)
  nudges "directive or reference? if reference, make it a skill instead of
  growing the file." Budget — over CLAUDE_MD_LINE_BUDGET (default 200) nudges a
  full audit, debounced once/session. CLAUDE_MD_AUDIT_DISABLED off-switch;
  never auto-edits; fail-open. Archive file (CLAUDE.archive.md) is not a target.
- skills/claude-md-audit: the judgment engine. Reads the whole file (+ archive),
  reports concision/currency/usefulness/redundancy/length, and on approval
  applies a three-way triage: keep & tighten / extract to a skill (primary
  release valve) / archive stale to CLAUDE.archive.md (not auto-loaded).
- catalog: new context-doc-bloat entry, cross-linked to stated-not-derived.
- Wire hooks.json, CI test line, README section + layout, plugin + marketplace
  bumped to 0.10.0 (marketplace version re-synced too).
- subagent-orchestration-DESIGN.md sibling: claude-md-audit-DESIGN.md.

Verified: curator 14/14; all 5 hook suites green; ruff clean; manifests valid;
claude plugin validate passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D6pwpBdoug4tJRxxVrNNeL
@illinigirl illinigirl merged commit 8ec4f76 into main Jun 22, 2026
6 checks passed
@illinigirl illinigirl deleted the claude-md-audit branch June 22, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant