Repository navigation
docs: add CLAUDE.md with Go conventions - #3
Merged
Merged
Conversation
Rules for coding agents working in this repo: layering, own types per layer, exported interfaces over unexported implementations, validating constructors for values with rules or secrets, and the checks to run before handing over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the detailed rules for values and entities: no exported named basic types for values with rules or secrets, sealed interfaces, redacted secrets, no exported mutable globals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
CLAUDE.mdso coding agents follow the same Go rules from the first commit: domain first, own types per layer with explicit mapping, small consumer-side interfaces, exported interfaces over unexported implementations, validating constructors for values that carry a rule or a secret, typed values and an injected clock, and the checks to run before handing over (build, vet,test -race, lint, one local run).The same text is in Jan's global Claude Code instructions, so other Go repos get it too.
Docs only, no code change.
🤖 Generated with Claude Code