X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/150e81034dc65943803924ef29962e2481ffe771..fc51ee2f545233df3cc1fa2fd4f28a4484c6bc00:/.agents/skills/go-code/SKILL.md diff --git a/.agents/skills/go-code/SKILL.md b/.agents/skills/go-code/SKILL.md index 6b5a0ce..a9e705b 100644 --- a/.agents/skills/go-code/SKILL.md +++ b/.agents/skills/go-code/SKILL.md @@ -13,6 +13,8 @@ description: Go style rules. Use before you write or review Go code. function. Do not create `main_test.go`. - A file carries its own context. Keep each struct and all of its methods in one file. Give a separate responsibility its own type. +- When code in one file gets a user in another file for an unrelated + purpose, move it to a file named for its function in the same change. - Put entry points first, then each struct's methods as a group, then standalone utility functions. Do not put a utility function between the methods of one type.