| name | session |
| description | Worktree and session management. Use for "new session", "worktree", "tmux", and "session management". |
| trigger | /oma:session |
Skill: session
Manage development sessions with worktrees and tmux.
When to Use
- Creating new branches
- Managing multiple tasks
- Isolating work
- Session recovery
- Parallel development
Session Types
Development Session
- Feature work
- Bug fixes
- Single focused task
Exploration Session
- Research
- Prototyping
- Proof of concept
Review Session
- Code review
- Pair programming
- Pair review
Worktree Management
Create Worktree
git worktree add {path} {branch}
List Worktrees
git worktree list
Remove Worktree
git worktree remove {path}
Worktree for Feature
{project}-feature-{name}
Tmux Session Management
Session Structure
session:{project}
└── window:feature-{name}
└── pane: editor
└── pane: terminal
└── pane: tests
Commands
tmux new-session -s {name} -d
tmux attach -t {name}
tmux list-sessions
tmux kill-session -t {name}
Session Workflow
Start New Feature
- Create worktree
- Start tmux session
- Set up windows/panes
- Track session info
- Begin work
Switch Context
- Detach current session
- Attach target session
- Resume work
End Session
- Commit changes
- Push if needed
- Clean up tmux
- Optionally remove worktree
- Log session summary
Commands
Start Session
/oma:session start {name}
Attach Session
/oma:session attach {name}
Detach Session
/oma:session detach
List Sessions
/oma:session list
End Session
/oma:session end {name}
Create Worktree
/oma:session worktree create {branch} {path}
Output Format
## Session: {name}
### Type
{type}
### Worktree
**Path:** {path}
**Branch:** {branch}
**Status:** {clean|dirty}
### Tmux
**Session:** {tmux-session}
**Windows:** {n}
**Created:** {date}
**Last active:** {date}
### Windows
| Window | Panes | Current |
|--------|-------|---------|
| {name} | {n} | {yes/no} |
### Recent Sessions
| Name | Type | Last Active | Status |
|------|------|-------------|--------|
| {name} | {type} | {date} | {active/ended} |
### Session Notes
{notes}
Constraints
- Clean up completed sessions
- Don't forget worktree paths
- Keep session names unique
- Document session purpose
- Backup before major changes