From testing-workflows
Run, debug, and extend tests for Go projects, including generation prerequisites. Use when domain logic, repositories, HTTP handlers, migrations, or unexpected test failures need coverage.
How this skill is triggered — by the user, by Claude, or both
Slash command
/testing-workflows:testing-workflowsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Running, extending, or debugging Go unit or integration tests for this project.
code-generation first).database-migrations).| Situation | Use this skill? | Route instead |
|---|---|---|
| Go unit, integration, or endpoint test authoring/debugging | Yes | - |
| Focused HTTP smoke validation after changes | No | api-smoke-validation |
| Stale generated artifacts are the root cause | No | code-generation |
| Main task is schema evolution, not test behavior | No | database-migrations |
make test, go test, or a CI target).make generate before re-running.make test # all tests (may run generation first)
make test-unit # unit tests only
make test-integration # integration tests only
go test -v -run TestName ./pkg/... # single test, verbose
Use this as the default testing entry point for Go work, including HTTP integration behavior. Use api-smoke-validation when the need is fast endpoint smoke checks rather than broader test development or debugging.
Follow this sequence:
make generate, then retry.go test -v -run TestName ./path/to/pkg to isolate.DATABASE_URL is set and migrations are applied.| Layer | What to test |
|---|---|
| Domain / service | Validation rules and business logic (prefer table-driven tests) |
| Repository | Persistence behaviour against a real or in-memory DB |
| HTTP handlers | Status codes, auth enforcement, request/response shapes |
make generate before make test whenever schema, query, or template files changed.code-generation first when failures smell like stale generated inputs rather than test logic.references/examples.md when you need concrete user utterances, expected behaviour, or a model answer shape to mirror.references/edge-cases.md when the request is a near miss, partially matches this skill, or the first attempt fails.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub matt-riley/lucky-hat --plugin testing-workflows