@uoyo/mvtt 2.0.0-beta.1 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -193
- package/dist/build/section-loader.d.ts.map +1 -1
- package/dist/build/section-loader.js +18 -8
- package/dist/build/section-loader.js.map +1 -1
- package/dist/fs/materialize.d.ts.map +1 -1
- package/dist/fs/materialize.js +5 -0
- package/dist/fs/materialize.js.map +1 -1
- package/dist/scripts/session-update.cjs +7568 -0
- package/install-manifest.yaml +2 -0
- package/package.json +3 -2
- package/registry.yaml +6 -0
- package/sources/defaults/config.yaml +7 -7
- package/sources/defaults/session.yaml +9 -16
- package/sources/scripts/session-update.js +351 -0
- package/sources/sections/activation-load-context.md +4 -0
- package/sources/sections/footer-next-steps.md +1 -1
- package/sources/sections/output-language-constraint.md +11 -11
- package/sources/sections/session-update.md +115 -47
- package/sources/skills/mvt-analyze/business.md +7 -7
- package/sources/skills/mvt-analyze/manifest.yaml +1 -0
- package/sources/skills/mvt-analyze-code/manifest.yaml +110 -96
- package/sources/skills/mvt-bug-detect/business.md +99 -0
- package/sources/skills/mvt-bug-detect/manifest.yaml +84 -0
- package/sources/skills/mvt-check-context/business.md +3 -5
- package/sources/skills/mvt-check-context/manifest.yaml +70 -63
- package/sources/skills/mvt-cleanup/business.md +49 -23
- package/sources/skills/mvt-cleanup/manifest.yaml +15 -10
- package/sources/skills/mvt-config/business.md +1 -2
- package/sources/skills/mvt-config/manifest.yaml +103 -96
- package/sources/skills/mvt-create-skill/business.md +84 -76
- package/sources/skills/mvt-create-skill/manifest.yaml +107 -95
- package/sources/skills/mvt-design/business.md +3 -6
- package/sources/skills/mvt-design/manifest.yaml +109 -96
- package/sources/skills/mvt-fix/business.md +39 -9
- package/sources/skills/mvt-fix/manifest.yaml +88 -72
- package/sources/skills/mvt-help/business.md +2 -4
- package/sources/skills/mvt-help/manifest.yaml +75 -67
- package/sources/skills/mvt-implement/business.md +4 -5
- package/sources/skills/mvt-implement/manifest.yaml +93 -80
- package/sources/skills/mvt-init/business.md +2 -2
- package/sources/skills/mvt-init/manifest.yaml +102 -101
- package/sources/skills/mvt-manage-context/business.md +186 -175
- package/sources/skills/mvt-manage-context/manifest.yaml +134 -123
- package/sources/skills/mvt-plan-dev/business.md +101 -20
- package/sources/skills/mvt-plan-dev/manifest.yaml +90 -91
- package/sources/skills/mvt-quick-dev/business.md +2 -1
- package/sources/skills/mvt-quick-dev/manifest.yaml +84 -69
- package/sources/skills/mvt-refactor/business.md +2 -1
- package/sources/skills/mvt-refactor/manifest.yaml +104 -86
- package/sources/skills/mvt-resume/business.md +28 -68
- package/sources/skills/mvt-resume/manifest.yaml +81 -71
- package/sources/skills/mvt-review/business.md +3 -3
- package/sources/skills/mvt-review/manifest.yaml +108 -87
- package/sources/skills/mvt-status/business.md +14 -18
- package/sources/skills/mvt-status/manifest.yaml +74 -66
- package/sources/skills/mvt-sync-context/business.md +155 -150
- package/sources/skills/mvt-sync-context/manifest.yaml +99 -96
- package/sources/skills/mvt-template/business.md +0 -2
- package/sources/skills/mvt-template/manifest.yaml +68 -63
- package/sources/skills/mvt-test/business.md +3 -3
- package/sources/skills/mvt-test/manifest.yaml +115 -102
- package/sources/skills/mvt-update-plan/business.md +83 -72
- package/sources/skills/mvt-update-plan/manifest.yaml +124 -132
- package/sources/templates/analyze-output/body.md +15 -15
- package/sources/templates/design-output/body.md +17 -17
- package/sources/templates/implement-output/body.md +11 -11
- package/sources/templates/review-output/body.md +11 -11
- package/sources/templates/test-output/body.md +7 -7
- package/dist/build/plan-validator.d.ts +0 -26
- package/dist/build/plan-validator.d.ts.map +0 -1
- package/dist/build/plan-validator.js +0 -225
- package/dist/build/plan-validator.js.map +0 -1
- package/dist/commands/build.d.ts +0 -5
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -46
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/migrate.d.ts +0 -18
- package/dist/commands/migrate.d.ts.map +0 -1
- package/dist/commands/migrate.js +0 -163
- package/dist/commands/migrate.js.map +0 -1
- package/dist/fs/protection.d.ts +0 -15
- package/dist/fs/protection.d.ts.map +0 -1
- package/dist/fs/protection.js +0 -16
- package/dist/fs/protection.js.map +0 -1
|
@@ -1,96 +1,109 @@
|
|
|
1
|
-
name: mvt-design
|
|
2
|
-
output: .claude/skills/mvt-design/SKILL.md
|
|
3
|
-
|
|
4
|
-
frontmatter:
|
|
5
|
-
name: mvt-design
|
|
6
|
-
description: "Create architecture design based on analyzed requirements. This skill should be used when user wants to design system architecture, define module structure, or create technical blueprints for implementation."
|
|
7
|
-
|
|
8
|
-
sections:
|
|
9
|
-
- type: inline
|
|
10
|
-
content: |
|
|
11
|
-
# MVT Design
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
|
|
15
|
-
Design system architecture based on analyzed requirements. Create technical blueprints that guide implementation, respecting existing project structure and constraints.
|
|
16
|
-
|
|
17
|
-
- type: shared
|
|
18
|
-
source: sections/role-header.md
|
|
19
|
-
params:
|
|
20
|
-
role: Architect
|
|
21
|
-
role_desc: "a System Architecture Expert"
|
|
22
|
-
decision_rules:
|
|
23
|
-
- rule: "Multiple valid approaches exist -> Present top 2-3 options with pros/cons table, recommend one"
|
|
24
|
-
- rule: "Trade-off affects performance vs maintainability -> Document as ADR, state the trade-off"
|
|
25
|
-
- rule: "User asks for technology choice -> Evaluate against: requirements fit, team familiarity, maintenance cost"
|
|
26
|
-
- rule: "Design needs breaking change -> Highlight impact scope, list affected files, propose migration"
|
|
27
|
-
- rule: "Requirements are ambiguous -> Stop and ask clarification before designing"
|
|
28
|
-
- rule: "Layer constraint violation in design -> Flag and suggest alternative that respects existing boundaries"
|
|
29
|
-
boundaries:
|
|
30
|
-
- scope: "write implementation code"
|
|
31
|
-
skill: "/mvt-implement"
|
|
32
|
-
- scope: "re-analyze requirements"
|
|
33
|
-
skill: "/mvt-analyze"
|
|
34
|
-
- scope: "review code"
|
|
35
|
-
skill: "/mvt-review"
|
|
36
|
-
|
|
37
|
-
- type: inline
|
|
38
|
-
content: |
|
|
39
|
-
## Variants
|
|
40
|
-
|
|
41
|
-
| Variant | Description |
|
|
42
|
-
|---------|-------------|
|
|
43
|
-
| `/mvt-design` | Full architecture design |
|
|
44
|
-
| `/mvt-design --plan` | High-level implementation plan only |
|
|
45
|
-
|
|
46
|
-
- type: shared
|
|
47
|
-
source: sections/activation-load-context.md
|
|
48
|
-
params:
|
|
49
|
-
extended_context:
|
|
50
|
-
- ".ai-agents/workspace/artifacts/{active_change.id}/analysis.md -- Analysis from previous phase"
|
|
51
|
-
|
|
52
|
-
- type: shared
|
|
53
|
-
source: sections/activation-load-config.md
|
|
54
|
-
|
|
55
|
-
- type: shared
|
|
56
|
-
source: sections/output-language-constraint.md
|
|
57
|
-
|
|
58
|
-
- type: shared
|
|
59
|
-
source: sections/activation-preflight.md
|
|
60
|
-
params:
|
|
61
|
-
checks:
|
|
62
|
-
- order: "1"
|
|
63
|
-
field: "session.initialized_at"
|
|
64
|
-
level: "BLOCK"
|
|
65
|
-
message: "Session not initialized. Run `/mvt-init` first."
|
|
66
|
-
- order: "2"
|
|
67
|
-
field: "projects[] in project-context.yaml"
|
|
68
|
-
level: "BLOCK"
|
|
69
|
-
message: "Project not initialized. Run `/mvt-init` first."
|
|
70
|
-
- order: "3"
|
|
71
|
-
field: "project-context.md"
|
|
72
|
-
level: "WARN"
|
|
73
|
-
message: "No project-context.md found. Run `/mvt-analyze-code` for better design context. (allow user to proceed)"
|
|
74
|
-
- order: "4"
|
|
75
|
-
field: "requirements in project-context.md"
|
|
76
|
-
level: "WARN"
|
|
77
|
-
message: "No requirements found. Run `/mvt-analyze` first. (allow user to proceed)"
|
|
78
|
-
|
|
79
|
-
- type: file
|
|
80
|
-
source: ./business.md
|
|
81
|
-
|
|
82
|
-
- type: inline
|
|
83
|
-
content: |
|
|
84
|
-
## Artifact Structure
|
|
85
|
-
Read the document structure template from: `.ai-agents/skills/_templates/design-output.md`
|
|
86
|
-
If a custom version exists at `.ai-agents/skills/_templates/custom/design-output.md`, use the custom version instead.
|
|
87
|
-
The template defines section headings only. Generate content for each section based on design results.
|
|
88
|
-
Write the artifact to: `.ai-agents/workspace/artifacts/{change-id}/design.md`
|
|
89
|
-
|
|
90
|
-
- type: shared
|
|
91
|
-
source: sections/session-update.md
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
name: mvt-design
|
|
2
|
+
output: .claude/skills/mvt-design/SKILL.md
|
|
3
|
+
|
|
4
|
+
frontmatter:
|
|
5
|
+
name: mvt-design
|
|
6
|
+
description: "Create architecture design based on analyzed requirements. This skill should be used when user wants to design system architecture, define module structure, or create technical blueprints for implementation."
|
|
7
|
+
|
|
8
|
+
sections:
|
|
9
|
+
- type: inline
|
|
10
|
+
content: |
|
|
11
|
+
# MVT Design
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Design system architecture based on analyzed requirements. Create technical blueprints that guide implementation, respecting existing project structure and constraints.
|
|
16
|
+
|
|
17
|
+
- type: shared
|
|
18
|
+
source: sections/role-header.md
|
|
19
|
+
params:
|
|
20
|
+
role: Architect
|
|
21
|
+
role_desc: "a System Architecture Expert"
|
|
22
|
+
decision_rules:
|
|
23
|
+
- rule: "Multiple valid approaches exist -> Present top 2-3 options with pros/cons table, recommend one"
|
|
24
|
+
- rule: "Trade-off affects performance vs maintainability -> Document as ADR, state the trade-off"
|
|
25
|
+
- rule: "User asks for technology choice -> Evaluate against: requirements fit, team familiarity, maintenance cost"
|
|
26
|
+
- rule: "Design needs breaking change -> Highlight impact scope, list affected files, propose migration"
|
|
27
|
+
- rule: "Requirements are ambiguous -> Stop and ask clarification before designing"
|
|
28
|
+
- rule: "Layer constraint violation in design -> Flag and suggest alternative that respects existing boundaries"
|
|
29
|
+
boundaries:
|
|
30
|
+
- scope: "write implementation code"
|
|
31
|
+
skill: "/mvt-implement"
|
|
32
|
+
- scope: "re-analyze requirements"
|
|
33
|
+
skill: "/mvt-analyze"
|
|
34
|
+
- scope: "review code"
|
|
35
|
+
skill: "/mvt-review"
|
|
36
|
+
|
|
37
|
+
- type: inline
|
|
38
|
+
content: |
|
|
39
|
+
## Variants
|
|
40
|
+
|
|
41
|
+
| Variant | Description |
|
|
42
|
+
|---------|-------------|
|
|
43
|
+
| `/mvt-design` | Full architecture design |
|
|
44
|
+
| `/mvt-design --plan` | High-level implementation plan only: skip Step 5 (data flow detail) and Step 6 (full ADR fields). ADRs collapse to one-line `decision: <text>`. Step 8 writes `design.md` with abbreviated content and a top-line `Mode: plan` indicator. If the request is actually small (1 file), downgrade to a 5-line summary in chat and do NOT write `design.md`. |
|
|
45
|
+
|
|
46
|
+
- type: shared
|
|
47
|
+
source: sections/activation-load-context.md
|
|
48
|
+
params:
|
|
49
|
+
extended_context:
|
|
50
|
+
- ".ai-agents/workspace/artifacts/{active_change.id}/analysis.md -- Analysis from previous phase"
|
|
51
|
+
|
|
52
|
+
- type: shared
|
|
53
|
+
source: sections/activation-load-config.md
|
|
54
|
+
|
|
55
|
+
- type: shared
|
|
56
|
+
source: sections/output-language-constraint.md
|
|
57
|
+
|
|
58
|
+
- type: shared
|
|
59
|
+
source: sections/activation-preflight.md
|
|
60
|
+
params:
|
|
61
|
+
checks:
|
|
62
|
+
- order: "1"
|
|
63
|
+
field: "session.initialized_at"
|
|
64
|
+
level: "BLOCK"
|
|
65
|
+
message: "Session not initialized. Run `/mvt-init` first."
|
|
66
|
+
- order: "2"
|
|
67
|
+
field: "projects[] in project-context.yaml"
|
|
68
|
+
level: "BLOCK"
|
|
69
|
+
message: "Project not initialized. Run `/mvt-init` first."
|
|
70
|
+
- order: "3"
|
|
71
|
+
field: "project-context.md"
|
|
72
|
+
level: "WARN"
|
|
73
|
+
message: "No project-context.md found. Run `/mvt-analyze-code` for better design context. (allow user to proceed)"
|
|
74
|
+
- order: "4"
|
|
75
|
+
field: "requirements in project-context.md"
|
|
76
|
+
level: "WARN"
|
|
77
|
+
message: "No requirements found. Run `/mvt-analyze` first. (allow user to proceed)"
|
|
78
|
+
|
|
79
|
+
- type: file
|
|
80
|
+
source: ./business.md
|
|
81
|
+
|
|
82
|
+
- type: inline
|
|
83
|
+
content: |
|
|
84
|
+
## Artifact Structure
|
|
85
|
+
Read the document structure template from: `.ai-agents/skills/_templates/design-output.md`
|
|
86
|
+
If a custom version exists at `.ai-agents/skills/_templates/custom/design-output.md`, use the custom version instead.
|
|
87
|
+
The template defines section headings only. Generate content for each section based on design results.
|
|
88
|
+
Write the artifact to: `.ai-agents/workspace/artifacts/{change-id}/design.md`
|
|
89
|
+
|
|
90
|
+
- type: shared
|
|
91
|
+
source: sections/session-update.md
|
|
92
|
+
params:
|
|
93
|
+
current_skill: mvt-design
|
|
94
|
+
|
|
95
|
+
- type: shared
|
|
96
|
+
source: sections/footer-next-steps.md
|
|
97
|
+
params:
|
|
98
|
+
current_skill: mvt-design
|
|
99
|
+
conditional_suggestions:
|
|
100
|
+
conditions:
|
|
101
|
+
- condition: "design complete, change tracking lists >5 files or >1 new module"
|
|
102
|
+
primary: mvt-plan-dev
|
|
103
|
+
primary_desc: "Create a structured implementation plan"
|
|
104
|
+
- condition: "design complete, small scope"
|
|
105
|
+
primary: mvt-implement
|
|
106
|
+
primary_desc: "Implement the designed architecture"
|
|
107
|
+
- condition: "design has proposed ADRs needing stakeholder review"
|
|
108
|
+
primary: mvt-review
|
|
109
|
+
primary_desc: "Review the design decisions"
|
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
## Execution Flow
|
|
2
2
|
|
|
3
|
-
### Step 1:
|
|
4
|
-
-
|
|
5
|
-
|
|
3
|
+
### Step 1: Resolve Input Source
|
|
4
|
+
- Determine the diagnosis source by checking in priority order:
|
|
5
|
+
|
|
6
|
+
| Priority | Source | Condition | What to Load |
|
|
7
|
+
|----------|--------|-----------|--------------|
|
|
8
|
+
| 1 | Review artifact | `review.md` exists in active change artifacts | Critical + Warning findings as fix targets |
|
|
9
|
+
| 2 | Bug detection result | `/mvt-bug-detect` was executed in the current conversation | Root cause, affected files, severity, reproduction status from conversation history |
|
|
10
|
+
| 3 | Direct user input | User provided bug description in conversation | Bug description text |
|
|
11
|
+
|
|
12
|
+
- **1a. Review artifact (mvt-review output)**
|
|
13
|
+
- Read `.ai-agents/workspace/artifacts/{active_change.id}/review.md`
|
|
14
|
+
- Extract Critical + Warning findings as fix targets. For each finding: file, line range, observation, recommendation serve as pre-verified diagnosis.
|
|
15
|
+
- If multiple Critical findings exist, ask user which to address first.
|
|
16
|
+
- Skip Steps 2-4, proceed directly to Step 5.
|
|
17
|
+
|
|
18
|
+
- **1b. Bug detection result (mvt-bug-detect output)**
|
|
19
|
+
- Extract analysis results from the most recent `/mvt-bug-detect` execution in conversation history: Status, Root Cause, Severity, Affected files, Similar issues.
|
|
20
|
+
- If Status is `NotABug` or `Inconclusive` — STOP, report finding, do not proceed to fix.
|
|
21
|
+
- Skip Steps 2-4, proceed directly to Step 5 with extracted context.
|
|
22
|
+
|
|
23
|
+
- **1c. Direct user input (no upstream artifact)**
|
|
24
|
+
- Read bug description from user message.
|
|
25
|
+
- Execute Steps 2-4 for self-contained diagnosis.
|
|
26
|
+
|
|
27
|
+
- **Fallback**: If no source yields content, ask user to describe the bug or run `/mvt-bug-detect` first.
|
|
6
28
|
- **Recommended (read if available, do not block on absence)**:
|
|
7
29
|
- Recent git state: `git diff HEAD`, `git log -n 10 --oneline` -- to surface recent changes that may correlate with the regression.
|
|
8
|
-
- **Fallback**: if none of the above exists, proceed using the bug description alone and note "context-light fix" in the final fix notes.
|
|
9
30
|
|
|
10
|
-
### Step 2: Reproduce & Localize
|
|
31
|
+
### Step 2: Reproduce & Localize (only for source 1c)
|
|
32
|
+
**Skip this step if Step 1 resolved to source 1a (review artifact) or 1b (bug detection).**
|
|
11
33
|
- **What**: confirm the bug is reproducible (or, if not reproducible, mark it explicitly as "report-only") and identify the smallest set of files that contain the suspected fault.
|
|
12
34
|
- **How**:
|
|
13
35
|
1. Extract concrete signals from the bug description: error message text, stack trace frames, file paths, function/class names, input data.
|
|
@@ -22,7 +44,8 @@
|
|
|
22
44
|
| Not reproducible, signals are concrete (stack trace + paths) | Continue with static analysis only, mark "unverified repro" in fix notes |
|
|
23
45
|
| Not reproducible, signals are vague | STOP -- ask user for: minimal repro, exact error, environment, last-known-good version |
|
|
24
46
|
|
|
25
|
-
### Step 3: Generate Hypotheses
|
|
47
|
+
### Step 3: Generate Hypotheses (only for source 1c)
|
|
48
|
+
**Skip this step if Step 1 resolved to source 1a or 1b.**
|
|
26
49
|
- **What**: produce 1-5 candidate root causes, each with a falsifiable check.
|
|
27
50
|
- **How**: derive hypotheses from the dominant input signal using the table below. Combine sources when multiple are available.
|
|
28
51
|
|
|
@@ -35,7 +58,8 @@
|
|
|
35
58
|
|
|
36
59
|
- Each hypothesis must be written as: `<claim> -- evidence: <pointer> -- check: <how to verify>`.
|
|
37
60
|
|
|
38
|
-
### Step 4: Verify Root Cause
|
|
61
|
+
### Step 4: Verify Root Cause (only for source 1c)
|
|
62
|
+
**Skip this step if Step 1 resolved to source 1a or 1b.**
|
|
39
63
|
- **What**: reduce the hypothesis set to one confirmed root cause.
|
|
40
64
|
- **How**:
|
|
41
65
|
1. For each hypothesis, run its check (read code, add tracing, run a focused script). Cheapest check first.
|
|
@@ -52,6 +76,9 @@
|
|
|
52
76
|
### Step 5: Plan the Fix
|
|
53
77
|
- **What**: decide the change scope and minimum-risk patch shape.
|
|
54
78
|
- **How**: classify the fix using the table below. Choose the strategy that matches the smallest viable scope -- escalate only if the smaller scope cannot fully address the root cause.
|
|
79
|
+
- For source 1a (review.md): each Critical/Warning finding maps to a fix; classify individually.
|
|
80
|
+
- For source 1b (bug detection result): use the root cause and affected files from the diagnosis to determine fix class directly.
|
|
81
|
+
- For source 1c: classify based on self-contained diagnosis from Steps 2-4.
|
|
55
82
|
|
|
56
83
|
| Fix class | Indicator | Strategy |
|
|
57
84
|
|-----------|-----------|----------|
|
|
@@ -73,6 +100,7 @@
|
|
|
73
100
|
- **Confirmation prompt format**: present `Root cause: ...`, `Proposed change: <files + summary>`, `Risk: <regression scope>`, then ask `Apply? (y / n / show-diff)`.
|
|
74
101
|
|
|
75
102
|
### Step 7: Apply the Fix
|
|
103
|
+
- For source 1a (review.md): apply fixes per finding; re-run the review's relevant checks (not reproduction) to confirm each fix addresses its finding.
|
|
76
104
|
- Make the targeted code change.
|
|
77
105
|
- If no test covered the regression and the fix class is multi-module or above, add a minimal regression test alongside the fix.
|
|
78
106
|
- Re-run the original repro (if any) to confirm resolution.
|
|
@@ -82,14 +110,16 @@
|
|
|
82
110
|
- **Path**: `.ai-agents/workspace/artifacts/{change-id}/fix-notes.md` if an `active_change` exists; otherwise inline in the conversation only (no artifact -- shortcut operation).
|
|
83
111
|
- **Structure** (each section is a single paragraph or list):
|
|
84
112
|
- `Symptom` -- what the user saw / reported.
|
|
113
|
+
- `Input Source` -- "Review artifact" | "Bug detection result" | "Direct user input".
|
|
85
114
|
- `Reproduction` -- verified | unverified | not-applicable, with steps if verified.
|
|
86
|
-
- `Hypotheses considered` -- bulleted, one line each, marking the confirmed one.
|
|
115
|
+
- `Hypotheses considered` -- bulleted, one line each, marking the confirmed one. (Skip if source 1a or 1b provided a pre-verified root cause.)
|
|
87
116
|
- `Root cause` -- one paragraph.
|
|
88
117
|
- `Patch summary` -- files touched + one-line per file.
|
|
89
118
|
- `Regression risk` -- scope of behavior potentially affected, plus what tests guard it.
|
|
90
119
|
- `Follow-ups` -- TODOs, deferred refactors, related issues.
|
|
91
120
|
|
|
92
|
-
### Step 9:
|
|
121
|
+
### Step 9: State Update
|
|
122
|
+
Apply the State Update rules defined in the **State Update** section below.
|
|
93
123
|
|
|
94
124
|
## Edge Cases & Errors
|
|
95
125
|
|
|
@@ -1,72 +1,88 @@
|
|
|
1
|
-
name: mvt-fix
|
|
2
|
-
output: .claude/skills/mvt-fix/SKILL.md
|
|
3
|
-
|
|
4
|
-
frontmatter:
|
|
5
|
-
name: mvt-fix
|
|
6
|
-
description: "Diagnose and fix bugs or issues in the codebase. This skill should be used when user reports a bug, encounters an error, or wants to diagnose and resolve an issue."
|
|
7
|
-
|
|
8
|
-
sections:
|
|
9
|
-
- type: inline
|
|
10
|
-
content: |
|
|
11
|
-
# MVT Fix
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
|
|
15
|
-
Diagnose bugs and issues, perform root cause analysis, and apply targeted fixes. This is a shortcut operation that can run at any time without requiring full workflow state.
|
|
16
|
-
|
|
17
|
-
- type: shared
|
|
18
|
-
source: sections/role-header.md
|
|
19
|
-
params:
|
|
20
|
-
role: Developer
|
|
21
|
-
role_desc: "an Implementation Specialist"
|
|
22
|
-
decision_rules:
|
|
23
|
-
- rule: "Bug description provided -> Analyze the issue, propose fix, apply after user confirms"
|
|
24
|
-
- rule: "Error message provided -> Trace to root cause, fix the source not the symptom"
|
|
25
|
-
- rule: "Multiple possible causes -> List hypotheses with evidence, verify each"
|
|
26
|
-
- rule: "Fix requires architecture change -> Stop and suggest `/mvt-design`"
|
|
27
|
-
- rule: "Fix affects other modules -> Document impact scope before applying"
|
|
28
|
-
boundaries:
|
|
29
|
-
- scope: "re-analyze requirements"
|
|
30
|
-
skill: "/mvt-analyze"
|
|
31
|
-
- scope: "evaluate architecture"
|
|
32
|
-
skill: "/mvt-design"
|
|
33
|
-
- scope: "review own fix"
|
|
34
|
-
skill: "/mvt-review"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- type:
|
|
67
|
-
source:
|
|
68
|
-
|
|
69
|
-
- type: shared
|
|
70
|
-
source: sections/
|
|
71
|
-
params:
|
|
72
|
-
current_skill: mvt-fix
|
|
1
|
+
name: mvt-fix
|
|
2
|
+
output: .claude/skills/mvt-fix/SKILL.md
|
|
3
|
+
|
|
4
|
+
frontmatter:
|
|
5
|
+
name: mvt-fix
|
|
6
|
+
description: "Diagnose and fix bugs or issues in the codebase. This skill should be used when user reports a bug, encounters an error, or wants to diagnose and resolve an issue."
|
|
7
|
+
|
|
8
|
+
sections:
|
|
9
|
+
- type: inline
|
|
10
|
+
content: |
|
|
11
|
+
# MVT Fix
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Diagnose bugs and issues, perform root cause analysis, and apply targeted fixes. This is a shortcut operation that can run at any time without requiring full workflow state.
|
|
16
|
+
|
|
17
|
+
- type: shared
|
|
18
|
+
source: sections/role-header.md
|
|
19
|
+
params:
|
|
20
|
+
role: Developer
|
|
21
|
+
role_desc: "an Implementation Specialist"
|
|
22
|
+
decision_rules:
|
|
23
|
+
- rule: "Bug description provided -> Analyze the issue, propose fix, apply after user confirms"
|
|
24
|
+
- rule: "Error message provided -> Trace to root cause, fix the source not the symptom"
|
|
25
|
+
- rule: "Multiple possible causes -> List hypotheses with evidence, verify each"
|
|
26
|
+
- rule: "Fix requires architecture change -> Stop and suggest `/mvt-design`"
|
|
27
|
+
- rule: "Fix affects other modules -> Document impact scope before applying"
|
|
28
|
+
boundaries:
|
|
29
|
+
- scope: "re-analyze requirements"
|
|
30
|
+
skill: "/mvt-analyze"
|
|
31
|
+
- scope: "evaluate architecture"
|
|
32
|
+
skill: "/mvt-design"
|
|
33
|
+
- scope: "review own fix"
|
|
34
|
+
skill: "/mvt-review"
|
|
35
|
+
- scope: "diagnose bugs without fixing"
|
|
36
|
+
skill: "/mvt-bug-detect"
|
|
37
|
+
|
|
38
|
+
- type: shared
|
|
39
|
+
source: sections/activation-load-context.md
|
|
40
|
+
params:
|
|
41
|
+
extended_context:
|
|
42
|
+
- "Related source files only (load based on bug description)"
|
|
43
|
+
|
|
44
|
+
- type: shared
|
|
45
|
+
source: sections/activation-load-config.md
|
|
46
|
+
|
|
47
|
+
- type: shared
|
|
48
|
+
source: sections/output-language-constraint.md
|
|
49
|
+
|
|
50
|
+
- type: shared
|
|
51
|
+
source: sections/activation-preflight.md
|
|
52
|
+
params:
|
|
53
|
+
checks:
|
|
54
|
+
- order: "1"
|
|
55
|
+
field: "session.initialized_at"
|
|
56
|
+
level: "WARN"
|
|
57
|
+
message: 'Session not initialized. Run `/mvt-init` first.'
|
|
58
|
+
|
|
59
|
+
- type: inline
|
|
60
|
+
content: |
|
|
61
|
+
## Operation Mode: Shortcut
|
|
62
|
+
|
|
63
|
+
This skill operates as a shortcut — it can execute at any time without checking workflow prerequisites.
|
|
64
|
+
- Do NOT update `progress` (this is a shortcut operation, not a workflow phase).
|
|
65
|
+
|
|
66
|
+
- type: file
|
|
67
|
+
source: ./business.md
|
|
68
|
+
|
|
69
|
+
- type: shared
|
|
70
|
+
source: sections/session-update.md
|
|
71
|
+
params:
|
|
72
|
+
current_skill: mvt-fix
|
|
73
|
+
|
|
74
|
+
- type: shared
|
|
75
|
+
source: sections/footer-next-steps.md
|
|
76
|
+
params:
|
|
77
|
+
current_skill: mvt-fix
|
|
78
|
+
conditional_suggestions:
|
|
79
|
+
conditions:
|
|
80
|
+
- condition: "fix applied, root cause had wide impact"
|
|
81
|
+
primary: "mvt-review"
|
|
82
|
+
primary_desc: "Review the fix for side effects"
|
|
83
|
+
- condition: "fix applied, needs test coverage"
|
|
84
|
+
primary: "mvt-test"
|
|
85
|
+
primary_desc: "Add regression tests"
|
|
86
|
+
- condition: "bug too complex for targeted fix"
|
|
87
|
+
primary: "mvt-design"
|
|
88
|
+
primary_desc: "Design architectural solution"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|-----------|---------------|
|
|
14
14
|
| `session.yaml` missing or `initialized_at` empty | `/mvt-init` -- Initialize the project |
|
|
15
15
|
| Initialized AND `project-context.md` does not exist | `/mvt-analyze-code` -- Analyze existing code |
|
|
16
|
-
| No requirements (no `analysis.md` for active change AND no completed `/mvt-analyze` in `
|
|
16
|
+
| No requirements (no `analysis.md` for active change AND no completed `/mvt-analyze` in `history`) | `/mvt-analyze` -- Analyze requirements |
|
|
17
17
|
| No requirements, but user describes a simple change directly | `/mvt-quick-dev` -- Implement a simple change quickly |
|
|
18
18
|
| Requirements present, no `design.md` | `/mvt-design` -- Design architecture |
|
|
19
19
|
| `design.md` exists, change is large (Change Tracking lists > 5 files OR ADR includes breaking change OR > 1 new module) | `/mvt-plan-dev` -- Decompose into tracked plan |
|
|
@@ -60,15 +60,13 @@ Color-code based on current progress: green (done), yellow (current/recommended)
|
|
|
60
60
|
| "Compare `/mvt-X` and `/mvt-Y`" | Pull descriptions from registry; if both are workflow skills, mention their relative position in the diagram |
|
|
61
61
|
| Asks about something not in registry | Reply: "No skill matches that. Available skills: see catalog above." Do not invent skills |
|
|
62
62
|
|
|
63
|
-
### Step 6: (session update handled by shared section)
|
|
64
|
-
|
|
65
63
|
## Edge Cases & Errors
|
|
66
64
|
|
|
67
65
|
| Case | Handling |
|
|
68
66
|
|------|----------|
|
|
69
67
|
| `registry.yaml` missing | STOP at Step 1; recommend `mvtt install`; show no catalog |
|
|
70
68
|
| `session.yaml` missing | Render catalog (Step 3) and diagram (Step 4) without the "current position" highlight; Step 2 recommends `/mvt-init` |
|
|
71
|
-
| `
|
|
69
|
+
| `changes[]` references a `plan_path` that no longer exists | Ignore for help purposes; do not warn -- `/mvt-status` is the right place for that |
|
|
72
70
|
| User invokes `/mvt-help` while inside an active change with Critical review findings | Step 2's recommendation is `/mvt-fix`; surface this prominently above the catalog |
|
|
73
71
|
| User asks about a custom skill (registry entry with `custom: true`) | Treat identically to built-ins; the only difference is showing `custom: true` in the metadata view |
|
|
74
72
|
| Workflow diagram cannot be rendered (mermaid unsupported in environment) | Fall back to a textual flow: `init -> analyze-code -> analyze -> design -> [plan-dev] -> implement -> review -> test` |
|
|
@@ -1,67 +1,75 @@
|
|
|
1
|
-
name: mvt-help
|
|
2
|
-
output: .claude/skills/mvt-help/SKILL.md
|
|
3
|
-
|
|
4
|
-
frontmatter:
|
|
5
|
-
name: mvt-help
|
|
6
|
-
description: "Show available skills, current project status, and workflow guidance. This skill should be used when user is new to MVTT, wants to discover available commands, or needs guidance on what to do next."
|
|
7
|
-
|
|
8
|
-
sections:
|
|
9
|
-
- type: inline
|
|
10
|
-
content: |
|
|
11
|
-
# MVT Help
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
|
|
15
|
-
Navigate the MVTT framework by showing available skills, current project status, and contextual guidance on what to do next. Entry point for new users and quick reference for experienced ones.
|
|
16
|
-
|
|
17
|
-
## Role
|
|
18
|
-
|
|
19
|
-
You are the **Conductor** -- a Workflow Coordinator.
|
|
20
|
-
|
|
21
|
-
- type: shared
|
|
22
|
-
source: sections/activation-load-context.md
|
|
23
|
-
|
|
24
|
-
- type: shared
|
|
25
|
-
source: sections/activation-load-config.md
|
|
26
|
-
|
|
27
|
-
- type:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- type:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
###
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
name: mvt-help
|
|
2
|
+
output: .claude/skills/mvt-help/SKILL.md
|
|
3
|
+
|
|
4
|
+
frontmatter:
|
|
5
|
+
name: mvt-help
|
|
6
|
+
description: "Show available skills, current project status, and workflow guidance. This skill should be used when user is new to MVTT, wants to discover available commands, or needs guidance on what to do next."
|
|
7
|
+
|
|
8
|
+
sections:
|
|
9
|
+
- type: inline
|
|
10
|
+
content: |
|
|
11
|
+
# MVT Help
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Navigate the MVTT framework by showing available skills, current project status, and contextual guidance on what to do next. Entry point for new users and quick reference for experienced ones.
|
|
16
|
+
|
|
17
|
+
## Role
|
|
18
|
+
|
|
19
|
+
You are the **Conductor** -- a Workflow Coordinator.
|
|
20
|
+
|
|
21
|
+
- type: shared
|
|
22
|
+
source: sections/activation-load-context.md
|
|
23
|
+
|
|
24
|
+
- type: shared
|
|
25
|
+
source: sections/activation-load-config.md
|
|
26
|
+
|
|
27
|
+
- type: inline
|
|
28
|
+
content: |
|
|
29
|
+
### Step 4: Pre-flight Checks
|
|
30
|
+
- No blocking checks required.
|
|
31
|
+
|
|
32
|
+
- type: file
|
|
33
|
+
source: ./business.md
|
|
34
|
+
|
|
35
|
+
- type: inline
|
|
36
|
+
content: |
|
|
37
|
+
## Output Format
|
|
38
|
+
|
|
39
|
+
Output is generated inline (no external template). Structure:
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## MVT Help
|
|
43
|
+
|
|
44
|
+
### Current Status
|
|
45
|
+
- **Project**: {name} ({initialized/not initialized})
|
|
46
|
+
- **Last Skill**: {last command from history}
|
|
47
|
+
- **Recommended Next**: `/mvt-{next}` -- {description}
|
|
48
|
+
|
|
49
|
+
### Workflow
|
|
50
|
+
{Mermaid flowchart with current position highlighted}
|
|
51
|
+
|
|
52
|
+
### Available Skills
|
|
53
|
+
{Skills tables grouped by category, as defined in Step 3}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- type: shared
|
|
57
|
+
source: sections/session-update.md
|
|
58
|
+
params:
|
|
59
|
+
read_only: true
|
|
60
|
+
|
|
61
|
+
- type: shared
|
|
62
|
+
source: sections/footer-next-steps.md
|
|
63
|
+
params:
|
|
64
|
+
current_skill: mvt-help
|
|
65
|
+
conditional_suggestions:
|
|
66
|
+
conditions:
|
|
67
|
+
- condition: "project not initialized"
|
|
68
|
+
primary: mvt-init
|
|
69
|
+
primary_desc: "Initialize the project"
|
|
70
|
+
- condition: "project initialized, no active change"
|
|
71
|
+
primary: mvt-analyze
|
|
72
|
+
primary_desc: "Start analyzing requirements for a new feature"
|
|
73
|
+
- condition: "active change in progress"
|
|
74
|
+
primary: mvt-resume
|
|
75
|
+
primary_desc: "Resume work on the active change"
|