Initial Auto-Build plugin structure
This commit is contained in:
77
plugin/commands/status.md
Normal file
77
plugin/commands/status.md
Normal file
@@ -0,0 +1,77 @@
|
||||
---
|
||||
description: Show current Auto-Build status
|
||||
---
|
||||
|
||||
# Auto-Build Status
|
||||
|
||||
Display the current status of Auto-Build, including active specs and builds.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. **Check Data Directory**
|
||||
- Verify `.auto-build-data/` exists
|
||||
- If not, inform user to run setup: `bash .auto-build/scripts/setup.sh`
|
||||
|
||||
2. **List Active Specs**
|
||||
- Read all directories in `.auto-build-data/specs/`
|
||||
- For each spec, read `status.json` to get current state
|
||||
- Display in table format:
|
||||
```
|
||||
| Feature | Status | Progress | Last Updated |
|
||||
|---------|--------|----------|--------------|
|
||||
| user-dashboard | IMPLEMENTING | 3/7 tasks | 2h ago |
|
||||
| api-refactor | SPEC_COMPLETE | - | 1d ago |
|
||||
```
|
||||
|
||||
3. **Show Active Worktrees**
|
||||
- Read `.auto-build-data/worktrees/worktree-registry.json`
|
||||
- Display active worktrees with their paths
|
||||
|
||||
4. **Memory Summary**
|
||||
- Count entries in `patterns.json` and `gotchas.json`
|
||||
- Show last update timestamp
|
||||
|
||||
## Status States
|
||||
|
||||
| State | Description |
|
||||
|-------|-------------|
|
||||
| `SPEC_DRAFT` | Specification in progress |
|
||||
| `SPEC_COMPLETE` | Specification ready, awaiting build |
|
||||
| `PLANNING` | Creating implementation plan |
|
||||
| `PLANNING_COMPLETE` | Plan ready, awaiting implementation |
|
||||
| `IMPLEMENTING` | Code implementation in progress |
|
||||
| `IMPLEMENTATION_COMPLETE` | Code done, awaiting QA |
|
||||
| `QA_REVIEW` | QA validation in progress |
|
||||
| `QA_FAILED` | QA found issues, needs fixes |
|
||||
| `COMPLETE` | Feature fully implemented and validated |
|
||||
|
||||
## Output Format
|
||||
|
||||
```
|
||||
======================================
|
||||
Auto-Build Status
|
||||
======================================
|
||||
|
||||
Active Builds:
|
||||
- user-dashboard: IMPLEMENTING (3/7 tasks)
|
||||
Worktree: ../ab-worktrees/project-user-dashboard/
|
||||
Last update: 2 hours ago
|
||||
|
||||
- api-refactor: SPEC_COMPLETE
|
||||
No worktree
|
||||
Last update: 1 day ago
|
||||
|
||||
Memory:
|
||||
- Patterns: 12 entries
|
||||
- Gotchas: 5 entries
|
||||
- Last updated: 3 days ago
|
||||
|
||||
Quick Actions:
|
||||
- Continue build: /ab:build user-dashboard
|
||||
- Start new: /ab:spec "Feature Name"
|
||||
```
|
||||
|
||||
## Edge Cases
|
||||
|
||||
- If no specs exist: "No active builds. Start with /ab:spec <name>"
|
||||
- If data directory missing: "Run setup first: bash .auto-build/scripts/setup.sh"
|
||||
Reference in New Issue
Block a user