tmux-workflow
# tmux Workflow Guide
What this skill does
# tmux Workflow Guide Expert guidance for tmux-based development workflow with neovim, happy (Claude Code wrapper), and R/Julia REPLs. ## Workflow Overview The user's setup uses: - One tmux **session per project** (e.g., `epinowcast`, `EpiAware`) - Multiple **windows per feature/worktree** within each session - Standard **pane layout** per window: nvim (left) | happy (top-right) | REPL (bottom-right) ## Key Commands ### Navigation | Keys | Action | |------|--------| | `Ctrl-b w` | Visual window picker (tree view of all windows) | | `Ctrl-b s` | Session picker | | `Alt-1` to `Alt-9` | Jump to window by number (no prefix needed) | | `Alt-h/j/k/l` | Switch panes (no prefix needed) | | `Ctrl-b h/j/k/l` | Switch panes (with prefix) | | `Ctrl-b n` / `Ctrl-b p` | Next/previous window | | `Ctrl-b (` / `)` | Previous/next session | ### Pane Management | Keys | Action | |------|--------| | `Ctrl-b \|` | Split vertically | | `Ctrl-b -` | Split horizontally | | `Ctrl-b z` | Zoom/unzoom current pane | | `Ctrl-b b` | Break pane to new window | | `Ctrl-b D` | Create standard dev layout (nvim \| happy / repl) | | `Ctrl-b H/J/K/L` | Resize panes | ### Copy Mode | Keys | Action | |------|--------| | `Ctrl-b [` | Enter copy mode | | `v` | Start selection (in copy mode) | | `y` or `Enter` | Copy to clipboard | | `q` | Exit copy mode | ## Shell Functions ### `proj <project-name>` Start or attach to a project session. ```bash proj epinowcast # Starts session with nvim, happy, R proj EpiAware # Starts session with nvim, happy, Julia ``` ### `feat <branch-name> [base-branch]` Create a new feature worktree and window within the current session. ```bash feat add-new-model # Creates worktree from main feat bugfix-123 develop # Creates worktree from develop ``` ### `feat-done <branch-name>` Clean up a feature worktree and close its window. ```bash feat-done add-new-model # Removes worktree and closes window ``` ### `feat-list` List all worktrees in the current repository. ## tmuxinator Projects are started with tmuxinator using a generic template: ```bash tmuxinator start project <name> ``` The template auto-detects: - R projects (DESCRIPTION file) -> starts R/radian - Julia projects (Project.toml) -> starts `julia --project=.` ## Neovim Integration ### Auto-reload Files changed by Claude Code are automatically reloaded in nvim. A notification appears when this happens. ### Sending Code to REPL The REPL pane receives code from nvim via iron.nvim: | Keys | Action | |------|--------| | `<leader>sc` | Send current line or visual selection | | `<leader>sf` | Send entire file | | `<leader>su` | Send from file start to cursor | | `<leader>sp` | Send paragraph | | `<leader>sm` | Send function | | `<leader>sb` | Send code block (Quarto/Rmd) | | `<leader>sa` | Send all code blocks (Quarto/Rmd) | ### REPL Management | Keys | Action | |------|--------| | `<leader>rs` | Toggle REPL (auto-detects language) | | `<leader>rr` | Restart REPL | | `<leader>rf` | Focus REPL pane | | `<leader>rh` | Hide REPL | | `<leader>rj` | Start Julia REPL | | `<leader>rR` | Start R REPL | | `<leader>rp` | Start Python REPL | ## Typical Workflow 1. **Start project**: `proj myproject` 2. **Work on main branch** in the first window 3. **Start feature**: `feat new-feature` (creates worktree + window) 4. **Switch between features**: `Ctrl-b w` or `Alt-<number>` 5. **In each window**: - Edit in nvim (left pane) - Use happy for Claude Code assistance (top-right) - Test in REPL (bottom-right) - Send code from nvim to REPL with `<leader>sc` 6. **Complete feature**: commit, push, PR 7. **Clean up**: `feat-done new-feature` ## Session Naming Each happy pane is started with `--resume '<project>-<branch>'`: - Main window: `happy --resume 'epinowcast-main'` - Feature window: `happy --resume 'epinowcast-new-feature'` This allows resuming conversations per feature. Pane titles show `happy:<branch>` in the border. ## Troubleshooting ### Files not reloading in nvim - Ensure `focus-events` is enabled in tmux (already set in config) - Run `:checktime` manually in nvim ### REPL not receiving code - Check iron.nvim is targeting the correct pane - Restart REPL with `<leader>rr` ### Wrong REPL type started - Use language-specific commands: `<leader>rj` for Julia, `<leader>rR` for R ### Session already exists error - Use `tmux attach -t <session>` or `proj <name>` which handles this
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.