Skip to content
Back to skills

Build Failure

ASecurity

Use when compilation, typechecking, bundling, or another build step fails. Read the first error, isolate the hunk, and do not run tests until the build is green. Distinct from a test regression: the code never ran.

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
developmenttypescriptrustgojavakotlin

Security analysis

A100/100

Scanned November 14, 2026

npx -y skills add moah0911/aftermath --skill build-failure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Failure?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Failure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/moah0911-build-failure/badge)](https://www.skillsdirectory.com/skills/moah0911-build-failure)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build-failure
description: >
  Use when compilation, typechecking, bundling, or another build step fails.
  Read the first error, isolate the hunk, and do not run tests until the build
  is green. Distinct from a test regression: the code never ran.
license: MIT
---

# Build Failure

A build failure means the code never reached the tests. Fix the build before interpreting any test result.

## Steps

1. Stop. No new edits until the first error is read.
2. Paste the first error verbatim, with file and line. Later errors are usually noise from the first one.
3. Identify the last edit that touches that file or symbol. Diff it.
4. Fix only that hunk. Do not disable type checks, ignore errors, or loosen compiler flags to get past it.
5. Re-run the same build command. Green build → run the tests. Still red → use the `retry-loop` ladder; do not vary flags blindly.
6. If the build was already red before your edit, say so with evidence instead of claiming you broke it.

## Common signatures

| Tool | Signature |
|------|-----------|
| TypeScript | `error TS2322`, `error TS7006` |
| Rust | `error[E0308]`, `error[E0433]` |
| Go | `cannot use ... as`, `undefined:` |
| Java / Kotlin | `BUILD FAILED`, `compilation failed` |
| Bundlers | `Module not found`, `Failed to compile`, `ELIFECYCLE` |

## Boundaries

- Build failures are advisory in the plugin: they do not freeze forward edits, because fixing the build requires an edit.
- Checkpoint auto-revert applies to green→red tests, not build failures.
- Never "fix" a build by deleting the failing code or suppressing the diagnostic. That is hiding the break.
- If the build fails because a dependency is missing, switch to `dependency-failure`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.