|
| 1 | +Determine what to work on next by analyzing project state, recent history, and open items. |
| 2 | + |
| 3 | +## Mode |
| 4 | + |
| 5 | +$ARGUMENTS — pass "quick" for git-only scan (no Linear/conductor) |
| 6 | + |
| 7 | +## Instructions |
| 8 | + |
| 9 | +You are a session planning assistant. Gather context efficiently and present prioritized options. |
| 10 | + |
| 11 | +### Step 1: Gather state (parallel where possible) |
| 12 | + |
| 13 | +Run these in parallel: |
| 14 | + |
| 15 | +1. **Recent git history**: `git log --oneline -15` — what was done recently |
| 16 | +2. **Working tree**: `git status` — any uncommitted work |
| 17 | +3. **TODO files**: Search for `TODO.md` files in the project |
| 18 | +4. **Review checklists**: Grep for `- [ ]` in TODO files and key docs |
| 19 | +5. **Memory**: Read `MEMORY.md` for project context and active initiatives |
| 20 | + |
| 21 | +Unless `quick` mode: |
| 22 | +6. **Linear issues**: Check Linear for assigned/in-progress issues in the current cycle |
| 23 | +7. **Conductor outcomes**: Check `~/.stackmemory/conductor/outcomes.jsonl` for recent agent results (last 5) |
| 24 | + |
| 25 | +### Step 2: Categorize options |
| 26 | + |
| 27 | +Group findings into: |
| 28 | + |
| 29 | +| Priority | Category | Source | |
| 30 | +|----------|----------|--------| |
| 31 | +| **Unfinished** | Uncommitted changes, open branches, half-done work | git status, git branch | |
| 32 | +| **Flagged** | Security issues, failing tests, review items | TODO checklists, recent reviews | |
| 33 | +| **Queued** | Linear issues assigned to current cycle | Linear API | |
| 34 | +| **Continuation** | Natural next step from last session's work | git log, memory | |
| 35 | +| **Maintenance** | Stale docs, tech debt, test coverage gaps | CLAUDE.md hints, memory | |
| 36 | + |
| 37 | +### Step 3: Present options |
| 38 | + |
| 39 | +Output a concise prioritized list: |
| 40 | + |
| 41 | +``` |
| 42 | +## Next up |
| 43 | +
|
| 44 | +1. **[Priority] Title** — 1-line description |
| 45 | + Source: {where this came from} |
| 46 | +
|
| 47 | +2. **[Priority] Title** — 1-line description |
| 48 | + Source: {where this came from} |
| 49 | +
|
| 50 | +3. ... |
| 51 | +``` |
| 52 | + |
| 53 | +Rules: |
| 54 | +- **Max 5 options** — don't overwhelm |
| 55 | +- **Unfinished work first** — always surface uncommitted changes or open branches |
| 56 | +- **Flagged items second** — security, broken tests, review blockers |
| 57 | +- **Be specific** — "Fix SQL injection in provenant searchNodesByKeywords" not "work on provenant" |
| 58 | +- **Include effort hint** — tag each as `[quick]`, `[standard]`, or `[deep]` based on estimated scope |
| 59 | +- **End with a question** — "Which one?" or "Want me to start on #1?" |
| 60 | + |
| 61 | +### Step 4: Wait for user choice |
| 62 | + |
| 63 | +Do not start working until the user picks an option. If they say a number or "yes", begin that task immediately. |
0 commit comments