codex-run-loop
Use when the user asks Codex to coordinate multiple tickets, run a batch of issues, work tickets in parallel, or create worker threads/worktrees that produce draft PRs.
What this skill does
# Codex Run Loop Coordinate Codex worker threads that turn planned tasks into draft PRs. Use this when the user asks for a coordinator to work through tickets, especially in parallel or with separate worktrees. For one ordinary coding task, code it directly unless the user asks for this loop. ## Workflow ### 1. Select Work Read the requested tickets, source context, issue tracker context, and repo state. Classify tickets as independent, dependent, conflicting, or unclear. Run independent tickets in parallel, run dependent tickets in waves, sequence conflicting tickets, and stop on unclear acceptance criteria. For dependent tickets, prefer stacked draft PRs when each ticket remains reviewable on its own. If the tickets are really one feature or heavily overlap, ask whether to use one integration branch and PR. ### 2. Prepare Worktrees Inspect `git status`, current branch, remotes, and existing worktrees. For each unblocked ticket in the current wave, derive a traceable branch name from the ticket ID and short task summary, then create a separate worktree. Default to a sibling root such as `../<repo-name>-worktrees/<branch-name>`. Use `git worktree add -b <branch> <path> <base>` for new branches. Reuse an existing worktree only when it is for the same branch and clean. For stacked PRs, base each dependent branch on its predecessor branch. For an integration PR, run the dependent tickets sequentially in one integration worktree. ### 3. Start Workers Create one Codex worker thread per ticket when thread tools are available. For an integration PR, start one worker at a time in the integration worktree. Send each worker a compact packet: ```text Ticket: Source context: Worktree: Branch: Base: Acceptance criteria: Verification: PR target: Pause after: ``` If thread tools are unavailable, stop unless the user explicitly allows sequential local execution. ### 4. Execute Each Ticket In each worker thread, make the smallest complete code change for the ticket. Use test-first work when the user asked for it. The worker owns code changes, tests, and verification for exactly one ticket. ### 5. Review And Fix Have each worker request a code-review subagent when available. Fix valid findings that are in scope, rerun the relevant checks, and stop on findings that require a human decision or source-context change. ### 6. Publish Draft PRs Have each worker stage only intended files, create one clear commit, push its branch, and open a draft PR with available GitHub tools or `gh`. The PR body should include the ticket or source link, acceptance criteria, verification run, review result, and anything not verified. If push or PR creation fails, keep the branch local and report the exact missing remote, auth, command, or tool capability. ### 7. Pause The run is complete when each selected ticket is blocked or has a draft PR. Stop there. Do not merge, resolve GitHub review, fix CI, or start follow-up changes unless explicitly asked. ### 8. Report Report each ticket's worker thread, worktree path, branch, commit, draft PR URL, verification, review findings fixed, and any blocked tickets. ## Rules - The coordinator routes work; workers code one ticket each. - Use one worktree and branch per ticket, unless the user chose one integration branch. - Parallelize only tickets that can be reviewed, merged, and reverted independently. - Do not overwrite, discard, or stage unrelated uncommitted work. - Do not invent issue tracker tickets or rewrite source context. - Skip or stop dependent tickets when an earlier ticket fails or changes the source context. - Judge review findings; do not blindly implement every comment. - Open draft PRs only after verification ran, or clearly report what could not be verified. - Pause at draft PRs; merging is out of scope.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.