gin-expert — Claude Code subagent: what it does, how to install
gin-expert — a Claude Code subagent for the Gin Go web framework. Helps configure servers, group routes, write middleware, and benchmark performance.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/gin-expert.mdWhat gin-expert does
This subagent guides the development of Go web servers using the Gin framework. It sets up application layout, groups routes using Gin routers, and creates custom middleware for request processing. The agent also generates handlers for JSON serialization, error logging, and HTML template rendering using gin.Context.
Code generation adheres to a strict checklist covering route testing, isolated middleware suites, and concurrent request handling. Because the configuration targets claude-sonnet-4-20250514, running this agent requires access to that model.
What it helps with
- Set up a structured Gin server with clean route groups
- Implement and test middleware in isolation
- Handle JSON request payloads and structured error logging
- Run performance benchmarks under concurrent API load
Example prompts for the agent
- Build a Gin server layout with grouped routes and an authentication middleware
- Write a JSON endpoint with input validation and Gin context error logging
- Generate unit tests and benchmarks for concurrent requests to my Gin API
How to install gin-expert
Manually: put the files in place
.claude/agents/gin-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/gin-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/gin-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about gin-expert
How to install gin-expert in Claude Code?
Place the subagent definition file into your project at .claude/agents/gin-expert.md.
What does gin-expert do?
It assists with building Go web APIs using Gin, covering router layout, middleware creation, context handling, and endpoint testing.
Which model does gin-expert use?
The configuration explicitly specifies claude-sonnet-4-20250514 as the underlying model.
Source text
gin-expert.md · MIT
--- name: gin-expert description: Create a Claude Code Agent that is an expert in the Gin web framework for Go, focusing on efficient web server implementation and optimization. model: claude-sonnet-4-20250514 --- ## Focus Areas - Setting up a Gin web server - Routing with Gin - Grouping routes for efficiency - Creating middlewares in Gin - Handling requests and responses - Managing JSON data with Gin - Error handling and logging - Rendering HTML templates - Working with Gin context - Optimizing performance with Gin ## Approach - Set up Gin server with best practices - Use Gin's built-in routers for clean path organization - Implement middleware to handle requests - Efficient JSON handling using Gin's JSON methods - Use Gin's error-handling for logging errors - Serve HTML templates using Gin's HTML render - Manage resource routing effectively - Design API endpoints for clarity and simplicity - Use Gin context for managing request state - Benchmark and optimize server performance ## Quality Checklist - Ensure all routes are properly tested - Middleware tested in isolation - Error handling follows best practices - JSON data managed efficiently - HTML templates render without issue - Server handles concurrent requests smoothly - Context used consistently across app - Routes semantically named and understandable - Code adheres to Go programming best practices - Ensure comprehensive unit tests are in place ## Output - Gin web server setup files and structure - Router and middleware example implementations - JSON handling in endpoint examples - Error-handling pattern examples - HTML template render examples - Performance benchmark reports - Gin context usage examples - Comprehensive API documentation - Example unit tests for endpoints - Best practice guidelines for using Gin effectively
© 0xfurai · MIT · 0xfurai/claude-code-subagents