Skip to content
// Shared build tasks for the fleet

One toolchain.
Every repo.

Pinned, checksum-locked developer tools, mise task archetypes for Go, Node, Python, Swift, Terraform and OCI containers, and the house lint and license policy — mounted in every repo as a .mise/ submodule, with a one-line Makefile on top.

zsh — adopt
$ git submodule add https://github.com/bitwise-media-group/toolchain.git .mise
$ mise trust --all
$ make pr
dotty · make pr ● go archetype
1mise.toml
[tools]
go = "1.27.2"
"go:golang.org/x/vuln/cmd/govulncheck" = "1.8.0"
 
[vars]
app = "dotty"
app_pkg = "./cmd"
 
[task_config]
includes = [
  ".mise/common/tasks.toml",
  ".mise/archetypes/go/tasks.toml",
]
# Makefile
include .mise/archetypes/go/include.mk
2make pr
$ make pr
tidygo mod tidy✓
fmtgo fmt · golangci-lint --fix✓
bun fmt · markdownlint · addlicense✓
lintgolangci-lint · govulncheck✓
hadolint · grype · kubescape · shellcheck✓
actionlint · zizmor · prose · license✓
testgotestsum -race → coverage/✓
buildgo build -trimpath → ./dotty✓
commit./commit.sh (if present)✓
→ every tool pinned · sha256-verified · on PATH

The repo pins its runtime and picks an archetype — every other tool, task and gate comes from .mise/.

4language archetypes
20+pinned CLIs
1 lineMakefile
0no-op stubs

// WHAT EVERY REPO GETS

Pinned tools, shared tasks and house policy — mounted once, kept current by Renovate.

Checksum-locked tools

Every CLI is an exact pin in config.toml with per-platform sha256 (and provenance where published) in mise.lock. No tools/go.mod, no linter package.json.

Archetype tasks

common plus exactly one of go, node, python, swift, terraform or containers — each with real fmt, lint, build, test, ci and pr rollups.

A one-line Makefile

include .mise/archetypes/go/include.mk forwards every target to mise run, so make <task> and mise run <task> are interchangeable.

Zero-config house policy

SPDX headers via addlicense, prose via bun fmt + markdownlint, and workflows via actionlint + zizmor — in every archetype, with house defaults read from .mise/.

Runtime-detected scans

Dockerfiles get hadolint + grype, helm charts and kustomizations get kubescape, scripts get shellcheck — each pass no-ops silently when a repo has none of the files.

Fleet-wide updates

Renovate bumps one pin here and re-locks; release-please cuts a tag; every consumer gets a submodule-bump PR. One commit updates the whole fleet.

// PICK ONE ARCHETYPE

Common first, then exactly one language archetype. They never stack.

// ONE CONTRACT, EVERY REPO

CI runs make lint, make build and make test — whichever a repo defines.

make help
$ make fmt# auto-fix code + prose, inject license headers
$ make lint# every check-mode pass — the CI gate
$ make test# unit tests with coverage → coverage/
$ make build# the binary, bundle, package or site
$ make ci# exactly what the reusable CI workflow runs
$ make pr# full local gate, then ./commit.sh if present

// THREE STEPS TO ADOPT

01

Mount

Add the library as a submodule at .mise/. mise loads its config natively.

Full guide
$ git submodule add https://github.com/bitwise-media-group/toolchain.git .mise
02

Wire

Pin the runtime and include common plus one archetype in the root mise.toml; reduce the Makefile to one include.

Choose an archetype
$ mise trust --all && make help
03

Run

Format, lint, test and build in one go — the full local gate before every pull request.

Daily workflow
$ make pr