cmux-codex
Launch and manage loosely coupled cmux subagents: parallel interactive Codex sessions in cmux columns for user-given subtasks, using explicit sttts-* branches and the bundled codex-worktree wrapper. Use when the user says 'start cmux codex subagent', 'cmux codex session', 'codex cmux session', asks to launch a Codex subagent in cmux, or asks to start, check status, tail output, focus, or close a cmux subagent.
What this skill does
# cmux Codex
Use this skill to launch a loosely coupled **cmux subagent**: a separate interactive Codex session in another cmux column for a subtask given by the user.
A cmux subagent is not a tightly managed in-process subagent. It is an independent Codex TUI session in another pane. Use it for parallel, loosely coupled work such as investigation, review, or a bounded implementation subtask that can run outside the parent agent's critical path.
## Launch
Run from the repository that should own the subagent worktree:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex column --branch sttts-some-task --base origin/main -- "prompt for the cmux subagent"
```
Rules:
1. `--branch` is required and must start with `sttts-`.
2. `--base` is required. Use `--base origin/main` unless the user gives another base.
3. The helper runs `git fetch origin` before resolving the base.
4. If the local branch already exists, it is reused.
5. If `origin/<branch>` exists and the local branch does not, the local branch is created from `origin/<branch>`.
6. Otherwise the branch is created from the explicit base.
7. The helper opens a new cmux terminal column and runs the bundled `${CLAUDE_PLUGIN_ROOT}/scripts/codex-worktree -w <branch> -- <prompt>` there.
8. After `codex-worktree` exits, the helper closes the cmux surface automatically so finished subagent tabs do not remain open.
The wrapper creates/reuses the standard worktree path:
```text
.codex/worktrees/<branch>
```
Useful launch options:
```bash
--direction right|left|up|down # default: right
--model <model>
--profile <profile>
--sandbox <mode>
--add-dir <dir>
--no-focus # restore focus to the parent pane after launch
--dry-run # preview without fetch/branch/cmux actions
```
## Manage
Ask for status from a cmux subagent:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex status sttts-some-task
```
Read recent output without focusing or attaching:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex tail sttts-some-task -n 120
```
Focus the cmux subagent pane:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex focus sttts-some-task
```
Gracefully close the cmux subagent:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex close sttts-some-task
```
Default `close` sends an interrupt/exit request and then lets `codex-worktree` finish normally. If the wrapper shows its deletion prompt, the surface stays open for that prompt; after the wrapper exits, the launch command closes the cmux surface automatically. `close` does not answer the cleanup prompt automatically and does not force-delete a worktree or branch by itself.
List known cmux subagents:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/cmux-codex list
```
If the branch argument is omitted for status/tail/focus/close, the helper uses the most recently launched cmux subagent.
## Guardrails
- Do not launch without an explicit `sttts-*` branch and a prompt; ask the user if either is missing.
- Keep `--base` explicit. Prefer `origin/main`, after fetching origin.
- Treat cmux subagents as loosely coupled: give them bounded subtasks and do not depend on them for the next immediate step unless the user asked for parallel work.
- Use `status` before interrupting or closing a running cmux subagent.
- Do not use `codex exec`; this skill is for an interactive Codex TUI session in cmux.
## Requirements
- `cmux` CLI available on `PATH`, or pass `--cmux-bin`.
- `codex` CLI available on `PATH`, or set `CODEX_BIN`.
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.