From ecc
Detects project build system and incrementally fixes build/type errors with minimal safe changes, verifying each fix and summarizing results.
npx claudepluginhub kutae5/claude-code-config# 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...
/build-fixDetects project build system and incrementally fixes build/type errors with minimal safe changes, verifying each fix and summarizing results.
/build-fixAutomatically detects build system and incrementally fixes build and type errors with minimal safe changes, reporting fixed errors and remaining issues.
/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-fixIncrementally fixes TypeScript and build errors one at a time: runs build, parses and groups errors, applies fixes per error, verifies resolution, and summarizes results.
/build-fixAutomatically analyzes and fixes build errors (syntax, type, dependencies, config). Runs tests/builds for verification, retries up to 3x, and reports results with changes or recommendations.
/build-fixAuto-detects build systems (Go/Air, Node/Vite/Webpack/package.json), parses error logs (auto or [log-path]), iteratively fixes until clean build.
Share bugs, ideas, or general feedback.
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.