omgkit 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/plugin/agents/autonomous-orchestrator.yaml +215 -0
- package/plugin/commands/auto/approve.md +258 -0
- package/plugin/commands/auto/checkpoint.md +253 -0
- package/plugin/commands/auto/init.md +236 -0
- package/plugin/commands/auto/next.md +278 -0
- package/plugin/commands/auto/reject.md +278 -0
- package/plugin/commands/auto/resume.md +233 -0
- package/plugin/commands/auto/start.md +212 -0
- package/plugin/commands/auto/status.md +212 -0
- package/plugin/commands/auto/verify.md +353 -0
- package/plugin/commands/workflow/1000x-innovation.md +61 -0
- package/plugin/commands/workflow/100x-architecture.md +60 -0
- package/plugin/commands/workflow/10x-improvement.md +63 -0
- package/plugin/commands/workflow/agent-development.md +60 -0
- package/plugin/commands/workflow/api-design.md +61 -0
- package/plugin/commands/workflow/api-testing.md +61 -0
- package/plugin/commands/workflow/authentication.md +60 -0
- package/plugin/commands/workflow/best-practices.md +61 -0
- package/plugin/commands/workflow/bug-fix.md +61 -0
- package/plugin/commands/workflow/code-review.md +52 -0
- package/plugin/commands/workflow/feature.md +73 -0
- package/plugin/commands/workflow/fine-tuning.md +60 -0
- package/plugin/commands/workflow/full-feature.md +70 -0
- package/plugin/commands/workflow/marketing.md +53 -0
- package/plugin/commands/workflow/migration.md +60 -0
- package/plugin/commands/workflow/model-evaluation.md +59 -0
- package/plugin/commands/workflow/optimization.md +60 -0
- package/plugin/commands/workflow/penetration-testing.md +60 -0
- package/plugin/commands/workflow/performance-optimization.md +60 -0
- package/plugin/commands/workflow/prompt-engineering.md +51 -0
- package/plugin/commands/workflow/rag-development.md +79 -0
- package/plugin/commands/workflow/refactor.md +59 -0
- package/plugin/commands/workflow/schema-design.md +70 -0
- package/plugin/commands/workflow/security-audit.md +61 -0
- package/plugin/commands/workflow/sprint-execution.md +65 -0
- package/plugin/commands/workflow/sprint-retrospective.md +61 -0
- package/plugin/commands/workflow/sprint-setup.md +64 -0
- package/plugin/commands/workflow/technical-docs.md +52 -0
- package/plugin/commands/workflow/technology-research.md +61 -0
- package/plugin/skills/autonomous/project-orchestration/SKILL.md +332 -0
- package/plugin/templates/autonomous/archetypes/api-service.yaml +78 -0
- package/plugin/templates/autonomous/archetypes/cli-tool.yaml +67 -0
- package/plugin/templates/autonomous/archetypes/fullstack-app.yaml +97 -0
- package/plugin/templates/autonomous/archetypes/library.yaml +64 -0
- package/plugin/templates/autonomous/archetypes/saas-mvp.yaml +417 -0
- package/plugin/templates/autonomous/decision-framework.yaml +337 -0
- package/plugin/templates/autonomous/discovery-questions.yaml +795 -0
- package/plugin/templates/autonomous/features-schema.yaml +254 -0
- package/plugin/templates/autonomous/memory-system.yaml +298 -0
- package/plugin/templates/autonomous/prd-template.md +251 -0
- package/plugin/templates/autonomous/state-schema.yaml +383 -0
- package/plugin/workflows/autonomous/discovery.yaml +232 -0
- package/plugin/workflows/autonomous/execution.yaml +275 -0
- package/plugin/workflows/autonomous/planning.yaml +244 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Resume autonomous execution from saved state
|
|
3
|
+
allowed-tools: Task, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
4
|
+
argument-hint: "[--retry | --skip | --from <step>]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Resume Autonomous Execution
|
|
8
|
+
|
|
9
|
+
Resume project development from the last saved state.
|
|
10
|
+
|
|
11
|
+
## Resume Modes
|
|
12
|
+
|
|
13
|
+
### Default Resume
|
|
14
|
+
Continue from exact save point:
|
|
15
|
+
```bash
|
|
16
|
+
/auto:resume
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Retry Mode
|
|
20
|
+
Retry the last failed action:
|
|
21
|
+
```bash
|
|
22
|
+
/auto:resume --retry
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Skip Mode
|
|
26
|
+
Skip the problematic step and continue:
|
|
27
|
+
```bash
|
|
28
|
+
/auto:resume --skip
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### From Specific Point
|
|
32
|
+
Resume from a specific step:
|
|
33
|
+
```bash
|
|
34
|
+
/auto:resume --from user_authentication
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Resume Process
|
|
38
|
+
|
|
39
|
+
### 1. Load State
|
|
40
|
+
|
|
41
|
+
Read `.omgkit/state.yaml`:
|
|
42
|
+
```yaml
|
|
43
|
+
phase: "backend"
|
|
44
|
+
status: "blocked" # or "checkpoint", "in_progress"
|
|
45
|
+
|
|
46
|
+
resume_point:
|
|
47
|
+
phase: "backend"
|
|
48
|
+
feature: "user_authentication"
|
|
49
|
+
step: "implement_login"
|
|
50
|
+
attempt: 2
|
|
51
|
+
|
|
52
|
+
error_context:
|
|
53
|
+
message: "Test failed: should hash password"
|
|
54
|
+
file: "src/services/user.service.ts"
|
|
55
|
+
line: 45
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 2. Validate Resume
|
|
59
|
+
|
|
60
|
+
Check if resume is possible:
|
|
61
|
+
- [ ] State file exists
|
|
62
|
+
- [ ] Not in "completed" status
|
|
63
|
+
- [ ] Resume point is valid
|
|
64
|
+
- [ ] No unresolved checkpoints (unless approved)
|
|
65
|
+
|
|
66
|
+
If checkpoint pending:
|
|
67
|
+
```
|
|
68
|
+
Cannot resume: Checkpoint pending approval.
|
|
69
|
+
|
|
70
|
+
Run `/auto:approve` to continue or `/auto:reject` with feedback.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 3. Restore Context
|
|
74
|
+
|
|
75
|
+
Load relevant context:
|
|
76
|
+
1. **Memory files**: `.omgkit/memory/context/`
|
|
77
|
+
2. **Generated artifacts**: `.omgkit/generated/`
|
|
78
|
+
3. **Current feature state**: Progress, tests, issues
|
|
79
|
+
4. **Error context**: If resuming from error
|
|
80
|
+
|
|
81
|
+
### 4. Execute Resume
|
|
82
|
+
|
|
83
|
+
Based on mode:
|
|
84
|
+
|
|
85
|
+
#### Default/Retry
|
|
86
|
+
```
|
|
87
|
+
Resuming from: {phase} > {feature} > {step}
|
|
88
|
+
Attempt: {attempt + 1}
|
|
89
|
+
|
|
90
|
+
[Previous context restored]
|
|
91
|
+
[Continuing execution...]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### Skip
|
|
95
|
+
```
|
|
96
|
+
Skipping: {step}
|
|
97
|
+
Marking as: SKIPPED (requires manual completion)
|
|
98
|
+
|
|
99
|
+
Continuing with next step: {next_step}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
#### From Specific
|
|
103
|
+
```
|
|
104
|
+
Resetting to: {specified_step}
|
|
105
|
+
Warning: Progress after this point will be re-executed.
|
|
106
|
+
|
|
107
|
+
Continuing from: {specified_step}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 5. Continue Execution
|
|
111
|
+
|
|
112
|
+
After resume setup:
|
|
113
|
+
1. Execute remaining steps in current feature
|
|
114
|
+
2. Continue with `/auto:start` logic
|
|
115
|
+
3. Handle checkpoints and quality gates normally
|
|
116
|
+
|
|
117
|
+
## Recovery Strategies
|
|
118
|
+
|
|
119
|
+
### On Test Failure
|
|
120
|
+
|
|
121
|
+
```yaml
|
|
122
|
+
error_type: "test_failure"
|
|
123
|
+
recovery:
|
|
124
|
+
- analyze_failure: true
|
|
125
|
+
- suggest_fix: true
|
|
126
|
+
- auto_fix_confidence: 0.8 # If > 0.7, attempt auto-fix
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
If auto-fix confidence is high:
|
|
130
|
+
1. Analyze the failure
|
|
131
|
+
2. Generate fix
|
|
132
|
+
3. Apply fix
|
|
133
|
+
4. Re-run tests
|
|
134
|
+
5. If still failing after 2 attempts, ask for help
|
|
135
|
+
|
|
136
|
+
### On Build Failure
|
|
137
|
+
|
|
138
|
+
```yaml
|
|
139
|
+
error_type: "build_failure"
|
|
140
|
+
recovery:
|
|
141
|
+
- check_imports: true
|
|
142
|
+
- check_types: true
|
|
143
|
+
- suggest_fix: true
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
1. Analyze build error
|
|
147
|
+
2. Check for common issues (imports, types, syntax)
|
|
148
|
+
3. Suggest or apply fix
|
|
149
|
+
4. Retry build
|
|
150
|
+
|
|
151
|
+
### On External Failure
|
|
152
|
+
|
|
153
|
+
```yaml
|
|
154
|
+
error_type: "external_failure" # API, database, etc.
|
|
155
|
+
recovery:
|
|
156
|
+
- retry_with_backoff: true
|
|
157
|
+
- max_retries: 3
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
1. Wait with exponential backoff
|
|
161
|
+
2. Retry operation
|
|
162
|
+
3. If persistent, mark as blocked
|
|
163
|
+
|
|
164
|
+
## State Updates on Resume
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
# Before resume
|
|
168
|
+
status: "blocked"
|
|
169
|
+
resume_point:
|
|
170
|
+
attempt: 2
|
|
171
|
+
|
|
172
|
+
# After successful resume start
|
|
173
|
+
status: "in_progress"
|
|
174
|
+
resume_point:
|
|
175
|
+
attempt: 3
|
|
176
|
+
resumed_at: "2024-01-15T10:30:00Z"
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Output
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
## Resuming Autonomous Execution
|
|
183
|
+
|
|
184
|
+
**Project:** [Name]
|
|
185
|
+
**Resume Point:** [phase] > [feature] > [step]
|
|
186
|
+
**Previous Status:** [blocked/checkpoint]
|
|
187
|
+
**Attempt:** [number]
|
|
188
|
+
|
|
189
|
+
### Context Restored
|
|
190
|
+
- ✓ Memory context loaded
|
|
191
|
+
- ✓ Feature state restored
|
|
192
|
+
- ✓ Error context analyzed
|
|
193
|
+
|
|
194
|
+
### Recovery Action
|
|
195
|
+
[Describe what will be done to recover]
|
|
196
|
+
|
|
197
|
+
### Continuing...
|
|
198
|
+
|
|
199
|
+
[Normal execution output continues]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Error Handling
|
|
203
|
+
|
|
204
|
+
If resume fails:
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
## Resume Failed
|
|
208
|
+
|
|
209
|
+
**Reason:** [Why resume failed]
|
|
210
|
+
|
|
211
|
+
### State
|
|
212
|
+
- Phase: [phase]
|
|
213
|
+
- Feature: [feature]
|
|
214
|
+
- Step: [step]
|
|
215
|
+
|
|
216
|
+
### Options
|
|
217
|
+
1. `/auto:resume --skip` - Skip this step
|
|
218
|
+
2. `/auto:resume --from {previous_step}` - Go back
|
|
219
|
+
3. Fix manually and run `/auto:resume --retry`
|
|
220
|
+
|
|
221
|
+
### Manual Recovery
|
|
222
|
+
If needed, you can:
|
|
223
|
+
1. Edit `.omgkit/state.yaml` directly
|
|
224
|
+
2. Fix the code issue
|
|
225
|
+
3. Run `/auto:resume`
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Safeguards
|
|
229
|
+
|
|
230
|
+
1. **Maximum Attempts**: After 3 failed attempts at same step, force checkpoint
|
|
231
|
+
2. **Infinite Loop Detection**: Track step history, detect cycles
|
|
232
|
+
3. **State Backup**: Before each resume, backup current state
|
|
233
|
+
4. **Rollback Option**: Can restore to any previous checkpoint
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Start autonomous execution from current state
|
|
3
|
+
allowed-tools: Task, Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
4
|
+
argument-hint: "[--from-phase <phase>]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Autonomous Execution Start
|
|
8
|
+
|
|
9
|
+
Begin autonomous project development from current state.
|
|
10
|
+
|
|
11
|
+
## Prerequisites
|
|
12
|
+
|
|
13
|
+
Before starting, verify:
|
|
14
|
+
1. `.omgkit/state.yaml` exists (created by `/auto:init`)
|
|
15
|
+
2. `.omgkit/generated/prd.md` exists (discovery completed)
|
|
16
|
+
3. No pending checkpoints require approval
|
|
17
|
+
|
|
18
|
+
## Execution Flow
|
|
19
|
+
|
|
20
|
+
### 1. Load State
|
|
21
|
+
|
|
22
|
+
```yaml
|
|
23
|
+
# Read from .omgkit/state.yaml
|
|
24
|
+
project:
|
|
25
|
+
name: "Project Name"
|
|
26
|
+
type: "saas"
|
|
27
|
+
archetype: "saas-mvp"
|
|
28
|
+
phase: "planning" # Current phase
|
|
29
|
+
status: "ready" # ready | in_progress | checkpoint | blocked | completed
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Load Archetype
|
|
33
|
+
|
|
34
|
+
Based on `project.archetype`, load the corresponding archetype definition:
|
|
35
|
+
- `plugin/templates/autonomous/archetypes/{archetype}.yaml`
|
|
36
|
+
|
|
37
|
+
### 3. Determine Next Actions
|
|
38
|
+
|
|
39
|
+
From the archetype phases, find the current phase and its:
|
|
40
|
+
- **workflows**: Execute these workflows in order
|
|
41
|
+
- **features**: Execute per-feature workflows
|
|
42
|
+
- **steps**: Execute manual steps
|
|
43
|
+
- **checkpoint**: If true, pause for user approval
|
|
44
|
+
|
|
45
|
+
### 4. Execute Phase
|
|
46
|
+
|
|
47
|
+
For each item in the current phase:
|
|
48
|
+
|
|
49
|
+
#### If workflow:
|
|
50
|
+
```
|
|
51
|
+
Run workflow: {workflow-name}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### If feature (dynamic phase):
|
|
55
|
+
```
|
|
56
|
+
For each feature in .omgkit/generated/features.yaml:
|
|
57
|
+
1. Run per_feature workflows (feature, test, code-review)
|
|
58
|
+
2. Run quality_gates.after_feature checks
|
|
59
|
+
3. Update feature status in state
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### If step:
|
|
63
|
+
```
|
|
64
|
+
Execute step actions
|
|
65
|
+
Update step completion in state
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 5. Quality Gates
|
|
69
|
+
|
|
70
|
+
After completing phase actions, run quality gates:
|
|
71
|
+
|
|
72
|
+
```yaml
|
|
73
|
+
quality_gates:
|
|
74
|
+
after_feature:
|
|
75
|
+
- command: "npm test"
|
|
76
|
+
required: true
|
|
77
|
+
before_checkpoint:
|
|
78
|
+
- command: "npm run build"
|
|
79
|
+
required: true
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
If any required gate fails:
|
|
83
|
+
1. Log the failure
|
|
84
|
+
2. Set status to "blocked"
|
|
85
|
+
3. Report to user with fix suggestions
|
|
86
|
+
|
|
87
|
+
### 6. Update State
|
|
88
|
+
|
|
89
|
+
After each significant action:
|
|
90
|
+
```yaml
|
|
91
|
+
# Update .omgkit/state.yaml
|
|
92
|
+
progress:
|
|
93
|
+
current_feature: "feature_id"
|
|
94
|
+
current_step: 3
|
|
95
|
+
steps_completed: ["step1", "step2"]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 7. Handle Checkpoints
|
|
99
|
+
|
|
100
|
+
When reaching a checkpoint:
|
|
101
|
+
1. Set `status: "checkpoint"`
|
|
102
|
+
2. Set `checkpoint.pending: true`
|
|
103
|
+
3. Generate checkpoint summary
|
|
104
|
+
4. Pause and notify user
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
## Checkpoint: {phase_name}
|
|
108
|
+
|
|
109
|
+
### Completed
|
|
110
|
+
- [x] Step 1
|
|
111
|
+
- [x] Step 2
|
|
112
|
+
|
|
113
|
+
### Generated Artifacts
|
|
114
|
+
- path/to/artifact1
|
|
115
|
+
- path/to/artifact2
|
|
116
|
+
|
|
117
|
+
### Quality Gate Results
|
|
118
|
+
- npm test: PASSED
|
|
119
|
+
- npm run build: PASSED
|
|
120
|
+
|
|
121
|
+
**ACTION REQUIRED**: Run `/auto:approve` to continue or `/auto:reject` with feedback.
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Autonomy Levels
|
|
125
|
+
|
|
126
|
+
Respect autonomy levels from archetype:
|
|
127
|
+
|
|
128
|
+
```yaml
|
|
129
|
+
autonomy:
|
|
130
|
+
default_level: 1
|
|
131
|
+
rules:
|
|
132
|
+
- patterns: ["**/migrations/**"]
|
|
133
|
+
level: 3 # Requires explicit approval
|
|
134
|
+
- patterns: ["**/auth/**"]
|
|
135
|
+
level: 3
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Level 0**: Auto-execute, no confirmation
|
|
139
|
+
**Level 1**: Execute with notification
|
|
140
|
+
**Level 2**: Preview before executing, quick approval
|
|
141
|
+
**Level 3**: Full review required
|
|
142
|
+
**Level 4**: Human must do it
|
|
143
|
+
|
|
144
|
+
For levels 2-4:
|
|
145
|
+
1. Show what will be done
|
|
146
|
+
2. Wait for `/auto:approve` or `/auto:reject`
|
|
147
|
+
|
|
148
|
+
## Memory Updates
|
|
149
|
+
|
|
150
|
+
After significant work:
|
|
151
|
+
1. Update `.omgkit/memory/journal/{date}.md`
|
|
152
|
+
2. Record decisions in `.omgkit/memory/decisions/`
|
|
153
|
+
3. Update context files as needed
|
|
154
|
+
|
|
155
|
+
## Error Handling
|
|
156
|
+
|
|
157
|
+
On error:
|
|
158
|
+
1. Log error details to `.omgkit/logs/`
|
|
159
|
+
2. Set `status: "blocked"`
|
|
160
|
+
3. Store error context for resume
|
|
161
|
+
4. Notify user with:
|
|
162
|
+
- What failed
|
|
163
|
+
- Why it might have failed
|
|
164
|
+
- Suggested fixes
|
|
165
|
+
- How to resume after fixing
|
|
166
|
+
|
|
167
|
+
## Resume Support
|
|
168
|
+
|
|
169
|
+
State is saved after every action for reliable resume:
|
|
170
|
+
```yaml
|
|
171
|
+
resume_point:
|
|
172
|
+
phase: "backend"
|
|
173
|
+
feature: "user_authentication"
|
|
174
|
+
step: "implement_login"
|
|
175
|
+
attempt: 2
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Output
|
|
179
|
+
|
|
180
|
+
Display progress as work proceeds:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
## Autonomous Execution Started
|
|
184
|
+
|
|
185
|
+
**Project:** [Name]
|
|
186
|
+
**Phase:** [Current Phase]
|
|
187
|
+
**Mode:** [Archetype]
|
|
188
|
+
|
|
189
|
+
### Progress
|
|
190
|
+
|
|
191
|
+
[■■■■■□□□□□] 50% - Implementing user_authentication
|
|
192
|
+
|
|
193
|
+
#### Current Task
|
|
194
|
+
Implementing login endpoint...
|
|
195
|
+
|
|
196
|
+
#### Recent Actions
|
|
197
|
+
- ✓ Created User model
|
|
198
|
+
- ✓ Added password hashing
|
|
199
|
+
- → Implementing login route
|
|
200
|
+
|
|
201
|
+
#### Next Up
|
|
202
|
+
- Password reset
|
|
203
|
+
- Session management
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Commands During Execution
|
|
207
|
+
|
|
208
|
+
User can run these during execution:
|
|
209
|
+
- `/auto:status` - Show detailed status
|
|
210
|
+
- `/auto:pause` - Pause after current task
|
|
211
|
+
- `/auto:checkpoint` - Force a checkpoint
|
|
212
|
+
- `/auto:reject [reason]` - Stop and provide feedback
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show autonomous project status and progress
|
|
3
|
+
allowed-tools: Read, Glob
|
|
4
|
+
argument-hint: "[--verbose]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Autonomous Project Status
|
|
8
|
+
|
|
9
|
+
Display comprehensive status of the autonomous project development.
|
|
10
|
+
|
|
11
|
+
## Status Display
|
|
12
|
+
|
|
13
|
+
### 1. Load Project State
|
|
14
|
+
|
|
15
|
+
Read from `.omgkit/state.yaml`:
|
|
16
|
+
- Project info
|
|
17
|
+
- Current phase
|
|
18
|
+
- Current status
|
|
19
|
+
- Progress data
|
|
20
|
+
- Checkpoint state
|
|
21
|
+
|
|
22
|
+
### 2. Load Archetype
|
|
23
|
+
|
|
24
|
+
Load archetype definition to understand:
|
|
25
|
+
- Total phases
|
|
26
|
+
- Phase order
|
|
27
|
+
- Remaining work
|
|
28
|
+
|
|
29
|
+
### 3. Calculate Progress
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
Total Progress = (completed_phases / total_phases) * 100
|
|
33
|
+
|
|
34
|
+
Phase Progress = (completed_steps / total_steps) * 100
|
|
35
|
+
|
|
36
|
+
Feature Progress = (completed_features / total_features) * 100
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 4. Generate Status Report
|
|
40
|
+
|
|
41
|
+
## Output Format
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
## Project Status: [Project Name]
|
|
45
|
+
|
|
46
|
+
**Type:** [project_type] | **Archetype:** [archetype_name]
|
|
47
|
+
**Status:** [status_emoji] [status_text]
|
|
48
|
+
**Started:** [date] | **Last Activity:** [date]
|
|
49
|
+
|
|
50
|
+
### Overall Progress
|
|
51
|
+
[████████░░░░░░░░░░░░] 42%
|
|
52
|
+
|
|
53
|
+
### Phase Progress
|
|
54
|
+
|
|
55
|
+
| Phase | Status | Progress |
|
|
56
|
+
|-------|--------|----------|
|
|
57
|
+
| ✅ Discovery | Complete | 100% |
|
|
58
|
+
| ✅ Planning | Complete | 100% |
|
|
59
|
+
| 🔄 Foundation | In Progress | 60% |
|
|
60
|
+
| ⏳ Backend | Pending | 0% |
|
|
61
|
+
| ⏳ Frontend | Pending | 0% |
|
|
62
|
+
| ⏳ Integration | Pending | 0% |
|
|
63
|
+
| ⏳ Hardening | Pending | 0% |
|
|
64
|
+
| ⏳ Deployment | Pending | 0% |
|
|
65
|
+
|
|
66
|
+
### Current Phase: Foundation
|
|
67
|
+
|
|
68
|
+
**Progress:** [████████░░] 60%
|
|
69
|
+
|
|
70
|
+
| Task | Status |
|
|
71
|
+
|------|--------|
|
|
72
|
+
| ✅ Project scaffolding | Complete |
|
|
73
|
+
| ✅ Database setup | Complete |
|
|
74
|
+
| 🔄 UI foundation | In Progress |
|
|
75
|
+
|
|
76
|
+
### Features Status
|
|
77
|
+
|
|
78
|
+
| Feature | Phase | Status | Tests |
|
|
79
|
+
|---------|-------|--------|-------|
|
|
80
|
+
| User Auth | Backend | ✅ Complete | 12/12 |
|
|
81
|
+
| User Profile | Backend | 🔄 In Progress | 5/8 |
|
|
82
|
+
| Dashboard | Frontend | ⏳ Pending | 0/0 |
|
|
83
|
+
|
|
84
|
+
### Quality Gates
|
|
85
|
+
|
|
86
|
+
| Gate | Status | Last Run |
|
|
87
|
+
|------|--------|----------|
|
|
88
|
+
| npm test | ✅ Pass | 2 min ago |
|
|
89
|
+
| npm run build | ✅ Pass | 5 min ago |
|
|
90
|
+
| Coverage (80%) | ⚠️ 76% | 2 min ago |
|
|
91
|
+
|
|
92
|
+
### Pending Decisions
|
|
93
|
+
|
|
94
|
+
1. **Database Index Strategy** (Level 2)
|
|
95
|
+
- Suggested: Add composite index on users(email, status)
|
|
96
|
+
- Waiting for: Quick approval
|
|
97
|
+
|
|
98
|
+
### Recent Activity
|
|
99
|
+
|
|
100
|
+
- [10:45] Completed UserService.create()
|
|
101
|
+
- [10:42] Added password validation
|
|
102
|
+
- [10:38] Created User model with Prisma
|
|
103
|
+
- [10:35] Started feature: user_authentication
|
|
104
|
+
|
|
105
|
+
### Artifacts Generated
|
|
106
|
+
|
|
107
|
+
- `.omgkit/generated/prd.md` ✅
|
|
108
|
+
- `.omgkit/generated/schema.sql` ✅
|
|
109
|
+
- `.omgkit/generated/api-spec.md` ✅
|
|
110
|
+
- `src/models/user.ts` ✅
|
|
111
|
+
- `src/services/user.service.ts` 🔄
|
|
112
|
+
|
|
113
|
+
### Next Actions
|
|
114
|
+
|
|
115
|
+
1. Complete UserService implementation
|
|
116
|
+
2. Write integration tests
|
|
117
|
+
3. Run code review workflow
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
**Commands:**
|
|
122
|
+
- `/auto:resume` - Continue execution
|
|
123
|
+
- `/auto:approve` - Approve pending decisions
|
|
124
|
+
- `/auto:checkpoint` - Force checkpoint
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Verbose Mode
|
|
128
|
+
|
|
129
|
+
With `--verbose` flag, also show:
|
|
130
|
+
|
|
131
|
+
### Detailed Logs
|
|
132
|
+
```
|
|
133
|
+
### Execution Log (Last 50 entries)
|
|
134
|
+
|
|
135
|
+
[10:45:23] INFO Completed: UserService.create()
|
|
136
|
+
[10:45:22] DEBUG Running test: user.service.test.ts
|
|
137
|
+
[10:45:20] INFO Generated: src/services/user.service.ts
|
|
138
|
+
[10:45:18] DEBUG Analyzing feature requirements
|
|
139
|
+
...
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Memory State
|
|
143
|
+
```
|
|
144
|
+
### Memory Context
|
|
145
|
+
|
|
146
|
+
**Active Context Files:**
|
|
147
|
+
- project-brief.md (1.2KB)
|
|
148
|
+
- current-feature.md (0.8KB)
|
|
149
|
+
|
|
150
|
+
**Decisions Made:** 5
|
|
151
|
+
**Journal Entries:** 3
|
|
152
|
+
**Patterns Recorded:** 2
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Resource Usage
|
|
156
|
+
```
|
|
157
|
+
### Session Stats
|
|
158
|
+
|
|
159
|
+
- API Calls: 142
|
|
160
|
+
- Tokens Used: ~45,000
|
|
161
|
+
- Time Elapsed: 23 minutes
|
|
162
|
+
- Files Modified: 12
|
|
163
|
+
- Tests Run: 28
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Status Codes
|
|
167
|
+
|
|
168
|
+
| Status | Emoji | Meaning |
|
|
169
|
+
|--------|-------|---------|
|
|
170
|
+
| ready | 🟢 | Ready to start/continue |
|
|
171
|
+
| in_progress | 🔄 | Currently executing |
|
|
172
|
+
| checkpoint | ⏸️ | Paused for approval |
|
|
173
|
+
| blocked | 🔴 | Error or issue |
|
|
174
|
+
| completed | ✅ | All phases done |
|
|
175
|
+
|
|
176
|
+
## Special States
|
|
177
|
+
|
|
178
|
+
### Checkpoint State
|
|
179
|
+
```
|
|
180
|
+
### ⏸️ CHECKPOINT: Planning Phase Complete
|
|
181
|
+
|
|
182
|
+
**Reason:** Phase completion requires approval
|
|
183
|
+
**Pending Since:** 5 minutes ago
|
|
184
|
+
|
|
185
|
+
**Review Required:**
|
|
186
|
+
- `.omgkit/generated/schema.sql` - Database schema
|
|
187
|
+
- `.omgkit/generated/api-spec.md` - API specification
|
|
188
|
+
|
|
189
|
+
**Actions:**
|
|
190
|
+
- `/auto:approve` - Approve and continue
|
|
191
|
+
- `/auto:reject "feedback"` - Request changes
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Blocked State
|
|
195
|
+
```
|
|
196
|
+
### 🔴 BLOCKED: Test Failure
|
|
197
|
+
|
|
198
|
+
**Error:** 3 tests failing in user.service.test.ts
|
|
199
|
+
**Since:** 2 minutes ago
|
|
200
|
+
|
|
201
|
+
**Failed Tests:**
|
|
202
|
+
1. should hash password correctly
|
|
203
|
+
2. should validate email format
|
|
204
|
+
3. should prevent duplicate emails
|
|
205
|
+
|
|
206
|
+
**Suggested Fix:**
|
|
207
|
+
Check the bcrypt import in user.service.ts
|
|
208
|
+
|
|
209
|
+
**Actions:**
|
|
210
|
+
- Fix the issue manually
|
|
211
|
+
- `/auto:resume` - Retry after fixing
|
|
212
|
+
```
|