# Toolchain

> Toolchain is an open-source agent skill for developer tools. Sets up a project's mise toolchain and hk lint hooks, with pinned tools and CI parity. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/sorah/config/tree/master/claude/marketplace/plugins/sorah-guides/skills/toolchain
- **Repository:** https://github.com/sorah/config
- **GitHub stars:** 31
- **License:** MIT
- **Skill name:** toolchain
- **Collection:** https://github.com/sorah/config
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/toolchain)
- [License: MIT](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/toolchain)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Code quality tooling edho ferdian](https://ai-powered.com/skills/code-quality-tooling-edho-ferdian): Code quality tooling edho ferdian is an open-source agent skill for developer tools.
- [Init prettier git hooks](https://ai-powered.com/skills/init-prettier-git-hooks): Init prettier git hooks is an open-source agent skill for developer tools.
- [GitHub ci](https://ai-powered.com/skills/github-ci): GitHub ci is an open-source agent skill for developer tools.
- [Quality Tooling by Language](https://ai-powered.com/skills/quality-tooling-by-language): Quality Tooling by Language is an open-source agent skill for developer tools.
- [Setup pig](https://ai-powered.com/skills/setup-pig): Setup pig is an open-source agent skill for developer tools.
- [Setup](https://ai-powered.com/skills/setup-awrshift): Setup is an open-source agent skill for developer tools.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Harness setup](https://ai-powered.com/skills/harness-setup-maxwell2732): Harness setup is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/toolchain
