build-and-fix

build-and-fix is a skill for Claude Code from yu-iskw/skill-inspector. It costs 43 tokens per session (373 once invoked), scanned A, original, Apache-2.0.

A build-and-repair workflow that runs `pnpm build`, examines failures, applies the smallest necessary code or configuration change, and builds again.

In plain words
What is it for?
Use it when a project fails to build, has TypeScript compilation errors or type mismatches, or needs checking after major changes.
Why use it?
Build errors can come from incorrect types, imports, or settings and may require several rounds of diagnosis. This workflow keeps the repair and verification steps together.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when a project fails to build, has TypeScript compilation errors or type mismatches, or needs checking after major changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yu-iskw/skill-inspector/build-and-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.

Any agent
npx skills add yu-iskw/skill-inspector --skill build-and-fix
Clone the repo
git clone --depth 1 https://github.com/yu-iskw/skill-inspector

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/build-and-fix/github.svg)](https://agentmods.dev/skills/yu-iskw/skill-inspector/build-and-fix)
Your own site
<a href="https://agentmods.dev/skills/yu-iskw/skill-inspector/build-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/build-and-fix/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-and-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/yu-iskw/skill-inspector/build-and-fix"><img src="https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/build-and-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 373 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.00043 $0.00373
Opus 5 $0.00022 $0.00187
Sonnet 5 $0.00009 $0.00075
Haiku 4.5 $0.00004 $0.00037

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

Security

Grade A, and why

build-and-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 10d 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

1 near-identical copy found in the catalogue:

.claude/skills/build-and-fix/SKILL.md · 41 lines

What it actually says

Build and Fix Loop

Purpose

An autonomous loop for the agent to identify, analyze, and fix build errors using pnpm build.

Loop Logic

  1. Identify: Run pnpm build to identify build failures.
  2. Analyze: Examine the build output to determine:
  3. Fix: Apply the minimum necessary change to resolve the error (e.g., fixing TypeScript types, correcting imports, or updating configurations).
  4. Verify: Re-run pnpm build.
    • If passed: Finish.
    • If failed: Analyze the new failure and repeat the loop.

Termination Criteria

  • The project builds successfully (as reported by pnpm build).
  • Reached max iteration limit (default: 5).
  • The error persists after multiple distinct fix attempts, indicating a need for human intervention.

Examples

Scenario: Fixing a TypeScript compilation error

  1. pnpm build fails because of a type mismatch in packages/common/src/index.ts.
  2. Agent analyzes the error and finds an incorrect interface implementation.

Resources

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. 10d ago First seen · 41 lines · 43 tokens per session scan A f068a331b8f7

Subscribe to this mod's changes

build-and-fix is a skill published in the GitHub repository yu-iskw/skill-inspector (2 stars, last pushed 9d ago), licensed Apache-2.0. It adds 43 tokens to every session and 373 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

codex

OpenAI Codex CLI wrapper — three modes. Code review: independent diff review via codex review with pass/fail gate. Challenge: adversarial mode that tries to break your code. Consult: ask codex anything with session continuity for follow-ups. The "200 IQ autistic developer" second opinion. Use when asked to "codex…

CarbeneAI/Forge · 95 tokens

canary

Post-deploy canary monitoring. Watches the live app for console errors, performance regressions, and page failures using the browse daemon. Takes periodic screenshots, compares against pre-deploy baselines, and alerts on anomalies. Use when: "monitor deploy", "canary", "post-deploy check", "watch production", "verify…

CarbeneAI/Forge · 75 tokens

investigate

Systematic debugging with root cause investigation. Four phases: investigate, analyze, hypothesize, implement. Iron Law: no fixes without root cause. Use when asked to "debug this", "fix this bug", "why is this broken", "investigate this error", or "root cause analysis". Proactively suggest when the user reports…

CarbeneAI/Forge · 85 tokens

RedTeam

Adversarial analysis with parallel agents to stress-test ideas and strategies. USE WHEN user mentions red team, devil's advocate, adversarial analysis, stress test idea, challenge proposal, poke holes, find weaknesses, OR wants critical evaluation of plans, proposals, strategies, or arguments.

CarbeneAI/Forge · 59 tokens

wiki-lint

Health check the Obsidian wiki vault. Finds orphan pages, dead wikilinks, stale claims, missing cross-references, frontmatter gaps, and empty sections. Creates or updates Dataview dashboards. Generates canvas maps. Triggers on: "lint", "health check", "clean up wiki", "check the wiki", "wiki maintenance", "find…

CarbeneAI/Forge · 84 tokens

anti-debug-bypass

Detect and neutralize anti-debug / anti-VM checks — IsDebuggerPresent, ptrace, NtGlobalFlag, timing, hardware-breakpoint detection.

MingyiSecLab/Mingyi-Atlas · 35 tokens