Slash Command790 repo starsupdated 12d ago
build-fix
The build-fix command incrementally resolves TypeScript and build errors by executing builds, parsing error output grouped by file and severity, then applying fixes one at a time while re-running builds to verify resolution. Use this command when addressing compilation issues in TypeScript projects, stopping if fixes introduce new errors or the same error persists after three attempts.
Install in Claude Code
Copymkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/sangrokjung/claude-forge/HEAD/commands/build-fix.md -o ~/.claude/commands/build-fix.mdThen start a new Claude Code session; the slash command loads automatically.
Definition
build-fix.md
> 참고: 이 스킬은 build-error-resolver 에이전트를 호출하지 않고 인라인 실행됩니다. 에이전트의 memory 학습이 필요하면 Agent 도구로 build-error-resolver를 직접 호출하세요. # Build and Fix 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 introduced Fix one error at a time for safety!
More from this repository
architectSubagent
|
build-error-resolverSubagent
|
code-reviewerSubagent
|
database-reviewerSubagent
Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.
doc-updaterSubagent
|
e2e-runnerSubagent
|
plannerSubagent
|
refactor-cleanerSubagent
|