build-fix

build-fix is a command for Claude Code from sangrokjung/claude-forge. It costs 12 tokens per session (241 once invoked), scanned A, original, MIT.

A build-error fixing procedure for TypeScript projects. It runs the project build, groups and explains errors, applies fixes one at a time, and checks the build again.

In plain words
What is it for?
Use it to diagnose and repair TypeScript or other build failures, verify which errors were fixed, and report any remaining or newly introduced errors.
Why use it?
It turns a long build-error list into a controlled sequence of fixes and catches regressions after each change. It also stops when a problem persists or a fix creates new errors.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-forge plugin — 33 skills, 39 commands, 17 agents shipped together

Good fit Use it to diagnose and repair TypeScript or other build failures, verify which errors were fixed, and report any remaining or newly introduced errors.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sangrokjung/claude-forge/build-fix
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.

Clone the repo
git clone --depth 1 https://github.com/sangrokjung/claude-forge

Made for: Claude Code.

Or install claude-forge, the plugin that ships this one along with the rest of its 33 skills, 39 commands, 17 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/sangrokjung/claude-forge/build-fix.svg)](https://agentmods.dev/commands/sangrokjung/claude-forge/build-fix)
Your own site
<a href="https://agentmods.dev/commands/sangrokjung/claude-forge/build-fix"><img src="https://agentmods.dev/badge/commands/sangrokjung/claude-forge/build-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00012 $0.00241
Opus 5 $0.00006 $0.00120
Sonnet 5 $0.00002 $0.00048
Haiku 4.5 $0.00001 $0.00024

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

Security

Grade A, and why

build-fix scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

commands/build-fix.md · 37 lines

What it actually says

참고: 이 스킬은 build-error-resolver 에이전트를 호출하지 않고 인라인 실행됩니다. 에이전트의 memory 학습이 필요하면 Agent 도구로 build-error-resolver를 직접 호출하세요.

Build and Fix

Incrementally fix TypeScript and build errors:

  1. Run build: npm run build or pnpm build

  2. Parse error output:

    • Group by file
    • Sort by severity
  3. For each error:

    • Show error context (5 lines before/after)
    • Explain the issue
    • Propose fix
    • Apply fix
    • Re-run build
    • Verify error resolved
  4. Stop if:

    • Fix introduces new errors
    • Same error persists after 3 attempts
    • User requests pause
  5. Show summary:

    • Errors fixed
    • Errors remaining
    • New errors introduced

Fix one error at a time for safety!

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. 8d ago First seen · 37 lines · 12 tokens per session scan A 05db4157e3fe

Subscribe to this mod's changes

build-fix is a command published in the GitHub repository sangrokjung/claude-forge (825 stars, last pushed 5d ago), licensed MIT. It adds 12 tokens to every session and 241 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.