| name | status |
| mode | agent |
| description | Show a comprehensive project status report with git state, active specs, and suggested next actions |
| argument-hint | |
Status
Overview
Provides a comprehensive status report when starting work or switching context. Analyzes current git state, active work, and project health to orient developers and suggest next actions.
Process
Step 1: Git Status & Context Analysis
Current Position:
Run the following using Bash:
git status --porcelain
git log --oneline -5
git log main..HEAD --oneline
git log HEAD..main --oneline
git stash list
git branch -v
Extract:
- Branch name and relationship to main/origin
- Commits ahead/behind main branch
- Last commit message and timestamp
- Uncommitted changes summary (files modified, added, deleted)
- Stash status if any
Recent Activity:
- Last 3-5 commits on current branch
- Recent activity on main branch that might affect current work
Step 2: Active Work Detection
Code Captain Integration:
Use Bash to scan for active specifications:
ls -t .code-captain/specs/*/spec.md 2>/dev/null | head -1
ls .code-captain/specs/*/user-stories/story-*.md 2>/dev/null
Use Read to load:
user-stories/README.md for story overview and progress
- The active story file for current task context
Task Progress Parsing:
For each story file, parse:
grep -c "^\- \[x\]" story-file.md
grep -c "^\- \[[x ]\]" story-file.md
grep -n "^\- \[ \]" story-file.md | head -1
Project Context:
- Detect if work appears to be mid-feature vs starting fresh
- Use
Grep to identify TODO comments in recently modified files
Step 3: Project Health Check
Basic Viability (use Bash):
- Check for common dependency files (
package.json, requirements.txt, etc.)
- Verify critical config files exist
Immediate Blockers:
git diff --check
grep -r "<<<<<<" . --include="*.{js,ts,py,cs,go}" 2>/dev/null | head -5
Step 4: Present Status Report
Output as clean, formatted text (not wrapped in code blocks) directly in the chat response. Use Unicode characters and box-drawing characters for visual appeal.
Standard Status Report:
โ Code Captain Status Report
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ CURRENT POSITION
Branch: [branch-name] ([N commits ahead/behind of main])
Last commit: "[message]" ([time ago])
Uncommitted: [N modified files in path/]
๐ ACTIVE WORK
Spec: [Specification name]
Progress: Story [N] ([story name]) - [status]
Tasks completed: [N/total] tasks ([%])
Last completed: [task description] โ
Next task: [task description]
๐ฏ SUGGESTED ACTIONS
โข [Action based on current state]
โข [Action based on current state]
โก QUICK COMMANDS
/execute-task # Continue current task
/swab # Quick code cleanup
Clean State Example:
โ Code Captain Status Report
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ CURRENT POSITION
Branch: main (up to date)
Last commit: "Fix user authentication bug" (1 day ago)
Working directory: Clean โ
๐ ACTIVE WORK
No active specifications found
Ready to start new work
๐ฏ SUGGESTED ACTIONS
โข Start new feature development
โข Review pending issues or backlog
โก QUICK COMMANDS
/create-spec # Plan new feature
/swab # Clean up existing code
Problem State Example:
โ Code Captain Status Report
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ CURRENT POSITION
Branch: feature/payment-flow (5 commits ahead, 2 behind main)
Last commit: "WIP: payment validation" (3 days ago)
Uncommitted: 7 modified files, 2 conflicts
โ ๏ธ IMMEDIATE ATTENTION
โข Merge conflicts in src/api/payments.js, package.json
โข Branch is 2 commits behind main (potential conflicts)
โข Stashed changes from 2 days ago
๐ ACTIVE WORK
Spec: Payment Processing Integration
Progress: Story 1 (User completes payment flow) - In Progress
Tasks completed: 3/5 tasks (60%)
Next task: 1.4 Validate payment with external API
๐ฏ SUGGESTED ACTIONS
โข Resolve merge conflicts first
โข Sync with main branch changes
โข Review stashed changes for relevance
โก QUICK COMMANDS
/execute-task # Continue current task
/swab # Code cleanup
Command Suggestion Logic
Based on project state, suggest relevant next steps:
- Is there a merge conflict? โ Suggest conflict resolution
- Is working directory dirty? โ Suggest commit or stash
- Is branch behind main? โ Suggest sync
- Is there an active task? โ Suggest
/execute-task
- Is current task complete? โ Suggest next task
- No active work? โ Suggest
/create-spec or /plan-product
- Code quality issues? โ Suggest
/swab
- Missing architecture docs? โ Suggest
/create-adr
- Research needed? โ Suggest
/research
- Always: โ Show
/swab for cleanup
Error Handling
Not a Git Repository
โ Not in a git repository
Initialize git first: git init
No Code Captain Structure
โ Code Captain Status Report
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ CURRENT POSITION
Branch: main (up to date)
Working directory: Clean โ
๐ ACTIVE WORK
No Code Captain specifications found
๐ฏ SUGGESTED ACTIONS
โข Set up Code Captain workflow
โข Create first feature specification
โก QUICK COMMANDS
/initialize # Initialize Code Captain
/create-spec # Create first specification
Story Status Detection
Parse story status from header:
Not Started - No tasks completed
In Progress - Some tasks completed, some remaining
Completed โ
- All tasks and acceptance criteria completed
Active Work Prioritization:
- Multiple specs exist: Show the most recently modified spec
- Single spec, multiple stories: Show the story with "In Progress" status, or first "Not Started" story
- All stories complete: Show overall completion status and suggest next actions
- No specs found: Indicate no Code Captain specifications exist
Security & Privacy
- All analysis happens locally
- No external API calls or data transmission
- Git history and file contents remain private
- Avoid displaying sensitive data from commit messages