Skip to content

Commit 62d14ff

Browse files
chore(claude): add proverbs
1 parent fad43c4 commit 62d14ff

File tree

1 file changed

+28
-0
lines changed
  • stow/shared/.claude/skills/golang-style

1 file changed

+28
-0
lines changed

stow/shared/.claude/skills/golang-style/SKILL.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,36 @@ description:
66
error wrapping, sentinel errors, and godoc-style comments.
77
---
88

9+
10+
911
# Go Coding Conventions
1012

13+
## Proverbs
14+
15+
Try to follow the proverbs:
16+
17+
> Go Proverbs
18+
> Simple, Poetic, Pithy
19+
> Don't communicate by sharing memory, share memory by communicating.
20+
> Concurrency is not parallelism.
21+
> Channels orchestrate; mutexes serialize.
22+
> The bigger the interface, the weaker the abstraction.
23+
> Make the zero value useful.
24+
> interface{} says nothing.
25+
> Gofmt's style is no one's favorite, yet gofmt is everyone's favorite.
26+
> A little copying is better than a little dependency.
27+
> Syscall must always be guarded with build tags.
28+
> Cgo must always be guarded with build tags.
29+
> Cgo is not Go.
30+
> With the unsafe package there are no guarantees.
31+
> Clear is better than clever.
32+
> Reflection is never clear.
33+
> Errors are values.
34+
> Don't just check errors, handle them gracefully.
35+
> Design the architecture, name the components, document the details.
36+
> Documentation is for users.
37+
> Don't panic.
38+
1139
Follow these conventions strictly when writing Go code.
1240

1341
## Happy Path Coding

0 commit comments

Comments
 (0)