From ecc
Detects the project's build system and incrementally fixes build and type errors one at a time with minimal safe changes.
How this command is triggered — by the user, by Claude, or both
Slash command
/ecc:build-fixThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Build and Fix Incrementally fix build and type errors with minimal, safe changes. ## Step 1: Detect Build System Identify the project's build tool and run the build: | Indicator | Build Command | |-----------|---------------| | `package.json` with `build` script | `npm run build` or `pnpm build` | | `tsconfig.json` (TypeScript only) | `npx tsc --noEmit` | | `Cargo.toml` | `cargo build 2>&1` | | `pom.xml` | `mvn compile` | | `build.gradle` | `./gradlew compileJava` | | `go.mod` | `go build ./...` | | `pyproject.toml` | `python -m compileall -q .` or `mypy .` | ## Step 2: Parse and Gro...
Incrementally fix build and type errors with minimal, safe changes.
Identify the project's build tool and run the build:
| Indicator | Build Command |
|---|---|
package.json with build script | npm run build or pnpm build |
tsconfig.json (TypeScript only) | npx tsc --noEmit |
Cargo.toml | cargo build 2>&1 |
pom.xml | mvn compile |
build.gradle | ./gradlew compileJava |
go.mod | go build ./... |
pyproject.toml | python -m compileall -q . or mypy . |
For each error:
Stop and ask the user if:
npm install, cargo add, etc.)Show results:
| Situation | Action |
|---|---|
| Missing module/import | Check if package is installed; suggest install command |
| Type mismatch | Read both type definitions; fix the narrower type |
| Circular dependency | Identify cycle with import graph; suggest extraction |
| Version conflict | Check package.json / Cargo.toml for version constraints |
| Build tool misconfiguration | Read config file; compare with working defaults |
Fix one error at a time for safety. Prefer minimal diffs over refactoring.
npx claudepluginhub kutae5/claude-code-config/build-fixDetects the project's build system and incrementally fixes build and type errors one at a time with minimal safe changes.
/build-fixIncrementally fixes build and type errors with minimal safe changes by detecting build system, fixing one error at a time, verifying fixes, and summarizing results.
/build-fixFixes TypeScript and build errors by iteratively running the build, parsing output, explaining and applying one fix at a time, and re-running to verify. Shows a summary of fixed, remaining, and new errors.
/build-fixAutomatically fixes build errors (compilation, type, unresolved dependencies) by analyzing output, applying targeted fixes, and retrying up to 3 times.
/build-fixAuto-detects build systems (Go/Air, Node/Vite/Webpack/package.json), parses error logs (auto or [log-path]), iteratively fixes until clean build.