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.
Files changed (55) hide show
  1. package/package.json +2 -1
  2. package/plugin/agents/autonomous-orchestrator.yaml +215 -0
  3. package/plugin/commands/auto/approve.md +258 -0
  4. package/plugin/commands/auto/checkpoint.md +253 -0
  5. package/plugin/commands/auto/init.md +236 -0
  6. package/plugin/commands/auto/next.md +278 -0
  7. package/plugin/commands/auto/reject.md +278 -0
  8. package/plugin/commands/auto/resume.md +233 -0
  9. package/plugin/commands/auto/start.md +212 -0
  10. package/plugin/commands/auto/status.md +212 -0
  11. package/plugin/commands/auto/verify.md +353 -0
  12. package/plugin/commands/workflow/1000x-innovation.md +61 -0
  13. package/plugin/commands/workflow/100x-architecture.md +60 -0
  14. package/plugin/commands/workflow/10x-improvement.md +63 -0
  15. package/plugin/commands/workflow/agent-development.md +60 -0
  16. package/plugin/commands/workflow/api-design.md +61 -0
  17. package/plugin/commands/workflow/api-testing.md +61 -0
  18. package/plugin/commands/workflow/authentication.md +60 -0
  19. package/plugin/commands/workflow/best-practices.md +61 -0
  20. package/plugin/commands/workflow/bug-fix.md +61 -0
  21. package/plugin/commands/workflow/code-review.md +52 -0
  22. package/plugin/commands/workflow/feature.md +73 -0
  23. package/plugin/commands/workflow/fine-tuning.md +60 -0
  24. package/plugin/commands/workflow/full-feature.md +70 -0
  25. package/plugin/commands/workflow/marketing.md +53 -0
  26. package/plugin/commands/workflow/migration.md +60 -0
  27. package/plugin/commands/workflow/model-evaluation.md +59 -0
  28. package/plugin/commands/workflow/optimization.md +60 -0
  29. package/plugin/commands/workflow/penetration-testing.md +60 -0
  30. package/plugin/commands/workflow/performance-optimization.md +60 -0
  31. package/plugin/commands/workflow/prompt-engineering.md +51 -0
  32. package/plugin/commands/workflow/rag-development.md +79 -0
  33. package/plugin/commands/workflow/refactor.md +59 -0
  34. package/plugin/commands/workflow/schema-design.md +70 -0
  35. package/plugin/commands/workflow/security-audit.md +61 -0
  36. package/plugin/commands/workflow/sprint-execution.md +65 -0
  37. package/plugin/commands/workflow/sprint-retrospective.md +61 -0
  38. package/plugin/commands/workflow/sprint-setup.md +64 -0
  39. package/plugin/commands/workflow/technical-docs.md +52 -0
  40. package/plugin/commands/workflow/technology-research.md +61 -0
  41. package/plugin/skills/autonomous/project-orchestration/SKILL.md +332 -0
  42. package/plugin/templates/autonomous/archetypes/api-service.yaml +78 -0
  43. package/plugin/templates/autonomous/archetypes/cli-tool.yaml +67 -0
  44. package/plugin/templates/autonomous/archetypes/fullstack-app.yaml +97 -0
  45. package/plugin/templates/autonomous/archetypes/library.yaml +64 -0
  46. package/plugin/templates/autonomous/archetypes/saas-mvp.yaml +417 -0
  47. package/plugin/templates/autonomous/decision-framework.yaml +337 -0
  48. package/plugin/templates/autonomous/discovery-questions.yaml +795 -0
  49. package/plugin/templates/autonomous/features-schema.yaml +254 -0
  50. package/plugin/templates/autonomous/memory-system.yaml +298 -0
  51. package/plugin/templates/autonomous/prd-template.md +251 -0
  52. package/plugin/templates/autonomous/state-schema.yaml +383 -0
  53. package/plugin/workflows/autonomous/discovery.yaml +232 -0
  54. package/plugin/workflows/autonomous/execution.yaml +275 -0
  55. package/plugin/workflows/autonomous/planning.yaml +244 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omgkit",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Omega-Level Development Kit - AI Team System for Claude Code. 23 agents, 58 commands, 88 skills, sprint management.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -53,6 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@vitest/coverage-v8": "^4.0.16",
56
+ "js-yaml": "^4.1.1",
56
57
  "vitest": "^4.0.16"
57
58
  }
58
59
  }
@@ -0,0 +1,215 @@
1
+ # Autonomous Orchestrator Agent
2
+ # Core agent for running autonomous project development
3
+
4
+ name: Autonomous Orchestrator
5
+ id: autonomous-orchestrator
6
+ version: "1.0.0"
7
+ description: |
8
+ The central orchestrator for autonomous project development. Manages state,
9
+ coordinates phases, handles checkpoints, and drives the entire autonomous
10
+ development lifecycle from discovery to deployment.
11
+
12
+ # Agent categorization
13
+ category: orchestration
14
+ tags:
15
+ - autonomous
16
+ - orchestration
17
+ - project-management
18
+ - state-machine
19
+
20
+ # Capabilities
21
+ capabilities:
22
+ - State machine management
23
+ - Phase orchestration
24
+ - Checkpoint handling
25
+ - Decision management
26
+ - Quality gate enforcement
27
+ - Memory system integration
28
+ - Error recovery
29
+ - Progress tracking
30
+
31
+ # Tools this agent can use
32
+ tools:
33
+ - Read
34
+ - Write
35
+ - Edit
36
+ - Bash
37
+ - Glob
38
+ - Grep
39
+ - Task
40
+ - AskUserQuestion
41
+
42
+ # System prompt for the agent
43
+ system_prompt: |
44
+ You are the Autonomous Orchestrator, responsible for driving autonomous project
45
+ development from initial discovery through deployment.
46
+
47
+ ## Your Responsibilities
48
+
49
+ 1. **State Management**
50
+ - Maintain `.omgkit/state.yaml` with current project state
51
+ - Track progress through phases and features
52
+ - Handle state transitions correctly
53
+ - Ensure state consistency and recoverability
54
+
55
+ 2. **Phase Orchestration**
56
+ - Load and follow archetype definitions
57
+ - Execute phase workflows in order
58
+ - Handle dynamic feature phases
59
+ - Respect phase dependencies
60
+
61
+ 3. **Checkpoint Management**
62
+ - Create checkpoints at phase boundaries
63
+ - Handle manual checkpoint requests
64
+ - Wait for approval before continuing
65
+ - Process rejection feedback appropriately
66
+
67
+ 4. **Decision Framework**
68
+ - Classify decisions by autonomy level
69
+ - Auto-execute level 0-1 decisions
70
+ - Request approval for level 2-4 decisions
71
+ - Record all decisions in memory
72
+
73
+ 5. **Quality Enforcement**
74
+ - Run quality gates after features
75
+ - Enforce coverage thresholds
76
+ - Block on critical failures
77
+ - Report quality metrics
78
+
79
+ 6. **Memory Integration**
80
+ - Update context files as work progresses
81
+ - Record decisions in decision log
82
+ - Maintain journal entries
83
+ - Preserve learning for future sessions
84
+
85
+ ## State Machine
86
+
87
+ Valid states:
88
+ - `ready`: Ready to start/continue execution
89
+ - `in_progress`: Currently executing
90
+ - `checkpoint`: Paused for approval
91
+ - `blocked`: Error or issue preventing progress
92
+ - `completed`: All phases finished
93
+ - `revision_needed`: Feedback requires changes
94
+
95
+ ## Autonomy Levels
96
+
97
+ - Level 0: Auto-execute without notification
98
+ - Level 1: Execute with notification
99
+ - Level 2: Preview and quick approval
100
+ - Level 3: Full review required
101
+ - Level 4: Human must perform
102
+
103
+ ## Error Handling
104
+
105
+ On errors:
106
+ 1. Log error context
107
+ 2. Save state for recovery
108
+ 3. Transition to blocked state
109
+ 4. Report with fix suggestions
110
+ 5. Support retry/skip/rollback
111
+
112
+ ## Output Standards
113
+
114
+ Always provide:
115
+ - Clear progress indicators
116
+ - Current phase and step
117
+ - Quality gate results
118
+ - Next action preview
119
+
120
+ # Workflows this agent can trigger
121
+ workflows:
122
+ - discovery
123
+ - planning
124
+ - feature
125
+ - test
126
+ - code-review
127
+ - security-audit
128
+ - deployment
129
+
130
+ # Integration points
131
+ integrations:
132
+ state:
133
+ file: ".omgkit/state.yaml"
134
+ schema: "plugin/templates/autonomous/state-schema.yaml"
135
+
136
+ features:
137
+ file: ".omgkit/generated/features.yaml"
138
+ schema: "plugin/templates/autonomous/features-schema.yaml"
139
+
140
+ memory:
141
+ context: ".omgkit/memory/context/"
142
+ decisions: ".omgkit/memory/decisions/"
143
+ journal: ".omgkit/memory/journal/"
144
+
145
+ archetypes:
146
+ path: "plugin/templates/autonomous/archetypes/"
147
+
148
+ # Behavior configuration
149
+ behavior:
150
+ # How verbose to be
151
+ verbosity: normal # quiet | normal | verbose
152
+
153
+ # Whether to auto-create checkpoints
154
+ auto_checkpoint: true
155
+
156
+ # Maximum retries before blocking
157
+ max_retries: 3
158
+
159
+ # Whether to attempt auto-fixes
160
+ auto_fix: true
161
+ auto_fix_confidence_threshold: 0.7
162
+
163
+ # Whether to run quality gates automatically
164
+ auto_quality_gates: true
165
+
166
+ # Performance hints
167
+ performance:
168
+ # Use parallel execution when possible
169
+ parallel_execution: true
170
+
171
+ # Cache archetype definitions
172
+ cache_archetypes: true
173
+
174
+ # Batch state updates
175
+ batch_state_updates: true
176
+
177
+ # Monitoring
178
+ monitoring:
179
+ # Log all state transitions
180
+ log_transitions: true
181
+
182
+ # Track execution metrics
183
+ track_metrics: true
184
+
185
+ # Alert on blocked state
186
+ alert_on_blocked: true
187
+
188
+ # Examples of agent usage
189
+ examples:
190
+ - name: Start autonomous execution
191
+ input: "Continue autonomous execution for the project"
192
+ expected: |
193
+ 1. Load current state from .omgkit/state.yaml
194
+ 2. Determine current phase and step
195
+ 3. Execute next actions according to archetype
196
+ 4. Update state after each action
197
+ 5. Create checkpoint at phase boundary
198
+
199
+ - name: Handle checkpoint
200
+ input: "Checkpoint reached for planning phase"
201
+ expected: |
202
+ 1. Save complete state snapshot
203
+ 2. Generate checkpoint summary
204
+ 3. List artifacts for review
205
+ 4. Set status to checkpoint
206
+ 5. Wait for /auto:approve or /auto:reject
207
+
208
+ - name: Recover from error
209
+ input: "Tests failed during user_authentication feature"
210
+ expected: |
211
+ 1. Capture error context
212
+ 2. Analyze failure cause
213
+ 3. If auto-fixable, attempt fix
214
+ 4. If not fixable, set status to blocked
215
+ 5. Report with suggestions
@@ -0,0 +1,258 @@
1
+ ---
2
+ description: Approve checkpoint or pending decision to continue
3
+ allowed-tools: Read, Write, Edit
4
+ argument-hint: "[checkpoint | decision <id>] [--all]"
5
+ ---
6
+
7
+ # Approve Checkpoint or Decision
8
+
9
+ Approve a pending checkpoint or autonomy decision to continue execution.
10
+
11
+ ## Usage
12
+
13
+ ### Approve Current Checkpoint
14
+ ```bash
15
+ /auto:approve
16
+ /auto:approve checkpoint
17
+ ```
18
+
19
+ ### Approve Specific Decision
20
+ ```bash
21
+ /auto:approve decision db_index_strategy
22
+ ```
23
+
24
+ ### Approve All Pending
25
+ ```bash
26
+ /auto:approve --all
27
+ ```
28
+
29
+ ## Approval Process
30
+
31
+ ### 1. Check Pending Items
32
+
33
+ Load from `.omgkit/state.yaml`:
34
+ ```yaml
35
+ checkpoint:
36
+ pending: true
37
+ type: "phase"
38
+ phase: "planning"
39
+ description: "Planning phase complete. Review artifacts."
40
+ artifacts:
41
+ - ".omgkit/generated/schema.sql"
42
+ - ".omgkit/generated/api-spec.md"
43
+
44
+ pending_decisions:
45
+ - id: "db_index_strategy"
46
+ level: 2
47
+ description: "Add composite index on users(email, status)"
48
+ options:
49
+ - "approve"
50
+ - "modify"
51
+ - "reject"
52
+ - id: "auth_token_expiry"
53
+ level: 2
54
+ description: "Set JWT expiry to 24 hours"
55
+ ```
56
+
57
+ ### 2. Validate Approval
58
+
59
+ For checkpoint:
60
+ - Check artifacts exist
61
+ - Verify quality gates passed
62
+ - Confirm user has reviewed
63
+
64
+ For decision:
65
+ - Check decision exists
66
+ - Validate decision is pending
67
+ - Record approval with timestamp
68
+
69
+ ### 3. Update State
70
+
71
+ ```yaml
72
+ # After checkpoint approval
73
+ checkpoint:
74
+ pending: false
75
+ approved_at: "2024-01-15T10:30:00Z"
76
+ approved_by: "user"
77
+
78
+ status: "ready" # Changed from "checkpoint"
79
+
80
+ # After decision approval
81
+ decisions_log:
82
+ - id: "db_index_strategy"
83
+ decision: "approved"
84
+ timestamp: "2024-01-15T10:30:00Z"
85
+
86
+ pending_decisions: [] # Removed approved item
87
+ ```
88
+
89
+ ### 4. Record in Memory
90
+
91
+ Create decision record at `.omgkit/memory/decisions/`:
92
+ ```markdown
93
+ # Decision: Database Index Strategy
94
+
95
+ **Date:** 2024-01-15
96
+ **Phase:** Planning
97
+ **Status:** Approved
98
+
99
+ ## Context
100
+ During schema design, identified need for efficient user lookup by email and status.
101
+
102
+ ## Decision
103
+ Add composite index on users(email, status) table.
104
+
105
+ ## Rationale
106
+ - Improves login query performance
107
+ - Supports filtering by account status
108
+ - Minimal storage overhead
109
+
110
+ ## Consequences
111
+ - Slightly slower inserts
112
+ - Index maintenance on updates
113
+ ```
114
+
115
+ ### 5. Continue Execution
116
+
117
+ After approval:
118
+ 1. Log the approval
119
+ 2. Update state to "ready"
120
+ 3. Prompt to continue
121
+
122
+ ## Output
123
+
124
+ ### Checkpoint Approval
125
+ ```
126
+ ## Checkpoint Approved ✓
127
+
128
+ **Phase:** Planning
129
+ **Approved:** 2024-01-15 10:30:00
130
+
131
+ ### Artifacts Reviewed
132
+ - ✓ `.omgkit/generated/schema.sql`
133
+ - ✓ `.omgkit/generated/api-spec.md`
134
+
135
+ ### Decision Recorded
136
+ Saved to: `.omgkit/memory/decisions/2024-01-15-planning-approval.md`
137
+
138
+ ### Ready to Continue
139
+
140
+ Next phase: **Foundation**
141
+ - Project scaffolding
142
+ - Database setup
143
+ - UI foundation
144
+
145
+ ---
146
+
147
+ **Commands:**
148
+ - `/auto:start` - Continue execution
149
+ - `/auto:next --preview` - Preview next action
150
+ ```
151
+
152
+ ### Decision Approval
153
+ ```
154
+ ## Decision Approved ✓
155
+
156
+ **Decision:** db_index_strategy
157
+ **Description:** Add composite index on users(email, status)
158
+
159
+ ### Applied
160
+ The following will be added during implementation:
161
+ ```sql
162
+ CREATE INDEX idx_users_email_status ON users(email, status);
163
+ ```
164
+
165
+ ### Recorded
166
+ Decision logged at: `.omgkit/memory/decisions/2024-01-15-db_index_strategy.md`
167
+
168
+ ### Remaining Decisions
169
+ - auth_token_expiry: Set JWT expiry to 24 hours
170
+
171
+ ---
172
+
173
+ **Commands:**
174
+ - `/auto:approve decision auth_token_expiry` - Approve next
175
+ - `/auto:approve --all` - Approve all remaining
176
+ - `/auto:start` - Continue (pending decisions will prompt)
177
+ ```
178
+
179
+ ### Approve All
180
+ ```
181
+ ## All Items Approved ✓
182
+
183
+ ### Checkpoint
184
+ - ✓ Planning phase
185
+
186
+ ### Decisions (2)
187
+ - ✓ db_index_strategy: Add composite index
188
+ - ✓ auth_token_expiry: 24 hour JWT expiry
189
+
190
+ ### Summary
191
+ - Checkpoints approved: 1
192
+ - Decisions approved: 2
193
+ - All items recorded in memory
194
+
195
+ ### Ready to Continue
196
+
197
+ ---
198
+
199
+ **Commands:**
200
+ - `/auto:start` - Continue execution
201
+ ```
202
+
203
+ ## Nothing to Approve
204
+
205
+ ```
206
+ ## No Pending Approvals
207
+
208
+ Current status: **In Progress**
209
+
210
+ There are no checkpoints or decisions waiting for approval.
211
+
212
+ ### Current State
213
+ - Phase: Backend
214
+ - Feature: user_authentication
215
+ - Progress: 3/7 steps complete
216
+
217
+ ---
218
+
219
+ **Commands:**
220
+ - `/auto:status` - View full status
221
+ - `/auto:next` - Preview next action
222
+ ```
223
+
224
+ ## Conditional Approval
225
+
226
+ For complex decisions, you can approve with conditions:
227
+
228
+ ```bash
229
+ /auto:approve decision db_index_strategy --with-note "Also add index on created_at"
230
+ ```
231
+
232
+ Output:
233
+ ```
234
+ ## Decision Approved with Note ✓
235
+
236
+ **Decision:** db_index_strategy
237
+ **Note Added:** "Also add index on created_at"
238
+
239
+ This note will be considered during implementation.
240
+ ```
241
+
242
+ ## Approval History
243
+
244
+ Track all approvals for audit:
245
+
246
+ ```yaml
247
+ # .omgkit/state.yaml
248
+ approval_history:
249
+ - type: "checkpoint"
250
+ phase: "discovery"
251
+ timestamp: "2024-01-15T09:00:00Z"
252
+ - type: "checkpoint"
253
+ phase: "planning"
254
+ timestamp: "2024-01-15T10:30:00Z"
255
+ - type: "decision"
256
+ id: "db_index_strategy"
257
+ timestamp: "2024-01-15T10:31:00Z"
258
+ ```