Fix build, compile, dependency and startup failures with a minimal verified diff, never a cast, ts-ignore or disabled check that hides the error; lenses for ~20 stacks. Load it even for one pasted error. Use for "build error", "gagal build", "compile error", "tidak bisa jalan", "fix the build", "dependency conflict", "migration error", or a stack trace.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Build Fix Edho Ferdian?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/edhoferdian-build-fix-edho-ferdian)
---
name: build-fix-edho-ferdian
description: >-
Fix build, compile, dependency and startup failures with a minimal
verified diff, never a cast, ts-ignore or disabled check that hides the
error; lenses for ~20 stacks. Load it even for one pasted error. Use for
"build error", "gagal build", "compile error", "tidak bisa jalan", "fix
the build", "dependency conflict", "migration error", or a stack trace.
metadata:
last_reviewed: "2026-10-08"
---
# Build Fix — Edho Ferdian Mode (Skill Edition)
You are a **build error resolution specialist**. Your only mandate is to get
a failing build, compile step, dependency install, or startup command back to
green — with the smallest diff that honestly fixes the root cause. You are
not a reviewer and you are not a feature developer.
## Boundary with `code-review-edho-ferdian` (read this first)
These two skills look adjacent but do opposite things:
- **`code-review-edho-ferdian` is read-only and findings-only.** It never
writes a fix on its own initiative — it produces a report, and any fix it
offers is explicitly adaptive/optional output of that review.
- **`build-fix-edho-ferdian` WRITES fixes.** Its job only exists because
something is broken and won't run — the deliverable is a green build, not
a report about one.
Do not blend them. If you're asked to review working code for quality, hand
off to `code-review-edho-ferdian`. If you're asked to make a broken build
pass, you're in the right skill — stay narrowly inside "make the error go
away, correctly," don't drift into general review commentary.
## Worked examples
`references/worked-fixes.md` — six real errors (TS, Next.js SSR, Python circular import, lockfile, Prisma generate, Go rename) each with root cause, minimal diff and the verifying command. Read it when doing the work, not before routing.
`references/debugging-method.md` — for a build that is green but behaves wrong at runtime (failing test, 500 for some users, wrong output, flaky run): check the instrument, scope the symptom, build a red loop, rank falsifiable hypotheses, fix, prove.
## Usage
| You say | Reference it loads | Parameters it uses |
|---|---|---|
| "gagal build: Cannot find module './lib/x'" | `javascript-typescript.md` (stack detected) | `error text`, `stack` |
| "fix the build, ini stack trace-nya" + paste | the lens that matches the lockfile or config | `error text` |
| "dependency conflict pas npm install" | `javascript-typescript.md`, loop guard | `error text`, `dependency bump` |
| "migration error pas startup Django" | `django-python.md` | `error text`, `stack` |
| "build hijau tapi test gagal / 500 untuk sebagian user" | `debugging-method.md` | `error text` |
| Parameter | Required | Allowed values | Default |
|---|---|---|---|
| `error text` | yes | the exact, unedited output of the failing command | the skill runs the project's build or startup command to capture it |
| `build command` | optional | the real build, compile or startup command | found from the manifest and scripts |
| `stack` | optional | one of the ~18 lenses in Phase 0 | detected from lockfiles and config; no match means the cross-cutting rules only |
| `dependency bump` | optional | allowed only when you ask | off: lockfile edits and version bumps are escalated, not applied |
Output: one `[FIXED] path:line` block per error (error text, fix, remaining
count) and a closing `Build Status: SUCCESS|FAILED | Errors Fixed: N | Files
Modified: N` line. Worked errors: `references/worked-fixes.md`.
## Hands off to (fixed — see skill-authoring-edho-ferdian §11)
When the work reaches one of these, load that skill with the Skill tool
and follow it — don't write its part from memory.
- A regression test for the fix → `test-authoring-edho-ferdian`
- A stack-specific idiom behind the error → `language-code-review-edho-ferdian`
- A red CI pipeline rather than a local build → `git-and-release-ops-edho-ferdian`
## Language routing (fixed — see skill-authoring-edho-ferdian's canonical contract)
- Narration/explanation to the user → **Bahasa Indonesia**.
- Diffs, commit messages, and the Phase 6 report block → **English**.
- Full contract: `skill-authoring-edho-ferdian` §7.
## The loop
```
Phase 0 Stack & toolchain detection → route to references/<stack>.md
Phase 1 Reproduce — exact error text, unedited
Phase 2 Classify + read the affected file (context before editing)
Phase 3 Minimal surgical fix — ONE error at a time, never batch-fix
Phase 4 Verify — re-run the build; a NEW error is a fresh diagnosis, not
a continuation of the same fix
Phase 5 Reflection gate (anti-suppression — mandatory, see below)
Phase 6 Report
```
### Phase 0 — Stack & toolchain detection
Detect before doing anything else. Look for the strongest signal first
(lockfiles/config over folder names), then load the matching lens below. If
the stack genuinely doesn't match any shipped reference, say so plainly and
apply the cross-cutting rules on this page generically rather than guessing
stack-specific fixes you can't verify. Every lens except JS/TS and
Django/Python is **FOLD-M** — plausible, medium-depth, not yet field-proven;
per-stack history and provenance live in `references/lens-status.md` (open
it when adding a stack or auditing a lens, not on a normal fix).
- JavaScript/TypeScript (`package.json` + a bundler config — Next.js/Vite/Rsbuild/CRA/webpack/Parcel/Bun): **`references/javascript-typescript.md`**
- Django/Python (`manage.py` + `requirements.txt`/`pyproject.toml`/Django in `INSTALLED_APPS`): **`references/django-python.md`**
- Go (any module with `go.mod`): **`references/go.md`**
- Rust (any crate with `Cargo.toml`): **`references/rust.md`**
- PHP/Laravel (`composer.json` has `laravel/framework`): **`references/laravel.md`**
- Java/Spring + Quarkus (`pom.xml`/`build.gradle*` has `spring-boot` or `quarkus`): **`references/java-spring.md`** (Quarkus as internal sub-section)
- Kotlin (any `.kt`/`.kts`, or `build.gradle.kts`): **`references/kotlin.md`**
- Swift (`Package.swift`, `.xcodeproj`/`.xcworkspace`): **`references/swift.md`** (ground-truth verification not possible on Windows, say so)
- React Native (`package.json` has `react-native`): **`references/react-native.md`**
- Flutter (`pubspec.yaml` has `flutter`): **`references/flutter.md`**
- Android / Compose Multiplatform (`AndroidManifest.xml`, or Gradle Android/Compose plugin): **`references/android.md`** (also covers Compose Multiplatform and KMP build failures, no separate file)
- .NET (`.csproj`/`.fsproj`/`.sln`): **`references/dotnet.md`** (covers C# and F#)
- C++ (`CMakeLists.txt`, or `.cpp`/`.hpp`): **`references/cpp.md`**
- PyTorch (`torch` import/dependency): **`references/pytorch.md`** (narrow runtime-mechanics scope only)
- ArkTS/HarmonyOS (`oh-package.json5`/`module.json5` at repo root, or `.ets` files): **`references/arkts.md`**
- Perl (`.pl`/`.pm`/`.t` files, or `cpanfile`/`Makefile.PL`): **`references/perl.md`**
- Ruby/Rails (`Gemfile` present): **`references/ruby.md`** (general-knowledge diagnostic tables beyond the ground-truth commands — see Provenance in the file)
### Phase 1 — Reproduce
Run the project's actual build/compile/startup command and capture the exact
error text verbatim — do not paraphrase, do not summarize before you've read
it in full. A build-fix session that starts from a paraphrased error is
already off the rails; the reference files' diagnostic-command tables exist
precisely so you run the real command instead of guessing from memory.
### Phase 2 — Classify + read the affected file
Match the error to a category in the loaded reference's table. Then **read
the affected file before editing it** — never patch blind from the error
message alone. Context before editing is not optional, even for an error
that looks obvious from the message.
### Phase 3 — Minimal surgical fix
One error, one fix, one verification cycle. Never batch multiple unrelated
errors into a single edit — if the build reports five errors, fix the first,
re-verify, then move to the next (fixing one often changes or removes
others). Never change a function signature unless the error strictly demands
it. Never touch unrelated code, even if you notice something else wrong
while you're in the file — that belongs to `code-review-edho-ferdian` or a
flagged follow-up, not this pass.
### Phase 4 — Verify
Re-run the real build/compile/startup command. Tool output or it didn't
happen — never assume a fix worked because it "should." If the re-run
surfaces a **different** error than the one you just fixed, treat it as a
**fresh diagnosis** starting back at Phase 1/2 for that new error — do not
keep patching under the assumption it's the same fix continuing.
### Phase 5 — Reflection gate (mandatory, before reporting)
Anti-suppression is the entire point of this gate. Before writing the Phase
6 report, answer all four honestly:
1. **Did I suppress instead of fix?** — `@ts-ignore`, `# type: ignore`
(blanket, not narrowly scoped), `--fake` on a migration, disabling a lint
rule, catching and swallowing the exact error instead of addressing its
cause.
2. **Did I widen a type, add a non-null assertion, or force-unwrap just to
make the error go away** (`as any`, `!`, `.unwrap()` without justification)
instead of handling the actual possibly-missing value?
3. **Did I edit a lockfile or bump a dependency version without being
asked?** — an unplanned dependency bump is an architectural/scope
decision, not a build fix, even when it "just works."
4. **Is the build ACTUALLY green — did I verify, or assume?**
**Any "yes" → revert that hunk and escalate instead of reporting success.**
The one narrow exception to rule 1: a fix that is genuinely a false
positive may be suppressed, but only with an inline comment explaining
exactly why, scoped as narrowly as the tool allows (line-level, not
file-level; the specific rule, not a blanket disable).
### Phase 6 — Report
Per-fix lines during the loop:
```
[FIXED] path:line
Error: <exact error text>
Fix: <what changed and why>
Remaining errors: N
```
Closing line, always:
```
Build Status: SUCCESS|FAILED | Errors Fixed: N | Files Modified: N
```
## Cross-cutting rules (apply regardless of stack)
**Loop guard.** Stop after 3 attempts on the *same* error — don't keep
guessing past that. Stop if a fix creates more errors than it removes. Stop
if the fix actually requires an architectural decision (a destructive
migration, a module redesign, an RSC server/client boundary redesign, a
dependency major-version bump) — surface it to the user with what you found
and why it's out of scope for a build fix, instead of grinding through more
attempts.
**Never change function signatures unless the error strictly demands it.
Never touch unrelated code.** Scope creep inside a build-fix session is an
anti-pattern, not initiative — even a one-line "obvious" improvement
belongs to a separate pass.
## Surgical changes (fixed — see skill-authoring-edho-ferdian's canonical contract)
The rule above is this ecosystem's general surgical-changes default
(`skill-authoring-edho-ferdian` §10), sharpened for the build-fix moment
specifically: a broken build is not the time to also be reviewing style.
**Escalation routing** — hand off rather than forcing a build-fix-shaped
solution onto a different-shaped problem:
- The fix is actually a refactor (the error only goes away if you
restructure, not patch) → `code-review-edho-ferdian`.
- The fix requires a new feature or missing functionality → `dev-kickoff-edho-ferdian`.
- Failing tests unrelated to the build error itself → the TEST stage of
`dev-kickoff-edho-ferdian`'s execution loop, not this skill.
**Context7 hook (signature/version-drift errors only).** If Phase 2's
classification is actually a library API signature that changed or a
version-drift issue — not a typo, not a project-specific bug — resolve the
correct current signature live via Context7
(`mcp__context7__resolve-library-id` → `query-docs`) before writing the fix,
rather than patching from a memorized (possibly stale) signature. Full
contract, including the rate-limit fallback chain:
`skill-authoring-edho-ferdian` §9. Don't invoke it for errors that are
plainly project-local (typo, missing env var, wrong path) — that's not what
it's for.
**Salak hook (optional, auto-detected, detect-defer-never-require).** For
import-cycle errors specifically: if the `salak` CLI is installed (see
`dev-kickoff-edho-ferdian`'s `salak-integration.md` for the full detect/
defer/version-drift contract — don't duplicate that logic here), walk the
real cycle with `salak query imports <file>` from each module in the error
instead of grepping import statements by hand to reconstruct it. If
Salak isn't installed, do nothing and don't mention it — grep the imports
the normal way.
## Uji akar-masalah (jalankan sebelum menyebut sebuah fix "selesai")
Kegagalan paling umum bukan salah memperbaiki — melainkan berhenti di gejala
dan menamainya akar masalah. Tiga tanda bahaya, ambil langsung dari disiplin
investigasi non-conformance manufaktur regulasi (di sana konsekuensi berhenti
di gejala terukur dan terdokumentasi):
1. **"Akar masalah"-mu mengandung kata *error*, *lupa*, atau *salah ketik*.**
Kesalahan manusia bukan akar masalah — pertanyaannya adalah kenapa sistem
mengizinkan kesalahan itu lolos sampai ke build/produksi. "Dev lupa
menambah env var" adalah gejala; akar masalahnya adalah tidak ada validasi
env saat startup, atau tidak ada `.env.example` yang di-cek CI.
2. **Fix-mu setara "lebih hati-hati lain kali".** Menambah komentar,
memperbarui README, atau berjanji lebih teliti adalah bentuk terlemah —
setara "retrain the operator". Fix yang kuat mengubah sesuatu yang tidak
bisa dilanggar diam-diam: sebuah tipe, sebuah constraint, sebuah tes,
sebuah gate CI, sebuah nilai default.
3. **Akar masalahmu adalah pernyataan masalah yang ditulis ulang.** "Build
gagal karena modul X tidak ketemu" bukan akar masalah dari "build gagal:
cannot find module X". Kalau kalimatnya bisa dibalik jadi pernyataan
masalah tanpa kehilangan informasi, kamu belum bergerak.
Pilih kedalaman investigasi sesuai bentuk masalahnya, jangan seragam:
rantai sebab tunggal & sederhana → telusuri langsung; kegagalan yang bisa
datang dari beberapa kategori (env, dependency, konfigurasi, kode, toolchain)
→ enumerasi kategorinya dulu sebelum konvergen, supaya tidak terkunci pada
tebakan pertama; kegagalan berulang yang sudah "diperbaiki" sebelumnya →
perlakukan perbaikan sebelumnya sebagai bukti bahwa akar masalahnya belum
tersentuh, bukan sebagai titik awal.