@mrciphersmith/keryx 0.2.72 → 0.2.73
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/dist/cli.js +352 -22
- package/package.json +2 -2
- package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +1 -1
- package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +1 -1
- package/src/gdskills/bundled/rules/core/subagent-context-construction.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +326 -20
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +320 -22
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +326 -12
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +333 -9
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +92 -4
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +92 -4
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +92 -4
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +92 -4
- package/src/gdskills/bundled/skills/orchestration/context-collector/orchestrator-prompt.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +154 -1098
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +154 -1098
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +154 -1098
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +154 -1098
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/orchestrator-prompt.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +101 -41
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +101 -41
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +115 -49
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +115 -49
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +115 -49
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +115 -49
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +15 -6
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +15 -6
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +15 -6
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +15 -6
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +300 -55
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +300 -55
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +120 -37
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +300 -55
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +300 -55
- package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +56 -14
- package/src/gdskills/bundled/skills/orchestration/task-implementer/orchestrator-prompt.md +50 -23
- package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +6 -2
- package/src/gdskills/bundled/skills/orchestration/task-implementer/task-request.template.md +18 -12
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +168 -9
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +168 -9
- package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +7 -1
- package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +7 -1
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +7 -1
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +7 -1
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +215 -9
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +215 -9
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +168 -9
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +168 -9
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +2 -2
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +2 -2
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +2 -2
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +2 -2
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +133 -9
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +133 -9
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +145 -9
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +145 -9
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +210 -9
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +210 -9
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +161 -9
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +161 -9
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +15 -1
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +248 -165
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +15 -1
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +359 -19
- package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +1 -1
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +1 -1
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +299 -24
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +296 -31
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +309 -18
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +312 -17
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +29 -30
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +29 -30
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +29 -30
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +29 -30
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.codex.md +21 -30
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.cursor.md +21 -30
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.opencode.md +21 -30
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.zed.md +21 -30
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +19 -23
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +19 -23
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +19 -23
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +19 -23
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +17 -24
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +17 -24
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +17 -24
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +17 -24
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +16 -3
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.claude.md +0 -46
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.claude.md +0 -94
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.claude.md +0 -45
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.claude.md +0 -40
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.claude.md +0 -45
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.claude.md +0 -42
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.claude.md +0 -48
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.claude.md +0 -40
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.claude.md +0 -30
|
@@ -1,44 +1,339 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: tests-creator
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use when writing test cases BEFORE implementation — converts acceptance criteria into failing test stubs that task-implementer will make pass. Mandatory step in the TDD pipeline between issue-analyzer and task-implementer."
|
|
4
4
|
triggers:
|
|
5
5
|
- "Create tests"
|
|
6
6
|
- "Write tests first"
|
|
7
7
|
- "Generate test specs"
|
|
8
8
|
- "Tests before implementation"
|
|
9
|
+
- "TDD test stubs"
|
|
10
|
+
- "Convert criteria to tests"
|
|
9
11
|
metadata:
|
|
10
12
|
author: "MrCipherSmith"
|
|
11
13
|
version: "1.0.0"
|
|
12
14
|
category: "testing"
|
|
15
|
+
agent_worthy: true
|
|
13
16
|
compatible_harnesses: "cursor,codex,zed,opencode"
|
|
14
17
|
license: "MIT"
|
|
15
18
|
---
|
|
16
19
|
|
|
17
20
|
# Tests Creator
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
## Purpose
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
Converts acceptance criteria (from `issue-analyzer` or manual input) into concrete, failing test stubs **before any implementation code is written**. Enforces the RED phase of TDD.
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
**Input:** Task object with `acceptance_criteria` + codebase path + test framework info
|
|
27
|
+
**Output:** Ready-to-run test files with failing test stubs + `test_case_specs` block for `task-implementer`
|
|
28
|
+
|
|
29
|
+
## When to Use
|
|
30
|
+
|
|
31
|
+
- Between `issue-analyzer` and `task-implementer` in the TDD pipeline
|
|
32
|
+
- Orchestrator needs test specs before dispatching implementation
|
|
33
|
+
- User wants to review test expectations before code is written
|
|
34
|
+
- Acceptance criteria need to be translated into executable specifications
|
|
35
|
+
|
|
36
|
+
## Architecture: 4 Phases
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
Phase 1: DETECT → Identify test framework, conventions, fixture patterns
|
|
40
|
+
Phase 2: ANALYZE → Map acceptance criteria to test scenarios
|
|
41
|
+
Phase 3: GENERATE → Write failing test stubs with correct framework syntax
|
|
42
|
+
Phase 4: REPORT → Emit test_case_specs for task-implementer consumption
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Workflow
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Tests Creator Progress:
|
|
51
|
+
- [ ] Phase 1: Detect test framework and conventions
|
|
52
|
+
- [ ] Phase 2: Map acceptance criteria to test scenarios
|
|
53
|
+
- [ ] Phase 3: Generate failing test stubs
|
|
54
|
+
- [ ] Phase 4: Report test_case_specs
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### Phase 1: DETECT
|
|
60
|
+
|
|
61
|
+
Identify the test framework and conventions used in the project.
|
|
62
|
+
|
|
63
|
+
**1.1 Detect framework:**
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Check package.json for test dependencies
|
|
67
|
+
cat <codebase_path>/package.json | grep -E '"(jest|vitest|mocha|jasmine|bun:test|pytest|go test)"'
|
|
68
|
+
|
|
69
|
+
# Check for config files
|
|
70
|
+
ls <codebase_path>/{vitest.config.*,jest.config.*,pytest.ini,setup.cfg}
|
|
71
|
+
|
|
72
|
+
# Check existing test files for imports
|
|
73
|
+
find <codebase_path>/src -name "*.test.*" -o -name "*.spec.*" | head -5
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**1.2 Read 2-3 existing test files** to understand:
|
|
77
|
+
- Import style (`import { describe, it, expect } from 'vitest'` vs global)
|
|
78
|
+
- Test file location (co-located `*.test.ts` vs `__tests__/` directory)
|
|
79
|
+
- Describe/it/test nesting patterns
|
|
80
|
+
- Common assertion patterns (`expect(x).toBe(y)` vs `assert.equal(x, y)`)
|
|
81
|
+
- Mock patterns (`vi.fn()` vs `jest.fn()` vs manual mocks)
|
|
82
|
+
- Fixture/factory patterns (how test data is created)
|
|
83
|
+
- Before/after hook usage
|
|
84
|
+
|
|
85
|
+
**1.3 Identify test file naming:**
|
|
86
|
+
- Pattern: `<component>.test.ts`, `<service>.spec.ts`, `test_<module>.py`, etc.
|
|
87
|
+
- Location: co-located with source or in `__tests__`/`tests/` directory
|
|
88
|
+
|
|
89
|
+
**Output of Phase 1:**
|
|
90
|
+
```
|
|
91
|
+
TEST_ENV:
|
|
92
|
+
framework: vitest | jest | bun:test | mocha | pytest | go_test
|
|
93
|
+
import_style: esm | cjs | global
|
|
94
|
+
file_pattern: "*.test.ts" | "*.spec.ts" | "test_*.py"
|
|
95
|
+
file_location: co-located | __tests__ | tests/
|
|
96
|
+
assertion_style: expect | assert | chai
|
|
97
|
+
mock_library: vi | jest | sinon | unittest.mock
|
|
98
|
+
fixture_pattern: <description of how test data is created>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### Phase 2: ANALYZE
|
|
104
|
+
|
|
105
|
+
Map each acceptance criterion to one or more test scenarios.
|
|
106
|
+
|
|
107
|
+
**2.1 Parse acceptance criteria:**
|
|
108
|
+
|
|
109
|
+
For each criterion, determine:
|
|
110
|
+
- **Happy path**: when everything works correctly
|
|
111
|
+
- **Edge cases**: boundary values, empty inputs, maximum values
|
|
112
|
+
- **Error paths**: invalid input, missing data, permission denied, external failure
|
|
113
|
+
|
|
114
|
+
**2.2 Criterion-to-scenario mapping:**
|
|
115
|
+
|
|
116
|
+
| Criterion Type | Test Scenarios to Generate |
|
|
117
|
+
|---|---|
|
|
118
|
+
| "User can X" | happy path: user can X; error: user cannot X when [condition] |
|
|
119
|
+
| "System returns Y when Z" | given Z → returns Y; given not-Z → does not return Y |
|
|
120
|
+
| "Field is required" | valid data passes; missing field fails with error |
|
|
121
|
+
| "Value must be between A and B" | A passes; B passes; A-1 fails; B+1 fails |
|
|
122
|
+
| "X must not happen" | verify X does not happen under [conditions] |
|
|
123
|
+
| "Async operation completes" | resolves with expected value; rejects on failure |
|
|
124
|
+
|
|
125
|
+
**2.3 Group scenarios by test file:**
|
|
126
|
+
|
|
127
|
+
Group related scenarios into test files matching the target_files from the task:
|
|
128
|
+
- Service test → test the service class methods
|
|
129
|
+
- Component test → test component rendering and interactions
|
|
130
|
+
- Integration test → test the full flow
|
|
131
|
+
|
|
132
|
+
**Output of Phase 2:**
|
|
133
|
+
```
|
|
134
|
+
TEST_PLAN:
|
|
135
|
+
- test_file: <path>
|
|
136
|
+
target_module: <source file being tested>
|
|
137
|
+
scenarios:
|
|
138
|
+
- id: test-1
|
|
139
|
+
criterion: <which acceptance criterion>
|
|
140
|
+
description: <what to test>
|
|
141
|
+
type: happy_path | edge_case | error_path
|
|
142
|
+
setup: <what to arrange>
|
|
143
|
+
action: <what to call/render/trigger>
|
|
144
|
+
assertion: <what to expect>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
### Phase 3: GENERATE
|
|
150
|
+
|
|
151
|
+
Write the actual test files with failing stubs.
|
|
152
|
+
|
|
153
|
+
**3.1 Test file structure:**
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
// Template for TypeScript (vitest/jest)
|
|
157
|
+
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
158
|
+
// import the module under test — may not exist yet, that is expected
|
|
159
|
+
import { <ModuleUnderTest> } from '<relative path>';
|
|
160
|
+
|
|
161
|
+
describe('<ModuleUnderTest>', () => {
|
|
162
|
+
// Acceptance criterion: <criterion text>
|
|
163
|
+
describe('<group name>', () => {
|
|
164
|
+
it('<should do X when Y>', async () => {
|
|
165
|
+
// Arrange
|
|
166
|
+
const <fixture> = <test data>;
|
|
167
|
+
|
|
168
|
+
// Act
|
|
169
|
+
const result = await <action>;
|
|
170
|
+
|
|
171
|
+
// Assert
|
|
172
|
+
expect(result).<assertion>;
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it('<should fail when Z>', async () => {
|
|
176
|
+
// Arrange
|
|
177
|
+
const <invalid fixture> = <invalid data>;
|
|
178
|
+
|
|
179
|
+
// Act & Assert
|
|
180
|
+
await expect(<action with invalid data>).rejects.toThrow(<error type>);
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**3.2 Failing stubs (RED phase):**
|
|
187
|
+
|
|
188
|
+
The generated tests MUST:
|
|
189
|
+
- Import the module under test (file may not exist yet — that is fine)
|
|
190
|
+
- Have meaningful test descriptions
|
|
191
|
+
- Have placeholder assertions that will FAIL until implementation:
|
|
192
|
+
```typescript
|
|
193
|
+
// Use todo() for unimplemented tests
|
|
194
|
+
it.todo('<test description>');
|
|
195
|
+
|
|
196
|
+
// OR use a stub assertion that fails
|
|
197
|
+
it('<test description>', () => {
|
|
198
|
+
expect(true).toBe(false); // RED: remove this when implementing
|
|
199
|
+
});
|
|
200
|
+
```
|
|
201
|
+
- OR use proper assertions calling the future API (will fail with "module not found" or "function is not a function")
|
|
202
|
+
|
|
203
|
+
**3.3 Preferred approach — forward-declared tests:**
|
|
204
|
+
|
|
205
|
+
Write tests that call the actual future API with real assertions. They will fail because the module doesn't exist yet:
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
// This file will fail to compile/run until task-implementer creates:
|
|
209
|
+
// src/services/UserValidator.ts with a validate() method
|
|
210
|
+
import { UserValidator } from '../services/UserValidator';
|
|
211
|
+
|
|
212
|
+
describe('UserValidator', () => {
|
|
213
|
+
it('should accept valid email address', () => {
|
|
214
|
+
const validator = new UserValidator();
|
|
215
|
+
expect(validator.validate({ email: 'user@example.com' })).toEqual({ valid: true });
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
it('should reject email without @ symbol', () => {
|
|
219
|
+
const validator = new UserValidator();
|
|
220
|
+
expect(validator.validate({ email: 'not-an-email' })).toEqual({
|
|
221
|
+
valid: false,
|
|
222
|
+
errors: [{ field: 'email', message: 'Invalid email format' }],
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**3.4 Commit the test files:**
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
git add <test files>
|
|
232
|
+
git commit -m "test(<scope>): add failing test stubs for <task description>
|
|
233
|
+
|
|
234
|
+
RED phase — tests will pass after implementation
|
|
235
|
+
refs #<issue_number>"
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
### Phase 4: REPORT
|
|
241
|
+
|
|
242
|
+
Emit the `test_case_specs` block for consumption by `task-implementer`.
|
|
243
|
+
|
|
244
|
+
**Output structure:**
|
|
30
245
|
|
|
31
|
-
## Output
|
|
32
246
|
```
|
|
33
247
|
TEST_CASE_SPECS:
|
|
34
|
-
framework: vitest
|
|
35
|
-
test_files:
|
|
36
|
-
|
|
248
|
+
framework: <vitest|jest|pytest|...>
|
|
249
|
+
test_files:
|
|
250
|
+
- path: <test file path>
|
|
251
|
+
target_module: <source file to implement>
|
|
252
|
+
test_count: <N>
|
|
253
|
+
tests:
|
|
254
|
+
- id: test-1
|
|
255
|
+
description: <it description>
|
|
256
|
+
criterion: <which acceptance criterion>
|
|
257
|
+
type: happy_path | edge_case | error_path
|
|
258
|
+
status: written # test file exists, test is RED
|
|
259
|
+
|
|
260
|
+
run_command: "<command to run just these tests>"
|
|
37
261
|
expected_result: "all failing (RED phase)"
|
|
262
|
+
notes: "<any test design decisions or assumptions>"
|
|
263
|
+
```
|
|
38
264
|
|
|
265
|
+
**STATUS reporting:**
|
|
266
|
+
|
|
267
|
+
```
|
|
39
268
|
STATUS: DONE
|
|
40
|
-
tests_written: N
|
|
41
|
-
|
|
269
|
+
tests_written: <N>
|
|
270
|
+
test_files: [<list of paths>]
|
|
271
|
+
all_criteria_covered: true | false (with explanation)
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Integration with Task Implementer
|
|
277
|
+
|
|
278
|
+
When `task-implementer` receives a task that includes `test_case_specs`:
|
|
279
|
+
|
|
280
|
+
1. Read the test files (already committed as RED)
|
|
281
|
+
2. Run the tests — confirm they FAIL
|
|
282
|
+
3. Implement code until all tests are GREEN
|
|
283
|
+
4. Commit the implementation
|
|
284
|
+
5. Re-run tests — confirm GREEN
|
|
285
|
+
6. Report SUCCESS
|
|
286
|
+
|
|
287
|
+
This ensures the TDD cycle is maintained end-to-end.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Automation Settings
|
|
292
|
+
|
|
293
|
+
| Setting | Default | Options | Description |
|
|
294
|
+
|---------|---------|---------|-------------|
|
|
295
|
+
| `commit_test_stubs` | `true` | true/false | Commit the test files after generation |
|
|
296
|
+
| `verify_red` | `true` | true/false | Run tests to confirm they fail before reporting |
|
|
297
|
+
| `stub_style` | `forward_declared` | `forward_declared` / `todo` | How to write failing stubs |
|
|
298
|
+
| `include_edge_cases` | `true` | true/false | Generate edge case tests in addition to happy path |
|
|
299
|
+
| `max_tests_per_criterion` | `3` | 1-5 | Max test cases per acceptance criterion |
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## Error Handling
|
|
304
|
+
|
|
305
|
+
| Error | Action |
|
|
306
|
+
|-------|--------|
|
|
307
|
+
| No acceptance criteria provided | Derive from task description — log warning |
|
|
308
|
+
| Test framework not detected | Ask via output, default to vitest for TypeScript |
|
|
309
|
+
| Test file already exists | Read existing tests, add new stubs without overwriting |
|
|
310
|
+
| Module path unknown | Use placeholder path, note in test_case_specs |
|
|
311
|
+
| Verify-red fails (tests pass before implementation) | This means the test is wrong — fix the assertion or report as concern |
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## Rules of Engagement
|
|
316
|
+
|
|
317
|
+
1. **DO NOT** write any implementation code. This skill only writes test files.
|
|
318
|
+
2. **DO NOT** write tests that pass without implementation — RED means failing.
|
|
319
|
+
3. **DO** write tests that describe WHAT the code should do, not HOW.
|
|
320
|
+
4. **DO** cover every acceptance criterion with at least one test.
|
|
321
|
+
5. **DO** follow the project's existing test conventions (discovered in Phase 1).
|
|
322
|
+
6. **DO** commit the test files before reporting.
|
|
323
|
+
7. Return `TEST_CASE_SPECS` as the final message to the orchestrator/caller.
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## Job Context Awareness
|
|
328
|
+
|
|
329
|
+
When dispatched by `job-orchestrator`:
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
JOB_NAME: <job-name>
|
|
333
|
+
CONTEXT_PATH: <JOBS_ROOT>/<job-name>/ai/context.md
|
|
42
334
|
```
|
|
43
335
|
|
|
44
|
-
|
|
336
|
+
If provided, read the context document to understand:
|
|
337
|
+
- Which test frameworks are in use
|
|
338
|
+
- Testing conventions and patterns from the codebase
|
|
339
|
+
- Mock/stub strategies documented in the project
|
|
@@ -31,6 +31,19 @@ Code Review Progress:
|
|
|
31
31
|
- [ ] Step 6: Generate report with patches
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
## Scope Boundaries
|
|
35
|
+
This skill focuses on:
|
|
36
|
+
- Correctness and logic bugs
|
|
37
|
+
- Type safety and TypeScript contract violations
|
|
38
|
+
- Security and null-safety issues
|
|
39
|
+
- Error handling completeness
|
|
40
|
+
- Performance anti-patterns
|
|
41
|
+
|
|
42
|
+
This skill does NOT duplicate:
|
|
43
|
+
- MobX store-specific patterns → covered by code-mobx-store-review
|
|
44
|
+
- Naming/formatting/import organization → covered by code-style-review
|
|
45
|
+
- Architecture opinions and persona-specific insights → covered by code-learned-review
|
|
46
|
+
|
|
34
47
|
## Главное правило: скоуп ревью
|
|
35
48
|
|
|
36
49
|
Ревьюй только изменения, внесённые в текущей ветке с момента её ответвления от родительской.
|
|
@@ -41,38 +54,11 @@ Code Review Progress:
|
|
|
41
54
|
- Если пользователь **явно передал commit hash/range**, ревьюй только запрошенный диапазон; локальные незакоммиченные изменения не добавляй, если это отдельно не попросили.
|
|
42
55
|
- Не ревьюй не связанные с веткой части репозитория.
|
|
43
56
|
|
|
44
|
-
##
|
|
57
|
+
## Scope Detection
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
See shared script: `skills/shared/git-merge-base.md`
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
2. `origin/master`
|
|
50
|
-
3. `main`
|
|
51
|
-
4. `master`
|
|
52
|
-
5. `@{upstream}` только если это не текущая feature-ветка
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
56
|
-
UPSTREAM_REF="$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || true)"
|
|
57
|
-
|
|
58
|
-
PARENT=""
|
|
59
|
-
if git rev-parse --verify -q "origin/main" >/dev/null; then
|
|
60
|
-
PARENT="origin/main"
|
|
61
|
-
elif git rev-parse --verify -q "origin/master" >/dev/null; then
|
|
62
|
-
PARENT="origin/master"
|
|
63
|
-
elif git rev-parse --verify -q "main" >/dev/null; then
|
|
64
|
-
PARENT="main"
|
|
65
|
-
elif git rev-parse --verify -q "master" >/dev/null; then
|
|
66
|
-
PARENT="master"
|
|
67
|
-
elif [ -n "$UPSTREAM_REF" ] && [ "$UPSTREAM_REF" != "$BRANCH" ] && [ "$UPSTREAM_REF" != "origin/$BRANCH" ]; then
|
|
68
|
-
PARENT="@{upstream}"
|
|
69
|
-
else
|
|
70
|
-
echo "Cannot determine parent ref" >&2
|
|
71
|
-
exit 1
|
|
72
|
-
fi
|
|
73
|
-
|
|
74
|
-
BASE_SHA="$(git merge-base HEAD "$PARENT")"
|
|
75
|
-
```
|
|
61
|
+
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
|
|
76
62
|
|
|
77
63
|
## Команды, чтобы собрать “срез” для ревью
|
|
78
64
|
|
|
@@ -186,6 +172,19 @@ index 0000000..1111111 100644
|
|
|
186
172
|
|
|
187
173
|
---
|
|
188
174
|
|
|
175
|
+
## Scope Boundaries
|
|
176
|
+
|
|
177
|
+
This skill covers **general AI code quality review** following `code-review-ai-assistant.mdc`.
|
|
178
|
+
|
|
179
|
+
| Concern | This skill | Use instead |
|
|
180
|
+
|---------|-----------|-------------|
|
|
181
|
+
| Types, safety, architecture, readability, performance, tests | ✅ YES | — |
|
|
182
|
+
| MobX store internals (actions, computed, reactions, async) | ⚠️ surface-level only | `code-mobx-store-review` for deep store analysis |
|
|
183
|
+
| Review against this project's own learned conventions | ❌ NO | `code-learned-review` |
|
|
184
|
+
| Pure style/naming/pattern audit | ❌ NO | `code-style-review` |
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
189
188
|
## Job Context Awareness
|
|
190
189
|
|
|
191
190
|
When dispatched by `job-orchestrator` as part of a job pipeline, the prompt MAY include:
|
|
@@ -31,6 +31,19 @@ Code Review Progress:
|
|
|
31
31
|
- [ ] Step 6: Generate report with patches
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
## Scope Boundaries
|
|
35
|
+
This skill focuses on:
|
|
36
|
+
- Correctness and logic bugs
|
|
37
|
+
- Type safety and TypeScript contract violations
|
|
38
|
+
- Security and null-safety issues
|
|
39
|
+
- Error handling completeness
|
|
40
|
+
- Performance anti-patterns
|
|
41
|
+
|
|
42
|
+
This skill does NOT duplicate:
|
|
43
|
+
- MobX store-specific patterns → covered by code-mobx-store-review
|
|
44
|
+
- Naming/formatting/import organization → covered by code-style-review
|
|
45
|
+
- Architecture opinions and persona-specific insights → covered by code-learned-review
|
|
46
|
+
|
|
34
47
|
## Главное правило: скоуп ревью
|
|
35
48
|
|
|
36
49
|
Ревьюй только изменения, внесённые в текущей ветке с момента её ответвления от родительской.
|
|
@@ -41,38 +54,11 @@ Code Review Progress:
|
|
|
41
54
|
- Если пользователь **явно передал commit hash/range**, ревьюй только запрошенный диапазон; локальные незакоммиченные изменения не добавляй, если это отдельно не попросили.
|
|
42
55
|
- Не ревьюй не связанные с веткой части репозитория.
|
|
43
56
|
|
|
44
|
-
##
|
|
57
|
+
## Scope Detection
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
See shared script: `skills/shared/git-merge-base.md`
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
2. `origin/master`
|
|
50
|
-
3. `main`
|
|
51
|
-
4. `master`
|
|
52
|
-
5. `@{upstream}` только если это не текущая feature-ветка
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
56
|
-
UPSTREAM_REF="$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || true)"
|
|
57
|
-
|
|
58
|
-
PARENT=""
|
|
59
|
-
if git rev-parse --verify -q "origin/main" >/dev/null; then
|
|
60
|
-
PARENT="origin/main"
|
|
61
|
-
elif git rev-parse --verify -q "origin/master" >/dev/null; then
|
|
62
|
-
PARENT="origin/master"
|
|
63
|
-
elif git rev-parse --verify -q "main" >/dev/null; then
|
|
64
|
-
PARENT="main"
|
|
65
|
-
elif git rev-parse --verify -q "master" >/dev/null; then
|
|
66
|
-
PARENT="master"
|
|
67
|
-
elif [ -n "$UPSTREAM_REF" ] && [ "$UPSTREAM_REF" != "$BRANCH" ] && [ "$UPSTREAM_REF" != "origin/$BRANCH" ]; then
|
|
68
|
-
PARENT="@{upstream}"
|
|
69
|
-
else
|
|
70
|
-
echo "Cannot determine parent ref" >&2
|
|
71
|
-
exit 1
|
|
72
|
-
fi
|
|
73
|
-
|
|
74
|
-
BASE_SHA="$(git merge-base HEAD "$PARENT")"
|
|
75
|
-
```
|
|
61
|
+
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
|
|
76
62
|
|
|
77
63
|
## Команды, чтобы собрать “срез” для ревью
|
|
78
64
|
|
|
@@ -186,6 +172,19 @@ index 0000000..1111111 100644
|
|
|
186
172
|
|
|
187
173
|
---
|
|
188
174
|
|
|
175
|
+
## Scope Boundaries
|
|
176
|
+
|
|
177
|
+
This skill covers **general AI code quality review** following `code-review-ai-assistant.mdc`.
|
|
178
|
+
|
|
179
|
+
| Concern | This skill | Use instead |
|
|
180
|
+
|---------|-----------|-------------|
|
|
181
|
+
| Types, safety, architecture, readability, performance, tests | ✅ YES | — |
|
|
182
|
+
| MobX store internals (actions, computed, reactions, async) | ⚠️ surface-level only | `code-mobx-store-review` for deep store analysis |
|
|
183
|
+
| Review against this project's own learned conventions | ❌ NO | `code-learned-review` |
|
|
184
|
+
| Pure style/naming/pattern audit | ❌ NO | `code-style-review` |
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
189
188
|
## Job Context Awareness
|
|
190
189
|
|
|
191
190
|
When dispatched by `job-orchestrator` as part of a job pipeline, the prompt MAY include:
|
|
@@ -31,6 +31,19 @@ Code Review Progress:
|
|
|
31
31
|
- [ ] Step 6: Generate report with patches
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
## Scope Boundaries
|
|
35
|
+
This skill focuses on:
|
|
36
|
+
- Correctness and logic bugs
|
|
37
|
+
- Type safety and TypeScript contract violations
|
|
38
|
+
- Security and null-safety issues
|
|
39
|
+
- Error handling completeness
|
|
40
|
+
- Performance anti-patterns
|
|
41
|
+
|
|
42
|
+
This skill does NOT duplicate:
|
|
43
|
+
- MobX store-specific patterns → covered by code-mobx-store-review
|
|
44
|
+
- Naming/formatting/import organization → covered by code-style-review
|
|
45
|
+
- Architecture opinions and persona-specific insights → covered by code-learned-review
|
|
46
|
+
|
|
34
47
|
## Главное правило: скоуп ревью
|
|
35
48
|
|
|
36
49
|
Ревьюй только изменения, внесённые в текущей ветке с момента её ответвления от родительской.
|
|
@@ -41,38 +54,11 @@ Code Review Progress:
|
|
|
41
54
|
- Если пользователь **явно передал commit hash/range**, ревьюй только запрошенный диапазон; локальные незакоммиченные изменения не добавляй, если это отдельно не попросили.
|
|
42
55
|
- Не ревьюй не связанные с веткой части репозитория.
|
|
43
56
|
|
|
44
|
-
##
|
|
57
|
+
## Scope Detection
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
See shared script: `skills/shared/git-merge-base.md`
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
2. `origin/master`
|
|
50
|
-
3. `main`
|
|
51
|
-
4. `master`
|
|
52
|
-
5. `@{upstream}` только если это не текущая feature-ветка
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
56
|
-
UPSTREAM_REF="$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || true)"
|
|
57
|
-
|
|
58
|
-
PARENT=""
|
|
59
|
-
if git rev-parse --verify -q "origin/main" >/dev/null; then
|
|
60
|
-
PARENT="origin/main"
|
|
61
|
-
elif git rev-parse --verify -q "origin/master" >/dev/null; then
|
|
62
|
-
PARENT="origin/master"
|
|
63
|
-
elif git rev-parse --verify -q "main" >/dev/null; then
|
|
64
|
-
PARENT="main"
|
|
65
|
-
elif git rev-parse --verify -q "master" >/dev/null; then
|
|
66
|
-
PARENT="master"
|
|
67
|
-
elif [ -n "$UPSTREAM_REF" ] && [ "$UPSTREAM_REF" != "$BRANCH" ] && [ "$UPSTREAM_REF" != "origin/$BRANCH" ]; then
|
|
68
|
-
PARENT="@{upstream}"
|
|
69
|
-
else
|
|
70
|
-
echo "Cannot determine parent ref" >&2
|
|
71
|
-
exit 1
|
|
72
|
-
fi
|
|
73
|
-
|
|
74
|
-
BASE_SHA="$(git merge-base HEAD "$PARENT")"
|
|
75
|
-
```
|
|
61
|
+
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
|
|
76
62
|
|
|
77
63
|
## Команды, чтобы собрать “срез” для ревью
|
|
78
64
|
|
|
@@ -186,6 +172,19 @@ index 0000000..1111111 100644
|
|
|
186
172
|
|
|
187
173
|
---
|
|
188
174
|
|
|
175
|
+
## Scope Boundaries
|
|
176
|
+
|
|
177
|
+
This skill covers **general AI code quality review** following `code-review-ai-assistant.mdc`.
|
|
178
|
+
|
|
179
|
+
| Concern | This skill | Use instead |
|
|
180
|
+
|---------|-----------|-------------|
|
|
181
|
+
| Types, safety, architecture, readability, performance, tests | ✅ YES | — |
|
|
182
|
+
| MobX store internals (actions, computed, reactions, async) | ⚠️ surface-level only | `code-mobx-store-review` for deep store analysis |
|
|
183
|
+
| Review against this project's own learned conventions | ❌ NO | `code-learned-review` |
|
|
184
|
+
| Pure style/naming/pattern audit | ❌ NO | `code-style-review` |
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
189
188
|
## Job Context Awareness
|
|
190
189
|
|
|
191
190
|
When dispatched by `job-orchestrator` as part of a job pipeline, the prompt MAY include:
|
|
@@ -31,6 +31,19 @@ Code Review Progress:
|
|
|
31
31
|
- [ ] Step 6: Generate report with patches
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
## Scope Boundaries
|
|
35
|
+
This skill focuses on:
|
|
36
|
+
- Correctness and logic bugs
|
|
37
|
+
- Type safety and TypeScript contract violations
|
|
38
|
+
- Security and null-safety issues
|
|
39
|
+
- Error handling completeness
|
|
40
|
+
- Performance anti-patterns
|
|
41
|
+
|
|
42
|
+
This skill does NOT duplicate:
|
|
43
|
+
- MobX store-specific patterns → covered by code-mobx-store-review
|
|
44
|
+
- Naming/formatting/import organization → covered by code-style-review
|
|
45
|
+
- Architecture opinions and persona-specific insights → covered by code-learned-review
|
|
46
|
+
|
|
34
47
|
## Главное правило: скоуп ревью
|
|
35
48
|
|
|
36
49
|
Ревьюй только изменения, внесённые в текущей ветке с момента её ответвления от родительской.
|
|
@@ -41,38 +54,11 @@ Code Review Progress:
|
|
|
41
54
|
- Если пользователь **явно передал commit hash/range**, ревьюй только запрошенный диапазон; локальные незакоммиченные изменения не добавляй, если это отдельно не попросили.
|
|
42
55
|
- Не ревьюй не связанные с веткой части репозитория.
|
|
43
56
|
|
|
44
|
-
##
|
|
57
|
+
## Scope Detection
|
|
45
58
|
|
|
46
|
-
|
|
59
|
+
See shared script: `skills/shared/git-merge-base.md`
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
2. `origin/master`
|
|
50
|
-
3. `main`
|
|
51
|
-
4. `master`
|
|
52
|
-
5. `@{upstream}` только если это не текущая feature-ветка
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
|
56
|
-
UPSTREAM_REF="$(git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || true)"
|
|
57
|
-
|
|
58
|
-
PARENT=""
|
|
59
|
-
if git rev-parse --verify -q "origin/main" >/dev/null; then
|
|
60
|
-
PARENT="origin/main"
|
|
61
|
-
elif git rev-parse --verify -q "origin/master" >/dev/null; then
|
|
62
|
-
PARENT="origin/master"
|
|
63
|
-
elif git rev-parse --verify -q "main" >/dev/null; then
|
|
64
|
-
PARENT="main"
|
|
65
|
-
elif git rev-parse --verify -q "master" >/dev/null; then
|
|
66
|
-
PARENT="master"
|
|
67
|
-
elif [ -n "$UPSTREAM_REF" ] && [ "$UPSTREAM_REF" != "$BRANCH" ] && [ "$UPSTREAM_REF" != "origin/$BRANCH" ]; then
|
|
68
|
-
PARENT="@{upstream}"
|
|
69
|
-
else
|
|
70
|
-
echo "Cannot determine parent ref" >&2
|
|
71
|
-
exit 1
|
|
72
|
-
fi
|
|
73
|
-
|
|
74
|
-
BASE_SHA="$(git merge-base HEAD "$PARENT")"
|
|
75
|
-
```
|
|
61
|
+
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
|
|
76
62
|
|
|
77
63
|
## Команды, чтобы собрать “срез” для ревью
|
|
78
64
|
|
|
@@ -186,6 +172,19 @@ index 0000000..1111111 100644
|
|
|
186
172
|
|
|
187
173
|
---
|
|
188
174
|
|
|
175
|
+
## Scope Boundaries
|
|
176
|
+
|
|
177
|
+
This skill covers **general AI code quality review** following `code-review-ai-assistant.mdc`.
|
|
178
|
+
|
|
179
|
+
| Concern | This skill | Use instead |
|
|
180
|
+
|---------|-----------|-------------|
|
|
181
|
+
| Types, safety, architecture, readability, performance, tests | ✅ YES | — |
|
|
182
|
+
| MobX store internals (actions, computed, reactions, async) | ⚠️ surface-level only | `code-mobx-store-review` for deep store analysis |
|
|
183
|
+
| Review against this project's own learned conventions | ❌ NO | `code-learned-review` |
|
|
184
|
+
| Pure style/naming/pattern audit | ❌ NO | `code-style-review` |
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
189
188
|
## Job Context Awareness
|
|
190
189
|
|
|
191
190
|
When dispatched by `job-orchestrator` as part of a job pipeline, the prompt MAY include:
|