@srobroek/pi-toolchain0.13.0
Toolchain defaults as skills: stack, frontend, infrastructure, languages, observability, shell, Terraform, caches, background jobs and worktree coexistence.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
toolchain
Toolchain, backend, infrastructure and operations defaults, as skills the model loads when the description matches.
In OpenCode the toolchain-*, ops-* and ci-* skills set opencode/autoinvoke: false and are
listed as one router, toolchain-guide, whose body maps each situation to the skill to load
by id; the other skills stay listed. Claude Code ignore that metadata, so there
every skill is listed and triggers directly.
| Skill | When |
|---|---|
toolchain-stack-defaults |
Stack, package manager, task runner, adding a dependency (bun, uv, mise, just; deps through the package manager CLI) |
toolchain-frontend |
Frontend framework, UI kit, client and server state |
toolchain-infrastructure |
Terraform/OpenTofu vs CDK vs Kubernetes and Helm |
toolchain-languages |
How to choose a library or tool, defaults that hold in every language, and where the per-language standards live (lang-<language>-libraries) |
toolchain-api |
API style (REST/OpenAPI, gRPC, Connect, GraphQL, events, webhooks, MCP), spec versions, contract ownership, design rules, security baseline, API test tools |
toolchain-quality-observability |
OpenTelemetry by default, and one scanner per gate: secrets, dependency audit, static analysis, dead code, duplication, containers and IaC, CI workflows, SBOM |
toolchain-asset-ownership |
Where OpenCode config, plugins, skills and agents live: chezmoi, this repository |
coexistence-worktree |
Other agents or humans editing the same checkout; moving to a linked worktree |
shell-language |
Shell portability, quoting, command safety, shellcheck |
terraform-language |
Terraform, OpenTofu and HCL conventions |
infrastructure-tfstate-guard |
Any Terraform or OpenTofu state operation or *.tfstate edit |
backend-background-jobs |
Workers, queues, retries, idempotency, dead letters |
ci-github-actions |
GitHub Actions workflows: one required gate, matrices, concurrency, SHA-pinned actions, attestation, caches |
ops-toolchain-cache-policy |
Shared, bounded download and compiler caches; worktree build output |
ops-no-global-cargo-target |
Setting CARGO_TARGET_DIR or [build].target-dir to a global directory |
Changes from omp
On omp these were rules. Three were tool-triggered (TTSR) rules that fired on a matching shell command or file edit; here every rule is a skill, and the regex triggers are gone.
infrastructure-tfstate-guardinterruptedterraform state rm/mv/push,rmof a*.tfstatefile, and redirects overterraform.tfstate. To keep a hard gate, add permission rules (test each pattern before relying on it):{ "permissions": [ { "action": "edit", "resource": "**/*.tfstate", "effect": "deny" }, { "action": "edit", "resource": "**/*.tfstate.*", "effect": "deny" }, { "action": "shell", "resource": "terraform state rm *", "effect": "ask" }, { "action": "shell", "resource": "terraform state mv *", "effect": "ask" }, { "action": "shell", "resource": "terraform state push *", "effect": "ask" }, { "action": "shell", "resource": "tofu state rm *", "effect": "ask" }, { "action": "shell", "resource": "tofu state mv *", "effect": "ask" }, { "action": "shell", "resource": "tofu state push *", "effect": "ask" } ] }ops-no-global-cargo-targetadvised on edits that set a global Cargo target directory in.cargo/config.toml, shell profiles, mise config or CI workflows.toolchain-asset-ownershipdescribed omp config under~/.omp/agent/and the omp marketplace; it now describes~/.config/opencode/and this repository.toolchain-stack-defaultsno longer mentions the ompprefer-tools-advisoryanddep-manifest-advisoryextensions, which are not ported.References to other rules and skills name the skill (
quality-code-designis in the quality plugin;chezmoi-editoris not in this repository).
Install
Install the Pi package from npm:
pi install npm:@srobroek/pi-toolchain
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/toolchain/opencode'
Claude Code install the same skills from this repository's marketplace:
claude plugin marketplace add srobroek/harness-plugins
claude plugin install toolchain@harness-plugins