Skip to content

docs: trim CLAUDE.md to non-inferable rules#562

Open
kylehoehns wants to merge 1 commit into
mainfrom
docs/trim-claude-md
Open

docs: trim CLAUDE.md to non-inferable rules#562
kylehoehns wants to merge 1 commit into
mainfrom
docs/trim-claude-md

Conversation

@kylehoehns
Copy link
Copy Markdown
Contributor

What

Rewrites CLAUDE.md from a README-style architecture tour into a lean set of agent rules. Went from ~135 lines (mostly overview) to ~20 lines.

Why

CLAUDE.md is loaded into an agent's context every session. Content that merely re-describes what's already in the repo adds cost without helping — the agent reads src/, tsconfig.json, and jest.config.js on its own. Worse, copied content (like the path aliases) goes stale silently and the agent trusts the doc over the code.

What was cut (all inferable from the repo)

  • Project overview (duplicates README + package.json)
  • Architecture / data-storage / core-models / request-lifecycle / services / bot-commands / cron-jobs sections (all readable from src/)
  • TypeScript path aliases (verbatim copy of tsconfig.json)
  • Testing section (readable from jest.config.js)
  • Command list and deployment steps (in package.json scripts / README)

What was kept (non-inferable, true today)

  • pnpm verify is the required gate before a task is done
  • Tests are timezone-sensitive — running jest directly drops TZ=America/Chicago and breaks date logic; use pnpm test -- <pattern>
  • Squash-merge / name-the-PR convention → points to README rather than copying it

🤖 Generated with Claude Code

Replace the README-style architecture overview (model/service/cron lists,
verbatim tsconfig path aliases, commit conventions duplicated from README)
with only non-inferable, currently-true guidance: the pnpm verify gate, the
timezone-sensitive test gotcha, and a pointer to README for commit/PR
conventions. Went from ~135 lines of mostly overview to ~20 lines of rules.
@kylehoehns kylehoehns force-pushed the docs/trim-claude-md branch from 97084a8 to e40afe4 Compare June 1, 2026 20:37
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