From claude-forge
빌드 또는 타입 에러 단계적 수정. npm run build 실패 시 사용. 아키텍처 문제면 /plan 먼저.
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-forge:build-fixFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Build and Fix > **참고**: 빌드 에러가 아키텍처 문제에서 기인하는 경우, `/plan`으로 구조적 해결 방안을 먼저 수립하세요. Incrementally fix TypeScript and build errors: 1. Run build: npm run build or pnpm build 2. Parse error output: - Group by file - Sort by severity 3. For each error: - Show error context (5 lines before/after) - Explain the issue - Propose fix - Apply fix - Re-run build - Verify error resolved 4. Stop if: - Fix introduces new errors - Same error persists after 3 attempts - User requests pause 5. Show summary: - Errors fixed - Errors remaining - New errors intro...
참고: 빌드 에러가 아키텍처 문제에서 기인하는 경우,
/plan으로 구조적 해결 방안을 먼저 수립하세요.
Incrementally fix TypeScript and build errors:
Run build: npm run build or pnpm build
Parse error output:
For each error:
Stop if:
Show summary:
Fix one error at a time for safety!
Next.js SSG prerender TypeError가 발생하면:
call TypeError
import data from '@/../data/path.json' (static JSON import)grep -r "readFileSync" src/ --include="*.tsx" --include="*.ts" | grep -v "test" | grep -v "__tests__"lucide-react 등 barrel export가 webpack 분할과 충돌
next.config.mjs에서 해당 패키지 제거 (6067d27)export const dynamic = 'force-dynamic' 추가커밋 내 여러 파일 중 원인 파일이 불명확할 때:
next build --no-cache 실행로컬 pass / CI fail 상황에서의 원격 디버깅 절차:
gh run list --limit 5 # 최근 5개 실행
gh run view [run-id] --log-failed # 실패 로그만 추출
| 패턴 | 원인 | 처치 |
|---|---|---|
Secret not found / env undefined | GitHub Secrets 미등록 | gh secret set KEY < .env.local |
Timeout waiting for | CI 환경 느림 / locator 불안정 | timeout 증가 + getByRole 전환 |
Cannot read properties of undefined (reading 'call') | SSG prerender webpack 모듈 깨짐 | export const dynamic = 'force-dynamic' |
ECONNREFUSED / fetch failed | dev server 미기동 / baseURL 불일치 | webServer 설정 확인 |
# 수정 후 push
git push
# 특정 실행 재시도
gh run rerun [run-id] --failed
| 빌드 수정이 끝나면 | 커맨드 |
|---|---|
| 전체 검증 | /handoff-verify |
| 빠른 커밋 | /quick-commit |
| 문서 동기화 | /sync |
npx claudepluginhub gimbabheaven26-creator/claude-forge/build-fixDetects the project build system and incrementally fixes build/type errors one at a time, with minimal safe changes and progress tracking.
/build-fixDiagnoses and fixes Python type, lint, and test errors one at a time by running mypy, ruff, and pytest, then incrementally resolving each issue with safety checks.
/build-fixAnalyzes build errors (compiler, type, dependency resolution) and attempts automatic fixes using read/edit tools, with retry logic and a result report.
/build-fixAutomatically diagnoses and fixes TypeScript and build errors by incrementally parsing output, applying fixes, and re-running builds until resolved.
/build-fixDetects build system, runs build to identify errors, then iteratively fixes build and type errors with minimal safe changes, verifying each fix and summarizing results.