Display current task status and suggest the next action based on project state.
Displays project status and suggests next steps based on current SDLC state.
/plugin marketplace add foolishimp/ai_sdlc_method/plugin install aisdlc-methodology@aisdlcDisplay current task status and suggest the next action based on project state.
<!-- Implements: REQ-TOOL-003 (Workflow Commands) -->Show a snapshot of project status and intelligently suggest next steps.
Read the plugin version from the plugin.json file. Try these locations in order:
~/.claude/plugins/marketplaces/aisdlc/**/aisdlc-methodology/.claude-plugin/plugin.json (marketplace cache).claude-plugin/plugin.json (relative to the command file location)../plugin.json (if commands are in a subdirectory)aisdlc-methodology/.claude-plugin/plugin.json in the projectIMPORTANT: For marketplace-installed plugins, the version is in the marketplace cache, NOT in the project directory.
Extract the "version" field and display it in the header (e.g., "v0.5.5").
If version cannot be found, display "v0.5.5" as the hardcoded fallback (current release).
First, check if .ai-workspace/ exists:
/aisdlc-initCheck for these mandatory artifacts:
docs/requirements/INTENT.mddocs/requirements/AISDLC_IMPLEMENTATION_REQUIREMENTS.mddocs/design/*/AISDLC_IMPLEMENTATION_DESIGN.mddocs/TRACEABILITY_MATRIX.mdRead .ai-workspace/tasks/active/ACTIVE_TASKS.md:
List recently finished tasks from .ai-workspace/tasks/finished/ (last 5).
Based on state, suggest the most logical next action from this progression:
┌─────────────────────────────────────────────────────────────┐
│ Step 1: /aisdlc-init │
│ Initialize workspace and artifact templates │
│ ↓ │
│ Step 2: Edit docs/requirements/INTENT.md │
│ Describe what you want to build │
│ ↓ │
│ Step 3: "Help me create requirements from INTENT.md" │
│ → Generates REQ-F-*, REQ-NFR-*, etc. │
│ ↓ │
│ Step 4: "Design a solution for REQ-F-XXX-001" │
│ → Creates components, ADRs, traceability │
│ ↓ │
│ Step 5: "Break down the design into tasks" │
│ → Creates work items in ACTIVE_TASKS.md │
│ ↓ │
│ Step 6: "Work on Task #1 using TDD" │
│ → RED → GREEN → REFACTOR → COMMIT │
│ ↓ │
│ Step 7: /aisdlc-checkpoint-tasks │
│ → Save progress │
│ ↓ │
│ Step 8: /aisdlc-release │
│ → Create release with changelog │
└─────────────────────────────────────────────────────────────┘
Next Step Logic:
| State | You Are At | Suggested Next Step |
|---|---|---|
| No workspace | — | Step 1: /aisdlc-init |
| No INTENT.md content | Step 1 ✓ | Step 2: Edit docs/requirements/INTENT.md |
| INTENT exists, no REQ-* | Step 2 ✓ | Step 3: "Help me create requirements" |
| REQ-* exists, no design | Step 3 ✓ | Step 4: "Design a solution for REQ-F-XXX-001" |
| Design exists, no tasks | Step 4 ✓ | Step 5: "Break down the design into tasks" |
| Tasks exist, none in progress | Step 5 ✓ | Step 6: Pick a task: "Work on Task #X" |
| Task in progress | Step 6 | Continue or /aisdlc-checkpoint-tasks |
| All tasks complete | Step 7 ✓ | Step 8: /aisdlc-release |
╔══════════════════════════════════════════════════════════════╗
║ AI SDLC Project Status ║
║ Version: {version} ║
╚══════════════════════════════════════════════════════════════╝
📁 Workspace: {✅ Initialized | ❌ Not found - run /aisdlc-init}
📄 Artifacts:
{✅ | ❌} INTENT.md {status: Empty | Has content}
{✅ | ❌} Requirements {count} REQ-* keys defined
{✅ | ❌} Design {count} components defined
{✅ | ❌} Traceability Matrix {coverage %}
📋 Tasks:
In Progress: {count}
Pending: {count}
Blocked: {count}
Completed: {count}
Active Tasks:
{list task titles with REQ-* tags, or "(No active tasks)"}
✅ Recently Finished:
{list last 5 finished tasks or "(None yet)"}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 NEXT STEP: {intelligent suggestion based on state}
{explanation of why this is the next step}
Example: "{specific command or prompt to use}"
Note: This command is read-only. Run the suggested action to proceed.