home / skills / willsigmon / sigstack / leavn-final-build-push
This skill aggressively fixes remaining iOS build errors to produce a clean Leavn build, commits changes, and prepares for ship.
npx playbooks add skill willsigmon/sigstack --skill leavn-final-build-pushReview the files below or copy the command above to add this skill to your agents.
---
name: Leavn Final Build Push
description: Fix last few build errors aggressively, get clean build, commit everything, and prepare for ship in Leavn iOS app
allowed-tools: Read, Edit, Bash, Grep
---
# Leavn Final Build Push
## Instructions
Aggressively fix remaining errors to get clean build:
1. **Count errors**:
```bash
xcodebuild build 2>&1 | grep -c "error:"
```
2. **If <10 errors - FIX DIRECTLY**:
- Read error locations
- Apply quick fixes
- Comment out if too complex
- Priority: BUILD SUCCEEDS
3. **Quick fix strategies**:
- Missing property: Add stub or comment out usage
- Binding error: Add @Bindable or remove binding
- Type mismatch: Cast or change type
- Actor isolation: Add nonisolated(unsafe)
- Missing import: Add import
4. **Nuclear options** (if stuck):
- Comment out broken features
- Disable problematic files
- Use `#if false` to guard code
- Fix properly in next session
5. **Success criteria**:
- `** BUILD SUCCEEDED **`
- Commit immediately
- Document TODOs for disabled code
Use this skill when: Almost at clean build, <10 errors left, need to ship, aggressive fixes needed
This skill aggressively clears the last build errors in the Leavn iOS app so you get a clean, shippable build quickly. It focuses on rapid, pragmatic fixes, temporary guards for fragile code, and committing the working tree with clear TODO notes. Use it when you are close to a green build and need to prioritize delivery.
The routine runs an Xcode build, counts remaining errors, and applies quick local fixes to reach fewer than ten errors or a full success. It prefers minimal, targeted edits: stubbing missing properties, casting types, adding imports, marking bindings, or using nonisolated annotations. If errors persist, it applies temporary guards (commenting out, #if false) to disable failing code paths, then commits the cleaned state and records TODOs for proper fixes.
Is this safe for production?
This skill is intended as a last-resort, time-boxed way to get a clean build. Temporary guards and stubs should be followed by proper fixes in a dedicated follow-up. Commit to a branch and document all TODOs.
How do I revert temporary changes later?
Keep a list of modified or guarded files and include TODO comments. Use git to create a branch for the push, then open follow-up PRs that revert guards and implement correct fixes.