omgkit 2.25.1 → 2.26.1

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.
@@ -9,8 +9,10 @@ related_skills:
9
9
  - testing/comprehensive-testing
10
10
  related_commands:
11
11
  - /dev:feature-tested
12
+ - /dev:feature
12
13
  - /quality:test-plan
13
14
  - /dev:test
15
+ - /sprint:team-run
14
16
  ---
15
17
 
16
18
  # Test Task Generation
@@ -351,6 +353,37 @@ TEST-087-C: Accessibility tests for UserCard
351
353
  - Set coverage targets below minimums
352
354
  - Create test tasks without parent reference
353
355
 
356
+ ## Configuration
357
+
358
+ ### Enable Auto-Generation
359
+
360
+ ```yaml
361
+ # .omgkit/workflow.yaml
362
+ testing:
363
+ enabled: true
364
+ auto_generate_tasks: true
365
+ enforcement:
366
+ level: standard
367
+ ```
368
+
369
+ ### Via CLI
370
+
371
+ ```bash
372
+ # Enable auto-generation
373
+ omgkit config set testing.auto_generate_tasks true
374
+
375
+ # Set test types for auto-generation
376
+ omgkit config set testing.auto_generate.types "unit,integration"
377
+ ```
378
+
379
+ ### Command Options
380
+
381
+ | Option | Description | Example |
382
+ |--------|-------------|---------|
383
+ | `--test-types <types>` | Specify test types | `/dev:feature "api" --test-types unit,integration,e2e` |
384
+ | `--coverage <percent>` | Set coverage target | `/dev:feature-tested "auth" --coverage 95` |
385
+ | `--tdd` | Generate test tasks first | `/dev:feature-tested "cart" --tdd` |
386
+
354
387
  ## Quality Gates
355
388
 
356
389
  Before a feature can be marked as "done":
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bug-fix
3
- description: Systematic debugging and issue resolution
3
+ description: Systematic debugging and issue resolution with regression test enforcement
4
4
  category: development
5
5
  complexity: medium
6
6
  estimated-time: 30min-4 hours
@@ -13,11 +13,17 @@ skills:
13
13
  - methodology/systematic-debugging
14
14
  - methodology/root-cause-tracing
15
15
  - methodology/test-driven-development
16
+ - methodology/test-enforcement
16
17
  commands:
17
18
  - /dev:fix
19
+ - /dev:fix-fast
18
20
  - /dev:fix-hard
19
21
  - /dev:fix-test
22
+ - /quality:verify-done
20
23
  - /git:cm
24
+ testing:
25
+ default: true
26
+ configurable: true
21
27
  prerequisites:
22
28
  - Issue identified and reproducible
23
29
  - Access to relevant logs/errors
@@ -139,17 +145,58 @@ Bug Fix Debug Process
139
145
  - Specify the environment (browser, OS, version)
140
146
  - Link to related issues or discussions
141
147
 
148
+ ## Testing Options
149
+
150
+ This workflow respects project testing configuration from `.omgkit/workflow.yaml`.
151
+
152
+ ### Command Options
153
+
154
+ | Command | Default | Options |
155
+ |---------|---------|---------|
156
+ | `/dev:fix` | Tests enabled | `--no-test`, `--test-level` |
157
+ | `/dev:fix-fast` | Tests disabled | `--with-test`, `--test-level` |
158
+ | `/dev:fix-hard` | Tests enabled | `--no-test`, `--test-level` |
159
+
160
+ ### Enforcement Levels
161
+
162
+ | Level | Regression Test | Test Failure |
163
+ |-------|-----------------|--------------|
164
+ | `soft` | Warning | Warning |
165
+ | `standard` | Warning | Block |
166
+ | `strict` | Block | Block |
167
+
168
+ ### Configuration
169
+
170
+ ```yaml
171
+ # .omgkit/workflow.yaml
172
+ testing:
173
+ enabled: true
174
+ enforcement:
175
+ level: standard
176
+ ```
177
+
178
+ ```bash
179
+ # Set via CLI
180
+ omgkit config set testing.enforcement.level strict
181
+ ```
182
+
142
183
  ## Example Usage
143
184
 
144
185
  ```bash
145
- # Fix with error description
146
- /workflow:bug-fix "TypeError: Cannot read property 'id' of undefined in UserService"
186
+ # Fix with regression test enforcement (default)
187
+ /dev:fix "TypeError: Cannot read property 'id' of undefined in UserService"
188
+
189
+ # Quick fix without tests (for typos)
190
+ /dev:fix-fast "typo in error message"
191
+
192
+ # Quick fix with test (optional)
193
+ /dev:fix-fast "wrong import path" --with-test
147
194
 
148
- # Fix with context
149
- /workflow:bug-fix "Login button not responding after page refresh"
195
+ # Deep investigation with strict testing
196
+ /dev:fix-hard "Race condition in auth" --test-level strict
150
197
 
151
198
  # Fix with issue reference
152
- /workflow:bug-fix "Issue #123: Payment processing fails for amounts > $1000"
199
+ /dev:fix "Issue #123: Payment processing fails for amounts > $1000"
153
200
  ```
154
201
 
155
202
  ## Related Workflows
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: feature
3
- description: Complete feature development from planning to deployment
3
+ description: Complete feature development from planning to deployment with configurable test enforcement
4
4
  category: development
5
5
  complexity: medium
6
6
  estimated-time: 2-8 hours
@@ -14,13 +14,20 @@ skills:
14
14
  - methodology/writing-plans
15
15
  - methodology/executing-plans
16
16
  - methodology/test-driven-development
17
+ - methodology/test-enforcement
18
+ - methodology/test-task-generation
17
19
  commands:
18
20
  - /planning:plan
19
21
  - /dev:feature
22
+ - /dev:feature-tested
20
23
  - /dev:test
21
24
  - /dev:review
25
+ - /quality:verify-done
22
26
  - /git:commit
23
27
  - /git:pr
28
+ testing:
29
+ default: true
30
+ configurable: true
24
31
  prerequisites:
25
32
  - Project initialized with omgkit
26
33
  - Git repository configured
@@ -154,14 +161,55 @@ Feature Development Progress
154
161
  - Specify the target completion timeframe
155
162
  - Include any dependencies on other features
156
163
 
164
+ ## Testing Options
165
+
166
+ This workflow respects project testing configuration from `.omgkit/workflow.yaml`.
167
+
168
+ ### Command Options
169
+
170
+ | Option | Description | Example |
171
+ |--------|-------------|---------|
172
+ | `--no-test` | Skip test enforcement | `/dev:feature "login" --no-test` |
173
+ | `--test-level <level>` | Override enforcement level | `/dev:feature "auth" --test-level strict` |
174
+ | `--coverage <percent>` | Override coverage minimum | `/dev:feature "api" --coverage 95` |
175
+
176
+ ### Configuration
177
+
178
+ ```yaml
179
+ # .omgkit/workflow.yaml
180
+ testing:
181
+ enabled: true
182
+ enforcement:
183
+ level: standard # soft | standard | strict
184
+ coverage_gates:
185
+ unit:
186
+ minimum: 80
187
+ ```
188
+
189
+ ### CLI Configuration
190
+
191
+ ```bash
192
+ # Set enforcement level
193
+ omgkit config set testing.enforcement.level strict
194
+
195
+ # View testing config
196
+ omgkit config list testing
197
+ ```
198
+
157
199
  ## Example Usage
158
200
 
159
201
  ```bash
160
- # Full feature workflow
202
+ # Full feature workflow with default testing
161
203
  /workflow:feature "user authentication with OAuth2 support"
162
204
 
163
- # With specific requirements
164
- /workflow:feature "shopping cart with persistent storage and checkout flow"
205
+ # With strict test enforcement
206
+ /dev:feature "payment processing" --test-level strict
207
+
208
+ # With specific coverage requirement
209
+ /dev:feature "shopping cart" --coverage 95
210
+
211
+ # Skip testing for prototype (soft level required)
212
+ /dev:feature "quick prototype" --no-test
165
213
  ```
166
214
 
167
215
  ## Related Workflows
@@ -275,12 +275,15 @@ Coverage:
275
275
 
276
276
  ## Configuration
277
277
 
278
+ ### Via workflow.yaml
279
+
278
280
  Add to `.omgkit/workflow.yaml`:
279
281
 
280
282
  ```yaml
281
283
  testing:
284
+ enabled: true
282
285
  enforcement:
283
- level: standard
286
+ level: standard # soft | standard | strict
284
287
 
285
288
  auto_generate_tasks: true
286
289
 
@@ -309,6 +312,28 @@ testing:
309
312
  on_coverage_below_minimum: true
310
313
  ```
311
314
 
315
+ ### Via CLI
316
+
317
+ ```bash
318
+ # Set enforcement level
319
+ omgkit config set testing.enforcement.level strict
320
+
321
+ # Enable auto-generation
322
+ omgkit config set testing.auto_generate_tasks true
323
+
324
+ # View testing config
325
+ omgkit config list testing
326
+ ```
327
+
328
+ ### Command Options
329
+
330
+ | Option | Description | Example |
331
+ |--------|-------------|---------|
332
+ | `--no-test` | Skip test enforcement | `/dev:feature "login" --no-test` |
333
+ | `--test-level <level>` | Override enforcement level | `/dev:feature "auth" --test-level strict` |
334
+ | `--coverage <percent>` | Override coverage minimum | `/dev:test "src/" --coverage 95` |
335
+ | `--test-types <types>` | Specify test types | `/dev:test "api/" --test-types unit,integration` |
336
+
312
337
  ---
313
338
 
314
339
  ## Agent Handoff Protocol
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: testing/test-driven-development
3
- description: Test-Driven Development workflow with red-green-refactor cycle and continuous test feedback
3
+ description: Test-Driven Development workflow with red-green-refactor cycle and enforced test-first methodology
4
4
  category: testing
5
5
  complexity: medium
6
6
  agents:
@@ -9,13 +9,19 @@ agents:
9
9
  - code-reviewer
10
10
  skills:
11
11
  - methodology/test-driven-development
12
+ - methodology/test-enforcement
12
13
  - testing/comprehensive-testing
13
14
  - testing/property-testing
14
15
  - testing/vitest
15
16
  commands:
17
+ - /dev:tdd
16
18
  - /dev:test
17
- - /dev:feature
18
- - /quality:test-property
19
+ - /dev:test-write
20
+ - /dev:feature-tested
21
+ - /quality:verify-done
22
+ testing:
23
+ default: true
24
+ configurable: false
19
25
  tags:
20
26
  - testing
21
27
  - tdd
@@ -173,6 +179,49 @@ it('handles negative totals', () => {
173
179
  - Property tests included for pure functions
174
180
  - Edge cases documented
175
181
 
182
+ ## Testing Options
183
+
184
+ TDD workflow **always enforces testing** (test-first by definition).
185
+
186
+ ### Command Options
187
+
188
+ | Option | Description | Example |
189
+ |--------|-------------|---------|
190
+ | `--coverage <percent>` | Set coverage target | `/dev:tdd "auth" --coverage 95` |
191
+ | `--test-types <types>` | Specify test types | `/dev:tdd "api" --test-types unit,integration` |
192
+
193
+ ### Configuration
194
+
195
+ ```yaml
196
+ # .omgkit/workflow.yaml
197
+ testing:
198
+ enabled: true
199
+ enforcement:
200
+ level: strict # TDD recommends strict
201
+ coverage_gates:
202
+ unit:
203
+ minimum: 90
204
+ target: 95
205
+ ```
206
+
207
+ ```bash
208
+ # Set via CLI
209
+ omgkit config set testing.enforcement.level strict
210
+ ```
211
+
212
+ ## Usage Examples
213
+
214
+ ```bash
215
+ # Standard TDD workflow
216
+ /dev:tdd "user authentication"
217
+
218
+ # TDD with specific coverage
219
+ /dev:tdd "payment processing" --coverage 95
220
+
221
+ # TDD with specific test types
222
+ /dev:tdd "API endpoint" --test-types unit,integration,contract
223
+ ```
224
+
176
225
  ## Success Criteria
177
226
 
178
227
  - Feature implemented with full test coverage