LegendaryTeam_For_Claude: Command for Claude Code

.claude/commands/build-fix.md

build-fix is a command for Claude Code from RegardV/LegendaryTeam_For_Claude. It costs 0 tokens per session (2,506 once invoked), scanned A, original, MIT.

A command for diagnosing and fixing build failures, such as compilation errors, missing modules, dependency problems, and configuration mistakes.

In plain words
What is it for?
It helps repair general build errors, TypeScript problems, module-resolution failures, dependency issues, and other build-related configuration errors.
Why use it?
It organizes error investigation around the root cause and checks whether the build succeeds after fixes.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is RegardV/LegendaryTeam_For_Claude's own configuration. It tells Claude Code how to work on LegendaryTeam_For_Claude 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 LegendaryTeam_For_Claude configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Module not found: Can't resolve '../services/userService'.

Reuse

Borrowing it

Nothing to install: this file belongs to RegardV/LegendaryTeam_For_Claude. 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/RegardV/LegendaryTeam_For_Claude/main/.claude/commands/build-fix.md
Clone the repo
git clone --depth 1 https://github.com/RegardV/LegendaryTeam_For_Claude

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/regardv/legendaryteam_for_claude/build-fix"><img src="https://agentmods.dev/badge/commands/regardv/legendaryteam_for_claude/build-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,506 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.00000 $0.02506
Opus 5 $0.00000 $0.01253
Sonnet 5 $0.00000 $0.00501
Haiku 4.5 $0.00000 $0.00251

Measured 10d ago against content hash d5e8bf4ff9f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 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.

.claude/commands/build-fix.md · 528 lines

How it starts

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

/build-fix - Build Error Diagnosis & Resolution

Diagnose and fix build errors, compilation failures, and dependency issues.


Usage

# Diagnose and fix build errors
/build-fix

# Fix specific build error
/build-fix "Module not found: Can't resolve 'react'"

# Fix TypeScript errors
/build-fix typescript

# Fix dependency issues
/build-fix deps

# Verbose mode with detailed diagnostics
/build-fix --verbose

What This Command Does

  1. Runs build to identify errors
  2. Analyzes error messages and stack traces
  3. Diagnoses root cause of build failures
  4. Implements fixes systematically
  5. Verifies build succeeds after fixes
  6. Reports what was fixed and why

Command Flow

Step 1: Run build and capture errors
  → npm run build (or equivalent)
  → Collect all error messages
  → Categorize errors by type

Step 2: Analyze errors
  → TypeScript errors
  → Module resolution errors
  → Dependency errors
  → Configuration errors

Step 3: Fix errors systematically
  → Start with blocking errors
  → Fix one category at a time
  → Verify each fix

Step 4: Verify and report
  → Run full build
  → Confirm success
  → Document fixes applied

Invokes Agent

@BugResolver will handle this command with the following context:

Task: Diagnose and fix build errors
Context: Build is currently failing

Requirements:
1. Run build to identify all errors
2. Categorize and prioritize errors
3. Fix errors systematically (one at a time)
4. Verify build succeeds after each fix
5. Document all fixes applied
6. Report root causes and prevention strategies

Output:
- List of errors found
- Fixes applied for each error
- Build status (success/failure)
- Recommendations for prevention

Common Build Errors & Fixes

1. TypeScript Type Errors

Error:

src/auth.ts(45,12): error TS2339: Property 'id' does not exist on type 'User | null'

Diagnosis:

  • TypeScript can't guarantee user is not null
  • Accessing user.id without null check fails type checking

Read the full file on GitHub · 528 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. 10d ago First seen · 528 lines · 0 tokens per session scan A d5e8bf4ff9f7

Subscribe to this mod's changes

build-fix is a command published in the GitHub repository RegardV/LegendaryTeam_For_Claude (19 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,506 tokens. 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.