Skip to content

docs: write project CLAUDE.md with layout, commands, and contribution conventions - #36

Merged
castastrophe merged 2 commits into
mainfrom
cl/review-claude-md-guidelines-0d432d
Jul 17, 2026
Merged

docs: write project CLAUDE.md with layout, commands, and contribution conventions#36
castastrophe merged 2 commits into
mainfrom
cl/review-claude-md-guidelines-0d432d

Conversation

@castastrophe

Copy link
Copy Markdown
Member

What

Replace the effectively empty CLAUDE.md (a stray Cursor-style frontmatter block with no content) with real project instructions for coding agents.

Why

Agents working in this repo had no guidance to load — the file carried zero information, so every session re-derived the project layout, commands, and conventions from scratch (or missed them entirely, e.g. the Weaver-managed README blocks).

How

The new file is ~60 lines, organized so a smaller model can act on it without exploring first:

  • Orientation — what the package is, plus the local-first / no-network-calls constraint stated as a rule to preserve
  • Layout — the four flat root files (index.js, cli.js, mcp.js, test.js); explicit note that there is no src/
  • Commandsyarn test / coverage / typecheck / build:types, with the Yarn 4 + Node ≥ 24 requirement
  • Conventions — JSDoc-not-TypeScript (with the why: published types are generated from JSDoc), self-documenting code with brief why-only comments, the real-tempdir/real-git test pattern, dependency-light pitch, Weaver weaver:*:START/END markers, and the husky hook behavior
  • Commits and PRs — Conventional Commits shape, the semantic-release type→bump mapping and body-becomes-release-notes contract, squash-merge PR title rule, and no AI-attribution footers

Everything documented was verified against the repo (package.json, configs, hooks, source) rather than written from assumption.

Test plan

Docs-only change; no runtime surface. Verified the commit passed the pre-commit (lint-staged/prettier) and commit-msg (commitlint) hooks locally.


  • Tests added or updated (yarn test) — n/a, docs only
  • Lint clean (yarn eslint .)
  • Types pass (yarn typecheck) — n/a, docs only
  • Documentation updated where relevant
  • Conventional commit format used (enforced by commitlint)

@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 41270ee

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment thread CLAUDE.md Outdated
… conventions

The previous CLAUDE.md contained only a stray Cursor-style frontmatter
block and no actual guidance. Replace it with real project instructions
so coding agents can work in the repo without re-deriving its structure.

The new file covers the four-file flat layout, the yarn commands for
tests, coverage, and JSDoc type-checking, and the conventions that are
easy to violate silently: JSDoc accuracy on exports (published types are
generated from it), real-tempdir test patterns, the Weaver-managed
README blocks, and the local-first no-dependency-creep constraint. It
also documents the Conventional Commits and squash-merge PR rules that
commitlint and semantic-release enforce.
Co-authored-by: [ Cassondra ] <castastrophe@users.noreply.github.com>
Signed-off-by: [ Cassondra ] <castastrophe@users.noreply.github.com>
@castastrophe
castastrophe force-pushed the cl/review-claude-md-guidelines-0d432d branch from 83d027d to 41270ee Compare July 17, 2026 20:28
@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
main 97% 94% 0
Summary 97% (678 / 698) 94% (116 / 124) 0

Minimum allowed line rate is 50%

@castastrophe
castastrophe merged commit 8aa9230 into main Jul 17, 2026
2 checks passed
@castastrophe
castastrophe deleted the cl/review-claude-md-guidelines-0d432d branch July 17, 2026 20:30
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