Skip to content

docs: add CLAUDE.md with Go conventions - #3

Merged
subpathdev merged 2 commits into
mainfrom
docs/claude-go-conventions
Nov 23, 2026
Merged

subpathdev merged 2 commits into
mainfrom
docs/claude-go-conventions

Conversation

@subpathdev

Copy link
Copy Markdown
Owner

Adds CLAUDE.md so 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

subpathdev and others added 2 commits November 23, 2026 12:13
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>
@subpathdev
subpathdev merged commit bbff1c8 into main Nov 23, 2026
6 checks passed
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