Development setup
Install pinned tools with mise, build the CLI, run the tests, and pass the full local gate.
In this tutorial we set up a complete development environment for
agore-skill and verify it end to end. By the end you will have a built
binary, a green test suite, and the same local gate CI runs.
What we are building towards
After this tutorial this all works:
mise run build # builds bin/agore-skill
mise run test # unit tests pass
mise run cover # coverage is at or above the 90.0% gate
mise run check # the full local gate is greenPrerequisites
- mise. Install it once:
curl https://mise.run | shmise.toml at the repository root is the tool source of truth: it pins Go
1.26.11, Node 24.14.0, pnpm 10.32.1, golangci-lint 2.15.0, actionlint
1.7.12, shellcheck 0.12.0, GoReleaser 2.20.3, govulncheck 1.10.0, act 0.2.87
and VHS 0.12.1. Entering the repository activates them automatically.
- Docker, only if you plan to run CI locally with act. Everything else in this tutorial needs no Docker.
Install the toolchains
mise run setupsetup runs go mod download and pnpm --dir docs install --frozen-lockfile
— both dependency graphs, Go and docs. The first run downloads the pinned
toolchains, so it can take a few minutes.
Build the CLI
mise run build
./bin/agore-skill --helpYou should see the six project commands (create, eval, init,
inspect, lint, release) plus the completion and help helpers
that fang adds. mise run build compiles with -trimpath into bin/,
which is gitignored.
Run the tests
mise run test # go test ./...
mise run test:race # with the race detector
mise run vet # go vetCheck coverage
mise run covercover runs scripts/coverage.sh: tests with an atomic coverage profile,
then a gate that fails when total statement coverage drops below 90.0%
(override with COVERAGE_MIN). The gate is the contract; the script
prints the current total.
Run the linters and the security scan
mise run lint # golangci-lint, actionlint, shellcheck, goreleaser check
mise run security # govulncheck ./...Run the end-to-end lifecycle
mise run e2ee2e builds the binary into a temp directory and drives the full lifecycle
there — init, create, inspect, lint --strict, release --snapshot
— then verifies archive contents, checksums, that SKILL.md is unchanged
and that nothing leaked into the repository.
Put it all together
mise run ci # build, vet, test, test:race, cover
mise run check # ci + lint + security + docs:build + e2echeck is the gate a pull request has to pass — plus, if you can, one
act run of the real
workflows.
Next steps
- Land your first change: Your first contribution.
- Every task mise defines: mise tasks reference.