go
Skill9 starsChanged 47 days agoApache-2.0View on GitHub
Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
In this repository93 other files it gives its agents.
- AGENTS.mdAGENTS.md
- artifacts/AGENTS.mdAGENTS.md
- Docs/AGENTS.mdAGENTS.md
- Infrastructure/AGENTS.mdAGENTS.md
- logs/AGENTS.mdAGENTS.md
- Plugins/AGENTS.mdAGENTS.md
- Skills/AGENTS.mdAGENTS.md
- skills-system/AGENTS.mdAGENTS.md
- Wiki/AGENTS.mdAGENTS.md
- SKILL.mdSkill
- agents-mdSkill
- alignment-checkpointSkill
- autofixSkill
- autoresearchSkill
- autoreviewSkill
- bash-hygieneSkill
- biome-lintingSkill
- bootstrapSkill
- code-fixes-triageSkill
- codex-agent-creatorSkill
- codex-automation-architectSkill
- codex-environment-creatorSkill
- codex-hooks-builderSkill
- codex-reviewSkill
- coding-harnessSkill
- context7Skill
- decide-build-primitiveSkill
- diagram-cliSkill
- elixir-proSkill
- evals-routerSkill
- fix-miseSkill
- frontend-designSkill
- goal-governorSkill
- improve-agent-nativeSkill
- improve-codebase-architectureSkill
- insight-reportSkill
- javascript-proSkill
- keep-codex-fastSkill
- npm-releaseSkill
- pnpm-managerSkill
- prek-proSkill
- pr-green-sweepSkill
- production-deploymentSkill
- project-brainSkill
- rust-proSkill
- sdk-scenario-generatorSkill
- session-workflow-minerSkill
- simplifySkill
- skill-pr-deliverySkill
- technical-writerSkill
- testingSkill
- tomlSkill
- triageSkill
- typescriptSkill
- ubiquitous-languageSkill
- unslopifySkill
- user-documentationSkill
- uv-python-project-setupSkill
- valeSkill
- verification-before-completionSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Use for Go code authoring and review tasks.
- Distinctive: line 23
Use when package boundaries and error handling need tightening.
- Distinctive: line 39
Keep functions small and package-focused.
- Distinctive: line 41
Prefer composition over deep embedding chains.
- Distinctive: line 46
Avoid panic in library code.
- Distinctive: line 47
Check and handle every returned error.
- Distinctive: line 63
If API compatibility risk is high, keep signatures stable and narrow the patch.
- Distinctive: line 82
Keep guidance deterministic so repeated runs produce consistent decisions.
- Distinctive: line 92
Run the relevant local checks for touched files and workflow contracts.
- Distinctive: line 99
Do not expand scope beyond the request unless explicitly asked.
- Distinctive: line 100
Prefer safe, reversible edits over broad refactors.
- Distinctive: line 111
Read when: the task needs advanced edge cases, migration-safe patterns, or runtime-specific nuance beyond the core checklist.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
Table of Contents
- When to use
- Required inputs
- Deliverables
- Style
- Error Flow
- Examples
- Failure mode
- Gotchas
When to use
- Use for Go code authoring and review tasks.
- Use when package boundaries and error handling need tightening.
Required inputs
- Package and file scope.
- Expected API behavior.
- Runtime/performance constraints.
Deliverables
- Idiomatic Go changes.
- Wrapped, actionable errors.
- Minimal API churn outside requested scope.
Style
- Keep functions small and package-focused.
- Return concrete structs from constructors when interfaces are unnecessary.
- Prefer composition over deep embedding chains.
Error Flow
- Return wrapped errors with
%wfor traceability. - Avoid panic in library code.
- Check and handle every returned error.
Examples
func ParsePort(value string) (int, error) {
port, err := strconv.Atoi(value)
if err != nil {
return 0, fmt.Errorf("parse port %q: %w", value, err)
}
return port, nil
}Failure mode
- If API compatibility risk is high, keep signatures stable and narrow the patch.
Gotchas
- Silent ignored errors usually become runtime bugs.
See Also
| Skill | When to use |
| [[rust-pro]] | Systems programming with similar error-propagation and ownership concerns |
| [[he-fix-bugs]] | Triage Go runtime errors with evidence-first diagnosis |
Topic map: [[agent-ops]]
Philosophy
- Optimize for clear, verifiable outcomes with the minimum necessary changes.
- Keep guidance deterministic so repeated runs produce consistent decisions.
Procedure
- Confirm scope, constraints, and required inputs before edits.
- Apply focused changes tied directly to the requested outcome.
- Re-run the highest-signal validations and capture concrete evidence.
Validation
- Run the relevant local checks for touched files and workflow contracts.
- Fail fast: stop at the first blocking validation failure and report exact evidence.
- Re-run checks after fixes and record residual risk if any remains.
Constraints
- Redact secrets, tokens, credentials, and sensitive data by default.
- Do not expand scope beyond the request unless explicitly asked.
- Prefer safe, reversible edits over broad refactors.
Anti-patterns
- Skipping validation after making changes.
- Applying broad refactors to solve narrow issues.
- Assuming behavior without evidence from current checks.
References and assets
- Open deep guidance:
Infrastructure/references/deep-guidance.md - Read when: the task needs advanced edge cases, migration-safe patterns, or runtime-specific nuance beyond the core checklist.
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.

