Skip to content

common only

common/tasks.toml is the base every repo includes first. On its own, it's the complete contract for a repo with nothing to compile or test: a Markdown and YAML library such as github-workflows, skills or .github.

# mise.toml
[task_config]
includes = [".mise/common/tasks.toml"]
# Makefile
include .mise/common/include.mk

Tasks

Task What it runs
fmt fmt-prose (bun fmt, markdownlint --fix), then license.
lint license-check, lint-containers, lint-shell, lint-workflows, lint-prose.
ci lint, then docs-build.
pr fmt, lint, then docs-build.
commit ./commit.sh if present and executable.
license addlicense: inject SPDX headers.
actionlint actionlint over .github/workflows, on its own.
zizmor zizmor over .github/workflows, on its own.
docs-build uv sync, then zensical build into site/. Skips without a zensical.toml.
serve uv sync, then zensical serve: a live-reloading preview.

There's no build or test task, so the reusable CI runs only lint.

What common gives every archetype

Even when an archetype is included, common still supplies the shared passes the archetype's rollups call:

  • license / license-check: SPDX headers via addlicense, with the house ignores plus .licenseignore.
  • fmt-prose / lint-prose: bun fmt and markdownlint over every *.md.
  • lint-workflows: actionlint, then zizmor, over .github/workflows.
  • lint-containers: the composite of lint-docker, lint-helm and lint-kustomize.
  • lint-shell: shellcheck over scripts/ and hack/.
  • commit: the agent-prepared commit handoff.
  • docs-build / serve: the Zensical docs site, built or previewed via the shared uv pin. They run in the invoking directory and skip with a message when it has no zensical.toml. Every archetype's ci and pr end with docs-build (python's build builds the site itself); it stays out of build because the reusable CI runs build as its own job and the release workflow builds the site in a separate docs job.

Every one of the lint passes is runtime-detected and no-ops silently when the repo has none of the files it checks. See Shared lint passes for each one in detail.

Source

common/tasks.toml
# Copyright 2026 BitWise Media Group Ltd
# SPDX-License-Identifier: MIT
#
# common — the tasks every archetype shares, plus the canonical fmt/lint/ci/pr
# rollups for a repo with nothing to compile or test (a Markdown/YAML library:
# github-workflows, skills, .github). Every consumer's root mise.toml includes
# this file FIRST, then (optionally) exactly one archetypes/<lang>/tasks.toml:
#
#   [task_config]
#   includes = [".mise/common/tasks.toml", ".mise/archetypes/go/tasks.toml"]
#
# Included task files use the simplified format (top-level keys ARE task
# names) and cannot nest includes, which is why the consumer lists both. Task
# merging is whole-task replacement with later includes winning, so an
# archetype's fmt/lint/ci/pr rollups replace the ones defined here — and two
# archetypes can never stack (the second would clobber the first's rollups).
#
# Leaf tasks run in the invoker's directory ({{cwd}}) or the repo root
# ({{config_root}}), matching where make recipes used to run. Helpers that
# only exist to be wired into rollups are hidden. Anything longer than a
# one-liner lives in common/scripts/ (POSIX sh, shellcheck-linted, resolved
# through the same .mise/ submodule mount as this file); structural knobs
# reach the scripts as environment variables set per task.
#
# There are no build/test/e2e stubs: the reusable CI workflow discovers which
# canonical tasks a repo defines (mise tasks ls --name-only) and only runs
# those.

# Run an agent-prepared commit batch if one is waiting. The `pr` gate calls this
# last so a green local run flows straight into the (user-signed) commit.
[commit]
description = "run ./commit.sh (agent-prepared commit batch) if present"
dir = "{{cwd}}"
run = "if [ -x ./commit.sh ]; then ./commit.sh; fi"

# addlicense with the house default ignores (generated/vendored trees, incl.
# the .mise/ submodule and pnpm-lock.yaml, and the agent-prepared commit.sh
# handoff every repo may transiently carry) plus one -ignore per non-empty
# line of the repo's .licenseignore. See scripts/license.sh.
[license]
description = "inject SPDX license headers (addlicense)"
dir = "{{cwd}}"
env = { LICENSE_HOLDER = "{{vars.license_holder}}" }
run = "{{config_root}}/.mise/common/scripts/license.sh"

# Check-mode counterpart wired into the `lint` rollups.
[license-check]
hide = true
dir = "{{cwd}}"
env = { LICENSE_HOLDER = "{{vars.license_holder}}" }
run = "{{config_root}}/.mise/common/scripts/license.sh --check"

# Prose format/lint via bun fmt + the pinned markdownlint-cli2, wired into
# every archetype: all *.md, excluding generated/vendored content. The house
# defaults are this library's own .prettierrc.yaml / .prettierignore /
# .markdownlint-cli2.yaml (read from .mise/ in a consumer); a repo that carries
# its own copy of a file overrides that file wholesale. Runs from the repo root
# (config_root) so the whole repo is covered no matter where make is invoked
# (e.g. a terraform environment subdirectory). See scripts/prose.sh.
[fmt-prose]
hide = true
dir = "{{config_root}}"
run = "{{config_root}}/.mise/common/scripts/prose.sh fmt"

[lint-prose]
hide = true
dir = "{{config_root}}"
run = "{{config_root}}/.mise/common/scripts/prose.sh check"

# GitHub Actions workflow lint: actionlint (syntax, expressions, shellcheck of
# run: steps) and zizmor (security: injection, unpinned actions, excessive
# permissions, ...). The two visible tasks run the tools directly for ad-hoc
# use; `lint-workflows` is the guarded pass every `lint` rollup carries — it
# no-ops silently in a repo with no .github/workflows.
[actionlint]
description = "lint .github/workflows with actionlint"
dir = "{{config_root}}"
run = "actionlint"

[zizmor]
description = "security-audit .github/workflows with zizmor"
dir = "{{config_root}}"
run = "zizmor --min-severity {{vars.zizmor_min_severity}} .github/workflows"

[lint-workflows]
hide = true
dir = "{{config_root}}"
env = { ZIZMOR_MIN_SEVERITY = "{{vars.zizmor_min_severity}}" }
run = "{{config_root}}/.mise/common/scripts/lint-workflows.sh"

# Container/deploy/shell lint, runtime-detected: each script probes for its
# marker files from the repo root and no-ops silently when the repo has none,
# so every archetype carries these unconditionally. Items found but not
# checkable (a kustomize Component, an unresolvable ${ARG} base image) are
# skipped with a one-line message, never silently.

[lint-docker]
hide = true
dir = "{{config_root}}"
env = { GRYPE_FAIL_ON = "{{vars.grype_fail_on}}" }
run = "{{config_root}}/.mise/common/scripts/lint-docker.sh"

[lint-helm]
hide = true
dir = "{{config_root}}"
env = { KUBESCAPE_SEVERITY = "{{vars.kubescape_severity}}" }
run = "{{config_root}}/.mise/common/scripts/lint-helm.sh"

[lint-kustomize]
hide = true
dir = "{{config_root}}"
env = { KUBESCAPE_SEVERITY = "{{vars.kubescape_severity}}" }
run = "{{config_root}}/.mise/common/scripts/lint-kustomize.sh"

[lint-shell]
hide = true
dir = "{{config_root}}"
run = "{{config_root}}/.mise/common/scripts/lint-shell.sh"

# The composite every archetype's `lint` carries.
[lint-containers]
hide = true
run = [
  { task = "lint-docker" },
  { task = "lint-helm" },
  { task = "lint-kustomize" }
]

# Zensical documentation site (Python via the shared uv pin), available
# whatever the repo's language: a docs site is common across archetypes. A
# repo with a generated reference (a Go CLI's `./<app> docs …`) defines a
# repo-local `docs` task that regenerates it and then calls docs-build. Runs
# in the invoker's directory and skips with a message when there is no
# zensical.toml there, which is what lets the ci and pr rollups — common's and
# every archetype's but python's, whose build already builds the site — end
# with it. It stays out of build on purpose: the reusable CI runs build as its
# own job and the release workflow builds the site in a separate docs job, so
# wiring it into build would build the site twice. See scripts/docs.sh.
# The reusable release workflow's docs job runs `mise run docs-build` and
# publishes ./site to GitHub Pages, so a repo whose site embeds generated,
# uncommitted content overrides this task to generate it first; the override
# must still render into ./site.
[docs-build]
description = "build the documentation site (zensical)"
dir = "{{cwd}}"
run = "{{config_root}}/.mise/common/scripts/docs.sh build"

[serve]
description = "serve the docs site locally (zensical)"
dir = "{{cwd}}"
run = "{{config_root}}/.mise/common/scripts/docs.sh serve"

# Canonical contract for a common-only repo. Rollups are sequential
# composites — the mutating fmt passes must not race, and fmt always precedes
# lint inside pr. An archetype include replaces these whole-task.

[fmt]
description = "format prose, inject license headers"
run = [{ task = "fmt-prose" }, { task = "license" }]

[lint]
description = "prose lint (bun fmt + markdownlint) + license, container, shell and workflow checks"
run = [
  { task = "license-check" },
  { task = "lint-containers" },
  { task = "lint-shell" },
  { task = "lint-workflows" },
  { task = "lint-prose" },
]

[ci]
description = "the gates the reusable CI workflow runs"
run = [{ task = "lint" }, { task = "docs-build" }]

[pr]
description = "full local gate before a pull request"
run = [{ task = "fmt" }, { task = "lint" }, { task = "docs-build" }]