build-fix
Incrementally fix build errors with minimal diffs, one error at a time
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Incrementally fix build errors with minimal diffs, one error at a time
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Dispatch an independent Codex verification job for the current changes
Inspect all changed files, group by logical concern, and guide atomic per-concern commits
Launch parallel deep-dive agents to review completed work for quality, standards, and completeness
Regression-safe cleanup of AI-generated bloat in Lua code. Deletion-first, requires passing tests before starting
Create a GitHub issue for a feature, bug fix, or crash with structured sections
Scaffold a new Architecture Decision Record, auto-numbered from existing ADRs
| name | build-fix |
| description | Incrementally fix build errors with minimal diffs, one error at a time |
| argument-hint | [optional: specific error or file] |
Fix build/lint errors one at a time with minimal changes.
Run the build and capture output:
./build.sh 2>&1
If build succeeds, try lint check:
find src_new -name '*.lua' -type f | while read f; do
# Strip YAML header before checking
lua_content=$(sed '1{/^---$/,/^---$/d}' "$f")
echo "$lua_content" | luac5.1 -p - 2>&1 | sed "s|stdin|$f|"
done
If both pass, try tests:
lua5.1 src_new/tests/test_runner.lua 2>&1
Common error types and fixes:
| Error | Cause | Fix |
|---|---|---|
unexpected symbol near '...' | Lua syntax error | Check for missing end, ), then |
'end' expected | Unclosed block | Find matching if/for/function |
attempt to index a nil value | Missing require or global | Add local reference or nil check |
YAML parse error | Bad frontmatter | Fix YAML header syntax |
Version mismatch | 3-point sync broken | Update all 3: version.txt, mfile, _groups.yaml |
Muddler error | XML generation failed | Check _groups.yaml hierarchy |
module '...' not found | Missing dependency | Check module path in _groups.yaml |
./build.sh
If more errors remain, return to Step 1. Fix one error per iteration.
BUILD FIX REPORT
=================
Errors fixed: N
Files modified: [list]
Build status: PASS/FAIL (N remaining errors)