buffa
CLAUDE.md904 starsChanged 9 months agoApache-2.0View on GitHub
@CONTRIBUTING.md See DESIGN.md for the architectural overview. If a change to buffa-codegen (notably message.rs, impl_message.rs, view.rs, oneof.rs, enumeration.rs, imports.rs) affects generated output, you must regenerate checked-in code before committing, or CI (check-generated-code) will fail: Most codegen changes don't touch descriptor-specific paths, so gen-wkt-types is usually sufficient. A quick check: git status after task lint — if buffa-types/src/generated/ shows as modified, you forgot to commit the regen. Before producing a commit, run both review agents in parallel (single message, two Agent…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
If a change to buffa-codegen (notably message.rs, impl_message.rs, view.rs, oneof.rs, enumeration.rs, imports.rs) affects generated output, …
- Distinctive: line 22
Before producing a commit, run both review agents in parallel (single message, two Agent tool calls):
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
buffa — Claude Code Instructions
@CONTRIBUTING.md
See DESIGN.md for the architectural overview.
After Changing Codegen Output
If a change to buffa-codegen (notably message.rs, impl_message.rs, view.rs, oneof.rs, enumeration.rs, imports.rs) affects generated output, you must regenerate checked-in code before committing, or CI (check-generated-code) will fail:
task gen-wkt-types # buffa-types/src/generated/ — WKTs for consumer use
task gen-bootstrap-types # buffa-descriptor/src/generated/ — only if the change affects descriptor typesMost codegen changes don't touch descriptor-specific paths, so gen-wkt-types is usually sufficient.
A quick check: git status after task lint — if buffa-types/src/generated/ shows as modified, you forgot to commit the regen.
Pre-Commit Code Review
Before producing a commit, run both review agents in parallel (single message, two Agent tool calls):
rust-code-reviewer— correctness, safety, ownership/lifetimes, performancerust-api-ergonomics-reviewer— downstream-consumer perspective: happy-path friction, lints that fire in user crates, runtime footguns, doc drift
The two are complementary (different lenses on the same diff) and produce largely non-overlapping findings. Address all Critical, High, and Medium findings from both. For Low / advisory findings, flag these to the user to decide if they are worth addressing or can be ignored.
For changes that touch only internal/test code with no public-API surface, the ergonomics reviewer may be skipped.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

