Skip to content
Skill

Toolchain

Sets up a project's mise toolchain and hk lint hooks, with pinned tools and CI parity

Toolchain is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
31
Last commit
License
MIT
Listing updated

Similar skills

About Toolchain

This skill guides the setup and changes of a project's developer toolchain built on mise for pinning tools and running tasks, and hk for linters, formatters and pre-commit hooks. It covers the layout of mise.toml (exact tool pins, settings, environment variables, tasks with sources and outputs, and a generator umbrella task) and of hk.pkl (one shared linters mapping feeding the pre-commit, fix and check hooks, builtin steps, whole-project checkers, workspaces and generated-path handling).

The workflow centers on keeping local runs and CI identical: the same hk check runs as the hook, by hand and in the CI lint job, and generator output is verified in a separate gen job that fails on uncommitted changes. The guide also covers hook installation with hk install and CI job conventions, and it asks that existing project conventions take priority over its defaults.

The skill expects a project using mise and hk, and it points to bundled templates for a Ruby gem and a Rails-style app with generated code and a frontend. Examples use Ruby tooling such as RuboCop and Sorbet, plus protobuf and pnpm where relevant.

When your agent uses it

This skill should be used when setting up or changing a project's developer toolchain with mise and hk, such as creating or editing `mise.toml`, `mise.lock` or `hk.pkl`, adding a tool, a task, a linter, a formatter, a code generator or a pre-commit hook, or scaffolding a new gem, app or repository. Use it whenever the user mentions "mise", "hk", "pkl", "pre-commit", "git hooks", "lint step", "hk check", "mise run", "mise task", "pin a tool version", or "gen task", even if they only say "add rubocop to the hooks" or "add a generator". Provides the mise.toml layout (aqua-pinned tools, settings, env, tasks with sources/outputs, the gen umbrella), the hk.pkl layout (a linters mapping shared by pre-commit, fix and check hooks, builtins, whole-project steps, workspaces, generated paths), hook installation, and how CI runs both. Project-specific conventions always take priority.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (15 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the sorah-guides plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add sorah/config
/plugin install sorah-guides@sorah-marketplace

Or copy only this skill to ~/.claude/skills/toolchain:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/toolchain &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/toolchain" ~/.claude/skills/toolchain &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/toolchain inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/toolchain to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/toolchain &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/toolchain" ~/.agents/skills/toolchain &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/toolchain inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/toolchain to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/toolchain &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/toolchain" ~/.cursor/skills/toolchain &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/toolchain inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-guides/skills/toolchain

Or copy the folder to ~/.gemini/skills/toolchain yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/toolchain:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/toolchain &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/toolchain" ~/.copilot/skills/toolchain &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/toolchain inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/sorah/config.git

Then copy config/claude/marketplace/plugins/sorah-guides/skills/toolchain into your agent's skills folder as toolchain. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Pinned tool versions
Guidance for pinning every tool in mise.toml to exact versions with aqua or github backends.
hk.pkl linter layout
A shared linters mapping that keeps pre-commit, fix and check hooks in sync.
Generator task umbrella
A gen task that lists checked-in generators, run by the hook and by CI.
Hook installation
Instructions to install git hooks through hk rather than custom git configuration.
CI lint and gen jobs
Conventions for running hk check in CI and verifying generated output.
Reusable templates
Copyable mise.toml and hk.pkl templates for a Ruby gem and an app.

Good for

  • Add RuboCop to the pre-commit hooks of a Ruby project
  • Pin a tool like protoc to an exact version in mise.toml
  • Create a mise task that runs a code generator only when its inputs change
  • Set up mise and hk in a newly scaffolded repository
  • Configure hk steps that skip generated files

Toolchain FAQ

When does Toolchain trigger?

It is meant for setting up or changing a project's mise and hk toolchain, such as editing mise.toml or hk.pkl, adding a linter, formatter, generator or pre-commit hook, or when the user mentions mise, hk, pkl or pre-commit.

Which tools does Toolchain expect?

It expects mise and hk, with pkl for the hk configuration. Examples also reference RuboCop, Sorbet, protobuf and pnpm depending on the project.

Does Toolchain override existing project conventions?

No. The skill states that project-specific conventions always take priority over its guidance.

Does Toolchain run scripts?

The skill lists no scripts. It provides guidance and templates in its references folder.

How do I install Toolchain in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/toolchain to use it in all your projects, or to .claude/skills/toolchain in one project. Or install the sorah-guides plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-guides@sorah-marketplace.

Which AI agents can use Toolchain?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Toolchain?

The closest alternatives to Toolchain are Code quality tooling edho ferdian, Init prettier git hooks, GitHub ci, Quality Tooling by Language and Setup pig.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from sorah/config

  1. Guides an agent through maintaining sorah's aptly-managed APT repositories and their

    • Open source
    • 31 GitHub stars
    • Cloud and infrastructure
  2. Runs a chief-of-staff session that watches your coding agents and keeps work on track

    • Open source
    • 31 GitHub stars
    • Developer tools
  3. Applies language-agnostic coding conventions to code writing and review

    • Open source
    • 31 GitHub stars
    • Developer tools
  4. Guides the agent to write git commit messages and PR titles in a concise house style

    • Open source
    • 31 GitHub stars
    • Developer tools
  5. Guides an agent through building and testing Rails apps on Aurora DSQL

    • Open source
    • 31 GitHub stars
    • Developer tools
  6. Writes English text in the author's terse, direct technical voice for GitHub and email

    • Open source
    • 31 GitHub stars
    • Developer tools