build-run
Installation
SKILL.md
Build and Run
When to Use
- Confirm the codebase compiles, reproduce a runtime issue locally, or validate environment-dependent changes.
Rules
- Do not use production credentials or external services unless the user provides safe mocks/stubs.
- Use
source setTestEnv.shfor local env needed by tests or the app. - Prefer reproducible, minimal commands and capture key output lines.
Commands
- Compile:
go build -v ./... - Format:
go fmt ./... - Vet:
go vet -v ./... - Tidy deps:
go mod tidy - Run tests that reproduce an issue:
source setTestEnv.sh && go test -run <TestName> ./pkg/path - Start example app:
cd example2/cmd/app && go run main.go(use with test env)
Output
- Result: success or failure.
- Key logs: first relevant error or stack lines.
- Minimal repro: 1-3 commands.
- Next steps: which logs/files to inspect or which mocks to add.
Examples
- "Does the project compile?" - run
go build -v ./...and report. - "Reproduce failing integration test X" - provide commands and first failing lines.
Related Skills
test-runner,ci-orchestrator,fix-suggester
References
AGENTS.md(build and run commands),setTestEnv.sh,llms.txt
Related skills
More from pilinux/gorest
file-reader
Precisely read source files or snippets and return concise, citation-backed facts needed for decisions or edits.
27code-navigation
Rapid, focused navigation to locate definitions/usages and map the impact of proposed changes.
7fix-suggester
Diagnose failures and propose minimal, test-backed fixes with verification and rollback instructions.
7logs-repro-harness
Reduce flaky or environment-dependent failures to a minimal, reproducible script and capture the exact logs and error lines.
7ci-orchestrator
Run a CI-like pipeline locally (format, lint, vet, static-analysis, tests) and summarize per-step results with remediation guidance.
6config-loader-helper
Diagnose configuration-related failures, enumerate required env vars, and guide safe local test setup (no secrets).
6