vibeguard: Command for Claude Code

.claude/commands/vibeguard/build-fix.md

VibeGuard: Build Fix is a command for Claude Code from majiayu000/vibeguard. It costs 28 tokens per session (651 once invoked), scanned A, original, MIT.

A build-repair command that reads compiler errors, finds their root causes, makes the smallest necessary changes, and checks the build again. A build turns source code into a runnable or validated program.

In plain words
What is it for?
Use it to diagnose and repair Rust, TypeScript, Go, or Python build and compilation errors, then verify that the build passes.
Why use it?
It helps separate the original build failure from follow-on errors and avoids unrelated code changes.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is majiayu000/vibeguard's own configuration. It tells Claude Code how to work on vibeguard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vibeguard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to majiayu000/vibeguard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/majiayu000/vibeguard/main/.claude/commands/vibeguard/build-fix.md
Clone the repo
git clone --depth 1 https://github.com/majiayu000/vibeguard

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 VibeGuard: Build Fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/majiayu000/vibeguard/build-fix/github.svg)](https://agentmods.dev/commands/majiayu000/vibeguard/build-fix)
Your own site
<a href="https://agentmods.dev/commands/majiayu000/vibeguard/build-fix"><img src="https://agentmods.dev/badge/commands/majiayu000/vibeguard/build-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 VibeGuard: Build Fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/majiayu000/vibeguard/build-fix"><img src="https://agentmods.dev/badge/commands/majiayu000/vibeguard/build-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 651 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.00028 $0.00651
Opus 5 $0.00014 $0.00326
Sonnet 5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

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

Security

Grade A, and why

VibeGuard: 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 9d 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.

.claude/commands/vibeguard/build-fix.md · 76 lines

What it actually says

Core Concept

  • The goal of build error fixing is to make the build pass, not to refactor the code
  • Fix from the root cause, one fix may solve multiple errors
  • Minimum change principle: only fix build errors, no additional improvements

Steps

  1. Catch build errors

    • If the user provides error information: parse directly
    • If the user provides a build command: run the command to capture the output
    • If no parameters: try to detect the project type and run the corresponding build command
      • Rust: cargo build 2>&1
      • TypeScript: npx tsc --noEmit 2>&1
      • Go: go build ./... 2>&1
      • Python: python -m py_compile <files> 2>&1
  2. Parse error

    • Extraction: file path, line number, error type, error message
    • Group by files
    • Identify dependencies between errors (A causes B)
  3. Locate the root cause

    • Read the source file involved in the error
    • Distinguish between direct causes and root causes
    • Multiple errors may originate from the same root cause → Prioritize fixing the root cause
  4. Perform minimal repair

    • Only fix build errors, no additional improvements (L5)
    • Do not use @ts-ignore / # type: ignore / //nolint bypass
    • Bypass type errors without any / as any
    • Solve problems that the standard library can solve without introducing new dependencies (U-06)
  5. Verification

    • Rerun the build command to confirm zero errors
    • Run tests to confirm there are no regressions
    • Run type check confirmed passed
  6. Output repair report

    ## Build repair report
    
    ### Error summary
    - Total number of errors: N
    - Root factor: M
    - Number of files repaired: K
    
    ### Fix details
    | File:line number | Error | Fix |
    |-----------|------|------|
    | ...       | ...  | ...  |
    
    ### verify
    - Build: Pass/Fail
    - Test: pass/fail
    

Guardrails

  • Don't change code style in fix (U-07)
  • Not fixing unrelated issues all at once (U-09)
  • Must verify that the build passes after fixing

Reference

  • Common rules: rules/claude-rules/common/
  • Language rules: rules/claude-rules/<lang>/
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. 9d ago First seen · 76 lines · 28 tokens per session scan A 865ab609fe82

Subscribe to this mod's changes

VibeGuard: Build Fix is a command published in the GitHub repository majiayu000/vibeguard (41 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 651 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.