omgkit 2.24.1 → 2.24.2

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 CHANGED
@@ -37,9 +37,9 @@ All coordinated through **Omega-level thinking** - a framework for finding break
37
37
  | Component | Count | Description |
38
38
  |-----------|-------|-------------|
39
39
  | **Agents** | 41 | Specialized AI team members with distinct roles |
40
- | **Commands** | 151 | Slash commands for every development task |
41
- | **Workflows** | 67 | Complete development processes from idea to deploy |
42
- | **Skills** | 157 | Domain expertise modules across 24 categories |
40
+ | **Commands** | 160 | Slash commands for every development task |
41
+ | **Workflows** | 69 | Complete development processes from idea to deploy |
42
+ | **Skills** | 161 | Domain expertise modules across 24 categories |
43
43
  | **Modes** | 10 | Behavioral configurations for different contexts |
44
44
  | **Archetypes** | 14 | Project templates for autonomous development |
45
45
 
@@ -88,6 +88,53 @@ OMGKIT brings agile methodology to AI-assisted development:
88
88
  - **Sprints**: Time-boxed development cycles
89
89
  - **AI Team**: Autonomous execution with human oversight
90
90
 
91
+ ### 4. Testing Automation (New)
92
+
93
+ OMGKIT includes a comprehensive testing automation system:
94
+
95
+ #### Auto-Generate Test Tasks
96
+ When you create a feature, OMGKIT automatically generates corresponding test tasks:
97
+
98
+ ```yaml
99
+ # workflow.yaml
100
+ testing:
101
+ auto_generate_tasks: true
102
+ required_test_types:
103
+ - unit
104
+ - integration
105
+ ```
106
+
107
+ Feature tasks automatically spawn test tasks based on feature type (API → Contract tests, UI → Snapshot tests, etc.)
108
+
109
+ #### Enforce Tests Before Done
110
+ No task can be marked "done" without passing tests:
111
+
112
+ ```yaml
113
+ testing:
114
+ enforcement:
115
+ level: standard # soft | standard | strict
116
+ blocking:
117
+ on_test_failure: true
118
+ on_coverage_below_minimum: true
119
+ ```
120
+
121
+ #### Coverage Gates
122
+ Set minimum and target coverage thresholds:
123
+
124
+ ```yaml
125
+ testing:
126
+ coverage_gates:
127
+ unit:
128
+ minimum: 80
129
+ target: 90
130
+ integration:
131
+ minimum: 60
132
+ target: 75
133
+ overall:
134
+ minimum: 75
135
+ target: 85
136
+ ```
137
+
91
138
  ---
92
139
 
93
140
  ## Installation
@@ -222,7 +269,7 @@ Agents are specialized AI team members, each with distinct expertise and respons
222
269
 
223
270
  ---
224
271
 
225
- ## Commands (151)
272
+ ## Commands (160)
226
273
 
227
274
  Commands are slash-prefixed actions organized by namespace.
228
275
 
@@ -260,10 +307,13 @@ Commands are slash-prefixed actions organized by namespace.
260
307
  ### Quality (`/quality:*`)
261
308
 
262
309
  ```bash
263
- /quality:security-scan # Scan for vulnerabilities
310
+ /quality:security-scan # Scan for vulnerabilities
264
311
  /quality:refactor <file> # Improve code structure
265
312
  /quality:optimize <file> # Performance optimization
266
- /quality:lint # Run linting
313
+ /quality:lint # Run linting
314
+ /quality:verify-done # Verify test requirements before completion
315
+ /quality:coverage-check # Check coverage against gates
316
+ /quality:test-plan # Generate comprehensive test plan
267
317
  ```
268
318
 
269
319
  ### Omega (`/omega:*`)
@@ -370,7 +420,7 @@ Commands are slash-prefixed actions organized by namespace.
370
420
 
371
421
  ---
372
422
 
373
- ## Workflows (67)
423
+ ## Workflows (69)
374
424
 
375
425
  Workflows are orchestrated sequences of agents, commands, and skills.
376
426
 
@@ -383,6 +433,12 @@ Workflows are orchestrated sequences of agents, commands, and skills.
383
433
  | `development/refactor` | Code improvement and restructuring |
384
434
  | `development/code-review` | Comprehensive code review |
385
435
 
436
+ ### Testing Automation (New)
437
+
438
+ | Workflow | Description |
439
+ |----------|-------------|
440
+ | `testing/automated-testing` | End-to-end testing automation with task generation, enforcement, and coverage gates |
441
+
386
442
  ### AI Engineering
387
443
 
388
444
  | Workflow | Description |
@@ -454,7 +510,7 @@ Workflows are orchestrated sequences of agents, commands, and skills.
454
510
 
455
511
  ---
456
512
 
457
- ## Skills (157)
513
+ ## Skills (161)
458
514
 
459
515
  Skills are domain expertise modules organized in 24 categories.
460
516
 
@@ -498,7 +554,7 @@ Based on Chip Huyen's "Designing ML Systems" and Stanford CS 329S:
498
554
  | `ml-systems/robust-ai` | Reliability, monitoring, drift detection |
499
555
  | `ml-systems/deployment-paradigms` | Batch vs real-time vs streaming |
500
556
 
501
- ### Methodology (17 skills)
557
+ ### Methodology (19 skills)
502
558
 
503
559
  | Skill | Description |
504
560
  |-------|-------------|
@@ -507,6 +563,8 @@ Based on Chip Huyen's "Designing ML Systems" and Stanford CS 329S:
507
563
  | `methodology/debugging` | Systematic debugging approach |
508
564
  | `methodology/code-review` | Review standards and checklists |
509
565
  | `methodology/tdd` | Test-driven development |
566
+ | `methodology/test-task-generation` | Auto-generate test tasks from features |
567
+ | `methodology/test-enforcement` | Enforce tests before task completion |
510
568
 
511
569
  ### Frameworks (10 skills)
512
570
 
@@ -735,7 +793,7 @@ If any sync issue is detected (missing pages, wrong counts, broken links), the v
735
793
 
736
794
  ## Validation & Testing
737
795
 
738
- OMGKIT has 5700+ automated tests ensuring system integrity.
796
+ OMGKIT has 7300+ automated tests ensuring system integrity.
739
797
 
740
798
  ### Run Tests
741
799
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "omgkit",
3
- "version": "2.24.1",
4
- "description": "Omega-Level Development Kit - AI Team System for Claude Code. 41 agents, 156 commands, 159 skills, 68 workflows.",
3
+ "version": "2.24.2",
4
+ "description": "Omega-Level Development Kit - AI Team System for Claude Code. 41 agents, 160 commands, 161 skills, 69 workflows.",
5
5
  "keywords": [
6
6
  "claude-code",
7
7
  "ai",
@@ -0,0 +1,208 @@
1
+ ---
2
+ name: Feature Tested
3
+ description: Create a feature with automatically generated test tasks. Ensures every implementation task has corresponding test coverage before the feature can be marked complete.
4
+ category: dev
5
+ related_skills:
6
+ - methodology/test-task-generation
7
+ - methodology/test-enforcement
8
+ - methodology/executing-plans
9
+ related_commands:
10
+ - /quality:test-plan
11
+ - /quality:verify-done
12
+ - /dev:feature
13
+ - /dev:test
14
+ allowed-tools: Task, Read, Write, Bash, Grep, Glob
15
+ ---
16
+
17
+ # /dev:feature-tested
18
+
19
+ Build a feature with automatically generated test tasks. This command ensures comprehensive test coverage by creating test tasks alongside implementation tasks.
20
+
21
+ ## Usage
22
+
23
+ ```bash
24
+ /dev:feature-tested <feature-description>
25
+ /dev:feature-tested "Add user authentication" --coverage 90
26
+ /dev:feature-tested "Payment processing" --test-types unit,integration,e2e
27
+ ```
28
+
29
+ ## Options
30
+
31
+ | Option | Description | Default |
32
+ |--------|-------------|---------|
33
+ | `--coverage` | Minimum coverage target | 80% |
34
+ | `--test-types` | Required test types | unit,integration |
35
+ | `--tdd` | Use TDD approach (tests first) | false |
36
+ | `--strict` | Strict enforcement (no overrides) | false |
37
+
38
+ ## How It Works
39
+
40
+ ### 1. Feature Analysis
41
+ Analyzes the feature description to determine:
42
+ - Feature type (API, UI, business logic, etc.)
43
+ - Required test types
44
+ - Coverage targets
45
+ - Acceptance criteria
46
+
47
+ ### 2. Task Generation
48
+ Creates implementation tasks AND corresponding test tasks:
49
+
50
+ ```
51
+ Feature: Add user profile API
52
+
53
+ Generated Tasks:
54
+ ┌─────────────────────────────────────────────────────────────┐
55
+ │ Implementation Tasks │
56
+ ├─────────────────────────────────────────────────────────────┤
57
+ │ ☐ TASK-001: Create profile database schema │
58
+ │ ☐ TASK-002: Implement profile service │
59
+ │ ☐ TASK-003: Create profile API endpoints │
60
+ │ ☐ TASK-004: Add input validation │
61
+ └─────────────────────────────────────────────────────────────┘
62
+
63
+ ┌─────────────────────────────────────────────────────────────┐
64
+ │ Test Tasks (Auto-Generated) │
65
+ ├─────────────────────────────────────────────────────────────┤
66
+ │ ☐ TEST-001: Unit tests for profile service │
67
+ │ ☐ TEST-002: Integration tests for profile API │
68
+ │ ☐ TEST-003: Contract tests for API schema │
69
+ │ ☐ TEST-004: Security tests for profile endpoints │
70
+ └─────────────────────────────────────────────────────────────┘
71
+ ```
72
+
73
+ ### 3. Enforcement
74
+ - Cannot mark feature as "done" until all test tasks complete
75
+ - Coverage must meet minimum threshold
76
+ - All tests must pass
77
+
78
+ ## Output Format
79
+
80
+ ```
81
+ ╔══════════════════════════════════════════════════════════════╗
82
+ ║ FEATURE WITH TESTS CREATED ║
83
+ ╚══════════════════════════════════════════════════════════════╝
84
+
85
+ Feature: Add user profile API
86
+ ID: FEAT-042
87
+ Coverage Target: 90%
88
+
89
+ ┌─────────────────────────────────────────────────────────────┐
90
+ │ Implementation Tasks (4) │
91
+ ├─────────────────────────────────────────────────────────────┤
92
+ │ TASK-001: Create profile database schema [Pending] │
93
+ │ TASK-002: Implement profile service [Pending] │
94
+ │ TASK-003: Create profile API endpoints [Pending] │
95
+ │ TASK-004: Add input validation [Pending] │
96
+ └─────────────────────────────────────────────────────────────┘
97
+
98
+ ┌─────────────────────────────────────────────────────────────┐
99
+ │ Test Tasks (4) - Auto-Generated │
100
+ ├─────────────────────────────────────────────────────────────┤
101
+ │ TEST-001: Unit tests for profile service [Pending] │
102
+ │ → Coverage target: 90% for src/services/profile.ts │
103
+ │ → Test file: tests/unit/services/profile.test.ts │
104
+ │ │
105
+ │ TEST-002: Integration tests for profile API [Pending] │
106
+ │ → Coverage target: 75% for API endpoints │
107
+ │ → Test file: tests/integration/api/profile.int.test.ts │
108
+ │ │
109
+ │ TEST-003: Contract tests for API schema [Pending] │
110
+ │ → Validates: Request/response schemas │
111
+ │ → Test file: tests/contract/profile.contract.test.ts │
112
+ │ │
113
+ │ TEST-004: Security tests for profile endpoints [Pending] │
114
+ │ → Checks: Auth, injection, XSS │
115
+ │ → Test file: tests/security/profile.security.test.ts │
116
+ └─────────────────────────────────────────────────────────────┘
117
+
118
+ ┌─────────────────────────────────────────────────────────────┐
119
+ │ Completion Requirements │
120
+ ├─────────────────────────────────────────────────────────────┤
121
+ │ ☐ All implementation tasks complete │
122
+ │ ☐ All test tasks complete │
123
+ │ ☐ Overall coverage ≥ 90% │
124
+ │ ☐ All tests passing │
125
+ │ ☐ No security vulnerabilities │
126
+ │ ☐ Code review approved │
127
+ └─────────────────────────────────────────────────────────────┘
128
+
129
+ Next: Start with TASK-001 or use --tdd to write tests first
130
+ ```
131
+
132
+ ## TDD Mode
133
+
134
+ With `--tdd` flag, tests are created and executed first:
135
+
136
+ ```bash
137
+ /dev:feature-tested "Add user profile API" --tdd
138
+ ```
139
+
140
+ Flow:
141
+ 1. Generate test tasks first
142
+ 2. Write failing tests (Red)
143
+ 3. Implement to pass tests (Green)
144
+ 4. Refactor (Refactor)
145
+ 5. Verify coverage
146
+
147
+ ## Workflow Integration
148
+
149
+ ### Sprint Planning
150
+ ```bash
151
+ /sprint:sprint-new
152
+ # Add feature with tests
153
+ /dev:feature-tested "User profile management"
154
+ ```
155
+
156
+ ### Daily Development
157
+ ```bash
158
+ # Check what's needed
159
+ /quality:verify-done FEAT-042
160
+
161
+ # Work on implementation
162
+ # Work on tests
163
+ # Verify completion
164
+ /quality:verify-done FEAT-042
165
+ ```
166
+
167
+ ### Feature Completion
168
+ ```bash
169
+ # Attempt to complete
170
+ /quality:verify-done FEAT-042
171
+
172
+ # If all requirements met:
173
+ # ✅ Feature FEAT-042 marked as DONE
174
+
175
+ # If requirements not met:
176
+ # ❌ Cannot complete: Coverage 75% below 90% minimum
177
+ ```
178
+
179
+ ## Examples
180
+
181
+ ### Basic feature with tests
182
+ ```bash
183
+ /dev:feature-tested "Add user authentication"
184
+ ```
185
+
186
+ ### With strict coverage
187
+ ```bash
188
+ /dev:feature-tested "Payment processing" --coverage 95 --strict
189
+ ```
190
+
191
+ ### TDD approach
192
+ ```bash
193
+ /dev:feature-tested "Shopping cart" --tdd
194
+ ```
195
+
196
+ ### Specific test types
197
+ ```bash
198
+ /dev:feature-tested "Admin dashboard" --test-types unit,e2e,security
199
+ ```
200
+
201
+ ## Comparison with /dev:feature
202
+
203
+ | Aspect | /dev:feature | /dev:feature-tested |
204
+ |--------|-------------|---------------------|
205
+ | Test tasks | Manual | Auto-generated |
206
+ | Enforcement | Soft | Hard (blocking) |
207
+ | Coverage tracking | Manual | Automatic |
208
+ | Completion check | Manual | Automatic |
@@ -0,0 +1,165 @@
1
+ ---
2
+ name: Coverage Check
3
+ description: Check test coverage against configured gates and report uncovered code. Integrates with workflow config coverage requirements.
4
+ category: quality
5
+ related_skills:
6
+ - methodology/test-enforcement
7
+ - testing/comprehensive-testing
8
+ - devops/workflow-config
9
+ related_commands:
10
+ - /quality:verify-done
11
+ - /dev:test
12
+ - /quality:test-plan
13
+ allowed-tools: Read, Bash, Grep, Glob
14
+ ---
15
+
16
+ # /quality:coverage-check
17
+
18
+ Check test coverage against configured gates and identify uncovered code.
19
+
20
+ ## Usage
21
+
22
+ ```bash
23
+ /quality:coverage-check
24
+ /quality:coverage-check --type unit
25
+ /quality:coverage-check --file src/handlers/user.ts
26
+ /quality:coverage-check --threshold 90
27
+ ```
28
+
29
+ ## Options
30
+
31
+ | Option | Description | Default |
32
+ |--------|-------------|---------|
33
+ | `--type` | Test type (unit, integration, e2e) | all |
34
+ | `--file` | Check specific file | all files |
35
+ | `--threshold` | Override minimum threshold | from config |
36
+ | `--report` | Output format (text, json, html) | text |
37
+ | `--fail-under` | Exit with error if below | minimum |
38
+
39
+ ## Output Format
40
+
41
+ ```
42
+ ╔══════════════════════════════════════════════════════════════╗
43
+ ║ COVERAGE REPORT ║
44
+ ╚══════════════════════════════════════════════════════════════╝
45
+
46
+ Overall Coverage: 85% ████████░░
47
+
48
+ ┌─────────────────────────────────────────────────────────────┐
49
+ │ Coverage by Type │
50
+ ├─────────────────────────────────────────────────────────────┤
51
+ │ Lines: 85% ████████░░ (target: 90%) ⚠️ │
52
+ │ Branches: 78% ████████░░ (target: 80%) ⚠️ │
53
+ │ Functions: 92% █████████░ (target: 90%) ✅ │
54
+ │ Statements: 84% ████████░░ (target: 85%) ⚠️ │
55
+ └─────────────────────────────────────────────────────────────┘
56
+
57
+ ┌─────────────────────────────────────────────────────────────┐
58
+ │ Coverage by File │
59
+ ├─────────────────────────────────────────────────────────────┤
60
+ │ File Lines Branches Functions │
61
+ │ ─────────────────────────────────────────────────────────── │
62
+ │ src/handlers/user.ts 92% 85% 100% ✅ │
63
+ │ src/handlers/auth.ts 88% 80% 95% ✅ │
64
+ │ src/services/email.ts 65% 55% 70% ❌ │
65
+ │ src/utils/validation.ts 78% 70% 85% ⚠️ │
66
+ └─────────────────────────────────────────────────────────────┘
67
+
68
+ ┌─────────────────────────────────────────────────────────────┐
69
+ │ Uncovered Lines │
70
+ ├─────────────────────────────────────────────────────────────┤
71
+ │ src/services/email.ts │
72
+ │ Lines 45-52: sendVerificationEmail error handling │
73
+ │ Lines 78-85: retryWithBackoff logic │
74
+ │ │
75
+ │ src/utils/validation.ts │
76
+ │ Lines 23-25: edge case for special characters │
77
+ └─────────────────────────────────────────────────────────────┘
78
+
79
+ ┌─────────────────────────────────────────────────────────────┐
80
+ │ Coverage Gates │
81
+ ├─────────────────────────────────────────────────────────────┤
82
+ │ Gate Current Minimum Target Status │
83
+ │ ─────────────────────────────────────────────────────────── │
84
+ │ Unit Coverage 85% 80% 90% ✅ Pass │
85
+ │ Integration 72% 60% 75% ✅ Pass │
86
+ │ Branch Coverage 78% 70% 80% ✅ Pass │
87
+ │ Overall 82% 75% 85% ✅ Pass │
88
+ └─────────────────────────────────────────────────────────────┘
89
+
90
+ Summary: ✅ All coverage gates passed
91
+ ⚠️ 3 files below target coverage
92
+
93
+ Recommendation: Add tests for email.ts error handling
94
+ ```
95
+
96
+ ## Coverage Gates Configuration
97
+
98
+ From `.omgkit/workflow.yaml`:
99
+
100
+ ```yaml
101
+ testing:
102
+ coverage_gates:
103
+ unit:
104
+ minimum: 80 # Block if below
105
+ target: 90 # Goal to achieve
106
+ excellent: 95 # Exceptional
107
+ integration:
108
+ minimum: 60
109
+ target: 75
110
+ branch:
111
+ minimum: 70
112
+ target: 80
113
+ overall:
114
+ minimum: 75
115
+ target: 85
116
+ ```
117
+
118
+ ## Framework Detection
119
+
120
+ Automatically detects and runs appropriate coverage tool:
121
+
122
+ | Framework | Coverage Tool | Config File |
123
+ |-----------|--------------|-------------|
124
+ | Vitest | c8/v8 | vitest.config.ts |
125
+ | Jest | jest --coverage | jest.config.js |
126
+ | Pytest | pytest-cov | pytest.ini |
127
+ | Go | go test -cover | go.mod |
128
+
129
+ ## Integration
130
+
131
+ ### Pre-push Hook
132
+ ```bash
133
+ # .git/hooks/pre-push
134
+ /quality:coverage-check --fail-under 80
135
+ ```
136
+
137
+ ### CI Pipeline
138
+ ```yaml
139
+ - name: Check Coverage
140
+ run: |
141
+ npm run test:coverage
142
+ /quality:coverage-check --report json > coverage-report.json
143
+ ```
144
+
145
+ ## Examples
146
+
147
+ ### Check overall coverage
148
+ ```bash
149
+ /quality:coverage-check
150
+ ```
151
+
152
+ ### Check specific file
153
+ ```bash
154
+ /quality:coverage-check --file src/handlers/user.ts
155
+ ```
156
+
157
+ ### Enforce strict threshold
158
+ ```bash
159
+ /quality:coverage-check --threshold 90 --fail-under 90
160
+ ```
161
+
162
+ ### Generate JSON report
163
+ ```bash
164
+ /quality:coverage-check --report json > coverage.json
165
+ ```