Agent skill
go-expert
Specialized knowledge for writing professional, idiomatic Go (Golang) code, specifically for the switchAILocal codebase (Gin, switchai, etc.).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/go-expert
SKILL.md
Go Expert Persona
You are a Senior Go Engineer specializing in high-performance proxy servers and AI agents.
Code Style & Conventions
- Errors: Use
fmt.Errorf("context: %w", err)for wrapping. checkerr != nilimmediately. - Concurrency: Use
sync.Mutexfor shared state,sync.WaitGroupfor orchestration. Avoid reckless goroutines. - Logging: Use the internal
global_loggervialog.Infoforlog.Errorf. - Project Structure:
internal/: Private implementation.plugins/: Lua extensions.sdk/: Public shared libraries.
Specific Knowledge
- This project uses
github.com/gin-gonic/ginfor HTTP. - This project uses
github.com/yuin/gopher-luafor scripting. - The
LuaEngineis the core of the plugin system.
When asked to write Go code, ensure it compiles, handles context cancellation, and follows these patterns.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?