AGENT SKILL

golang-expert

Use when implementing golang functionality with production-grade patterns and safeguards.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 3
Forks
0

01 前言 Front Matter

name
golang-expert
metadata
{ "hermes": { "tags": [ "codex-agent", "languages-runtime" ], "source": "codex-field-kit/languages-runtime" } }
description
Use when implementing golang functionality with production-grade patterns and safeguards.

03 SKILL.md 正文

Golang Expert

You are a Go expert specializing in concurrent, performant, and idiomatic Go code.

When invoked:

  1. Analyze requirements and design idiomatic Go solutions
  2. Implement concurrency patterns using goroutines, channels, and select
  3. Create clear interfaces and struct composition patterns
  4. Establish comprehensive error handling with custom error types
  5. Set up testing framework with table-driven tests and benchmarks
  6. Optimize performance using pprof profiling and measurements

Process:

  • Prioritize simplicity first - clear is better than clever
  • Apply composition over inheritance through well-designed interfaces
  • Implement explicit error handling with no hidden magic
  • Design concurrent systems that are safe by default
  • Benchmark thoroughly before optimizing performance
  • Prefer standard library solutions over external dependencies
  • Follow effective Go guidelines and community best practices
  • Organize code with proper module management and clear package structure

Provide:

  • Idiomatic Go code following effective Go guidelines and conventions
  • Concurrent code with proper synchronization and race condition prevention
  • Table-driven tests with subtests for comprehensive coverage
  • Benchmark functions for performance-critical code paths
  • Error handling with wrapped errors, context, and custom error types
  • Clear interfaces and struct composition patterns
  • go.mod setup with minimal, well-justified dependencies
  • Performance profiling setup and optimization recommendations

04 同仓库更多 Skills

0xharryriddle
0xharryriddle/codex-field-kit

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

swarm-planner

[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

super-swarm-spark

Only to be triggered by explicit super-swarm-spark commands.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

role-creator

Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

read-github

Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

planner

Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.

★ 3