Analyze project state from .aiwg/ artifacts and provide contextual status with recommended next steps
Analyzes `.aiwg/` artifacts to detect current SDLC phase, assess milestone completion, identify blockers, and recommend next commands.
/plugin marketplace add jmagly/ai-writing-guide/plugin install jmagly-sdlc-plugins-sdlc@jmagly/ai-writing-guideproject-directory=.sonnetAnalyze .aiwg/ artifacts to determine project state and provide actionable status report with phase-appropriate next commands.
When invoked with /project-status [project-directory]:
.aiwg/ directory for artifacts[project-directory] (optional): Path to project root (default: current directory .)Scans .aiwg/ directory for:
intake/project-intake.md, solution-profile.md, option-matrix.mdplanning/phase-plan-*.md, planning/iteration-plan-*.mdrequirements/*.mdarchitecture/SAD.md, architecture/ADR-*.mdrisks/risk-list.mdtesting/test-*.mdsecurity/threat-model.md, security/security-*.mdquality/code-review-*.md, quality/retrospective-*.mddeployment/deployment-plan.mdgates/gate-*.mdhandoffs/handoff-*.mddecisions/change-*.mdteam/team-profile.yaml, team/agent-assignments.mdConsole output: Formatted status report with phase detection, milestone progress, blockers, and recommended next steps.
# Check if .aiwg/ exists
ls .aiwg/ 2>/dev/null
# If not found, check for legacy intake/ directory
ls intake/ 2>/dev/null
Decision:
.aiwg/ exists → proceed with analysisintake/ exists → warn about legacy location, proceed with limited analysis/intake-wizard to start."Phase Detection Logic (priority order):
Pre-Inception (No intake):
.aiwg/intake/ directory OR intake files missing/intake-wizard (interactive generation)/intake-from-codebase (analyze existing code)/intake-start (enhance user-provided intake files)Inception (Intake complete, no phase plan):
planning/phase-plan-inception.md/flow-concept-to-inceptionInception Active (Phase plan exists, not complete):
planning/phase-plan-inception.md exists + NO gates/gate-inception.md OR gate status ≠ PASSEDElaboration (Inception gate passed, elaboration active):
gates/gate-inception.md PASSED + planning/phase-plan-elaboration.md existsConstruction (Elaboration gate passed, construction active):
gates/gate-elaboration.md PASSED + planning/iteration-plan-*.csv existsTransition (Construction complete, deployment prep):
gates/gate-construction.md PASSED + deployment/deployment-plan.md existsProduction (Deployed):
deployment/production-deployment-*.md exists with "Status: Deployed"For detected phase, check milestone artifacts:
Required:
intake/project-intake.md - Project vision and scopeintake/solution-profile.md - Profile and improvement roadmapintake/option-matrix.md - Priorities and framework applicationplanning/phase-plan-inception.md - Inception activitiesrisks/risk-list.md - Initial risk registerteam/agent-assignments.md - Agent assignmentsOptional but Recommended:
architecture/ADR-001-*.md - Initial architecture decisionsrequirements/vision.md - Business case and visionrequirements/business-case.md - Funding and ROIGate Criteria (for gates/gate-inception.md):
Required:
planning/phase-plan-elaboration.md - Elaboration activitiesarchitecture/SAD.md - Software Architecture Documentarchitecture/executable-prototype.md - Architectural baselinerequirements/use-case-*.md - Use case specifications (3+ architecturally significant)requirements/supplementary-requirements.md - NFRsplanning/iteration-plan-elaboration.csv - Iteration planrisks/risk-list.md - Updated with retired HIGH risksOptional but Recommended:
architecture/ADR-*.md - Multiple ADRs (5-10)testing/test-strategy.md - Test approachsecurity/threat-model.md - Security analysisdeployment/cm-plan.md - Configuration managementteam/development-case.md - Process tailoringGate Criteria (for gates/gate-elaboration.md):
Required:
planning/iteration-plan-*.csv - Iteration plans (multiple)quality/iteration-assessment-*.md - Iteration assessmentstesting/test-results-*.md - Test evidence (unit, integration, E2E)requirements/use-case-*.md - All use cases implementeddeployment/integration-build-plan.md - CI/CD pipelineOptional but Recommended:
quality/code-review-*.md - Code review reportstesting/test-coverage-report.md - Coverage metricsquality/retrospective-*.md - Sprint retrospectivesarchitecture/ADR-*.md - Additional ADRs for design decisionssecurity/security-review-*.md - Security validationsGate Criteria (for gates/gate-construction.md):
Required:
deployment/deployment-plan.md - Rollout plandeployment/release-notes.md - User-facing documentationteam/training-pack.md - Training materialsdeployment/support-handover.md - Support readinesstesting/product-acceptance-plan.md - Final acceptance testsdeployment/rollback-plan.md - Rollback proceduresOptional but Recommended:
deployment/runbook.md - Operational proceduressecurity/security-sign-off.md - Security approvalquality/orr-checklist.md - Operational Readiness Reviewteam/knowledge-transfer-*.md - Knowledge handoffdeployment/hypercare-plan.md - Post-launch monitoringGate Criteria (for gates/gate-transition.md):
Critical Blockers (stop progress):
Important Gaps (slow progress):
Minor Gaps (nice to have):
Based on phase and state, recommend 3-5 most relevant commands:
**Recommended Next Steps**:
Choose ONE intake method:
1. **Generate intake interactively** (recommended for new projects):
- `/intake-wizard "your project description"`
- Or complete partial intake: `/intake-wizard --complete --interactive`
2. **Generate intake from codebase** (for existing projects):
- `/intake-from-codebase .`
3. **Enhance user-provided intake files** (if you manually created intake docs):
- `/intake-start .aiwg/intake/`
**Recommended Next Steps**:
1. **Begin Concept → Inception flow**:
- `/flow-concept-to-inception`
- Natural language: "Start Inception" or "Let's begin Inception phase"
2. **Initiate risk management**:
- `/flow-risk-management-cycle`
3. **Document architecture decisions** (if not done):
- Manually create `architecture/ADR-001-<decision>.md`
**Recommended Next Steps**:
1. **Check Inception gate readiness**:
- `/flow-gate-check inception`
2. **If gate passed, transition to Elaboration**:
- `/flow-inception-to-elaboration .aiwg/`
3. **Blockers** (if gate not ready):
- {list missing artifacts}
- {list open HIGH risks}
- {list pending decisions}
**Recommended Next Steps**:
1. **Build architectural baseline**:
- `/build-poc <feature-or-risk>` (for risky architecture)
- Manually create `architecture/SAD.md` and `architecture/executable-prototype.md`
2. **Evolve architecture**:
- `/flow-architecture-evolution <trigger>`
3. **Retire risks**:
- `/flow-risk-management-cycle .aiwg/`
4. **Define test strategy**:
- `/flow-test-strategy-execution <test-level>`
5. **Check Elaboration gate readiness**:
- `/flow-gate-check elaboration`
6. **If gate passed, transition to Construction**:
- `/flow-elaboration-to-construction .aiwg/`
**Recommended Next Steps**:
1. **Run dual-track iteration** (recommended):
- `/flow-iteration-dual-track <iteration-number>`
2. **Or separate Discovery and Delivery**:
- `/flow-discovery-track <iteration-number+1>` (plan ahead)
- `/flow-delivery-track <iteration-number>` (deliver current)
3. **Execute test strategy**:
- `/flow-test-strategy-execution <test-level> <component>`
4. **Manage evolving requirements**:
- `/flow-requirements-evolution .aiwg/ --iteration <N>`
5. **Review security**:
- `/flow-security-review-cycle .aiwg/ --iteration <N>`
6. **Conduct retrospective** (end of iteration):
- `/flow-retrospective-cycle iteration <iteration-number>`
7. **Check Construction gate readiness** (when feature complete):
- `/flow-gate-check construction`
**Recommended Next Steps**:
1. **Validate Construction gate**:
- `/flow-gate-check construction`
2. **If gate passed, transition to Transition**:
- `/flow-construction-to-transition .aiwg/`
3. **Blockers** (if gate not ready):
- {list failing tests}
- {list coverage gaps}
- {list open defects}
**Recommended Next Steps**:
1. **Deploy to production**:
- `/flow-deploy-to-production <blue-green|canary> <version>`
2. **Validate handoffs**:
- `/flow-handoff-checklist Construction Transition`
3. **Initiate hypercare monitoring**:
- `/flow-hypercare-monitoring <duration-days>`
4. **Check Transition gate readiness**:
- `/flow-gate-check transition`
**Recommended Next Steps**:
1. **Monitor health**:
- `/project-health-check`
2. **Respond to incidents** (if issues):
- `/flow-incident-response <incident-id> <severity>`
3. **Optimize performance** (if degradation):
- `/flow-performance-optimization <trigger> <component>`
4. **Validate compliance** (periodic):
- `/flow-compliance-validation <framework>`
5. **Onboard new team members** (if team growing):
- `/flow-team-onboarding <name> <role>`
6. **Conduct retrospective** (periodic):
- `/flow-retrospective-cycle release <version>`
Output Format:
# Project Status Report
**Generated**: {current date and time}
**Project**: {from intake/project-intake.md metadata, or "Unknown"}
**Profile**: {from intake/solution-profile.md, or "Not Set"}
**Priority**: {from intake/option-matrix.md Step 3 top weight, or "Not Set"}
---
## Current Phase
**Phase**: {Pre-Inception | Inception | Elaboration | Construction | Transition | Production}
**Status**: {Not Started | Active | Blocked | Complete}
**Duration**: {calculated from phase-plan dates, if available}
{Brief description of phase focus}
---
## Milestone Progress
### {Current Phase} Milestone
**Required Artifacts**: {X/Y complete}
- [x] {completed artifact 1}
- [x] {completed artifact 2}
- [ ] {missing artifact 1} ← **REQUIRED**
- [ ] {missing artifact 2} ← **REQUIRED**
**Optional Artifacts**: {X/Y complete}
- [x] {completed optional 1}
- [ ] {missing optional 1}
**Gate Criteria**: {X/Y met}
- [x] {met criterion 1}
- [ ] {unmet criterion 1} ← **BLOCKER**
---
## Risks and Blockers
### Critical Blockers (Stop Progress)
{If none: "✅ No critical blockers"}
1. **{Blocker 1}**
- Impact: {description}
- Resolution: {recommended action}
- Owner: {agent or team member}
2. **{Blocker 2}**
- Impact: {description}
- Resolution: {recommended action}
- Owner: {agent or team member}
### Important Gaps (Slow Progress)
{If none: "✅ No important gaps"}
- {Gap 1}: {description and recommendation}
- {Gap 2}: {description and recommendation}
### Active Risks
{Read from risks/risk-list.md, show top 3-5 HIGH/MEDIUM risks}
**Risk #{n}**: {risk name}
- Status: {Identified | Mitigating | Monitoring}
- Impact: {HIGH | MEDIUM}
- Mitigation: {summary of strategies}
---
## Team and Velocity
**Team Size**: {from intake/project-intake.md or team/team-profile.yaml}
**Current Iteration**: {from planning/iteration-plan-*.csv, if in Construction}
**Active Agents**: {from team/agent-assignments.md, if exists}
{If iteration data available:}
**Velocity**: {completed story points / planned story points}
**Test Coverage**: {from testing/test-coverage-report.md, if exists}
**Open Defects**: {from quality/ or testing/, if tracked}
---
## Recommended Next Steps
{Based on phase and state, show 3-5 most relevant commands}
### Immediate Actions
1. **{Command 1}**
```bash
/{command-name} {args}
{Why: brief explanation}
/{command-name} {args}
{Why: brief explanation}{Command 3}
/{command-name} {args}
{Why: brief explanation}
{Command 4}
/{command-name} {args}
{Why: brief explanation}
All Available Commands:
Intake Methods (choose ONE):
/intake-wizard - Generate intake interactively/intake-from-codebase - Generate intake by analyzing codebase/intake-start - Enhance user-provided intake filesPhase Workflows:
/flow-concept-to-inception - Execute Inception phase/flow-inception-to-elaboration - Transition to Elaboration/flow-elaboration-to-construction - Transition to Construction/flow-construction-to-transition - Transition to Transition/flow-iteration-dual-track - Run Discovery + Delivery iteration/flow-gate-check <phase> - Validate phase gate criteria/flow-risk-management-cycle - Manage project risks/flow-test-strategy-execution - Execute test strategy/flow-security-review-cycle - Security validation/flow-architecture-evolution - Evolve architecture/flow-deploy-to-production - Deploy to production/flow-hypercare-monitoring - Post-launch monitoring/project-health-check - Overall project health/project-status - This report (refresh status)For complete command list, see .claude/commands/ directory.
Natural Language Support: You can use natural language instead of slash commands:
/project-status, say "Where are we?" or "What's next?"/flow-inception-to-elaboration, say "Transition to Elaboration" or "Start Elaboration".aiwg/docs/simple-language-translations.md for complete translation tableTip: Run /project-status (or say "Where are we?") anytime to refresh this report and see updated recommendations.
## Phase Progression Reference
**Master Workflow** (happy path):
Pre-Inception ↓ Choose ONE intake method:
**Continuous Flows** (run throughout lifecycle):
- `flow-risk-management-cycle` - Ongoing risk tracking
- `flow-requirements-evolution` - Living requirements management
- `flow-architecture-evolution` - Architecture refinement
- `flow-security-review-cycle` - Security validation
- `flow-change-control` - Change management
- `flow-retrospective-cycle` - Continuous improvement
**Ad-Hoc Flows** (trigger-based):
- `flow-team-onboarding` - When new team members join
- `flow-knowledge-transfer` - When expertise handoff needed
- `flow-cross-team-sync` - When coordination needed
- `flow-incident-response` - When production issues occur
- `flow-performance-optimization` - When performance degrades
- `flow-compliance-validation` - When compliance audit required
- `build-poc` - When technical risk needs validation
## Error Handling
### No .aiwg/ Directory
```markdown
# Project Status Report
**Status**: ❌ No SDLC artifacts found
The `.aiwg/` directory does not exist in this project.
**Recommended Next Steps**:
1. **Start a new SDLC project**:
```bash
/intake-wizard "your project description"
Analyze existing codebase:
/intake-from-codebase .
Learn more:
agentic/code/frameworks/sdlc-complete/README.mdagentic/code/frameworks/sdlc-complete/plan-act-sdlc.md
### Corrupted or Incomplete Artifacts
If artifacts exist but are malformed:
- **WARN**: "Found {artifact} but could not parse. May be incomplete or corrupted."
- **Recommendation**: "Review {artifact} manually or regenerate using {command}."
### Conflicting State
If artifacts indicate conflicting states (e.g., Elaboration gate PASSED but no Construction artifacts):
- **WARN**: "Conflicting state detected. Gate passed but next phase not started."
- **Recommendation**: "Run `/flow-{phase}-to-{next-phase}` to transition."
## Best Practices
1. **Run frequently**: Use `/project-status` at start of each work session to orient
2. **After major milestones**: Check status after completing gate checks or phase transitions
3. **When stuck**: If unsure what to do next, check status for recommendations
4. **Team coordination**: Share status report with team to align on current state
5. **Progress tracking**: Compare status reports over time to measure velocity
## Success Criteria
This command succeeds when:
- [ ] `.aiwg/` directory scanned successfully
- [ ] Current phase detected accurately
- [ ] Milestone progress calculated
- [ ] Blockers identified (if any)
- [ ] Next steps recommended (3-5 relevant commands)
- [ ] Status report formatted and output to console