Generate a Go HTTP handler with request/response types and tests
Generates a Gin handler struct with methods for specific operations, along with request/response types and a test file.
/new-handler auth # Creates auth handler (login, register, logout)
/new-handler upload # Creates file upload handler
/new-handler webhook # Creates webhook handler
Read reference patterns. Load patterns from:
patterns/gin-patterns.mdpatterns/backend-patterns.mdstyles/backend-go.mdDetermine handler name. Parse the argument to determine struct name, file paths, and methods.
Generate the handler file. Create the handler struct with:
NewXxxHandlerGenerate the test file. Create table-driven tests with:
httptest.NewRecorder() for response captureRun quality checks.
gofmt -w <generated_files>
golangci-lint run ./...
go test ./...
Report results.
internal/handler/<name>.go
internal/handler/<name>_test.go
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer