@uoyo/mvtt 2.0.0-beta.0 → 2.0.0-beta.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.
Files changed (151) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +194 -209
  3. package/dist/build/assembler.d.ts.map +1 -1
  4. package/dist/build/assembler.js +2 -0
  5. package/dist/build/assembler.js.map +1 -1
  6. package/dist/build/plan-validator.d.ts +26 -0
  7. package/dist/build/plan-validator.d.ts.map +1 -0
  8. package/dist/build/plan-validator.js +225 -0
  9. package/dist/build/plan-validator.js.map +1 -0
  10. package/dist/build/section-loader.d.ts.map +1 -1
  11. package/dist/build/section-loader.js +45 -9
  12. package/dist/build/section-loader.js.map +1 -1
  13. package/dist/cli.d.ts.map +1 -1
  14. package/dist/cli.js +2 -11
  15. package/dist/cli.js.map +1 -1
  16. package/dist/commands/doctor.d.ts.map +1 -1
  17. package/dist/commands/doctor.js +0 -1
  18. package/dist/commands/doctor.js.map +1 -1
  19. package/dist/commands/install.d.ts +1 -4
  20. package/dist/commands/install.d.ts.map +1 -1
  21. package/dist/commands/install.js +18 -14
  22. package/dist/commands/install.js.map +1 -1
  23. package/dist/commands/migrate.d.ts +16 -0
  24. package/dist/commands/migrate.d.ts.map +1 -0
  25. package/dist/commands/migrate.js +118 -0
  26. package/dist/commands/migrate.js.map +1 -0
  27. package/dist/commands/update.d.ts.map +1 -1
  28. package/dist/commands/update.js +35 -2
  29. package/dist/commands/update.js.map +1 -1
  30. package/dist/fs/core-manifest.d.ts +17 -0
  31. package/dist/fs/core-manifest.d.ts.map +1 -0
  32. package/dist/fs/core-manifest.js +76 -0
  33. package/dist/fs/core-manifest.js.map +1 -0
  34. package/dist/fs/install-manifest.d.ts +1 -2
  35. package/dist/fs/install-manifest.d.ts.map +1 -1
  36. package/dist/fs/install-manifest.js +1 -2
  37. package/dist/fs/install-manifest.js.map +1 -1
  38. package/dist/fs/materialize.d.ts.map +1 -1
  39. package/dist/fs/materialize.js +23 -3
  40. package/dist/fs/materialize.js.map +1 -1
  41. package/dist/types/core-manifest.d.ts +12 -0
  42. package/dist/types/core-manifest.d.ts.map +1 -0
  43. package/dist/types/core-manifest.js +2 -0
  44. package/dist/types/core-manifest.js.map +1 -0
  45. package/dist/types/registry.d.ts +13 -5
  46. package/dist/types/registry.d.ts.map +1 -1
  47. package/install-manifest.yaml +31 -27
  48. package/package.json +57 -57
  49. package/registry.yaml +198 -209
  50. package/sources/defaults/config.yaml +27 -30
  51. package/sources/defaults/project-context.yaml +15 -26
  52. package/sources/defaults/session.yaml +31 -23
  53. package/sources/knowledge/core/manifest.yaml +4 -45
  54. package/sources/sections/activation-load-config.md +11 -5
  55. package/sources/sections/activation-load-context.md +26 -11
  56. package/sources/sections/activation-preflight.md +14 -4
  57. package/sources/sections/footer-next-steps.md +35 -9
  58. package/sources/sections/output-language-constraint.md +11 -0
  59. package/sources/sections/role-header.md +13 -13
  60. package/sources/sections/session-update.md +47 -0
  61. package/sources/skills/mvt-analyze/business.md +69 -33
  62. package/sources/skills/mvt-analyze/manifest.yaml +90 -89
  63. package/sources/skills/mvt-analyze-code/business.md +82 -35
  64. package/sources/skills/mvt-analyze-code/manifest.yaml +96 -88
  65. package/sources/skills/mvt-bug-detect/business.md +101 -0
  66. package/sources/skills/mvt-bug-detect/manifest.yaml +84 -0
  67. package/sources/skills/mvt-check-context/business.md +89 -42
  68. package/sources/skills/mvt-check-context/manifest.yaml +63 -74
  69. package/sources/skills/mvt-cleanup/business.md +80 -31
  70. package/sources/skills/mvt-cleanup/manifest.yaml +85 -93
  71. package/sources/skills/mvt-config/business.md +94 -26
  72. package/sources/skills/mvt-config/manifest.yaml +96 -108
  73. package/sources/skills/mvt-create-skill/business.md +231 -111
  74. package/sources/skills/mvt-create-skill/manifest.yaml +91 -79
  75. package/sources/skills/mvt-design/business.md +116 -34
  76. package/sources/skills/mvt-design/manifest.yaml +96 -105
  77. package/sources/skills/mvt-fix/business.md +132 -28
  78. package/sources/skills/mvt-fix/manifest.yaml +85 -86
  79. package/sources/skills/mvt-help/business.md +74 -70
  80. package/sources/skills/mvt-help/manifest.yaml +67 -61
  81. package/sources/skills/mvt-implement/business.md +91 -32
  82. package/sources/skills/mvt-implement/manifest.yaml +80 -96
  83. package/sources/skills/mvt-init/business.md +164 -49
  84. package/sources/skills/mvt-init/manifest.yaml +101 -93
  85. package/sources/skills/mvt-manage-context/business.md +175 -0
  86. package/sources/skills/mvt-manage-context/manifest.yaml +123 -0
  87. package/sources/skills/mvt-plan-dev/business.md +75 -0
  88. package/sources/skills/mvt-plan-dev/manifest.yaml +91 -0
  89. package/sources/skills/mvt-quick-dev/business.md +99 -0
  90. package/sources/skills/mvt-quick-dev/manifest.yaml +69 -0
  91. package/sources/skills/mvt-refactor/business.md +104 -33
  92. package/sources/skills/mvt-refactor/manifest.yaml +86 -101
  93. package/sources/skills/mvt-resume/business.md +137 -0
  94. package/sources/skills/mvt-resume/manifest.yaml +71 -0
  95. package/sources/skills/mvt-review/business.md +112 -49
  96. package/sources/skills/mvt-review/manifest.yaml +87 -106
  97. package/sources/skills/mvt-status/business.md +71 -24
  98. package/sources/skills/mvt-status/manifest.yaml +66 -74
  99. package/sources/skills/mvt-sync-context/business.md +150 -25
  100. package/sources/skills/mvt-sync-context/manifest.yaml +96 -84
  101. package/sources/skills/mvt-template/business.md +96 -49
  102. package/sources/skills/mvt-template/manifest.yaml +63 -71
  103. package/sources/skills/mvt-test/business.md +104 -36
  104. package/sources/skills/mvt-test/manifest.yaml +102 -111
  105. package/sources/skills/mvt-update-plan/business.md +72 -0
  106. package/sources/skills/mvt-update-plan/manifest.yaml +132 -0
  107. package/sources/templates/analyze-output/body.md +15 -38
  108. package/sources/templates/analyze-output/manifest.yaml +11 -11
  109. package/sources/templates/design-output/body.md +17 -50
  110. package/sources/templates/design-output/manifest.yaml +11 -11
  111. package/sources/templates/implement-output/body.md +11 -32
  112. package/sources/templates/implement-output/manifest.yaml +11 -11
  113. package/sources/templates/project-context/body.md +13 -0
  114. package/sources/templates/project-context/manifest.yaml +12 -0
  115. package/sources/templates/review-output/body.md +11 -45
  116. package/sources/templates/review-output/manifest.yaml +11 -11
  117. package/sources/templates/test-output/body.md +7 -31
  118. package/sources/templates/test-output/manifest.yaml +11 -11
  119. package/dist/fs/protection.d.ts +0 -15
  120. package/dist/fs/protection.d.ts.map +0 -1
  121. package/dist/fs/protection.js +0 -16
  122. package/dist/fs/protection.js.map +0 -1
  123. package/sources/knowledge/core/review-principles.md +0 -51
  124. package/sources/knowledge/patterns/clean-architecture/manifest.yaml +0 -66
  125. package/sources/knowledge/patterns/clean-architecture/review-checklist.md +0 -230
  126. package/sources/knowledge/patterns/ddd/manifest.yaml +0 -83
  127. package/sources/knowledge/patterns/ddd/review-checklist.md +0 -226
  128. package/sources/knowledge/patterns/ddd/tactical-patterns.md +0 -12
  129. package/sources/knowledge/patterns/frontend-react/manifest.yaml +0 -44
  130. package/sources/knowledge/patterns/frontend-react/review-checklist.md +0 -78
  131. package/sources/knowledge/patterns/manifest.yaml +0 -113
  132. package/sources/skills/mvt-add-context/business.md +0 -47
  133. package/sources/skills/mvt-add-context/manifest.yaml +0 -83
  134. package/sources/templates/analyze-code-output/body.md +0 -44
  135. package/sources/templates/analyze-code-output/manifest.yaml +0 -11
  136. package/sources/templates/cleanup-output/body.md +0 -9
  137. package/sources/templates/cleanup-output/manifest.yaml +0 -11
  138. package/sources/templates/config-output/body.md +0 -11
  139. package/sources/templates/config-output/manifest.yaml +0 -11
  140. package/sources/templates/context-check-output/body.md +0 -32
  141. package/sources/templates/context-check-output/manifest.yaml +0 -11
  142. package/sources/templates/fix-output/body.md +0 -30
  143. package/sources/templates/fix-output/manifest.yaml +0 -11
  144. package/sources/templates/init-output/body.md +0 -34
  145. package/sources/templates/init-output/manifest.yaml +0 -11
  146. package/sources/templates/refactor-output/body.md +0 -32
  147. package/sources/templates/refactor-output/manifest.yaml +0 -11
  148. package/sources/templates/status-output/body.md +0 -36
  149. package/sources/templates/status-output/manifest.yaml +0 -11
  150. package/sources/templates/sync-context-output/body.md +0 -16
  151. package/sources/templates/sync-context-output/manifest.yaml +0 -11
@@ -0,0 +1,72 @@
1
+ ## Execution Flow
2
+
3
+ ### Step 1: Resolve Target
4
+
5
+ Required inputs:
6
+
7
+ - **task_id** -- which task to update
8
+ - **new_status** -- one of: `pending`, `in_progress`, `done`, `blocked`, `skipped`
9
+ - **artifacts** (optional, comma-separated paths) -- files produced or touched
10
+ - **notes** (optional) -- free-form note string
11
+
12
+ Resolution rules:
13
+
14
+ - If `task_id` is omitted AND exactly one task currently has status `in_progress` -> default to that task.
15
+ - If `task_id` is omitted AND zero or multiple tasks are in_progress -> ask the user to specify.
16
+ - If the user reply is the natural-language form `done` / `blocked: <reason>` (from a workflow skill's soft-prompt) -> map to:
17
+ - `done` -> task = plan.current_task, new_status = done
18
+ - `blocked: <reason>` -> task = plan.current_task, new_status = blocked, notes = `<reason>`
19
+
20
+ ### Step 2: Load and Validate Existing Plan
21
+
22
+ 1. Read `active_change.plan_path` (the file location is fixed by `/mvt-plan-dev`).
23
+ 2. Parse YAML; if parse fails or schema is invalid -> stop and report. Do not attempt to repair silently.
24
+ 3. Verify the target `task_id` exists in `tasks[]`. If not, list valid ids and stop.
25
+
26
+ ### Step 3: Apply the Update
27
+
28
+ Mutate the in-memory plan:
29
+
30
+ 1. Find the target task; capture `old_status` for the report.
31
+ 2. Set `tasks[i].status = new_status`.
32
+ 3. If `artifacts` provided -> append to `tasks[i].artifacts` (de-duplicate).
33
+ 4. If `notes` provided -> overwrite `tasks[i].notes`.
34
+ 5. Update `plan.updated_at` to current ISO 8601 timestamp.
35
+
36
+ ### Step 4: Recompute current_task
37
+
38
+ Selection logic, in order:
39
+
40
+ 1. If any task has status `in_progress` AND it is **not** the task we just changed to a terminal status (done/blocked/skipped) -> `current_task` = that task's id.
41
+ 2. Otherwise pick the first task (by array order) where:
42
+ - `status == pending`
43
+ - All ids in `depends_on` reference tasks with status `done`
44
+ 3. If no such task exists AND every task is `done` -> set `plan.status = done`, `current_task = null`.
45
+ 4. If no such task exists but some tasks are still `pending` (because their dependencies are not done -- e.g., everything reachable is blocked) -> set `current_task = null`, leave `plan.status = in_progress`. Surface a warning in the output ("All remaining tasks are blocked by dependencies; resolve a blocker before continuing").
46
+
47
+ If the selected next task is currently `pending` -> promote it to `in_progress` (so the plan accurately reflects the active focus). Skip this promotion if `plan.status` just transitioned to `done`.
48
+
49
+ ### Step 5: Validate and Write
50
+
51
+ 1. Run the plan validator on the mutated structure.
52
+ 2. If validation fails -> abort the write, report the validation errors, leave the original file untouched.
53
+ 3. Otherwise, write back to `active_change.plan_path`.
54
+
55
+ ### Step 6: Update Session State
56
+
57
+ Apply the standard State Update rules (see shared section above) AND the update-plan-specific updates:
58
+
59
+ - Refresh the matching entry in `recent_changes[]`: `last_updated` -> current ISO 8601 timestamp.
60
+ - Do NOT touch `active_change.has_plan` / `active_change.plan_path`.
61
+
62
+ ### Step 7: Output
63
+
64
+ Emit the Plan Update summary block defined in the Output Format section. Include:
65
+
66
+ - The task that changed (id, title, old -> new status).
67
+ - A compact table of all tasks with their current status.
68
+ - The new `current_task` (or "(plan complete)" if `plan.status == done`).
69
+ - A one-line "Next" hint:
70
+ - If a new `current_task` is set -> recommend the skill matching its `skill_hint`.
71
+ - If plan complete -> recommend `/mvt-cleanup` or starting a new change via `/mvt-analyze`.
72
+ - If all remaining tasks are blocked -> recommend resolving the blocker (point at the `notes` of the blocked task).
@@ -0,0 +1,132 @@
1
+ name: mvt-update-plan
2
+ output: .claude/skills/mvt-update-plan/SKILL.md
3
+
4
+ frontmatter:
5
+ name: mvt-update-plan
6
+ description: "Update a single task in the active change's plan.yaml: change status, attach artifacts, leave notes, and auto-advance current_task. This skill should be used after a workflow skill finishes work that maps to a plan task, or whenever the user wants to mark a task as done, blocked, or skipped."
7
+
8
+ sections:
9
+ - type: inline
10
+ content: |
11
+ # MVT Update Plan
12
+
13
+ ## Purpose
14
+
15
+ Apply incremental updates to the active plan.yaml: mark a task done/blocked/skipped, attach the artifacts produced, and let the skill auto-advance `current_task` to the next executable task. AI may invoke this skill on the user's behalf when the user replies to a soft-prompt with `done` / `blocked: <reason>`.
16
+
17
+ - type: shared
18
+ source: sections/role-header.md
19
+ params:
20
+ role: Architect
21
+ role_desc: "a Development Planner"
22
+ decision_rules:
23
+ - rule: "Task id provided AND target status valid -> Apply update, advance current_task, write back"
24
+ - rule: "Task id missing AND only one task is in_progress -> Default to that task"
25
+ - rule: "Target status would create an invalid current_task -> Recompute current_task automatically"
26
+ - rule: "All tasks become done -> Set plan.status = done, current_task = null"
27
+ - rule: "active_change.has_plan is false -> Stop and suggest /mvt-plan-dev"
28
+
29
+ boundaries:
30
+ - scope: "create new tasks or restructure the plan"
31
+ skill: "/mvt-plan-dev"
32
+ - scope: "create or modify the active change itself"
33
+ skill: "/mvt-analyze"
34
+ - scope: "implement code"
35
+ skill: "/mvt-implement"
36
+
37
+ - type: shared
38
+ source: sections/activation-load-context.md
39
+ params:
40
+ extended_context:
41
+ - "{active_change.plan_path} -- The plan to update (resolved from session.yaml)"
42
+
43
+ - type: shared
44
+ source: sections/activation-load-config.md
45
+
46
+ - type: shared
47
+ source: sections/output-language-constraint.md
48
+
49
+ - type: shared
50
+ source: sections/activation-preflight.md
51
+ params:
52
+ checks:
53
+ - order: "1"
54
+ field: "session.initialized_at"
55
+ level: "WARN"
56
+ message: 'Session not initialized. Run `/mvt-init` first.'
57
+ - order: "2"
58
+ field: "active_change.has_plan"
59
+ level: "BLOCK"
60
+ message: 'No active plan. Run `/mvt-plan-dev` to create one before updating.'
61
+
62
+ - type: inline
63
+ content: |
64
+ ### Shortcut Operation Rules
65
+ - Can execute at any time when an active plan exists
66
+ - Performs surgical edits only -- never overwrites the whole plan structure
67
+ - Re-validates the resulting plan before writing; aborts on validation failure
68
+
69
+ - type: file
70
+ source: ./business.md
71
+
72
+ - type: inline
73
+ content: |
74
+ ## Output Format
75
+
76
+ Render an inline summary (no external template). Structure:
77
+
78
+ ```markdown
79
+ ## Plan Update
80
+
81
+ ### Change Applied
82
+ - **Task**: {task_id} -- {task_title}
83
+ - **Status**: {old_status} -> {new_status}
84
+ - **Artifacts attached**: {comma_separated_list_or_"(none)"}
85
+ - **Notes**: {notes_or_"(unchanged)"}
86
+
87
+ ### Plan Progress
88
+ | # | id | title | status |
89
+ |---|----|----|--------|
90
+ | ... |
91
+
92
+ Progress: {done_count}/{total_count}
93
+ Current task: {new_current_task_id_or_"(plan complete)"}
94
+
95
+ ### Next
96
+ {one-line guidance: continue to next task, resolve blocker, or run /mvt-cleanup}
97
+ ```
98
+
99
+ Every response MUST end with a Suggested Next Steps section.
100
+
101
+ - type: shared
102
+ source: sections/session-update.md
103
+
104
+ - type: inline
105
+ content: |
106
+ ### Update-Plan Specific State Updates
107
+
108
+ In addition to the mandatory updates above, this skill MUST refresh `recent_changes` for the active change:
109
+
110
+ - Find the entry where `id == active_change.id`. If absent, append one (this should be rare; happens when the plan was created out-of-band).
111
+ - Set `last_updated` to the current ISO 8601 timestamp.
112
+ - Trim to max 5 entries (drop the oldest by `last_updated` ascending).
113
+
114
+ Do NOT modify `active_change.has_plan` or `active_change.plan_path` here -- those are owned by `/mvt-plan-dev`.
115
+
116
+ - type: shared
117
+ source: sections/footer-next-steps.md
118
+ params:
119
+ current_skill: mvt-update-plan
120
+ conditional_suggestions:
121
+ conditions:
122
+ - condition: "plan_done"
123
+ primary: mvt-cleanup
124
+ primary_desc: "All tasks complete -- clean up artifacts and prepare to start the next change"
125
+ - condition: "default"
126
+ primary: mvt-implement
127
+ primary_desc: "Continue with the next current_task"
128
+ alternatives:
129
+ - skill: mvt-resume
130
+ desc: "Refresh context after task transitions"
131
+ - skill: mvt-status
132
+ desc: "Inspect overall progress across changes"
@@ -1,38 +1,15 @@
1
- ## Requirements Analysis: {Feature Name}
2
-
3
- ### Feature Overview
4
- {1-2 paragraph summary of the feature}
5
-
6
- ### Actors
7
- | Actor | Type | Description |
8
- |-------|------|-------------|
9
- | {actor} | {primary/secondary/system} | {description} |
10
-
11
- ### Requirements
12
- | ID | Requirement | Priority | Category |
13
- |----|-------------|----------|----------|
14
- | REQ-001 | {requirement} | {P0/P1/P2} | {functional/non-functional} |
15
-
16
- ### Domain Concepts
17
- | Concept | Type | Description |
18
- |---------|------|-------------|
19
- | {concept} | {Entity/Value Object/Service} | {description} |
20
-
21
- ### Business Rules
22
- | ID | Rule | Condition | Action |
23
- |----|------|-----------|--------|
24
- | BR-001 | {rule_name} | {when} | {then} |
25
-
26
- ### Ambiguities & Questions
27
- | # | Question | Impact | Blocking? |
28
- |---|----------|--------|-----------|
29
- | Q1 | {question} | {what_it_affects} | {Yes/No} |
30
-
31
- ### Change Tracking
32
- - **Change ID**: {YYYYMMDD-slug}
33
- - **Artifact**: `.ai-agents/workspace/artifacts/{change-id}/analysis.md`
34
-
35
- ---
36
- **Suggested Next Steps**:
37
- - `/mvt-design` to create architecture based on this analysis
38
- - Address blocking questions before proceeding
1
+ # Requirements Analysis: {Feature Name}
2
+
3
+ ## Feature Overview
4
+
5
+ ## Actors
6
+
7
+ ## Requirements
8
+
9
+ ## Domain Concepts
10
+
11
+ ## Business Rules
12
+
13
+ ## Ambiguities & Questions
14
+
15
+ ## Change Tracking
@@ -1,11 +1,11 @@
1
- name: analyze-output
2
- output: .ai-agents/skills/_templates/analyze-output.md
3
-
4
- frontmatter:
5
- id: analyze-output
6
- version: "1.0"
7
- skill: mvt-analyze
8
-
9
- sections:
10
- - type: file
11
- source: ./body.md
1
+ name: analyze-output
2
+ output: .ai-agents/skills/_templates/analyze-output.md
3
+
4
+ frontmatter:
5
+ id: analyze-output
6
+ version: "1.0"
7
+ skill: mvt-analyze
8
+
9
+ sections:
10
+ - type: file
11
+ source: ./body.md
@@ -1,50 +1,17 @@
1
- ## Architecture Design: {Feature Name}
2
-
3
- ### Overview
4
- {1-2 paragraph summary of the architecture}
5
-
6
- ### Architecture Decision Records
7
- | ID | Decision | Rationale | Alternatives Considered |
8
- |----|----------|-----------|------------------------|
9
- | ADR-001 | {decision} | {rationale} | {alternatives} |
10
-
11
- ### Module Design
12
- | Module | Responsibility | Layer | Dependencies |
13
- |--------|---------------|-------|--------------|
14
- | {module} | {responsibility} | {Domain/Application/Infrastructure/Interface} | {deps} |
15
-
16
- ### Key Interfaces
17
- ```{language}
18
- // {InterfaceName}
19
- {interface_definition}
20
- ```
21
-
22
- ### Data Flow
23
- ```mermaid
24
- sequenceDiagram
25
- participant C as Client
26
- participant S as Service
27
- participant R as Repository
28
- C->>S: request
29
- S->>R: query
30
- R-->>S: result
31
- S-->>C: response
32
- ```
33
-
34
- ### File Structure
35
- | File | Action | Description |
36
- |------|--------|-------------|
37
- | `{path}` | {Create/Modify} | {description} |
38
-
39
- ### Implementation Guidelines
40
- - {guideline_1}
41
- - {guideline_2}
42
-
43
- ### Change Tracking
44
- - **Change ID**: {change-id}
45
- - **Artifact**: `.ai-agents/workspace/artifacts/{change-id}/design.md`
46
-
47
- ---
48
- **Suggested Next Steps**:
49
- - `/mvt-implement` to start implementing this design
50
- - Refine specific modules if needed
1
+ # Architecture Design: {Feature Name}
2
+
3
+ ## Overview
4
+
5
+ ## Architecture Decision Records
6
+
7
+ ## Module Design
8
+
9
+ ## Key Interfaces
10
+
11
+ ## Data Flow
12
+
13
+ ## File Structure
14
+
15
+ ## Implementation Guidelines
16
+
17
+ ## Change Tracking
@@ -1,11 +1,11 @@
1
- name: design-output
2
- output: .ai-agents/skills/_templates/design-output.md
3
-
4
- frontmatter:
5
- id: design-output
6
- version: "1.0"
7
- skill: mvt-design
8
-
9
- sections:
10
- - type: file
11
- source: ./body.md
1
+ name: design-output
2
+ output: .ai-agents/skills/_templates/design-output.md
3
+
4
+ frontmatter:
5
+ id: design-output
6
+ version: "1.0"
7
+ skill: mvt-design
8
+
9
+ sections:
10
+ - type: file
11
+ source: ./body.md
@@ -1,32 +1,11 @@
1
- ## Implementation: {Feature Name}
2
-
3
- ### Implementation Plan
4
- | # | Step | Files | Status |
5
- |---|------|-------|--------|
6
- | 1 | {step} | `{files}` | {pending/done} |
7
-
8
- ### Changes
9
- | File | Action | Description |
10
- |------|--------|-------------|
11
- | `{path}` | {Create/Modify/Delete} | {description} |
12
-
13
- ### Implementation Code
14
-
15
- #### {file_path}
16
- ```{language}
17
- {code}
18
- ```
19
-
20
- ### Design Compliance
21
- | Design Requirement | Status | Notes |
22
- |-------------------|--------|-------|
23
- | {requirement} | {Compliant/Deviation} | {notes} |
24
-
25
- ### Change Tracking
26
- - **Change ID**: {change-id}
27
- - **Artifact**: `.ai-agents/workspace/artifacts/{change-id}/implementation.md`
28
-
29
- ---
30
- **Suggested Next Steps**:
31
- - `/mvt-review` to review the implementation
32
- - `/mvt-test` to write tests
1
+ # Implementation: {Feature Name}
2
+
3
+ ## Implementation Plan
4
+
5
+ ## Changes
6
+
7
+ ## Implementation Details
8
+
9
+ ## Design Compliance
10
+
11
+ ## Change Tracking
@@ -1,11 +1,11 @@
1
- name: implement-output
2
- output: .ai-agents/skills/_templates/implement-output.md
3
-
4
- frontmatter:
5
- id: implement-output
6
- version: "1.0"
7
- skill: mvt-implement
8
-
9
- sections:
10
- - type: file
11
- source: ./body.md
1
+ name: implement-output
2
+ output: .ai-agents/skills/_templates/implement-output.md
3
+
4
+ frontmatter:
5
+ id: implement-output
6
+ version: "1.0"
7
+ skill: mvt-implement
8
+
9
+ sections:
10
+ - type: file
11
+ source: ./body.md
@@ -0,0 +1,13 @@
1
+ # Project: {project name}
2
+
3
+ ## Overview
4
+
5
+ ## Core Terms
6
+
7
+ ## Module Structure
8
+
9
+ ## Layer Structure
10
+
11
+ ## Key Business Rules
12
+
13
+ ## API Overview
@@ -0,0 +1,12 @@
1
+ name: project-context
2
+ output: .ai-agents/skills/_templates/project-context.md
3
+
4
+ frontmatter:
5
+ id: project-context
6
+ version: "1.0"
7
+ skill: mvt-analyze-code
8
+ description: "Project semantic document template -- defines section structure for project-context.md"
9
+
10
+ sections:
11
+ - type: file
12
+ source: ./body.md
@@ -1,45 +1,11 @@
1
- ## Code Review Report
2
-
3
- ### Summary
4
- - **Overall Assessment**: {Good / Needs Work / Critical Issues}
5
- - **Files Reviewed**: {count}
6
- - **Critical Issues**: {count}
7
- - **Warnings**: {count}
8
- - **Suggestions**: {count}
9
-
10
- ### Critical Issues
11
-
12
- #### C{N}: {Issue Title}
13
- **File**: `{file}:{line}`
14
- **Issue**: {description}
15
- **Suggestion**: {fix_suggestion}
16
-
17
- ```{language}
18
- // Current code
19
- {problematic_code}
20
-
21
- // Suggested fix
22
- {suggested_code}
23
- ```
24
-
25
- ### Warnings
26
-
27
- #### W{N}: {Issue Title}
28
- **File**: `{file}:{line}`
29
- **Issue**: {description}
30
- **Suggestion**: {fix_suggestion}
31
-
32
- ### Suggestions
33
-
34
- #### S{N}: {Suggestion Title}
35
- **File**: `{file}`
36
- **Suggestion**: {improvement}
37
-
38
- ### Highlights
39
- - {positive_finding_1}
40
- - {positive_finding_2}
41
-
42
- ---
43
- **Suggested Next Steps**:
44
- - `/mvt-fix` to address critical issues
45
- - `/mvt-test` to add missing tests
1
+ # Code Review Report
2
+
3
+ ## Summary
4
+
5
+ ## Critical Issues
6
+
7
+ ## Warnings
8
+
9
+ ## Suggestions
10
+
11
+ ## Highlights
@@ -1,11 +1,11 @@
1
- name: review-output
2
- output: .ai-agents/skills/_templates/review-output.md
3
-
4
- frontmatter:
5
- id: review-output
6
- version: "1.0"
7
- skill: mvt-review
8
-
9
- sections:
10
- - type: file
11
- source: ./body.md
1
+ name: review-output
2
+ output: .ai-agents/skills/_templates/review-output.md
3
+
4
+ frontmatter:
5
+ id: review-output
6
+ version: "1.0"
7
+ skill: mvt-review
8
+
9
+ sections:
10
+ - type: file
11
+ source: ./body.md
@@ -1,31 +1,7 @@
1
- ## Test Design: {Feature Name}
2
-
3
- ### Test Cases
4
- | ID | Scenario | Input | Expected Output | Type |
5
- |----|----------|-------|-----------------|------|
6
- | T1 | {scenario} | {input} | {expected} | {Happy Path / Edge Case / Negative / Security} |
7
-
8
- ### Test Code
9
-
10
- #### {test_file}
11
- ```{language}
12
- {test_code}
13
- ```
14
-
15
- ### Coverage Analysis
16
- | Requirement | Test Coverage | Status |
17
- |-------------|---------------|--------|
18
- | REQ-001 | T1, T2 | {Covered / Missing} |
19
-
20
- ### Coverage by Type
21
- | Type | Count | Coverage |
22
- |------|-------|----------|
23
- | Happy Path | {n} | {pct}% |
24
- | Edge Case | {n} | {pct}% |
25
- | Negative | {n} | {pct}% |
26
- | Security | {n} | {pct}% |
27
-
28
- ---
29
- **Suggested Next Steps**:
30
- - Run tests
31
- - `/mvt-fix` if tests fail
1
+ # Test Design: {Feature Name}
2
+
3
+ ## Test Cases
4
+
5
+ ## Test Code
6
+
7
+ ## Coverage Analysis
@@ -1,11 +1,11 @@
1
- name: test-output
2
- output: .ai-agents/skills/_templates/test-output.md
3
-
4
- frontmatter:
5
- id: test-output
6
- version: "1.0"
7
- skill: mvt-test
8
-
9
- sections:
10
- - type: file
11
- source: ./body.md
1
+ name: test-output
2
+ output: .ai-agents/skills/_templates/test-output.md
3
+
4
+ frontmatter:
5
+ id: test-output
6
+ version: "1.0"
7
+ skill: mvt-test
8
+
9
+ sections:
10
+ - type: file
11
+ source: ./body.md
@@ -1,15 +0,0 @@
1
- export interface InstallManifest {
2
- version: number;
3
- generated: Array<{
4
- pattern: string;
5
- source: string;
6
- }>;
7
- create_once: Array<{
8
- path: string;
9
- source: string;
10
- }>;
11
- user_data_dirs: string[];
12
- }
13
- export declare function loadInstallManifest(packageRoot: string): InstallManifest;
14
- export declare function isGeneratedFile(filePath: string): boolean;
15
- //# sourceMappingURL=protection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protection.d.ts","sourceRoot":"","sources":["../../src/fs/protection.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtD,WAAW,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAIxE;AAID,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAIzD"}
@@ -1,16 +0,0 @@
1
- import { existsSync, readFileSync } from "node:fs";
2
- import path from "node:path";
3
- import { parse as parseYaml } from "yaml";
4
- export function loadInstallManifest(packageRoot) {
5
- const manifestPath = path.resolve(packageRoot, "install-manifest.yaml");
6
- const raw = readFileSync(manifestPath, "utf-8");
7
- return parseYaml(raw);
8
- }
9
- const GENERATED_MARKER = "<!-- GENERATED by mvtt";
10
- export function isGeneratedFile(filePath) {
11
- if (!existsSync(filePath))
12
- return false;
13
- const content = readFileSync(filePath, "utf-8");
14
- return content.trimStart().startsWith(GENERATED_MARKER);
15
- }
16
- //# sourceMappingURL=protection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protection.js","sourceRoot":"","sources":["../../src/fs/protection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAS1C,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;IACxE,MAAM,GAAG,GAAG,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,SAAS,CAAC,GAAG,CAAoB,CAAC;AAC3C,CAAC;AAED,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAElD,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IACxC,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,OAAO,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAC1D,CAAC"}