/sorah-guides:toolchainfrom sorah-guides
Sets up and maintains developer toolchains using mise (tool/pin manager) and hk (linter/formatter runner). Handles mise.toml, hk.pkl, pre-commit hooks, CI integration, and tool version pinning.
Ships in sorah-guides. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
How sorah's projects pin tools and run tasks with mise, and run linters and formatters with hk. The same hk check runs as the pre-commit hook, by hand, and in CI, so a change that passes locally passes in CI. Canonical examples: sorah/protobufable for a gem, ruby-no-kai/sponsor-app for a Rails app with generated code. references/ has copyable templates. Follow an existing project's own layout over this guide.
mise.toml, not .mise.toml. ruby/setup-ruby does not read the dotted name.[tools]
ruby = "4.0.6"
"aqua:jdx/hk" = "2.0.1"
"aqua:apple/pkl" = "0.31.1"
"aqua:rhysd/actionlint" = "1.7.12"
"aqua:zizmorcore/zizmor" = "1.30.1"
~/git/config/mise/tools.toml installs globally at latest. The project pin is what CI and other machines reproduce. Look up the current release before writing a version.aqua:<owner>/<repo> first, github:<owner>/<repo> when aqua has no entry. ruby, node and rust use the core plugins. Short registry names (hk, pnpm) resolve to a backend that can change underneath the project.# The protobuf release that google-protobuf in Gemfile.lock is built from.latest is right only when pinning means nothing, with the reason in a comment.rust = { version = "1.97.1", components = "rustfmt,clippy" } for a Rust project.[settings]
disable_backends = ["asdf"]
[settings.ruby]
compile = false
disable_backends = ["asdf"] keeps a tool from resolving to an unaudited asdf plugin. compile = false installs prebuilt Rubies.lockfile = true comes from the global configuration. Commit mise.lock, and never commit mise.local.lock.[env] holds only what the project needs to build, each with a comment. Sorbet projects set BUNDLE_FORCE_RUBY_PLATFORM = "false", because sorah's shell exports true and sorbet-static ships only platform gems.mise trust after creating or editing mise.toml; mise refuses to run tasks from an untrusted file.[tasks.pre-commit] run = "hk run pre-commit", and [tasks.setup] run = "bin/setup" when it has one.gen:proto, ui:install, lint:proto. Give each a description.dir = "{{config_root}}/ui".sources and outputs = { auto = true }, so mise skips it while its inputs are unchanged.run = "pnpm install --frozen-lockfile && touch node_modules/.pnpm/lock.yaml" with that file as outputs.# hk's gen step and CI's gen job both run this, so registering a generator here
# covers both.
[tasks.gen]
description = "Run every generator whose output is checked into git"
depends = ["gen:proto", "gen:rbi"]
tapioca, stay out of gen and run on demand, with a comment saying when.amends "package://github.com/jdx/hk/releases/download/v2.0.1/[email protected]#/Config.pkl"
import "package://github.com/jdx/hk/releases/download/v2.0.1/[email protected]#/Builtins.pkl"
local linters = new Mapping<String, Step> {
// project steps first, then builtins in alphabetical order
}
hooks {
["pre-commit"] {
fix = true
stash = "git"
steps {
...linters
["no-commit-to-branch"] = Builtins.no_commit_to_branch
}
}
["fix"] {
fix = true
steps = linters
}
["check"] {
steps = linters
}
}
amends and import URLs carry the same version as the aqua:jdx/hk pin. Bump all three together.linters mapping feeds all three hooks, so the pre-commit hook, hk fix and hk check never drift apart. Only pre-commit adds no-commit-to-branch.actionlint, byte-order-marker, check-added-large-files, check-merge-conflict, check-symlinks, detect-private-key, mise, mixed-line-ending, newlines, pkl, pkl-format, trailing-whitespace, zizmor. Add buf_format and buf_lint for protobuf. Builtin names changed in hk 2 (byte_order_marker replaced the check/fix pair), so check the Builtins of the pinned version.// comment saying why it is shaped that way.{{files}} and batch = true:
["rubocop"] {
glob = List("**/*.rb", "**/*.rake", "Rakefile", "*.gemspec")
check = "bundle exec rubocop --force-exclusion {{files}}"
fix = "bundle exec rubocop --force-exclusion --autocorrect {{files}}"
batch = true
}
--force-exclusion makes RuboCop honour its own Exclude for files hk passes explicitly.// steep type checks the whole project at once, so no file list is passed.workspace_indicator (.rubocop.yml, pnpm-lock.yaml, Cargo.toml) with cd {{workspace}} && ... {{ workspace_files }}.["newlines"] = (Builtins.newlines) { exclude = generated + List(...) }.depends = "gen":
// mise skips each generator whose sources are unchanged, so this needs no
// glob. `hk check` skips it, and CI's gen job verifies the output instead.
["gen"] {
fix = "mise run gen"
stage = generated
}
List generated paths once and keep linters away from them: a top-level exclude = List("sig/generated/**", "lib/**/*_pb.rb") when nothing should touch them, or local generated = List(...) reused in each step's exclude and the gen step's stage. Add vendor/** when CI installs gems there.
hk install; never configure git hooks any other way. bin/setup runs it when hk is present: if command -v hk >/dev/null 2>&1; then hk install; fi.mise install then hk install.--no-verify. Fix what it reports, or ask.The lint job installs mise with jdx/mise-action and runs hk check --all. Steps that need setup the lint job lacks run in their own job and are skipped with --skip-step <name>, each with a comment. A repo with a gen task has a gen job that runs mise run --force gen and fails when git status --porcelain is not empty. The github-ci skill has the job templates.
references/gem.md: a complete mise.toml and hk.pkl for a Ruby gemreferences/app.md: mise.toml and hk.pkl fragments for an app with generated code, workspaces and a frontendWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sorah/config --plugin sorah-guides23 skills in this plugin
/codingThis skill should be used when writing or reviewing code in any language. Provides language-agnostic coding conventions for code quality, comments, error handling, and formatting. Project-specific conventions always take priority./commit-styleThis skill should be used when writing git commit messages, creating git commits, composing pull request titles and descriptions, or when the user asks to "commit", "git commit", "write commit message", "pull request", or "PR description". Provides conventions for subject lines, prefix patterns, body content, and verb choices./dsql-on-railsThis skill should be used when building, extending, or testing a Rails app on Amazon Aurora DSQL, or when moving a Rails app onto DSQL. Use it when writing a transaction, a uniqueness check, a schema change, a spec, a rake task, or CI for such an app, even if the user only says "add a model" or "fix this flaky spec" in such an app. Signs include `aws-sdk-dsql`, `pg-aws_rds_iam`, `aws_rds_iam_auth_token_generator`, a `*.dsql.<region>.on.aws` host, `ActiveRecord::SerializationFailure` with `OC000`/`OC001`, `retryable_transaction`, `non_idempotent_transaction`, `create index async`, `script/pdsql`, or the user mentioning "DSQL", "Aurora DSQL", or "OCC". Provides connection settings and adapter patches, OCC-aware transactions, schema constraints with psqldef, roles, per-developer schemas, RSpec setup, and CI against real clusters. Project-specific conventions always take priority./english-textThis skill should be used when writing English text on behalf of the user, such as GitHub issue/PR descriptions, code review comments, replies to maintainers or contributors, commit message bodies, business emails, or when the user asks to "write in English", "draft a reply", "write a PR description", "file an issue upstream", or "reply to this email". Provides register, phrasing, punctuation, and formatting conventions derived from the author's own GitHub activity, commits, and emails./github-ciThis skill should be used when writing, editing, or reviewing GitHub Actions workflows (`.github/workflows/*.yml`, composite actions in `.github/actions/`), or when setting up CI, a release pipeline, a Docker image build, or gem/crate publishing for a project. Use it whenever the user mentions "GitHub Actions", "CI", "workflow", "release workflow", "trusted publishing", "pin actions", "zizmor", "actionlint", or asks to "add tests to CI", "publish on tag", or "build a container image in CI", even if they never say "workflow". Provides the standard workflow layout (ci / `_test` / release), least-privilege and SHA-pinning rules, release and publishing patterns, and per-language test jobs. Project-specific conventions always take priority./japanese-textThis skill should be used when writing Japanese text, blog posts, diary entries, technical articles, prose, or when the user asks to write in Japanese, compose a blog post, draft a diary entry, or write technical content in Japanese. Provides writing style, orthography, and composition conventions across personal, technical, and corporate contexts.Other plugins' skills for the same job