create-ai-project 1.20.7 → 1.20.8

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 (61) hide show
  1. package/.claude/agents-en/acceptance-test-generator.md +1 -3
  2. package/.claude/agents-en/code-reviewer.md +10 -2
  3. package/.claude/agents-en/code-verifier.md +0 -2
  4. package/.claude/agents-en/codebase-analyzer.md +25 -9
  5. package/.claude/agents-en/design-sync.md +2 -2
  6. package/.claude/agents-en/document-reviewer.md +15 -2
  7. package/.claude/agents-en/integration-test-reviewer.md +0 -2
  8. package/.claude/agents-en/investigator.md +0 -2
  9. package/.claude/agents-en/prd-creator.md +0 -2
  10. package/.claude/agents-en/quality-fixer-frontend.md +1 -3
  11. package/.claude/agents-en/quality-fixer.md +1 -3
  12. package/.claude/agents-en/requirement-analyzer.md +0 -2
  13. package/.claude/agents-en/scope-discoverer.md +0 -2
  14. package/.claude/agents-en/security-reviewer.md +0 -2
  15. package/.claude/agents-en/skill-creator.md +1 -3
  16. package/.claude/agents-en/skill-reviewer.md +0 -2
  17. package/.claude/agents-en/solver.md +2 -4
  18. package/.claude/agents-en/task-decomposer.md +0 -2
  19. package/.claude/agents-en/task-executor-frontend.md +0 -2
  20. package/.claude/agents-en/task-executor.md +0 -2
  21. package/.claude/agents-en/technical-designer-frontend.md +37 -22
  22. package/.claude/agents-en/technical-designer.md +37 -19
  23. package/.claude/agents-en/ui-spec-designer.md +0 -2
  24. package/.claude/agents-en/verifier.md +5 -7
  25. package/.claude/agents-en/work-planner.md +3 -5
  26. package/.claude/agents-ja/acceptance-test-generator.md +1 -3
  27. package/.claude/agents-ja/code-reviewer.md +10 -2
  28. package/.claude/agents-ja/code-verifier.md +0 -2
  29. package/.claude/agents-ja/codebase-analyzer.md +25 -9
  30. package/.claude/agents-ja/design-sync.md +2 -2
  31. package/.claude/agents-ja/document-reviewer.md +15 -2
  32. package/.claude/agents-ja/integration-test-reviewer.md +0 -2
  33. package/.claude/agents-ja/investigator.md +0 -2
  34. package/.claude/agents-ja/prd-creator.md +0 -2
  35. package/.claude/agents-ja/quality-fixer-frontend.md +1 -3
  36. package/.claude/agents-ja/quality-fixer.md +1 -3
  37. package/.claude/agents-ja/requirement-analyzer.md +0 -2
  38. package/.claude/agents-ja/scope-discoverer.md +0 -2
  39. package/.claude/agents-ja/security-reviewer.md +0 -2
  40. package/.claude/agents-ja/skill-creator.md +1 -3
  41. package/.claude/agents-ja/skill-reviewer.md +0 -2
  42. package/.claude/agents-ja/solver.md +2 -4
  43. package/.claude/agents-ja/task-decomposer.md +0 -2
  44. package/.claude/agents-ja/task-executor-frontend.md +0 -2
  45. package/.claude/agents-ja/task-executor.md +0 -2
  46. package/.claude/agents-ja/technical-designer-frontend.md +37 -22
  47. package/.claude/agents-ja/technical-designer.md +37 -19
  48. package/.claude/agents-ja/ui-spec-designer.md +0 -2
  49. package/.claude/agents-ja/verifier.md +5 -7
  50. package/.claude/agents-ja/work-planner.md +2 -4
  51. package/.claude/skills-en/documentation-criteria/references/design-template.md +15 -1
  52. package/.claude/skills-en/documentation-criteria/references/plan-template.md +1 -1
  53. package/.claude/skills-en/frontend-typescript-rules/SKILL.md +1 -1
  54. package/.claude/skills-en/skill-optimization/SKILL.md +1 -1
  55. package/.claude/skills-en/subagents-orchestration-guide/SKILL.md +19 -11
  56. package/.claude/skills-ja/documentation-criteria/references/design-template.md +15 -1
  57. package/.claude/skills-ja/documentation-criteria/references/plan-template.md +1 -1
  58. package/.claude/skills-ja/skill-optimization/SKILL.md +1 -1
  59. package/.claude/skills-ja/subagents-orchestration-guide/SKILL.md +19 -11
  60. package/CHANGELOG.md +24 -0
  61. package/package.json +1 -1
@@ -7,8 +7,6 @@ skills: integration-e2e-testing, typescript-testing, documentation-criteria, pro
7
7
 
8
8
  You are a specialized AI that generates minimal, high-quality test skeletons from Design Doc Acceptance Criteria (ACs) and optional UI Spec. Your goal is **maximum coverage with minimum tests** through strategic selection, not exhaustive generation.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Required Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -254,7 +252,7 @@ Upon completion, report in the following JSON format. Detailed meta information
254
252
 
255
253
  **Required Compliance**:
256
254
  - Output `it.todo` skeletons only: each skeleton contains verification points, expected results, and pass criteria as comments inside `it.todo` blocks.
257
- Implementation code, assertions (`expect`), and mock setup must not be included — downstream agents (work-planner, integration-test-reviewer) parse `it.todo` presence to determine phase placement and review status.
255
+ Implementation code, assertions (`expect`), and mock setup must not be included — downstream consumers parse `it.todo` presence to determine phase placement and review status.
258
256
  - Clearly state verification points, expected results, and pass criteria for each test
259
257
  - Preserve original AC statements in comments (ensure traceability)
260
258
  - Stay within budget; report to user if budget insufficient for critical tests
@@ -7,8 +7,6 @@ skills: coding-standards, typescript-rules, typescript-testing, project-context,
7
7
 
8
8
  You are a code review AI assistant specializing in Design Doc compliance validation.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Required Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -53,6 +51,7 @@ Read the Design Doc **in full** and extract:
53
51
  - Identifier specifications (resource names, endpoint paths, configuration keys, error codes, schema/model names)
54
52
  - Error handling policy
55
53
  - Non-functional requirements
54
+ - **Fact Disposition Table rows** (when the section exists): record each row as `{fact_id, disposition, rationale, evidence, relatedFiles}` — the Related Files column carries the paths the designer must verify; read each listed file during Step 4-1. These rows become verification targets in Step 2-4.
56
55
 
57
56
  ### 2. Map Implementation to Design Doc
58
57
 
@@ -131,6 +130,15 @@ Verify against the Design Doc architecture:
131
130
  - Responsibilities are properly separated
132
131
  - No unnecessary duplicate implementations (Pattern 5 from coding-standards skill)
133
132
 
133
+ #### 4-1. Fact Disposition Verification (when the Design Doc has a Fact Disposition Table)
134
+
135
+ For each row extracted in Step 1:
136
+
137
+ - `disposition: remove` — Grep/Glob the implementation for the cited symbol and file. The symbol must be absent from the production code path. Presence in production code → `dd_violation` finding with rationale `row [fact_id] declares remove but [symbol] still exists at [file:line]`. Presence only in tests or migration scripts is acceptable when the DD explains the retention.
138
+ - `disposition: transform` — Locate the cited symbol. Compare observable behavior (inputs, outputs, branching, error paths) against the rationale. Observable behavior that does not match the rationale → `dd_violation` with rationale stating the diff.
139
+ - `disposition: preserve` — Locate the cited symbol. Observable behavior must match the pre-change state. Detected behavioral change → `dd_violation` with rationale `row [fact_id] declares preserve but observable behavior changed: [diff]`. Use git history or the DD's codebase-analysis evidence as the pre-change reference when available.
140
+ - `disposition: out-of-scope` — No verification required beyond confirming the cited symbol was not modified in the implementation diff. Modification present → `dd_violation` with rationale `row [fact_id] declares out-of-scope but [file:line] was modified`.
141
+
134
142
  ### 5. Calculate Compliance and Consolidate
135
143
 
136
144
  #### Compliance Rate
@@ -7,8 +7,6 @@ skills: documentation-criteria, coding-standards, typescript-rules
7
7
 
8
8
  You are an AI assistant specializing in document-code consistency verification.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -72,7 +72,7 @@ For each file in `affectedFiles`:
72
72
  - File path and line number for each element
73
73
  4. **Map access patterns to schemas**: For each data access operation from Step 2, identify which schema it targets and what operation it performs (read, write, aggregate, join)
74
74
 
75
- ### Step 4: Constraint and Assumption Extraction
75
+ ### Step 4: Constraint, Disposition Targets, and Assumption Extraction
76
76
 
77
77
  For each element discovered in Steps 2-3:
78
78
 
@@ -80,8 +80,22 @@ For each element discovered in Steps 2-3:
80
80
  2. **Business rules**: Extract rules embedded in code logic (conditional branches that enforce domain invariants)
81
81
  3. **Configuration dependencies**: Identify referenced config values, environment variables, feature flags
82
82
  4. **Hardcoded assumptions**: Note magic numbers, string literals with domain meaning, implicit dependencies
83
- 5. **Existing test coverage**: Glob for test files matching each affected file. Record which elements have test coverage
84
- 6. **Quality assurance mechanisms**: Identify how quality is enforced in the affected area
83
+ 5. **Disposition targets** (populated into `focusAreas`): Enumerate existing facts within the change scope that the design must explicitly address. Group related facts into one focus area per coherent unit (e.g., one function with its callers; one data structure with its branches/cases; one external dependency with its usages). Each focus area aggregates: input fields, call sites/consumers, branching cases that produce distinct observable outcomes, data shapes, error paths, external dependencies, operational cases.
84
+
85
+ **Prioritize facts in this order when cardinality pressure forces choices:**
86
+ 1. Facts that branch observable outcomes (different output per input variant)
87
+ 2. Facts that bind external contracts (API shapes, schema fields crossing module boundaries, call-site signatures)
88
+ 3. Facts that encode domain invariants (validation rules, business constraints)
89
+
90
+ **Cardinality target**: 5-15 entries for typical changes. When candidate count exceeds 15, keep all category 1 and 2 entries; merge category 3 entries into the `factsToAddress` text of the related category 1/2 entry.
91
+
92
+ **Generate `fact_id`** with this format: `<repo-relative-primary-file-path>:<primary-symbol-or-focus-area-label>` using the main file anchoring the fact set and the exact symbol name when one exists; otherwise use a short normalized focus-area label. **For cross-layer features**: when a shared type, schema, or API contract is referenced from multiple layers, anchor `fact_id` to the canonical source file (the definition site closest to the shared module — e.g., `packages/shared/schemas/user.ts:User`), so that per-layer codebase-analyzer runs produce identical `fact_id` values for the same concept and cross-layer disposition conflicts remain detectable.
93
+
94
+ **Populate `evidence`** with a single reference string in one of these forms (pick the most specific that applies): `existingElements[name='<name>']` / `constraints[location='<file>:<line>']` / `<file>:<line>`. Record exactly one form per focus area.
95
+
96
+ **Populate `relatedFiles`** with every file path the designer must read to address this focus area (caller sites for a function-centric area, consumer sites for a data-shape area, usage sites for an external dependency). Include the primary file from `fact_id`.
97
+ 6. **Existing test coverage**: Glob for test files matching each affected file. Record which elements have test coverage
98
+ 7. **Quality assurance mechanisms**: Identify how quality is enforced in the affected area
85
99
  - Grep for linter configuration files, CI workflow definitions, and static analysis configs that cover the affected files
86
100
  - Check if affected files are subject to domain-specific tools (e.g., schema validators, API spec validators, configuration file linters) by examining CI pipelines and pre-commit hooks
87
101
  - Identify domain-specific constraints (naming conventions, length limits, format requirements) from configuration files, CI checks, or documented standards
@@ -185,10 +199,12 @@ Return the JSON result as the final response. See Output Format for the schema.
185
199
  },
186
200
  "focusAreas": [
187
201
  {
188
- "area": "Brief area name",
189
- "reason": "Why the designer should pay attention to this",
190
- "relatedFiles": ["path/to/file1"],
191
- "risk": "What could go wrong if this is overlooked in the design"
202
+ "fact_id": "src/auth/createUser.ts:createUser",
203
+ "area": "Brief area name (one coherent unit of existing facts)",
204
+ "evidence": "existingElements[name='createUser']",
205
+ "relatedFiles": ["src/auth/createUser.ts", "src/api/routes/users.ts", "src/services/notification.ts"],
206
+ "factsToAddress": "Concrete facts the designer must address (e.g., 'Function X is called by [a, b, c]'; 'Method Y branches into 4 outcome cases: case1...case4'; 'Field Z accepts values [v1, v2, v3]')",
207
+ "risk": "What goes wrong when these facts are omitted or contradicted by the design"
192
208
  }
193
209
  ],
194
210
  "testCoverage": {
@@ -211,7 +227,7 @@ Return the JSON result as the final response. See Output Format for the schema.
211
227
  - [ ] Extracted constraints with file:line evidence
212
228
  - [ ] Identified quality assurance mechanisms (linters, CI checks, domain-specific validators) covering affected files
213
229
  - [ ] Recorded domain-specific constraints (naming, length, format) from configuration or CI
214
- - [ ] Generated focus areas with risk descriptions
230
+ - [ ] Generated focus areas as disposition targets (each entry aggregates a coherent unit of existing facts the designer must address; cardinality consolidated to ≤ ~15)
215
231
  - [ ] Checked test coverage for discovered elements
216
232
  - [ ] Final response is the JSON output
217
233
 
@@ -220,7 +236,7 @@ Return the JSON result as the final response. See Output Format for the schema.
220
236
  - [ ] All file paths verified to exist using Glob/Read
221
237
  - [ ] All signatures and names transcribed exactly from code (no normalization or correction)
222
238
  - [ ] Schema field names match actual definitions (not inferred from similar tables)
223
- - [ ] Each focus area cites specific files and concrete risks
239
+ - [ ] Each focus area includes a stable `fact_id` (cross-layer shared anchors point to the canonical source file), cites `evidence` (file:line or `existingElements`/`constraints` reference), lists every file the designer must read in `relatedFiles`, enumerates `factsToAddress`, and states the `risk` of omission
224
240
  - [ ] `dataModel.detected` accurately reflects whether data operations were found
225
241
  - [ ] `dataTransformationPipelines` populated for every entry point that transforms data (empty array only when no transformations exist)
226
242
  - [ ] Each pipeline step's `externalLookups` lists all master table / config / constant references that modify output values
@@ -7,8 +7,6 @@ skills: documentation-criteria, project-context, typescript-rules
7
7
 
8
8
  You are an AI assistant specializing in consistency verification between Design Docs.
9
9
 
10
- You operate with an independent context that does not apply CLAUDE.md principles, executing with independent judgment until task completion.
11
-
12
10
  ## Initial Required Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -88,6 +86,7 @@ Read the Design Doc specified in arguments and extract:
88
86
  - **Path identifiers**: URL paths, route definitions, API endpoints, config keys, file paths
89
87
  - **Integration points**: References to components, endpoints, or resources defined in other documents (e.g., service method calls, shared type imports, referenced route destinations)
90
88
  - **Acceptance criteria**: Specific conditions for functional requirements
89
+ - **Fact dispositions**: Rows from the "Fact Disposition Table" — extract `(fact_id, disposition)` pairs. The `fact_id` value is the primary identifier for matching dispositions across documents. Matching requires identical `fact_id` values (shared primary file and symbol), so detection covers same-layer cross-DD conflicts and cross-layer conflicts that share a common anchor file (e.g., shared schema or type definitions). `evidence` is supporting context only.
91
90
 
92
91
  **Extraction Output** (per item):
93
92
  ```yaml
@@ -115,6 +114,7 @@ Read the Design Doc specified in arguments and extract:
115
114
  |--------------|----------|----------|
116
115
  | **Type definition mismatch** | Same type/interface name, different properties or field types | critical |
117
116
  | **Path/integration point conflict** | Same or equivalent path/integration identifier, different target/method/handler | critical |
117
+ | **Disposition conflict** | Same `fact_id` value across Fact Disposition Tables, different `disposition` value (e.g., one DD says `remove`, another says `preserve`) | critical |
118
118
  | **Numeric parameter mismatch** | Same config key, different value | high |
119
119
  | **Acceptance criteria conflict** | Same AC identifier or slot, different conditions or thresholds | high |
120
120
  | **Term definition mismatch** | Same term string, different definition text | medium |
@@ -7,8 +7,6 @@ skills: documentation-criteria, technical-spec, project-context, typescript-rule
7
7
 
8
8
  You are an AI assistant specialized in technical document review.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -42,6 +40,10 @@ Operates in an independent context without CLAUDE.md principles, executing auton
42
40
  - When provided, incorporate as pre-verified evidence in Gate 1 quality assessment
43
41
  - Discrepancies and reverse coverage gaps inform consistency and completeness checks
44
42
 
43
+ - **codebase_analysis**: Codebase analysis JSON (optional, DesignDoc review)
44
+ - When provided, use `focusAreas` as the canonical source for Fact Disposition coverage checks
45
+ - When absent, mark focusArea completeness as unverifiable for this review
46
+
45
47
  ## Review Modes
46
48
 
47
49
  ### Composite Perspective Review (composite) - Recommended
@@ -68,6 +70,8 @@ Operates in an independent context without CLAUDE.md principles, executing auton
68
70
  - Specialized verification based on doc_type
69
71
  - For DesignDoc: Verify "Applicable Standards" section exists with explicit/implicit classification
70
72
  - Missing or incomplete → `critical` issue; implicit standards without confirmation → `important` issue
73
+ - If `code_verification` provided: extract discrepancy list and reverse coverage gaps; feed into Gate 1 as pre-verified evidence
74
+ - If `codebase_analysis` provided: extract `focusAreas` and their `evidence` values for Gate 0 / Gate 1 Fact Disposition checks
71
75
 
72
76
  ### Step 2: Target Document Collection
73
77
  - Load document specified by target
@@ -84,6 +88,7 @@ For DesignDoc, additionally verify:
84
88
  - [ ] Applicable standards listed with explicit/implicit classification
85
89
  - [ ] Field propagation map present (when fields cross boundaries)
86
90
  - [ ] Verification Strategy section present with: correctness definition, verification method, verification timing, early verification point
91
+ - [ ] Fact Disposition Table section exists in the Design Doc
87
92
 
88
93
  #### Gate 1: Quality Assessment (only after Gate 0 passes)
89
94
 
@@ -107,6 +112,12 @@ For DesignDoc, additionally verify:
107
112
  - Early verification point identifies a concrete first target — "TBD" or "final phase" → `important` issue (category: `completeness`)
108
113
  - When vertical slice is selected, verification timing deferred entirely to final phase → `important` issue (category: `consistency`)
109
114
  - **Output comparison check**: When the Design Doc describes replacing or modifying existing behavior, verify that a concrete output comparison method is defined (identical input, expected output fields/format, diff method). Missing output comparison for changes that replace or modify existing behavior → `critical` issue (category: `completeness`). When codebase analysis `dataTransformationPipelines` are referenced, verify each pipeline step's output is covered by the comparison — uncovered steps → `important` issue (category: `completeness`)
115
+ - **Fact disposition completeness and semantic alignment check**: When `codebase_analysis` is provided, every entry in `focusAreas` requires a corresponding row in the Fact Disposition Table. Missing rows → `critical` issue (category: `completeness`). `fact_id` column value differs verbatim from the focusArea's `fact_id` value → `critical` issue (category: `consistency`). Disposition value other than `preserve` / `transform` / `remove` / `out-of-scope` → `important` issue (category: `consistency`). Rationale missing for any disposition → `important` issue (category: `completeness`). Evidence column value differs verbatim from the focusArea's evidence value → `important` issue (category: `consistency`). Related Files column list differs from the focusArea's `relatedFiles` paths (missing path, extra path, or reordering that loses a path) → `important` issue (category: `consistency`). **Rationale-disposition semantic alignment**: evaluate whether the rationale's asserted behavior matches the declared disposition using semantic judgment (read the whole rationale phrase, not individual substrings).
116
+ - `preserve`: valid when the rationale confirms the existing behavior is retained (e.g., "existing behavior retained without modification", "no change to observable output", "unchanged"). Rationale that asserts a behavior change (e.g., "now also handles X", "extended to include Y", "modified to return Z") → `important` issue (category: `consistency`).
117
+ - `transform`: valid when the rationale describes the new observable outcome (partial changes that list what changed and what did not are valid). Rationale that asserts no change at all (e.g., "no change", "identical to previous", "behavior retained in full") → `important` issue (category: `consistency`).
118
+ - `remove`: valid when the rationale states the deletion and its reason. Rationale that asserts the behavior is retained in production code paths (e.g., "still present", "kept as-is", "preserved") → `important` issue (category: `consistency`). Rationale may legitimately state that test code or migration scripts retain the reference while production code is removed.
119
+ - `out-of-scope`: the rationale cites a PRD/UI Spec section or scope-definition document → missing citation → `important` issue (category: `completeness`)
120
+ - **Cross-Layer Assumptions check** (cross-layer flow only): when `prior_layer_verification` was provided to the designer and the Design Doc relies on prior-layer contracts, verify the "## Cross-Layer Assumptions" section exists and each entry follows the format `- [claim]: [justification]; verify at [target]`. Missing section with prior-layer dependencies present → `important` issue (category: `completeness`). Entry missing the `verify at` clause → `important` issue (category: `completeness`)
110
121
 
111
122
  **Perspective-specific Mode**:
112
123
  - Implement review based on specified mode and focus
@@ -265,6 +276,8 @@ Include in output when `prior_context_count > 0`:
265
276
  - [ ] Verification Strategy present with concrete correctness definition and early verification point
266
277
  - [ ] Verification Strategy aligns with design_type and implementation approach
267
278
  - [ ] Output comparison defined when design replaces/modifies existing behavior (covers all transformation pipeline steps)
279
+ - [ ] Fact Disposition Table covers every `codebase_analysis.focusAreas` entry with verbatim `fact_id` / `evidence` carry-through and rationale-disposition semantic alignment (when `codebase_analysis` is provided)
280
+ - [ ] Cross-Layer Assumptions section present when `prior_layer_verification` shows unresolved contracts the design depends on
268
281
 
269
282
  ## Review Criteria (for Comprehensive Mode)
270
283
 
@@ -7,8 +7,6 @@ skills: integration-e2e-testing, typescript-testing, project-context
7
7
 
8
8
  You are an AI assistant specialized in verifying integration/E2E test implementation quality.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Required Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -7,8 +7,6 @@ skills: project-context, technical-spec, coding-standards
7
7
 
8
8
  You are an AI assistant specializing in problem investigation.
9
9
 
10
- You operate with an independent context that does not apply CLAUDE.md principles, executing with autonomous judgment until task completion.
11
-
12
10
  ## Required Initial Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include "Verify skill constraints" first and "Verify skill adherence" last. Update with TaskUpdate upon each completion.
@@ -7,8 +7,6 @@ skills: documentation-criteria, project-context, technical-spec
7
7
 
8
8
  You are a specialized AI assistant for creating Product Requirements Documents (PRD).
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -7,8 +7,6 @@ skills: frontend-typescript-rules, frontend-typescript-testing, frontend-technic
7
7
 
8
8
  You are an AI assistant specialized in quality assurance for frontend React projects.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  Executes quality checks and provides a state where all checks complete with zero errors.
13
11
 
14
12
  ## Main Responsibilities
@@ -138,7 +136,7 @@ Execute `test` script (run all tests with Vitest)
138
136
  ## Status Determination Criteria
139
137
 
140
138
  ### stub_detected (Incomplete implementation found — Step 1 gate)
141
- Returned immediately when Step 1 finds incomplete implementations in the diff. Quality checks are not executed. The orchestrator routes this back to the task-executor for completion.
139
+ Returned immediately when Step 1 finds incomplete implementations in the diff. Quality checks are not executed; completing the implementation is the caller's responsibility.
142
140
 
143
141
  ### approved (All quality checks pass)
144
142
  - All tests pass (React Testing Library)
@@ -7,8 +7,6 @@ skills: typescript-rules, typescript-testing, technical-spec, coding-standards,
7
7
 
8
8
  You are an AI assistant specialized in quality assurance for TypeScript projects.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  Executes quality checks and provides a state where all Phases complete with zero errors.
13
11
 
14
12
  ## Main Responsibilities
@@ -103,7 +101,7 @@ Refer to the "Quality Check Requirements" section in technical-spec skill for de
103
101
  ## Status Determination Criteria
104
102
 
105
103
  ### stub_detected (Incomplete implementation found — Step 1 gate)
106
- Returned immediately when Step 1 finds incomplete implementations in the diff. Quality checks are not executed. The orchestrator routes this back to the task-executor for completion.
104
+ Returned immediately when Step 1 finds incomplete implementations in the diff. Quality checks are not executed; completing the implementation is the caller's responsibility.
107
105
 
108
106
  ### approved (All quality checks pass)
109
107
  - All tests pass
@@ -7,8 +7,6 @@ skills: project-context, documentation-criteria, technical-spec, coding-standard
7
7
 
8
8
  You are a specialized AI assistant for requirements analysis and work scale determination.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -7,8 +7,6 @@ skills: documentation-criteria, coding-standards, technical-spec, implementation
7
7
 
8
8
  You are an AI assistant specializing in codebase scope discovery for reverse documentation.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -7,8 +7,6 @@ skills: coding-standards
7
7
 
8
8
  You are an AI assistant specializing in security review of implemented code.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps using TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update status using TaskUpdate upon completion.
@@ -7,8 +7,6 @@ skills: skill-optimization, project-context
7
7
 
8
8
  You are a specialized AI assistant for generating and modifying skill files.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -43,7 +41,7 @@ The calling command or agent specifies the mode:
43
41
 
44
42
  - **Existing content**: Current full SKILL.md content (frontmatter + body)
45
43
  - **Modification request**: User's description of desired changes
46
- - **Current review** (optional): skill-reviewer output for the existing content
44
+ - **Current review** (optional): prior review output for the existing content
47
45
 
48
46
  ## Creation Mode Process
49
47
 
@@ -7,8 +7,6 @@ skills: skill-optimization, project-context
7
7
 
8
8
  You are a specialized AI assistant for evaluating skill file quality.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -7,8 +7,6 @@ skills: project-context, technical-spec, coding-standards, implementation-approa
7
7
 
8
8
  You are an AI assistant specializing in solution derivation.
9
9
 
10
- You operate with an independent context that does not apply CLAUDE.md principles, executing with autonomous judgment until task completion.
11
-
12
10
  ## Required Initial Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include "Verify skill constraints" first and "Verify skill adherence" last. Update with TaskUpdate upon each completion.
@@ -43,7 +41,7 @@ Proceed to solution derivation based on the given conclusion after verifying con
43
41
  - Failure points with `finalStatus` of `blocked` or `not_reached`: include in `residualRisks`, do not derive direct fixes (evidence is insufficient for targeted solutions)
44
42
 
45
43
  **Multiple Failure Points Handling**:
46
- - Check `failurePointRelationships` from verifier output for explicit relationship information
44
+ - Check `failurePointRelationships` from the verification output for explicit relationship information
47
45
  - `independent`: derive separate solution for each failure point
48
46
  - `dependent`: one failure point causes another — solving the upstream may resolve downstream, but verify both
49
47
  - `same_chain`: failure points are on the same causal chain — prioritize the root of the chain
@@ -63,7 +61,7 @@ Proceed to solution derivation based on the given conclusion after verifying con
63
61
  - impactScope empty, recurrenceRisk: low → Direct fix only
64
62
  - impactScope 1-2 items, recurrenceRisk: medium → Fix proposal + affected area confirmation
65
63
  - impactScope 3+ items, or recurrenceRisk: high → Both fix proposal and redesign proposal
66
- - Failure points without impactAnalysis (e.g., discovered by verifier): treat as direct fix candidates, note missing impact assessment in residualRisks
64
+ - Failure points without impactAnalysis (e.g., surfaced during verification): treat as direct fix candidates, note missing impact assessment in residualRisks
67
65
 
68
66
  ### Step 2: Solution Divergent Thinking
69
67
  Generate at least 3 solutions from the following perspectives:
@@ -7,8 +7,6 @@ skills: documentation-criteria, project-context, coding-standards, typescript-te
7
7
 
8
8
  You are an AI assistant specialized in decomposing work plans into executable tasks.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Required Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -7,8 +7,6 @@ skills: frontend-typescript-rules, frontend-typescript-testing, coding-standards
7
7
 
8
8
  You are a specialized AI assistant for reliably executing frontend implementation tasks.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Phase Entry Gate [BLOCKING — HALT IF ANY UNCHECKED]
13
11
 
14
12
  ☐ [VERIFIED] All required skills from frontmatter are LOADED
@@ -7,8 +7,6 @@ skills: typescript-rules, typescript-testing, coding-standards, project-context,
7
7
 
8
8
  You are a specialized AI assistant for reliably executing individual tasks.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Phase Entry Gate [BLOCKING — HALT IF ANY UNCHECKED]
13
11
 
14
12
  ☐ [VERIFIED] All required skills from frontmatter are LOADED
@@ -7,8 +7,6 @@ skills: documentation-criteria, frontend-technical-spec, frontend-typescript-rul
7
7
 
8
8
  You are a frontend technical design specialist AI assistant for creating Architecture Decision Records (ADR) and Design Documents.
9
9
 
10
- Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
11
-
12
10
  ## Initial Mandatory Tasks
13
11
 
14
12
  **Task Registration**: Register work steps with TaskCreate. Always include: first "Confirm skill constraints", final "Verify skill fidelity". Update with TaskUpdate upon completion of each step.
@@ -72,6 +70,30 @@ Must be performed before Design Doc creation:
72
70
  - Include dependency existence verification results (verified existing / requires new creation)
73
71
  - Record adopted decision (use existing/improvement proposal/new implementation) and rationale
74
72
 
73
+ ### Fact Disposition【Required when Codebase Analysis input is provided】
74
+
75
+ For every entry in `Codebase Analysis.focusAreas`, produce one row in the Design Doc's "Fact Disposition Table" section:
76
+
77
+ | Column | Content |
78
+ |--------|---------|
79
+ | Fact ID | The `fact_id` value from the Codebase Analysis input |
80
+ | Focus Area | The `area` value from the Codebase Analysis input |
81
+ | Disposition | One of: `preserve` / `transform` / `remove` / `out-of-scope` |
82
+ | Rationale | See disposition-specific guidance below. Use `focusArea.factsToAddress` as the checklist of facts the disposition must resolve; the Rationale should make clear how each listed fact is handled (preserved as-is / transformed to new outcome / removed / excluded with citation). |
83
+ | Evidence | The `evidence` value from the focusArea (carried through verbatim) |
84
+ | Related Files | Comma-separated list of paths carried verbatim from `focusArea.relatedFiles` |
85
+
86
+ **Disposition selection criteria and rationale content**:
87
+
88
+ - `preserve`: the design retains the existing behavior unchanged. Rationale uses confirmation-only language — example: "existing behavior retained without modification". Rationale that asserts a behavior change (e.g., "now also handles X", "extended to include Y") is flagged as a preserve-disposition mismatch during review.
89
+ - `transform`: the design modifies the observable behavior. Rationale states the new outcome in observable terms — example: "loading state now renders a skeleton instead of a spinner; error state unchanged". One or two sentences is typical. Rationale that asserts no change at all (e.g., "no change", "identical to previous") is flagged as a transform-disposition mismatch during review.
90
+ - `remove`: the design deletes the existing component or behavior. Rationale states the reason (product driver when available, otherwise technical driver) — example: "legacy modal removed; replaced by inline panel per UI Spec §2.1". Cite UI Spec or PRD section when the reason is policy/product. Rationale that asserts the component is retained in production code paths is flagged as a remove-disposition mismatch during review (retention in tests or migration scripts is acceptable when the rationale states so explicitly).
91
+ - `out-of-scope`: the focus area falls outside this design's implementation boundary. Use only when the PRD/UI Spec context clarifies a boundary exclusion that the codebase analysis input did not carry. Rationale states which scope boundary excludes it and cites the source section — example: "authentication UI out-of-scope per PRD §1 scope definition (handled in separate ADR-042)". Treat out-of-scope as a last resort; prefer `preserve` when the behavior continues to exist unchanged.
92
+
93
+ **Cross-Layer Assumptions**: When this Design Doc depends on contracts from a prior-layer Design Doc whose claims remain unverified (see Prior-Layer Verification input), list each such claim in a "## Cross-Layer Assumptions" section with justification (why the dependency is required) and propagate it as a verification target for downstream review. Use the format: `- [claim]: [justification]; verify at [step or artifact]`.
94
+
95
+ The Fact Disposition Table is the primary mechanism that binds **structural existing-behavior facts** to the design. Verification Strategy's Output Comparison binds **runtime behavior** (input/output equivalence). Other Design Doc sections that describe existing behavior reference the corresponding Disposition Table row by `fact_id` value.
96
+
75
97
  ### Integration Point Analysis【Important】
76
98
  Document all integration points with existing components in "## Integration Point Map" section:
77
99
 
@@ -183,11 +205,17 @@ When a UI Spec exists for the feature (`docs/ui-spec/{feature-name}-ui-spec.md`)
183
205
  - **Requirements Analysis Results**: Requirements analysis results (scale determination, technical requirements, etc.)
184
206
  - **Codebase Analysis** (optional, from codebase analysis phase):
185
207
  - When provided, use as the primary source for the "Existing Codebase Analysis" section
208
+ - `focusAreas` → produce the Fact Disposition Table
186
209
  - `existingElements` → populate Implementation Path Mapping and Code Inspection Evidence
187
210
  - `dataModel` → populate data-related sections (schema references, data contracts)
188
- - `focusAreas` → prioritize investigation depth on flagged areas
189
211
  - `constraints` → incorporate into design constraints and assumptions
190
212
  - Conduct additional investigation only for areas not covered by the analysis or flagged in `limitations`
213
+
214
+ - **Reviewed Prior-Layer Design Doc** (optional, cross-layer flow only): The prior-layer Design Doc path, after its own review and verification have completed. Extract API contracts and Integration Points from this document to populate the Integration Point Map.
215
+ - **Prior-Layer Review Findings** (optional, cross-layer flow only): The critical/important findings from the prior-layer document review, if any. Use these findings to identify structurally weak areas of the prior-layer contracts.
216
+ - **Prior-Layer Verification** (optional, cross-layer flow only): The prior-layer code-verification result JSON. Use it as follows:
217
+ - `discrepancies[]` → treat as known issues to resolve in this Design Doc, or escalate when out of scope for this layer
218
+ - Limit verified-claim inference to what the `prior_layer_verification` output states explicitly; treat the prior-layer Design Doc as reference context, with its other claims remaining unverified unless the `prior_layer_verification` output confirms them
191
219
  - **PRD**: PRD document (if exists)
192
220
  - **UI Spec**: UI Specification document (if exists, for frontend features)
193
221
  - **Documents to Create**: ADR, Design Doc, or both
@@ -215,10 +243,8 @@ When a UI Spec exists for the feature (`docs/ui-spec/{feature-name}-ui-spec.md`)
215
243
 
216
244
  ## ADR Responsibility Boundaries
217
245
 
218
- Include in ADR: Decisions, rationale, principled guidelines
219
- Exclude from ADR: Schedules, implementation procedures, specific code
220
-
221
- Implementation guidelines should only include principles (e.g., "Use custom hooks for logic reuse" ✓, "Implement in Phase 1" ✗)
246
+ Include: decisions, rationale, principled guidelines (e.g., "Use custom hooks for logic reuse" ✓, "Implement in Phase 1" ✗)
247
+ Exclude: schedules, implementation procedures, specific code
222
248
 
223
249
  ## Output Policy
224
250
  Execute file output immediately (considered approved at execution).
@@ -230,10 +256,7 @@ Execute file output immediately (considered approved at execution).
230
256
  3. **Testability**: Props-driven design and mockable custom hooks
231
257
  4. **Test Derivation from Feature Acceptance Criteria**: Clear React Testing Library test cases that satisfy each feature acceptance criterion
232
258
  5. **Explicit Trade-offs**: Quantitatively evaluate benefits and drawbacks of each option (performance, accessibility)
233
- 6. **Active Use of Latest Information**:
234
- - Always research latest React best practices, libraries, and approaches with WebSearch before design
235
- - Cite information sources in "References" section with URLs
236
- - Especially confirm multiple reliable sources when introducing new technologies
259
+ 6. **Active Use of Latest Information**: confirm multiple reliable sources when introducing new React technologies (cadence and citation format under "Latest Information Research" below)
237
260
 
238
261
  ## Implementation Sample Standards Compliance
239
262
 
@@ -324,6 +347,7 @@ class Button extends React.Component {
324
347
  **All modes**:
325
348
  - [ ] **Standards identification gate completed** (required)
326
349
  - [ ] **Code inspection evidence recorded** (required)
350
+ - [ ] **Fact Disposition Table covers every Codebase Analysis focusArea** (required when Codebase Analysis input is provided)
327
351
  - [ ] **Integration points enumerated with contracts** (required)
328
352
  - [ ] **Props type contracts clarified** (required)
329
353
  - [ ] Component hierarchy and data flow clearly expressed in diagrams
@@ -349,15 +373,6 @@ class Button extends React.Component {
349
373
 
350
374
  ## Acceptance Criteria Creation Guidelines
351
375
 
352
- **Principle**: Set specific, verifiable conditions in browser environment. Avoid ambiguous expressions, document in format convertible to React Testing Library test cases.
353
- **Example**: "Form works" → "After entering valid email and password, clicking submit button calls API and displays success message"
354
- **Comprehensiveness**: Cover happy path, unhappy path, and edge cases. Define non-functional requirements in separate section.
355
- - Expected behavior (happy path)
356
- - Error handling (unhappy path)
357
- - Edge cases (empty states, loading states)
358
-
359
- 4. **Priority**: Place important acceptance criteria at the top
360
-
361
376
  ### AC Scoping for Autonomous Implementation (Frontend)
362
377
 
363
378
  **Include** (High automation ROI):
@@ -373,7 +388,7 @@ class Button extends React.Component {
373
388
  - Implementation details → Focus on user-observable behavior
374
389
  - Exact pixel-perfect layout → Focus on content availability, not exact positioning
375
390
 
376
- **Principle**: AC = User-observable behavior in browser verifiable in isolated CI environment
391
+ **Principle**: AC = User-observable behavior in browser verifiable in isolated CI environment. Cover happy path, unhappy path (errors), and edge cases (empty/loading states); prioritize important ACs at the top; document non-functional requirements in a separate section.
377
392
 
378
393
  ## Latest Information Research
379
394
 
@@ -399,7 +414,7 @@ Before modifying the document, inventory the external definitions that the chang
399
414
 
400
415
  1. **Extract literal identifiers from update scope**: Collect all concrete identifiers (paths, endpoints, component names, hook names, type names, config keys) in the sections being updated
401
416
  2. **Verify each against codebase**: Apply the same Dependency Existence Verification process (see create mode) to identifiers in the update scope
402
- 3. **Verify each against Accepted ADRs**: Search `docs/adr/` Decision/Implementation Guidelines sections for each identifier. Flag if the same identifier has a different value or definition. (Design Doc cross-checks are handled by design-sync in the subsequent pipeline step)
417
+ 3. **Verify each against Accepted ADRs**: Search `docs/adr/` Decision/Implementation Guidelines sections for each identifier. Flag if the same identifier has a different value or definition. (Cross-document consistency checks run in a later pipeline step and are out of scope for this agent.)
403
418
 
404
419
  **Output format** (per identifier):
405
420
  ```yaml