Skip to content

docs: compact CLAUDE.md, move command intent into the justfile#239

Merged
lesnik512 merged 1 commit into
mainfrom
docs/compact-claude-md
Jun 25, 2026
Merged

docs: compact CLAUDE.md, move command intent into the justfile#239
lesnik512 merged 1 commit into
mainfrom
docs/compact-claude-md

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Why

CLAUDE.md had drifted from the justfile and duplicated ~half of architecture/:

  • It claimed just test runs "coverage by default" — it doesn't. Coverage moved into just test-ci (the --cov-fail-under=100 gate CI runs). An agent trusting CLAUDE.md as ground truth would run the wrong gate.
  • The ## Architecture section restated scopes.md/containers.md/resolution.md etc. — and CLAUDE.md's own preamble already declares architecture/ the authoritative truth home. Duplicated, rot-prone, always-on context.

Principle applied: the justfile is the truth home for commands, exactly as architecture/ is for capabilities. Mirror neither; point to both.

Changes

  • justfile — add intent doc-comments to every recipe so just --list self-documents (the coverage-gate distinction, lint-ci also validating planning bundles, etc.).
  • CLAUDE.md › Commands — replace the recipe mirror (which is what drifted) with a pointer to the justfile + the non-obvious "which to use when" notes.
  • CLAUDE.md › Architecture — drop the subsections that fully duplicate architecture/*.md (scope/container detail, the 6-step resolution flow, the registries table); keep a tight orientation, a direct capability→file index, and the Key files map so agents still navigate in one cheap Read.
  • CLAUDE.md › Code Style — reconcile "resolution is sync-only" vs "supports async finalizers" (different axes — both true).

Net: CLAUDE.md ~31 lines lighter and, more importantly, correct by construction — no recipe flags or capability prose left to rot.

Verification

  • just --list shows the new per-recipe descriptions.
  • just check-planningplanning: OK.
  • uv run eof-fixer . --check → clean.

@lesnik512 lesnik512 force-pushed the docs/compact-claude-md branch from 3469902 to b6ef0d8 Compare June 25, 2026 14:14
CLAUDE.md had drifted from the justfile (it claimed `just test` runs
coverage — it doesn't; that's `just test-ci`) and duplicated roughly half
of architecture/.

- Commands: replace the recipe mirror with a pointer to the justfile plus
  the non-obvious "which to use when" notes. The justfile is now the single
  source of truth, self-documenting via `just --list`.
- justfile: add intent doc-comments to every recipe so `just --list` carries
  the interpretation (coverage gate, lint-ci also validating planning).
- Architecture: drop the subsections that fully duplicate architecture/*.md
  (scope/container detail, resolution flow, registries table); keep a tight
  orientation, a direct capability->file index, and the Key files map.
- Reconcile the "resolution is sync-only" vs "async finalizers" wording
  (different axes, both true).
@lesnik512 lesnik512 force-pushed the docs/compact-claude-md branch from b6ef0d8 to 7c97d6a Compare June 25, 2026 14:18
@lesnik512 lesnik512 merged commit 288fec2 into main Jun 25, 2026
7 checks passed
@lesnik512 lesnik512 deleted the docs/compact-claude-md branch June 25, 2026 14:22
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