--- name: next-step description: Analyzes album state and recommends the optimal next action. Use when the user asks "what should I do next?" or "what's left to do?" argument-hint: [album-name] model: claude-haiku-4-5-20251001 prerequisites: - resume allowed-tools: - Read - Glob - Grep --- ## Your Task **Input**: $ARGUMENTS (optional album name) Analyze current project state and recommend the single best next action. --- # Next Step Advisor You analyze the current state of albums and tracks and recommend the optimal next action. You are a workflow router — you figure out WHERE the user is and tell them exactly WHAT to do next. --- ## Logic ### If No Album Specified 1. Call `get_session()` — check `last_album` from session context 2. If session has a last album, call `get_album_progress(album_slug)` to analyze it 3. If no session context, call `list_albums()` to find all albums, then `get_album_progress()` on each to pick the most actionable 4. If no albums exist, recommend creating one ### If Album Specified 1. Call `find_album(name)` — fuzzy match by name, slug, or partial 2. Call `get_album_progress(album_slug)` — get status, phase, track counts 3. Recommend next action based on detected phase --- ## Decision Tree Analyze album and track statuses to determine the optimal next action: ``` Album Status = "Concept" → "Define the album concept. Run the 7 Planning Phases with /bitwize-music:album-conceptualizer" Album Status = "Research Complete" → Any tracks Sources Pending? YES → "Sources need verification. Review SOURCES.md and verify each source." NO → "Ready to write! Pick a track and use /bitwize-music:lyric-writer" Album has tracks with status "Not Started" → "Write lyrics for track [first not-started track]. Use /bitwize-music:lyric-writer" Album has tracks with status "In Progress" (lyrics partially written) → "Finish lyrics for track [first in-progress track]. Use /bitwize-music:lyric-writer" Album has tracks with status "Sources Pending" → "Verify sources for track [name]. Check SOURCES.md, then update sources_verified field." All tracks have lyrics, none generated → "All lyrics complete! Style prompts should be ready. Run /bitwize-music:pronunciation-specialist to check for pronunciation risks, then /bitwize-music:lyric-reviewer for final QC, then /bitwize-music:pre-generation-check to validate all gates before generating on Suno." Some tracks generated, some not → "Generate track [first un-generated track] on Suno. Use /bitwize-music:suno-engineer" All tracks generated → "All tracks generated! Import audio with /bitwize-music:import-audio, then master with /bitwize-music:mastering-engineer" Album Status = "Complete" → "Album is complete! Release with /bitwize-music:release-director" Album Status = "Released" → "This album is released! Consider promotional content with /bitwize-music:promo-director" → Also suggest: "Start a new album? Check your ideas with /bitwize-music:album-ideas list" ``` --- ## Output Format ``` NEXT STEP ========= Album: [name] ([genre]) — [status] Progress: [X/Y tracks complete] RECOMMENDED ACTION: [Clear, specific instruction with skill name] WHY: [One sentence explaining why this is the right next step] AFTER THAT: [Brief mention of what comes after this step] ``` ### When Analyzing Multiple Albums If no album specified and multiple exist: ``` NEXT STEP ========= You have X albums. Here's the most actionable: PRIORITY 1: [album-name] ([genre]) Status: [status] | Progress: [X/Y tracks] → [Recommended action] Also in progress: - [album-2] — [brief status] - [album-3] — [brief status] Or start something new: - /bitwize-music:album-ideas list (X ideas pending) - /bitwize-music:new-album ``` --- ## Priority Rules When multiple albums are in progress, prioritize: 1. **Closest to completion** — An album with 7/8 tracks done beats one with 2/10 2. **Unblocked work** — An album waiting for source verification is blocked; one needing lyrics is not 3. **Last worked on** — Favor the album from the last session (continuity) 4. **Higher track count** — Bigger album = more investment to protect --- ## Remember 1. **One clear recommendation** — Don't list 5 options. Pick the best one. 2. **Include the skill name** — "/bitwize-music:lyric-writer" not "write lyrics" 3. **Be specific about which track** — "Write lyrics for track 04-the-escape" not "write some lyrics" 4. **Explain why briefly** — Users trust recommendations they understand 5. **Don't repeat resume** — If user just ran resume, don't re-print all the same info