**AUTO-TRIGGER when:** - Progress reaches 5% milestone (5%, 10%, 15%, 20%...) - User says "sync [module] to main" - User says "approve main sync" - User says "reconcile [module] with main" Manages two-phase sync from yolo to main: (1) WIP markers to prevent contributor conflicts, (2) code sync with CI reconciliation after production validation. Use proactively without asking permission when task matches skill purpose.
Maintains the main branch as a clean, CI-compliant branch for human contributors by selectively syncing production-validated code from yolo with proper quality gates.
Include:
Exclude:
Triggers at: 5%, 10%, 15%, 20%, 25%, 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, 100%
Triggered by: status-tracker when module progress reaches 5% milestone
Steps:
Checkout main branch
git checkout main
git pull origin main
Update STATUS_v2.md with WIP marker
Find the module's progress line and add 🔄 indicator:
- [Module] 🔄 XX% - In active development (yolo branch)
Commit WIP marker
git add docs/STATUS_v2.md
git commit -m "wip: [module] active on yolo (XX% complete)"
git push origin main
Return to yolo branch
git checkout yolo
Notify user
WIP marker created in main for [module] (XX%).
Contributors will see this module is in active development.
Continue working on yolo. When ready to sync after production testing, say "sync [module] to main".
Triggered by: User approval after production validation
Manual trigger phrases:
Steps:
# Ensure we're on yolo and up to date
git checkout yolo
git pull origin yolo
# Get latest main
git fetch origin main
# Identify commits to sync
git log origin/main..HEAD --oneline --grep="feat([module])" --grep="fix([module])"
git checkout main
git pull origin main
# Create sync branch
git checkout -b sync/[module]-to-main
# Cherry-pick relevant commits from yolo
# (Claude identifies commits related to the module)
git cherry-pick [commit-hash-1]
git cherry-pick [commit-hash-2]
# ... continue for all module commits
If conflicts occur:
git status to see conflictsRun auto-fixes:
# Auto-fix lint issues
npm run lint -- --fix
# Verify TypeScript compiles
npm run build
# Run validation
scripts/validate.sh
If auto-fix succeeds:
git commit -am "fix: lint/build reconciliation for main CI"If auto-fix fails:
# Copy current status from yolo branch
git checkout yolo -- docs/STATUS_v2.md
git checkout yolo -- STATUS/progress-log.md
# Remove 🔄 WIP marker, keep progress percentage
# (Claude edits STATUS_v2.md to remove "In active development" marker)
# Ensure everything still builds
npm run build
# Verify validation passes
scripts/validate.sh
git add .
git commit -m "sync: [module] from yolo (production-validated)
- Synced module code from yolo branch
- Reconciled with main CI requirements (lint/build)
- Updated status tracking to match yolo
- Production-validated at [URL]
From commits:
- [commit-hash-1]: [message]
- [commit-hash-2]: [message]
"
git push origin sync/[module]-to-main
gh pr create \
--base main \
--title "sync: [module] from yolo (production-validated)" \
--body "## Summary
Syncing production-validated [module] code from yolo to main.
## Production Validation
- Tested on: coopeverything.org
- Status: User-approved
- Progress: [module] at XX%
## Changes Synced
[List of features/fixes included]
## CI Reconciliation
- Lint: Fixed
- Build: Passing
- Validation: Passing
## Status Update
- STATUS_v2.md: Updated to match yolo
- progress-log.md: Synced
From yolo commits:
$(git log origin/main..HEAD --oneline)
"
# After PR review/approval
gh pr merge --merge --delete-branch
# Return to yolo
git checkout yolo
✅ Synced [module] from yolo to main successfully!
PR: [PR URL]
Status: Merged to main
CI: All checks passing
Next: Contributors can now see and work with [module] on main branch
Before pushing sync to main:
npm run build)npm run lint)scripts/validate.sh)If sync breaks main:
git checkout main
git revert HEAD~1 # Revert last commit
git push origin main
Scenario: status-tracker updates bridge module to 15%
Trigger: Automatic (called by status-tracker)
Actions:
- bridge 🔄 15% - In active development (yolo branch)wip: bridge active on yolo (15% complete)User says: "The bridge module is working great in production. Sync it to main."
Trigger: Manual (user approval after production testing)
Actions:
npm run lint -- --fixnpm run buildsync: bridge from yolo (production-validated)User says: "Sync auth module to main"
Actions:
1-3. [Standard prep and cherry-pick]
4. Run npm run lint -- --fix → Some errors remain
5. Show user:
Auto-fix couldn't resolve:
- src/auth/provider.ts:45 - unused variable 'config'
- src/auth/hooks.ts:12 - missing return type
Options:
1. I can fix these manually
2. Create GitHub issues for later
3. Stop sync
What would you like to do?
Symptom: git cherry-pick shows conflicts
Solution:
git cherry-pick --abort
Notify user: "Conflicts detected. Manual resolution needed."
Symptom: npm run build fails after auto-fix
Solution:
Symptom: Module already has 🔄 marker in STATUS_v2.md
Solution:
- [module] 🔄 XX% - In active development (yolo branch)Symptom: main's STATUS_v2.md has different progress than yolo
Solution: