AGENT SKILL

build-fix-edho-ferdian

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.

License 许可
MIT
所属仓库
edhoferdian/EEF
最近更新
2026-10-30
Stars
★ 22
Forks
0

01 前言 Front Matter

name
build-fix-edho-ferdian
metadata
{ "last_reviewed": "2026-10-08" }
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.

02 资源文件 18

03 SKILL.md 正文

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.

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.

04 同仓库更多 Skills

edhoferdian
edhoferdian/EEF

video-style-edho-ferdian

Measure a reference video's look and pacing (colour grade as a 3D LUT, cut rhythm, overlays) and reproduce it: grade, cut and composite new footage, verify numerically, hand off an NLE timeline. Use for "tiru look video ini", "samakan grading", "bikin video dengan gaya referensi", "LUT dari referensi", "cut rhythm".

★ 22
edhoferdian
edhoferdian/EEF

test-authoring-edho-ferdian

Write unit and component tests well: React Testing Library, pytest, Go and Vue, plus regression-test patterns. Use for "tulis test untuk component ini", "bagaimana test hook ini", "test yang bagus untuk fitur X", "tulis test pytest/Go/Vue", or dev-kickoff's TEST stage.

★ 22
edhoferdian
edhoferdian/EEF

system-design-edho-ferdian

Mid-project architecture decisions: ADRs, trade-off analysis, non-functional requirements, scaling tiers and blast radius. Use for "desain arsitektur", "keputusan teknis besar", "bikin ADR", "trade-off antara X dan Y", "microservices atau monolith", "apa yang rusak kalau X diubah", or a capacity question.

★ 22
edhoferdian
edhoferdian/EEF

spec-mining-edho-ferdian

Extract behavioural specs from a codebase with none: WHEN/THEN requirements and invariants, each anchored to the code that enforces it, unclear behaviour recorded as uncertainty. Use for "ekstrak spec", "buat spec dari kode", "reverse-engineer the spec", "repo ini tidak ada dokumentasi", or a missing BEHAVIOR_SPEC in dev-kickoff.

★ 22
edhoferdian
edhoferdian/EEF

skill-authoring-edho-ferdian

Create and govern this ecosystem's skills: search before building, a quality bar, compliance checks, promoting repeated principles to rules, and packaging dist/*.skill. Use for "bikin skill baru", "ada skill buat X gak", "fork skill ini", "skill gue kepake gak sih", "package skill ini", "buatkan .skill-nya".

★ 22
edhoferdian
edhoferdian/EEF

skill-audit-edho-ferdian

Audit this repo's skills/ for staleness, redundancy, broken cross-references and weak descriptions (not the ~/.claude setup: that is config-hygiene). Use for "audit skill saya", "cek skill yang sudah dibuat", "ada yang redundan gak", "skill mana yang basi".

★ 22