From ftitos-claude-code
Incrementally fix build and type errors with minimal, safe changes.
npx claudepluginhub nassimbf/ftitos-claude-code# 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 py_compile` or `mypy .` | ## Step 2: Parse and Group Er...
/build-fixDetects project build system and incrementally fixes build/type errors with minimal safe changes, verifying each fix and summarizing results.
/build-fixIncrementally fixes Python type errors (mypy), lint issues (ruff), and failing tests (pytest) one by one: explains issues, applies fixes, verifies resolution, and shows summaries of 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-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-fixAutonomously fixes dotnet build errors in a loop: runs dotnet build, parses compiler errors, categorizes by cause, applies targeted fixes, rebuilds up to 5 times until green.
/build-fixAutomatically detects build system and incrementally fixes build and type errors with minimal safe changes, reporting fixed errors and remaining issues.
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 py_compile 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.