← Catalog

@srobroek/pi-toolchain

Toolchain defaults as skills: stack, frontend, infrastructure, languages, observability, shell, Terraform, caches, background jobs and worktree coexistence.

Package

Install

Install with PiG

pig install npm:@srobroek/pi-toolchain

Install with Pi

pi install npm:@srobroek/pi-toolchain
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ]
}

README

Written by the package's publisher, shown as published in version 0.11.1 (README.md). PiG does not review it.

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.

SkillWhen
toolchain-stack-defaultsStack, package manager, task runner, adding a dependency (bun, uv, mise, just; deps through the package manager CLI)
toolchain-frontendFrontend framework, UI kit, client and server state
toolchain-infrastructureTerraform/OpenTofu vs CDK vs Kubernetes and Helm
toolchain-languagesHow to choose a library or tool, defaults that hold in every language, and where the per-language standards live (lang-<language>-libraries)
toolchain-apiAPI style (REST/OpenAPI, gRPC, Connect, GraphQL, events, webhooks, MCP), spec versions, contract ownership, design rules, security baseline, API test tools
toolchain-quality-observabilityOpenTelemetry by default, and one scanner per gate: secrets, dependency audit, static analysis, dead code, duplication, containers and IaC, CI workflows, SBOM
toolchain-asset-ownershipWhere OpenCode config, plugins, skills and agents live: chezmoi, this repository
coexistence-worktreeOther agents or humans editing the same checkout; moving to a linked worktree
shell-languageShell portability, quoting, command safety, shellcheck
terraform-languageTerraform, OpenTofu and HCL conventions
infrastructure-tfstate-guardAny Terraform or OpenTofu state operation or *.tfstate edit
backend-background-jobsWorkers, queues, retries, idempotency, dead letters
ci-github-actionsGitHub Actions workflows: one required gate, matrices, concurrency, SHA-pinned actions, attestation, caches
ops-toolchain-cache-policyShared, bounded download and compiler caches; worktree build output
ops-no-global-cargo-targetSetting 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-guard interrupted terraform state rm/mv/push, rm of a *.tfstate file, and redirects over terraform.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-target advised on edits that set a global Cargo target directory in .cargo/config.toml, shell profiles, mise config or CI workflows.

  • toolchain-asset-ownership described omp config under ~/.omp/agent/ and the omp marketplace; it now describes ~/.config/opencode/ and this repository.

  • toolchain-stack-defaults no longer mentions the omp prefer-tools-advisory and dep-manifest-advisory extensions, which are not ported.

  • References to other rules and skills name the skill (quality-code-design is in the quality plugin; chezmoi-editor is 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