build-debug

build-debug is a skill for Claude Code, Codex from NicoGenti/opencode-orchestrator-kit. It costs 70 tokens per session (1,566 once invoked), scanned C, original, MIT.

A bounded troubleshooting guide for local errors from TypeScript and common web build tools such as Vite, webpack, Rollup, esbuild, and Sass.

In plain words
What is it for?
Use it to investigate compiler, bundler, stylesheet, source-map, asset, and path-alias errors that reproduce locally.
Why use it?
It separates build-pipeline problems from application bugs, dependency installation failures, deployment failures, and computer-specific issues.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate compiler, bundler, stylesheet, source-map, asset, and path-alias errors that reproduce locally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nicogenti/opencode-orchestrator-kit/build-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NicoGenti/opencode-orchestrator-kit --skill build-debug
Clone the repo
git clone --depth 1 https://github.com/NicoGenti/opencode-orchestrator-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicogenti/opencode-orchestrator-kit/build-debug/github.svg)](https://agentmods.dev/skills/nicogenti/opencode-orchestrator-kit/build-debug)
Your own site
<a href="https://agentmods.dev/skills/nicogenti/opencode-orchestrator-kit/build-debug"><img src="https://agentmods.dev/badge/skills/nicogenti/opencode-orchestrator-kit/build-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/nicogenti/opencode-orchestrator-kit/build-debug"><img src="https://agentmods.dev/badge/skills/nicogenti/opencode-orchestrator-kit/build-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01566
Opus 5 $0.00035 $0.00783
Sonnet 5 $0.00014 $0.00313
Haiku 4.5 $0.00007 $0.00157

Measured 3d ago against content hash 03b8c034a327, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

build-debug scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `rm -rf node_modules/.cache` — drops the bundler's transform cache; slow to rebuild.
skills/build-debug/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build-Tool Debugging

A bounded playbook for diagnosing build-tool failures that reproduce locally and are unrelated to CI/CD or npm toolchain failures. This skill is opt-in for build-helper and SHOULD be loaded only after the orchestrator has classified the failure as a pure build-tool error (see agents/orchestrator.md "Routing Disambiguation: deploy-helper vs build-helper vs npm-helper vs pc-doctor").

Scope

In scope:

  • TypeScript compile errors (tsc, vue-tsc, tsgo) that are not application logic bugs.
  • Bundler errors: Vite, webpack, Rollup, esbuild, Parcel, Rspack.
  • Sass / PostCSS / CSS-module pipeline errors.
  • Source-map, asset, or public/ resolution failures inside the build.
  • Path-alias and tsconfig.json / jsconfig.json resolution drift.

Out of scope — delegate to another helper:

  • npm install / peer-dep / lockfile failures → npm-helper (skills/npm-debug).
  • CI/CD pipeline or deploy-platform failures → deploy-helper (skills/github-actions-cicd).
  • Windows-local environment issues → pc-doctor.

Triage Order (Read Before Acting)

  1. Capture the exact failing command and its full stderr. Quote the first error line and the file:line it points at verbatim — most bundlers print the actionable line first, then a noise stack.
  2. Confirm the project shape: package.json scripts, presence of tsconfig.json / jsconfig.json, bundler config file (e.g. vite.config.ts, webpack.config.js). Wrong-config-file-for-this-script is a common false lead when the repo has multiple build modes.
  3. Check Node + bundler versions (node -v, npm ls <bundler>). A version jump that changed defaults (Vite 4 → 5, webpack 4 → 5, TypeScript 4 → 5) is a frequent root cause.
  4. Reproduce minimally: drop the watch flag and any dev-only plugins. vite build is more diagnostic than vite dev; tsc --noEmit is more diagnostic than a bundler that wraps it.
  5. Check for stale caches: the build tool's own cache, plus node_modules/.cache, plus any .tsbuildinfo file. Only after the simple repro fails identically do you escalate to cache invalidation (see "Destructive Steps" below).

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 118 lines · 70 tokens per session scan C 03b8c034a327

Subscribe to this mod's changes

build-debug is a skill published in the GitHub repository NicoGenti/opencode-orchestrator-kit (5 stars, last pushed 4d ago), licensed MIT. It adds 70 tokens to every session and 1,566 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.