omgkit 2.10.1 → 2.12.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/README.md +46 -1
- 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/skills/autonomous/project-orchestration/SKILL.md +332 -0
- package/plugin/templates/autonomous/archetypes/ai-model-building.yaml +443 -0
- package/plugin/templates/autonomous/archetypes/ai-powered-app.yaml +420 -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/desktop-app.yaml +371 -0
- package/plugin/templates/autonomous/archetypes/fullstack-app.yaml +97 -0
- package/plugin/templates/autonomous/archetypes/game-app.yaml +428 -0
- package/plugin/templates/autonomous/archetypes/iot-app.yaml +415 -0
- package/plugin/templates/autonomous/archetypes/library.yaml +64 -0
- package/plugin/templates/autonomous/archetypes/mobile-app.yaml +356 -0
- package/plugin/templates/autonomous/archetypes/saas-mvp.yaml +417 -0
- package/plugin/templates/autonomous/archetypes/simulation-app.yaml +428 -0
- package/plugin/templates/autonomous/artifacts-schema.yaml +465 -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 +487 -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,337 @@
|
|
|
1
|
+
# Decision Framework for Autonomous Development
|
|
2
|
+
# Defines how decisions are classified and handled
|
|
3
|
+
|
|
4
|
+
version: 1
|
|
5
|
+
|
|
6
|
+
# Autonomy levels
|
|
7
|
+
autonomy_levels:
|
|
8
|
+
- level: 0
|
|
9
|
+
name: "Auto-execute"
|
|
10
|
+
description: "Execute automatically without any notification"
|
|
11
|
+
action: "execute_silently"
|
|
12
|
+
examples:
|
|
13
|
+
- Code formatting
|
|
14
|
+
- Import organization
|
|
15
|
+
- Whitespace cleanup
|
|
16
|
+
- Simple variable renames
|
|
17
|
+
|
|
18
|
+
- level: 1
|
|
19
|
+
name: "Execute with Notification"
|
|
20
|
+
description: "Execute and inform user what was done"
|
|
21
|
+
action: "execute_notify"
|
|
22
|
+
examples:
|
|
23
|
+
- Adding a dependency
|
|
24
|
+
- Creating a new file
|
|
25
|
+
- Adding a test case
|
|
26
|
+
- Applying standard patterns
|
|
27
|
+
|
|
28
|
+
- level: 2
|
|
29
|
+
name: "Preview and Quick Approve"
|
|
30
|
+
description: "Show what will be done and wait for quick approval"
|
|
31
|
+
action: "preview_approve"
|
|
32
|
+
timeout: 300 # 5 minutes before auto-proceed with suggested
|
|
33
|
+
examples:
|
|
34
|
+
- Database index changes
|
|
35
|
+
- API endpoint modifications
|
|
36
|
+
- Configuration changes
|
|
37
|
+
- Non-trivial refactoring
|
|
38
|
+
|
|
39
|
+
- level: 3
|
|
40
|
+
name: "Full Review Required"
|
|
41
|
+
description: "Comprehensive review before any action"
|
|
42
|
+
action: "full_review"
|
|
43
|
+
timeout: null # Must be explicitly approved
|
|
44
|
+
examples:
|
|
45
|
+
- Authentication implementation
|
|
46
|
+
- Payment integration
|
|
47
|
+
- Security-sensitive changes
|
|
48
|
+
- Data model modifications
|
|
49
|
+
|
|
50
|
+
- level: 4
|
|
51
|
+
name: "Human Must Perform"
|
|
52
|
+
description: "Claude provides guidance but human executes"
|
|
53
|
+
action: "human_only"
|
|
54
|
+
examples:
|
|
55
|
+
- API credentials entry
|
|
56
|
+
- Production deployments
|
|
57
|
+
- Account creation
|
|
58
|
+
- Payment gateway setup
|
|
59
|
+
|
|
60
|
+
# Decision classification rules
|
|
61
|
+
classification_rules:
|
|
62
|
+
# File-based rules
|
|
63
|
+
file_patterns:
|
|
64
|
+
- pattern: "**/migrations/**"
|
|
65
|
+
level: 3
|
|
66
|
+
reason: "Database migrations can cause data loss"
|
|
67
|
+
|
|
68
|
+
- pattern: "**/auth/**"
|
|
69
|
+
level: 3
|
|
70
|
+
reason: "Authentication is security-critical"
|
|
71
|
+
|
|
72
|
+
- pattern: "**/*.env*"
|
|
73
|
+
level: 4
|
|
74
|
+
reason: "Environment files contain secrets"
|
|
75
|
+
|
|
76
|
+
- pattern: "**/config/production.*"
|
|
77
|
+
level: 4
|
|
78
|
+
reason: "Production config requires careful review"
|
|
79
|
+
|
|
80
|
+
- pattern: "**/tests/**"
|
|
81
|
+
level: 0
|
|
82
|
+
reason: "Tests are safe to modify"
|
|
83
|
+
|
|
84
|
+
- pattern: "**/*.test.*"
|
|
85
|
+
level: 0
|
|
86
|
+
reason: "Test files are safe to modify"
|
|
87
|
+
|
|
88
|
+
- pattern: "**/__mocks__/**"
|
|
89
|
+
level: 0
|
|
90
|
+
reason: "Mock files are safe to modify"
|
|
91
|
+
|
|
92
|
+
- pattern: "**/types/**"
|
|
93
|
+
level: 1
|
|
94
|
+
reason: "Type definitions are low risk"
|
|
95
|
+
|
|
96
|
+
- pattern: "**/utils/**"
|
|
97
|
+
level: 1
|
|
98
|
+
reason: "Utility functions are typically safe"
|
|
99
|
+
|
|
100
|
+
# Content-based rules
|
|
101
|
+
content_patterns:
|
|
102
|
+
- pattern: "password|secret|token|key|credential"
|
|
103
|
+
level: 3
|
|
104
|
+
reason: "Contains sensitive keywords"
|
|
105
|
+
|
|
106
|
+
- pattern: "delete|drop|truncate|remove"
|
|
107
|
+
level: 2
|
|
108
|
+
reason: "Destructive operations"
|
|
109
|
+
|
|
110
|
+
- pattern: "stripe|paypal|payment|billing"
|
|
111
|
+
level: 3
|
|
112
|
+
reason: "Payment-related code"
|
|
113
|
+
|
|
114
|
+
- pattern: "exec|eval|spawn|child_process"
|
|
115
|
+
level: 3
|
|
116
|
+
reason: "Code execution risk"
|
|
117
|
+
|
|
118
|
+
# Operation-based rules
|
|
119
|
+
operations:
|
|
120
|
+
- operation: "create_file"
|
|
121
|
+
level: 1
|
|
122
|
+
reason: "New files are easily reversible"
|
|
123
|
+
|
|
124
|
+
- operation: "delete_file"
|
|
125
|
+
level: 2
|
|
126
|
+
reason: "File deletion should be confirmed"
|
|
127
|
+
|
|
128
|
+
- operation: "modify_schema"
|
|
129
|
+
level: 3
|
|
130
|
+
reason: "Schema changes affect data"
|
|
131
|
+
|
|
132
|
+
- operation: "add_dependency"
|
|
133
|
+
level: 1
|
|
134
|
+
reason: "Dependencies affect project"
|
|
135
|
+
|
|
136
|
+
- operation: "remove_dependency"
|
|
137
|
+
level: 2
|
|
138
|
+
reason: "May break existing code"
|
|
139
|
+
|
|
140
|
+
- operation: "change_config"
|
|
141
|
+
level: 2
|
|
142
|
+
reason: "Configuration affects behavior"
|
|
143
|
+
|
|
144
|
+
- operation: "deploy"
|
|
145
|
+
level: 4
|
|
146
|
+
reason: "Deployments require human oversight"
|
|
147
|
+
|
|
148
|
+
# Decision templates
|
|
149
|
+
decision_templates:
|
|
150
|
+
- id: technology_choice
|
|
151
|
+
description: "Choosing between technology options"
|
|
152
|
+
level: 2
|
|
153
|
+
template: |
|
|
154
|
+
## Decision: {title}
|
|
155
|
+
|
|
156
|
+
### Context
|
|
157
|
+
{context}
|
|
158
|
+
|
|
159
|
+
### Options
|
|
160
|
+
{options}
|
|
161
|
+
|
|
162
|
+
### Recommendation
|
|
163
|
+
{recommendation}
|
|
164
|
+
|
|
165
|
+
### Trade-offs
|
|
166
|
+
{trade_offs}
|
|
167
|
+
|
|
168
|
+
- id: architecture_decision
|
|
169
|
+
description: "Architectural choices"
|
|
170
|
+
level: 3
|
|
171
|
+
template: |
|
|
172
|
+
## Architecture Decision: {title}
|
|
173
|
+
|
|
174
|
+
### Context
|
|
175
|
+
{context}
|
|
176
|
+
|
|
177
|
+
### Decision
|
|
178
|
+
{decision}
|
|
179
|
+
|
|
180
|
+
### Consequences
|
|
181
|
+
{consequences}
|
|
182
|
+
|
|
183
|
+
### Alternatives Considered
|
|
184
|
+
{alternatives}
|
|
185
|
+
|
|
186
|
+
- id: implementation_approach
|
|
187
|
+
description: "How to implement a feature"
|
|
188
|
+
level: 2
|
|
189
|
+
template: |
|
|
190
|
+
## Implementation: {feature}
|
|
191
|
+
|
|
192
|
+
### Approach
|
|
193
|
+
{approach}
|
|
194
|
+
|
|
195
|
+
### Files to Create/Modify
|
|
196
|
+
{files}
|
|
197
|
+
|
|
198
|
+
### Tests
|
|
199
|
+
{tests}
|
|
200
|
+
|
|
201
|
+
- id: breaking_change
|
|
202
|
+
description: "Changes that break compatibility"
|
|
203
|
+
level: 3
|
|
204
|
+
template: |
|
|
205
|
+
## Breaking Change: {title}
|
|
206
|
+
|
|
207
|
+
### What's Changing
|
|
208
|
+
{change}
|
|
209
|
+
|
|
210
|
+
### Impact
|
|
211
|
+
{impact}
|
|
212
|
+
|
|
213
|
+
### Migration Path
|
|
214
|
+
{migration}
|
|
215
|
+
|
|
216
|
+
### Rollback Plan
|
|
217
|
+
{rollback}
|
|
218
|
+
|
|
219
|
+
# Decision workflow
|
|
220
|
+
decision_workflow:
|
|
221
|
+
capture:
|
|
222
|
+
- Identify decision point
|
|
223
|
+
- Classify by level
|
|
224
|
+
- Gather context
|
|
225
|
+
- Generate options
|
|
226
|
+
|
|
227
|
+
evaluate:
|
|
228
|
+
- Apply classification rules
|
|
229
|
+
- Consider context modifiers
|
|
230
|
+
- Determine final level
|
|
231
|
+
|
|
232
|
+
present:
|
|
233
|
+
- Level 0-1: Log only
|
|
234
|
+
- Level 2: Show preview with recommendation
|
|
235
|
+
- Level 3: Full decision template
|
|
236
|
+
- Level 4: Guidance only
|
|
237
|
+
|
|
238
|
+
record:
|
|
239
|
+
- Save to .omgkit/memory/decisions/
|
|
240
|
+
- Update state with decision
|
|
241
|
+
- Log in journal
|
|
242
|
+
|
|
243
|
+
# Context modifiers
|
|
244
|
+
context_modifiers:
|
|
245
|
+
# Increase level
|
|
246
|
+
increase_level:
|
|
247
|
+
- condition: "first_time_in_area"
|
|
248
|
+
modifier: +1
|
|
249
|
+
reason: "First time working in this area"
|
|
250
|
+
|
|
251
|
+
- condition: "multiple_files_affected"
|
|
252
|
+
modifier: +1
|
|
253
|
+
reason: "Changes affect multiple files"
|
|
254
|
+
|
|
255
|
+
- condition: "production_environment"
|
|
256
|
+
modifier: +1
|
|
257
|
+
reason: "Production context"
|
|
258
|
+
|
|
259
|
+
# Decrease level
|
|
260
|
+
decrease_level:
|
|
261
|
+
- condition: "pattern_established"
|
|
262
|
+
modifier: -1
|
|
263
|
+
reason: "Following established pattern"
|
|
264
|
+
|
|
265
|
+
- condition: "test_coverage_high"
|
|
266
|
+
modifier: -1
|
|
267
|
+
reason: "Well-tested code"
|
|
268
|
+
|
|
269
|
+
- condition: "rollback_easy"
|
|
270
|
+
modifier: -1
|
|
271
|
+
reason: "Easy to rollback"
|
|
272
|
+
|
|
273
|
+
# Approval handling
|
|
274
|
+
approval_handling:
|
|
275
|
+
level_2:
|
|
276
|
+
prompt: "Approve this change? [Y/n/details]"
|
|
277
|
+
default: "yes"
|
|
278
|
+
timeout_action: "proceed_with_recommendation"
|
|
279
|
+
|
|
280
|
+
level_3:
|
|
281
|
+
prompt: "Review required. Approve? [yes/no/modify]"
|
|
282
|
+
default: "no"
|
|
283
|
+
timeout_action: "wait"
|
|
284
|
+
|
|
285
|
+
level_4:
|
|
286
|
+
prompt: "Human action required. Confirm when complete."
|
|
287
|
+
default: null
|
|
288
|
+
timeout_action: "wait"
|
|
289
|
+
|
|
290
|
+
# Decision record schema
|
|
291
|
+
record_schema:
|
|
292
|
+
id:
|
|
293
|
+
type: string
|
|
294
|
+
required: true
|
|
295
|
+
description: Unique decision ID
|
|
296
|
+
|
|
297
|
+
title:
|
|
298
|
+
type: string
|
|
299
|
+
required: true
|
|
300
|
+
description: Brief decision title
|
|
301
|
+
|
|
302
|
+
level:
|
|
303
|
+
type: integer
|
|
304
|
+
required: true
|
|
305
|
+
description: Autonomy level
|
|
306
|
+
|
|
307
|
+
context:
|
|
308
|
+
type: string
|
|
309
|
+
required: true
|
|
310
|
+
description: Why this decision arose
|
|
311
|
+
|
|
312
|
+
options:
|
|
313
|
+
type: array
|
|
314
|
+
items: string
|
|
315
|
+
description: Available options
|
|
316
|
+
|
|
317
|
+
decision:
|
|
318
|
+
type: string
|
|
319
|
+
required: true
|
|
320
|
+
description: What was decided
|
|
321
|
+
|
|
322
|
+
rationale:
|
|
323
|
+
type: string
|
|
324
|
+
required: true
|
|
325
|
+
description: Why this was decided
|
|
326
|
+
|
|
327
|
+
consequences:
|
|
328
|
+
type: string
|
|
329
|
+
description: Expected outcomes
|
|
330
|
+
|
|
331
|
+
timestamp:
|
|
332
|
+
type: datetime
|
|
333
|
+
required: true
|
|
334
|
+
|
|
335
|
+
approved_by:
|
|
336
|
+
type: string
|
|
337
|
+
description: Who approved (user/auto)
|