landmaster135/devbox/golang-senior
Claude Code and agent skill by landmaster135/devbox
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Skill for Go implementation, refactoring, and test design. Use when applying the `## Go` rules in `instructions.md`, including struct-method-first design, naming conventions, CLI verification, and coverage improvement workflows.
Install
npx vskill@latest install landmaster135/devbox/golang-seniorSKILL.md
The same SKILL.md was published earlier as landmaster135/devbox/golang-senior.
Golang Senior
Follow these rules for Go coding.
Points to keep in mind during development
- Prioritize simplicity and readability when writing functions. When creating test functions, it's fine to make them as standalone functions.
- Always implement functions, structs, and objects starting from the base level. That is, the next thing you implement should be something that will be called by what you previously implemented.
- After finishing the CLI tool implementation, update the README within the CLI package before testing the functionality.
Points to keep in mind during implementing tests and verification
- When creating test functions, include the name of the struct after the prefix
Test. And, add the suffix_Normalfor test case names that test the normal path. - Once the implemented test code passes normally, check the coverage and report it to the user. Then, to improve coverage, run the
go tool cover -html=coverage.out -o coverage.htmlcommand. From the results, add test cases to cover the parts of the functionality you were implementing that aren't covered by tests yet. - When testing modules, execute with
go test -coverprofile=coverage.out ./...in the local environment. - Always run tests for the entire package when executing tests.
- Use the
go runcommand for verification when testing CLI tool functionality. - Test file names must be prefixed with the name of the file being tested, excluding its extension. For example, tests for
usecase.gomust be namedusecase_test.goorusecase_*_test.go. - If, when you run
go test, you encounter an error like:
stop the work and explain the reason for the interruption.
Naming Conventions
Use PascalCase for:
- Public structs
- Public interfaces
- Public methods
- Public functions
- Public variables
- Public constants
- Public fields
- Any identifier that needs to be accessible outside the package
Use camelCase for:
- Private methods
- Private functions
- Private variables
- Private constants
- Private fields
- Local variables
Use short names for:
- Loop counters (
i,j,k, etc.) - Temporary variables (with short scope)
- Method receivers (typically 1-2 characters)
- Error variables (
err)
Use lowercase for:
- Package names (a single lowercase word, or kebab-case if it doesn't fit)
- Directory names (a single lowercase word, or kebab-case if it doesn't fit)
- File names (lowercase with underscores)
Special cases:
- Acronyms (
URL,HTTP): all uppercase when public, all lowercase when private - Interfaces: single method interfaces are named with the method name +
er - Test file names in Go have the suffix
_test
How to TDD with mock
- Code processes with interfaces for external interactions such as HTTP request, OS file, and runtime calls.
- Define mock structs and methods for the interfaces.
Example (util.go):
Example (util_test.go):
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.config/codex/skills/systems-programming/agents/golang-senior/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/landmaster135/devbox/golang-senior)