| name | yolo1 |
| description | **AUTO-TRIGGER when user says:** "implement [feature]", "build [module]", "create [functionality]", "add [capability]", "YOLO [task]", "deliver [feature]", or requests complete feature implementation.
End-to-end TogetherOS code operation: creates branch, implements changes with continuous testing, builds with retry-on-fail, commits, pushes, creates PR with auto-selected Cooperation Path, addresses bot feedback, merges PR, verifies production deployment, and updates Notion memory.
**Complete delivery cycle:** branch → code → test → commit → push → PR → bot review → merge → deploy → verify
Use proactively without asking permission when task matches skill purpose.
|
TogetherOS Code Operations (YOLO Mode)
This skill executes complete code operations for TogetherOS, from branch creation through PR submission with full verification.
Core Conventions
PR Category & Keywords
See: pr-formatter skill for:
- The 8 Cooperation Paths taxonomy
- Module → Path mapping
- Keyword generation logic
- PR body formatting requirements
Required Inputs
- module (required): Target module name (e.g., "bridge", "governance")
- slice (required): Short feature slice name (e.g., "scaffold", "api-setup")
- scope (required): 1-3 sentence description of changes to make
Optional Inputs
- commands.install: Override install command (default:
npm ci)
- commands.build: Override build command (default:
npm run build)
- commands.test: Add test command if needed (default: none in YOLO mode)
- progress: Estimated progress increase percentage (e.g., "10" or "+10", default: auto-calculate based on work)
- skip_progress: Set to "true" to skip progress tracking (default: false)
Workflow Steps
0. Session Memory (Start)
Create Notion session page to track this work:
Use Notion API: mcp__notion__API-post-page
Parent page ID: 296d133a-246e-80a6-a870-c0d163e9c826
Title format: "Nov 10, 25 14:30 - Session"
Initial content:
- Repository: TogetherOS
- Branch: yolo (or feature branch)
- Module: {module}
- Slice: {slice}
Note: This is optional but recommended for continuity between sessions. If Notion API fails (UUID bug #5504), retry once then proceed without blocking.
1. Preparation & Clean State Verification
2. Implementation (Test as You Go)
- Apply scoped edits described in the
scope parameter
- CRITICAL: Test your work continuously during implementation:
- Read files you create/modify to verify correctness
- Check syntax and logic as you write
- Verify imports and dependencies
- Ensure type safety
- List each file touched with a brief reason
- Keep changes strictly within scope (no scope creep)
2.5. Admin Page Navigation Registration (If Creating Admin Pages)
MANDATORY if you created any page under /admin/*:
When you create a new admin page at apps/web/app/admin/{page-name}/page.tsx:
-
Register in admin navigation - Edit apps/web/app/admin/page.tsx:
{
title: 'Page Title',
description: 'Brief description of what this admin page does',
path: '/admin/page-name',
status: 'active',
}
-
Section selection guide:
- System Configuration — settings, config
- AI & Content — Bridge, forum tags, gamification, moderation
- Users & Groups — members, groups management
- Governance & Economy — proposals, SP/RP, treasury
- Monitoring & Data — observability, logs, analytics
- Development & Testing — design system, testing pages
-
Verify the page appears in admin dashboard navigation at /admin before proceeding
Why this matters: Admin pages created without navigation registration become orphaned and inaccessible. Users expect all admin functionality to be discoverable from /admin.
3. Dependency Installation
- Run install command (default:
npm ci)
- Verify dependencies installed correctly
4. Build with Auto-Retry
- Run build command (default:
npm run build)
- If build fails:
- Read error output carefully
- Identify the specific issue (type error, import error, syntax error, etc.)
- Fix the issue
- Re-run build
- Repeat until build succeeds
- Never give up on build failures - keep correcting until build passes
5. Optional Testing
- If
commands.test is provided, run tests
- Fix any test failures using the same retry approach as builds
6. Validation (Optional but Recommended)
- If
scripts/validate.sh exists, run it to get proof lines
- This runs linting and validation checks
- Outputs:
LINT=OK and VALIDATORS=GREEN
- If validation fails, fix issues and retry
- These proof lines should be included in PR body
6.5. CSS/UX Validation (MANDATORY for UI Changes)
IMPORTANT: If this PR includes .tsx or .css files with UI components, run CSS validation BEFORE creating PR:
./scripts/validate-css.sh
What it checks:
- CSS syntax errors (via stylelint if installed)
- Undefined CSS variables (missing
--var-name definitions)
- Responsive breakpoints (pages should have mobile styles)
- Accessibility focus states (interactive elements need focus styles)
- Tailwind class validity (catches common mistakes)
When to skip:
- Backend-only changes (API routes, database, scripts)
- Documentation-only changes
- Changes that don't modify UI components
Integration with UX Designer Skill:
For UI/theme/CSS work, ALWAYS follow the ux-designer verification workflow:
- Scope Discovery - Find ALL affected files BEFORE editing
- TodoWrite Tracking - Create item for each file
- Verification - Re-grep to confirm zero remaining issues
- Visual Test - Toggle themes to verify
See: .claude/skills/ux-designer/SKILL.md for verification workflow and CSS var reference
7. Security Check (P1 Alerts in Modified Files)
- IMPORTANT: Danger.js will automatically block merge if P1 alerts exist in modified files
- Check if any of YOUR modified files have open P1 (error severity) CodeQL alerts
- Run:
gh api repos/coopeverything/TogetherOS/code-scanning/alerts --jq '.[] | select(.state == "open" and .rule.severity == "error") | .most_recent_instance.location.path' | sort -u
- Cross-reference with files modified in this PR (from
git diff --name-only yolo)
- If P1 alerts exist in modified files:
- If P1 alerts only in unmodified files: Informational only (won't block merge)
- Include security status in PR body:
SECURITY=OK (0 P1 alerts in modified files) or SECURITY=WARN (X P1 alerts exist, but not in modified files)
8. Git Operations + Error Learning
- Commit with message:
feat({module}): {slice} - {scope}
- Invoke
error-learner skill:
- Analyze session transcript for error patterns
- Check
.claude/data/session-errors.json for cross-session patterns
- If same-session pattern (2+ occurrences):
- Research root cause and best practice
- Update knowledge files immediately (before push)
- If cross-session pattern detected:
- Promote stored error to "pattern" status
- Update knowledge files immediately
- If one-off error:
- Store in session-errors.json for future tracking
- Push branch:
git push -u origin feature/{module}-{slice}
9. Progress & Next Steps Update
Use status-tracker skill to:
- Calculate estimated progress increase based on work completed
- Update module's Next Steps using
scripts/update-module-next-steps.sh
- Mark completed tasks as done
- Add any new tasks discovered during implementation
- Prepare progress marker for PR body (e.g.,
progress:bridge=+10)
10. PR Creation with Auto-Category & Progress
Use pr-formatter skill to:
- Auto-select Cooperation Path from module
- Generate 3-5 relevant keywords
- Format PR body with exact structure
- Include progress marker from step 8
- Create PR with
gh pr create --base yolo
Then monitor post-push and verify bot reviews:
- Wait ~60 seconds for AI reviewers (Copilot/Codex) to complete analysis
- CRITICAL: Check for Codex inline comments (not just review body):
gh api repos/coopeverything/TogetherOS/pulls/<PR#>/comments \
--jq '.[] | select(.user.login == "chatgpt-codex-connector") | {file: .path, line: .line, body: .body}'
gh api repos/coopeverything/TogetherOS/pulls/<PR#>/reviews \
--jq '.[] | select(.user.login == "chatgpt-codex-connector")'
gh api repos/coopeverything/TogetherOS/issues/<PR#>/comments \
--jq '.[] | select(.user.login == "chatgpt-codex-connector")'
gh pr view <PR#> --web
- Process for verification:
- Run all API commands above
- Open web UI (mandatory verification step)
- Scroll through EVERY file in "Files Changed" tab
- Look for comment badges on line numbers
- Only after web UI verification can you confirm "no P1 issues"
- Analyze Codex feedback priority:
- P1 (Critical): MUST fix before merge - security issues, breaking changes, build artifacts
- P2 (Important): SHOULD fix before merge - code quality, best practices
- P3 (Nice-to-have): CAN defer - minor suggestions, stylistic preferences
- Fix all P1 issues before considering PR merge-ready
- For each P1 issue:
- Fix the code
- Commit with descriptive message (e.g., "fix: address Codex P1 - remove build artifact import")
- Push to update PR
- Wait for re-analysis
- Check for Copilot sub-PRs:
gh pr list --author "app/copilot-swe-agent" --search
Output PR URL and summary of bot feedback addressed
11. Merge PR When Ready
After all checks pass and P1 issues resolved:
gh pr checks <PR#>
gh pr view <PR#> --json mergeable --jq '.mergeable'
gh pr view <PR#> --web
gh pr merge <PR#> --squash --delete-branch
MERGE_SHA=$(gh pr view <PR#> --json mergeCommit --jq '.mergeCommit.oid')
echo "Merged as commit: $MERGE_SHA"
Do NOT stop at "ready to merge" - actually merge the PR when verified.
12. Deployment Verification
After merge, verify production deployment:
WORKFLOW_RUN=$(gh run list --workflow=auto-deploy-production.yml --branch=yolo --limit 1 --json databaseId --jq '.[0].databaseId')
gh run watch $WORKFLOW_RUN --exit-status
DEPLOY_STATUS=$(gh run view $WORKFLOW_RUN --json conclusion --jq '.conclusion')
if [ "$DEPLOY_STATUS" = "success" ]; then
echo "✅ Deployment successful"
echo "Changes live at: https://www.coopeverything.org"
else
echo "❌ Deployment failed - see logs:"
gh run view $WORKFLOW_RUN --log-failed
fi
12.5. Run Verification Tests (MANDATORY)
Execute the MANDATORY Fix Verification Checklist from CLAUDE.md:
- Run
./scripts/verify-fix.sh - must exit 0
- Check production health:
curl https://coopeverything.org/api/health
- If validation fix: grep for exact error message across ALL layers
- Monitor deployment workflow completion
If ANY step fails → NOT delivered. Fix and re-deploy.
Output final delivery summary:
✅ Feature delivered:
- PR #<num>: <title>
- Merged commit: <sha>
- Deployment: <SUCCESS|FAILED>
- Live URL: https://www.coopeverything.org/<relevant-path>
Only after deployment verification is delivery complete.
13. Update Module Documentation (CRITICAL - MANDATORY)
⚠️ MSSP - Module Status Synchronization Protocol
This step is MANDATORY. Failure to update ALL THREE locations causes progress tracking drift.
CRITICAL: After successful deployment, update ALL THREE documentation locations:
Step 13.1: Calculate Progress Increase
Step 13.2: Update STATUS_v2.md (AUTHORITATIVE SOURCE)
Step 13.3: Update Individual Module Spec
Step 13.4: Update Modules INDEX (THE CRITICAL ONE)
Step 13.4b: Sync ALL Modules in Shared Data File (VISIBLE TO USERS)
Why sync via shared data file?
- Prevents cumulative drift (multiple sessions can each miss updates)
- Single source of truth: STATUS_v2.md → modules-data.ts → UI pages
- Users always see accurate progress on BOTH /modules and /admin/modules
- Only ONE file to update, not two separate page files
Step 13.5: Verify Synchronization (MANDATORY)
./scripts/check-module-status.sh
Step 13.6: Commit Documentation Updates
git add docs/modules/ docs/STATUS_v2.md apps/web/lib/data/modules-data.ts
git commit -m "docs(modules): update {module-name} progress to Y%
Updates all four locations (MSSP):
- STATUS_v2.md: {module} at Y% (was X%)
- docs/modules/{module-name}.md: Progress marker updated
- apps/web/lib/data/modules-data.ts: Shared data synced (feeds /modules + /admin/modules)
- docs/modules/INDEX.md: Entry updated to Y%
Phase X implementation complete:
- Component/feature 1
- Component/feature 2
- Component/feature 3
PR #<num> merged and deployed successfully.
Verified: ./scripts/check-module-status.sh shows all markers synchronized
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>"
git pull origin yolo --rebase
git push origin yolo
MANDATORY: Update ALL FOUR locations:
- ✅ STATUS_v2.md (authoritative source)
- ✅ Module spec file (
docs/modules/{module-name}.md)
- ✅ Modules INDEX (
docs/modules/INDEX.md)
- ✅ Shared modules data (
apps/web/lib/data/modules-data.ts) ← FEEDS BOTH /modules AND /admin/modules
Verification: Run ./scripts/check-module-status.sh {module-name} before committing
14. Session Memory (Finalize)
Update Notion session page with final summary:
Use Notion API: mcp__notion__API-patch-block-children
Update session page created in Step 0
Add final blocks:
- Accomplishments: What was delivered
- PR: Link to merged PR
- Deployment: Success/failure status
- Files Changed: Count and key files
- Duration: Session start to end time
- Status: ✅ Completed
Update page title: "Nov 10, 25 14:30 - {module} {slice} implementation"
Cleanup old sessions (keep only 6 most recent):
Use Notion API: mcp__notion__API-post-search
Search for session pages, sort by last_edited_time
If count > 6: Archive oldest pages using mcp__notion__API-delete-a-block
Note: This is optional but recommended for session continuity. If it fails, don't block - report completion and move on.
Safety Guidelines
- Never commit secrets — Use environment variables or CI secrets
- Stay within scope — No unrelated refactoring or feature creep
- Minimal diffs — Change only what's necessary
- Test continuously — Verify your work as you implement, not just at the end
- Fix all build errors — Never open a PR with a failing build
- One concern per PR — No bundling unrelated changes
Example Usage
Example 1: Bridge Scaffold
Use Skill: togetheros-code-ops
Inputs:
module: bridge
slice: scaffold
scope: Create /bridge route, stub component in packages/ui, docs/modules/bridge/README.md
Expected Behavior:
- Branch:
feature/bridge-scaffold
- Commit:
feat(bridge): scaffold - Create /bridge route, stub component in packages/ui, docs/modules/bridge/README.md
- PR formatted via
pr-formatter skill (auto-selected category & keywords)
Example 2: Governance Integration
Use Skill: togetheros-code-ops
Inputs:
module: governance
slice: oss-integration
scope: Integrate selected governance OSS with auth/DB and CI
Expected Behavior:
- Branch:
feature/governance-oss-integration
- Commit:
feat(governance): oss-integration - Integrate selected governance OSS with auth/DB and CI
- PR formatted via
pr-formatter skill (auto-selected category & keywords)
Testing Philosophy (YOLO Mode)
In YOLO mode, you (Claude) are the primary quality gate:
- No formal linting required before commit (you check code quality as you write)
- No separate test phase (you verify correctness during implementation)
- Build must pass (automated check for syntax/type correctness)
- Optional validation via
scripts/validate.sh (recommended for proof lines)
- Continuous self-testing replaces traditional QA pipeline
This means: Read your code, check your logic, verify your types, and ensure correctness at every step. The build is your final verification that everything compiles correctly.
About Validation Scripts: While YOLO mode emphasizes self-testing, running scripts/validate.sh before committing provides proof lines (LINT=OK, VALIDATORS=GREEN) that CI checks look for. These checks are advisory-only and won't block merges, but including them shows good practice.
Related Skills
- pr-formatter: PR creation, formatting, validation, AI feedback loop
- status-tracker: Progress tracking, next steps management, Notion memory
- error-learner: Session error analysis, cross-session pattern detection, KB updates
- ux-designer: UI/UX design system, themes, accessibility, responsive patterns
- verify-fix: See CLAUDE.md "MANDATORY Fix Verification Checklist" (always in context)
See those skills for:
- Keyword generation details →
pr-formatter
- Progress estimation guide →
status-tracker
- Module progress keys →
status-tracker
- Notion memory updates →
status-tracker
- PR verification checklist →
pr-formatter
- Error pattern detection →
error-learner
- Cross-session learning →
error-learner
- Theme system (6 palettes) →
ux-designer
- Fluid typography patterns →
ux-designer
- Accessibility checklist →
ux-designer
- CSS validation script →
scripts/validate-css.sh