Automated summary
Generates a complete Go project structure for a production-ready API service, including local development setup, observability stack, and testing infrastructure.
Strengths
- Comprehensive project structure with clear separation of concerns (API, config, database, logging, metrics).
- Built-in observability (traces, structured logs, metrics) with Docker Compose integration.
- Ready-to-use boilerplate with templates for Makefile, middleware, error handling, and more.
Limitations
- Requires basic Go knowledge and familiarity with microservices architecture.
- Generated structure may be overkill for very simple projects.
- Templates are static and may need customization for specific requirements.
Best when starting a new Go service that requires production readiness, observability, and clean architecture.
Avoid for simple Go scripts, quick prototypes, or projects where the initial setup overhead is not justified.
Security analysis
SafeThe skill only generates project boilerplate and instructions; it does not execute any commands that could cause harm, exfiltrate data, or disable security measures. All local commands (make, docker-compose) are standard development practices.
No concerns found
How this analysis is madeExamples
Create a new Go API service called user-service with module path github.com/myorg/user-serviceGenerate a Go microservice for order management named order-service, module path github.com/company/order-serviceStart a new Go API project named config-manager with module github.com/team/config-managername: go-api description: Create a new Go API service. Use when starting a new Go service, API project, or microservice. Generates complete boilerplate with local development and observability.
Go API Service
Create a production-ready Go API service.
Instructions
When asked to create a new Go API service:
- Ask for the service name (kebab-case, e.g.,
user-service,config-manager) - Ask for the module path (e.g.,
github.com/myorg/myservice) - Generate the complete project structure using the templates below
- Replace placeholders (
{SERVICE_NAME},{SERVICE_NAME_SNAKE},{SERVICE_NAME_PASCAL},{MODULE_PATH}) with appropriate values
Project Structure
Generate the following structure:
{SERVICE_NAME}/
├── cmd/
│ └── api/
│ └── main.go
├── internal/
│ ├── api/
│ │ ├── api.go
│ │ └── README.md
│ ├── config/
│ │ ├── config.go
│ │ └── README.md
│ ├── contextx/
│ │ ├── contextx.go
│ │ └── README.md
│ ├── deps/
│ │ ├── deps.go
│ │ └── README.md
│ ├── env/
│ │ ├── env.go
│ │ └── README.md
│ ├── errorsx/
│ │ ├── errorsx.go
│ │ └── README.md
│ ├── httpx/
│ │ ├── httpx.go
│ │ └── README.md
│ ├── logx/
│ │ ├── logx.go
│ │ └── README.md
│ ├── metrics/
│ │ ├── metrics.go
│ │ └── README.md
│ ├── middleware/
│ │ ├── middleware.go
│ │ └── README.md
│ ├── mysql/
│ │ ├── mysql.go
│ │ └── README.md
│ ├── redis/
│ │ ├── redis.go
│ │ └── README.md
│ └── traces/
│ ├── traces.go
│ └── README.md
├── docs/
│ ├── projects/
│ │ ├── completed/
│ │ └── README.md
│ └── architecture.md
├── e2e/
│ ├── doc.go
│ └── helpers_test.go
├── local/
│ ├── config/
│ │ └── api.json
│ ├── mysql/
│ │ ├── docker-compose.yml
│ │ └── initdb.d/
│ │ └── 01-schema.sql
│ └── observability/
│ └── docker-compose.yaml
├── scripts/
│ └── .gitkeep
├── go.mod
├── go.sum
├── Makefile
├── CLAUDE.md
└── README.md
Key Patterns
Clean Architecture
handlers (HTTP) → service (business logic) → repository (data) → model (entities)
Package Naming
Use x suffix for packages that shadow stdlib: logx, httpx, timex, errorsx, contextx
Error Handling
return nil, fmt.Errorf("service: failed to create config: %w", err)
Structured Logging
logger.LogAttrs(ctx, slog.LevelError, "create_config",
slog.String("config_id", configID),
slog.Any("err", err),
)
Tracing
spanFunc := func(ctx context.Context) error {
traces.AddAttributesToCurrentSpan(ctx,
attribute.String("config_id", configID),
)
// ... operation
return nil
}
err := traces.WithSpan(ctx, s.tracer, "service.CreateConfig", spanFunc)
Templates
When generating files, use the templates in the templates/ directory:
- Makefile - Build, test, lint, run commands
- MySQL Docker Compose - Local database
- Observability Stack - Grafana, Tempo, Loki, Prometheus
- Local Config - JSON configuration
- internal/api - API server setup
- internal/config - Configuration management
- internal/logx - Structured logging
- internal/middleware - HTTP middleware pipeline
- go.mod - Dependencies
Running Locally
After generation:
# First-time setup
make tools-install
# Start full stack (API + MySQL + Redis + Observability)
make run
# Run tests
make test
# Run integration tests
make test-integration
# Run all linters
make lint-all
Documentation
- Place all documentation in
docs/ - Project plans go in
docs/projects/ - Move completed plans to
docs/projects/completed/ - Each internal package MUST have a
README.mdexplaining its purpose and usage
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/go-api-service-mm5t8bu6/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/go-api-service-mm5t8bu6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/go-api-service-mm5t8bu6/download' --output '.skill-downloads/go-api-service-mm5t8bu6/SKILL.md.part' && mv '.skill-downloads/go-api-service-mm5t8bu6/SKILL.md.part' '.skill-downloads/go-api-service-mm5t8bu6/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/go-api-service-mm5t8bu6/SKILL.md' && test -s '.skill-downloads/go-api-service-mm5t8bu6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/go-api' && cp -R '.skill-downloads/go-api-service-mm5t8bu6' '.claude/skills/go-api'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/go-api-service-mm5t8bu6'openskills read 'go-api-service-mm5t8bu6'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/go-api-service-mm5t8bu6/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.