@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.
- package/LICENSE +21 -21
- package/README.md +194 -209
- package/dist/build/assembler.d.ts.map +1 -1
- package/dist/build/assembler.js +2 -0
- package/dist/build/assembler.js.map +1 -1
- package/dist/build/plan-validator.d.ts +26 -0
- package/dist/build/plan-validator.d.ts.map +1 -0
- package/dist/build/plan-validator.js +225 -0
- package/dist/build/plan-validator.js.map +1 -0
- package/dist/build/section-loader.d.ts.map +1 -1
- package/dist/build/section-loader.js +45 -9
- package/dist/build/section-loader.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -11
- package/dist/cli.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +0 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/install.d.ts +1 -4
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +18 -14
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/migrate.d.ts +16 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +118 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +35 -2
- package/dist/commands/update.js.map +1 -1
- package/dist/fs/core-manifest.d.ts +17 -0
- package/dist/fs/core-manifest.d.ts.map +1 -0
- package/dist/fs/core-manifest.js +76 -0
- package/dist/fs/core-manifest.js.map +1 -0
- package/dist/fs/install-manifest.d.ts +1 -2
- package/dist/fs/install-manifest.d.ts.map +1 -1
- package/dist/fs/install-manifest.js +1 -2
- package/dist/fs/install-manifest.js.map +1 -1
- package/dist/fs/materialize.d.ts.map +1 -1
- package/dist/fs/materialize.js +23 -3
- package/dist/fs/materialize.js.map +1 -1
- package/dist/types/core-manifest.d.ts +12 -0
- package/dist/types/core-manifest.d.ts.map +1 -0
- package/dist/types/core-manifest.js +2 -0
- package/dist/types/core-manifest.js.map +1 -0
- package/dist/types/registry.d.ts +13 -5
- package/dist/types/registry.d.ts.map +1 -1
- package/install-manifest.yaml +31 -27
- package/package.json +57 -57
- package/registry.yaml +198 -209
- package/sources/defaults/config.yaml +27 -30
- package/sources/defaults/project-context.yaml +15 -26
- package/sources/defaults/session.yaml +31 -23
- package/sources/knowledge/core/manifest.yaml +4 -45
- package/sources/sections/activation-load-config.md +11 -5
- package/sources/sections/activation-load-context.md +26 -11
- package/sources/sections/activation-preflight.md +14 -4
- package/sources/sections/footer-next-steps.md +35 -9
- package/sources/sections/output-language-constraint.md +11 -0
- package/sources/sections/role-header.md +13 -13
- package/sources/sections/session-update.md +47 -0
- package/sources/skills/mvt-analyze/business.md +69 -33
- package/sources/skills/mvt-analyze/manifest.yaml +90 -89
- package/sources/skills/mvt-analyze-code/business.md +82 -35
- package/sources/skills/mvt-analyze-code/manifest.yaml +96 -88
- package/sources/skills/mvt-bug-detect/business.md +101 -0
- package/sources/skills/mvt-bug-detect/manifest.yaml +84 -0
- package/sources/skills/mvt-check-context/business.md +89 -42
- package/sources/skills/mvt-check-context/manifest.yaml +63 -74
- package/sources/skills/mvt-cleanup/business.md +80 -31
- package/sources/skills/mvt-cleanup/manifest.yaml +85 -93
- package/sources/skills/mvt-config/business.md +94 -26
- package/sources/skills/mvt-config/manifest.yaml +96 -108
- package/sources/skills/mvt-create-skill/business.md +231 -111
- package/sources/skills/mvt-create-skill/manifest.yaml +91 -79
- package/sources/skills/mvt-design/business.md +116 -34
- package/sources/skills/mvt-design/manifest.yaml +96 -105
- package/sources/skills/mvt-fix/business.md +132 -28
- package/sources/skills/mvt-fix/manifest.yaml +85 -86
- package/sources/skills/mvt-help/business.md +74 -70
- package/sources/skills/mvt-help/manifest.yaml +67 -61
- package/sources/skills/mvt-implement/business.md +91 -32
- package/sources/skills/mvt-implement/manifest.yaml +80 -96
- package/sources/skills/mvt-init/business.md +164 -49
- package/sources/skills/mvt-init/manifest.yaml +101 -93
- package/sources/skills/mvt-manage-context/business.md +175 -0
- package/sources/skills/mvt-manage-context/manifest.yaml +123 -0
- package/sources/skills/mvt-plan-dev/business.md +75 -0
- package/sources/skills/mvt-plan-dev/manifest.yaml +91 -0
- package/sources/skills/mvt-quick-dev/business.md +99 -0
- package/sources/skills/mvt-quick-dev/manifest.yaml +69 -0
- package/sources/skills/mvt-refactor/business.md +104 -33
- package/sources/skills/mvt-refactor/manifest.yaml +86 -101
- package/sources/skills/mvt-resume/business.md +137 -0
- package/sources/skills/mvt-resume/manifest.yaml +71 -0
- package/sources/skills/mvt-review/business.md +112 -49
- package/sources/skills/mvt-review/manifest.yaml +87 -106
- package/sources/skills/mvt-status/business.md +71 -24
- package/sources/skills/mvt-status/manifest.yaml +66 -74
- package/sources/skills/mvt-sync-context/business.md +150 -25
- package/sources/skills/mvt-sync-context/manifest.yaml +96 -84
- package/sources/skills/mvt-template/business.md +96 -49
- package/sources/skills/mvt-template/manifest.yaml +63 -71
- package/sources/skills/mvt-test/business.md +104 -36
- package/sources/skills/mvt-test/manifest.yaml +102 -111
- package/sources/skills/mvt-update-plan/business.md +72 -0
- package/sources/skills/mvt-update-plan/manifest.yaml +132 -0
- package/sources/templates/analyze-output/body.md +15 -38
- package/sources/templates/analyze-output/manifest.yaml +11 -11
- package/sources/templates/design-output/body.md +17 -50
- package/sources/templates/design-output/manifest.yaml +11 -11
- package/sources/templates/implement-output/body.md +11 -32
- package/sources/templates/implement-output/manifest.yaml +11 -11
- package/sources/templates/project-context/body.md +13 -0
- package/sources/templates/project-context/manifest.yaml +12 -0
- package/sources/templates/review-output/body.md +11 -45
- package/sources/templates/review-output/manifest.yaml +11 -11
- package/sources/templates/test-output/body.md +7 -31
- package/sources/templates/test-output/manifest.yaml +11 -11
- 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
- package/sources/knowledge/core/review-principles.md +0 -51
- package/sources/knowledge/patterns/clean-architecture/manifest.yaml +0 -66
- package/sources/knowledge/patterns/clean-architecture/review-checklist.md +0 -230
- package/sources/knowledge/patterns/ddd/manifest.yaml +0 -83
- package/sources/knowledge/patterns/ddd/review-checklist.md +0 -226
- package/sources/knowledge/patterns/ddd/tactical-patterns.md +0 -12
- package/sources/knowledge/patterns/frontend-react/manifest.yaml +0 -44
- package/sources/knowledge/patterns/frontend-react/review-checklist.md +0 -78
- package/sources/knowledge/patterns/manifest.yaml +0 -113
- package/sources/skills/mvt-add-context/business.md +0 -47
- package/sources/skills/mvt-add-context/manifest.yaml +0 -83
- package/sources/templates/analyze-code-output/body.md +0 -44
- package/sources/templates/analyze-code-output/manifest.yaml +0 -11
- package/sources/templates/cleanup-output/body.md +0 -9
- package/sources/templates/cleanup-output/manifest.yaml +0 -11
- package/sources/templates/config-output/body.md +0 -11
- package/sources/templates/config-output/manifest.yaml +0 -11
- package/sources/templates/context-check-output/body.md +0 -32
- package/sources/templates/context-check-output/manifest.yaml +0 -11
- package/sources/templates/fix-output/body.md +0 -30
- package/sources/templates/fix-output/manifest.yaml +0 -11
- package/sources/templates/init-output/body.md +0 -34
- package/sources/templates/init-output/manifest.yaml +0 -11
- package/sources/templates/refactor-output/body.md +0 -32
- package/sources/templates/refactor-output/manifest.yaml +0 -11
- package/sources/templates/status-output/body.md +0 -36
- package/sources/templates/status-output/manifest.yaml +0 -11
- package/sources/templates/sync-context-output/body.md +0 -16
- package/sources/templates/sync-context-output/manifest.yaml +0 -11
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# React Code Review Checklist
|
|
2
|
-
|
|
3
|
-
## Component Structure
|
|
4
|
-
|
|
5
|
-
- [ ] Component has single responsibility
|
|
6
|
-
- [ ] Component is properly typed (TypeScript)
|
|
7
|
-
- [ ] Props interface is defined and documented
|
|
8
|
-
- [ ] Default values provided where appropriate
|
|
9
|
-
- [ ] Component handles loading states
|
|
10
|
-
- [ ] Component handles error states
|
|
11
|
-
|
|
12
|
-
## React Best Practices
|
|
13
|
-
|
|
14
|
-
- [ ] Keys are used correctly in lists (not index)
|
|
15
|
-
- [ ] useEffect dependencies are complete
|
|
16
|
-
- [ ] Cleanup functions provided in effects
|
|
17
|
-
- [ ] State updates are immutable
|
|
18
|
-
- [ ] useCallback/useMemo used appropriately (not prematurely)
|
|
19
|
-
- [ ] No direct DOM manipulation
|
|
20
|
-
|
|
21
|
-
## Performance
|
|
22
|
-
|
|
23
|
-
- [ ] No unnecessary re-renders
|
|
24
|
-
- [ ] Large lists are virtualized if needed
|
|
25
|
-
- [ ] Images are optimized
|
|
26
|
-
- [ ] Code splitting applied for large features
|
|
27
|
-
- [ ] Lazy loading used where appropriate
|
|
28
|
-
|
|
29
|
-
## State Management
|
|
30
|
-
|
|
31
|
-
- [ ] State is as local as possible
|
|
32
|
-
- [ ] Derived state is computed, not stored
|
|
33
|
-
- [ ] Context is not overused
|
|
34
|
-
- [ ] Server state uses proper solution (React Query/SWR)
|
|
35
|
-
|
|
36
|
-
## Hooks
|
|
37
|
-
|
|
38
|
-
- [ ] Custom hooks follow naming convention (use*)
|
|
39
|
-
- [ ] Hooks are at top level of component
|
|
40
|
-
- [ ] Custom hooks return stable references
|
|
41
|
-
- [ ] Hook dependencies are correct
|
|
42
|
-
|
|
43
|
-
## Accessibility
|
|
44
|
-
|
|
45
|
-
- [ ] Semantic HTML elements used
|
|
46
|
-
- [ ] ARIA attributes where needed
|
|
47
|
-
- [ ] Focus management considered
|
|
48
|
-
- [ ] Keyboard navigation works
|
|
49
|
-
- [ ] Screen reader tested
|
|
50
|
-
|
|
51
|
-
## Error Handling
|
|
52
|
-
|
|
53
|
-
- [ ] Error boundaries used appropriately
|
|
54
|
-
- [ ] API errors are handled
|
|
55
|
-
- [ ] User sees meaningful error messages
|
|
56
|
-
- [ ] Errors are logged appropriately
|
|
57
|
-
|
|
58
|
-
## Code Quality
|
|
59
|
-
|
|
60
|
-
- [ ] No console.log in production code
|
|
61
|
-
- [ ] No commented out code
|
|
62
|
-
- [ ] Consistent formatting
|
|
63
|
-
- [ ] Meaningful variable names
|
|
64
|
-
- [ ] No magic numbers/strings
|
|
65
|
-
|
|
66
|
-
## Testing
|
|
67
|
-
|
|
68
|
-
- [ ] Critical paths are tested
|
|
69
|
-
- [ ] User interactions tested
|
|
70
|
-
- [ ] Edge cases covered
|
|
71
|
-
- [ ] Accessibility tested
|
|
72
|
-
|
|
73
|
-
## Security
|
|
74
|
-
|
|
75
|
-
- [ ] No XSS vulnerabilities (dangerouslySetInnerHTML avoided)
|
|
76
|
-
- [ ] User input is sanitized
|
|
77
|
-
- [ ] Sensitive data not in client bundle
|
|
78
|
-
- [ ] Environment variables used correctly
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
patterns:
|
|
2
|
-
id: patterns
|
|
3
|
-
name: Architecture Patterns
|
|
4
|
-
version: "1.0"
|
|
5
|
-
description: Collection of architecture patterns for software design
|
|
6
|
-
|
|
7
|
-
loading:
|
|
8
|
-
priority: 2
|
|
9
|
-
auto_load: false
|
|
10
|
-
load_rule: "Load patterns/{active}/* based on config.yaml pattern.active"
|
|
11
|
-
|
|
12
|
-
available:
|
|
13
|
-
- id: ddd
|
|
14
|
-
name: Domain-Driven Design
|
|
15
|
-
path: ddd/
|
|
16
|
-
manifest: ddd/manifest.yaml
|
|
17
|
-
description: Tactical and strategic patterns for complex domain modeling
|
|
18
|
-
suitable_for:
|
|
19
|
-
- complex-domain
|
|
20
|
-
- enterprise-application
|
|
21
|
-
- bounded-contexts
|
|
22
|
-
files:
|
|
23
|
-
- tactical-patterns.md
|
|
24
|
-
- review-checklist.md
|
|
25
|
-
|
|
26
|
-
- id: clean-architecture
|
|
27
|
-
name: Clean Architecture
|
|
28
|
-
path: clean-architecture/
|
|
29
|
-
manifest: clean-architecture/manifest.yaml
|
|
30
|
-
description: Dependency inversion and layer separation patterns
|
|
31
|
-
suitable_for:
|
|
32
|
-
- enterprise-application
|
|
33
|
-
- long-term-project
|
|
34
|
-
- multi-interface-system
|
|
35
|
-
files:
|
|
36
|
-
- review-checklist.md
|
|
37
|
-
|
|
38
|
-
- id: frontend-react
|
|
39
|
-
name: Frontend (React)
|
|
40
|
-
path: frontend-react/
|
|
41
|
-
manifest: frontend-react/manifest.yaml
|
|
42
|
-
description: Modern React frontend application patterns
|
|
43
|
-
suitable_for:
|
|
44
|
-
- web-app
|
|
45
|
-
- spa
|
|
46
|
-
- pwa
|
|
47
|
-
- next.js
|
|
48
|
-
frameworks:
|
|
49
|
-
- react
|
|
50
|
-
- next.js
|
|
51
|
-
- remix
|
|
52
|
-
files:
|
|
53
|
-
- overview.md
|
|
54
|
-
- component-patterns.md
|
|
55
|
-
- review-checklist.md
|
|
56
|
-
|
|
57
|
-
# Custom patterns will be added here during #init analyze
|
|
58
|
-
# Example:
|
|
59
|
-
# custom:
|
|
60
|
-
# - id: my-custom-pattern
|
|
61
|
-
# name: My Custom Pattern
|
|
62
|
-
# path: my-custom-pattern/
|
|
63
|
-
# generated: true
|
|
64
|
-
# generated_at: "2026-03-08T12:00:00Z"
|
|
65
|
-
|
|
66
|
-
custom: []
|
|
67
|
-
|
|
68
|
-
discovery:
|
|
69
|
-
description: |
|
|
70
|
-
To discover available patterns:
|
|
71
|
-
1. List subdirectories of knowledge/patterns/
|
|
72
|
-
2. Each subdirectory is a pattern pack
|
|
73
|
-
3. Read {pattern}/manifest.yaml for pattern details
|
|
74
|
-
|
|
75
|
-
to_add_pattern: |
|
|
76
|
-
1. Create knowledge/patterns/{pattern}/ directory
|
|
77
|
-
2. Add manifest.yaml with pattern metadata
|
|
78
|
-
3. Add pattern documentation files
|
|
79
|
-
4. Register in config.yaml under pattern.available
|
|
80
|
-
5. Add to this file's available or custom list
|
|
81
|
-
|
|
82
|
-
pattern_selection_guide:
|
|
83
|
-
description: |
|
|
84
|
-
During #init, analyze project and suggest appropriate pattern:
|
|
85
|
-
|
|
86
|
-
decision_tree: |
|
|
87
|
-
1. Is this a frontend web application?
|
|
88
|
-
→ If React/Next.js/Remix: suggest frontend-react
|
|
89
|
-
→ If Vue/Svelte: suggest generic (or add more patterns)
|
|
90
|
-
|
|
91
|
-
2. Is this a CLI tool, library, or simple service?
|
|
92
|
-
→ Suggest generic
|
|
93
|
-
|
|
94
|
-
3. Does the domain have complex business rules?
|
|
95
|
-
→ Suggest DDD
|
|
96
|
-
|
|
97
|
-
4. Is this a long-term enterprise application?
|
|
98
|
-
→ Suggest Clean Architecture or DDD
|
|
99
|
-
|
|
100
|
-
5. Uncertain or unique architecture?
|
|
101
|
-
→ Offer "analyze" option to create custom pattern
|
|
102
|
-
|
|
103
|
-
user_options:
|
|
104
|
-
- id: yes
|
|
105
|
-
description: Accept recommended pattern
|
|
106
|
-
- id: "{pattern_id}"
|
|
107
|
-
description: Select specific pattern by ID
|
|
108
|
-
- id: analyze
|
|
109
|
-
description: Analyze project and create custom pattern
|
|
110
|
-
- id: generic
|
|
111
|
-
description: Use generic pattern
|
|
112
|
-
- id: none
|
|
113
|
-
description: Proceed without architecture pattern
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
## Execution Flow
|
|
2
|
-
|
|
3
|
-
### Step 1: Assess Current State
|
|
4
|
-
- Read project-context.yaml and evaluate completeness:
|
|
5
|
-
- Project name empty -> Mark as "not initialized"
|
|
6
|
-
- Requirements empty -> Mark as "no requirements"
|
|
7
|
-
- Architecture empty -> Mark as "no architecture"
|
|
8
|
-
- Read config.yaml:
|
|
9
|
-
- Check `pattern.active`
|
|
10
|
-
- Calculate and display context completeness percentage
|
|
11
|
-
|
|
12
|
-
### Step 2: Guided Information Collection
|
|
13
|
-
Based on what is missing, guide the user through relevant sections:
|
|
14
|
-
|
|
15
|
-
**If not initialized** (project basics):
|
|
16
|
-
- Project name, type, description
|
|
17
|
-
- Tech stack (language, framework, build tool, test framework)
|
|
18
|
-
- Suggest running `/mvt-init` for automatic detection
|
|
19
|
-
|
|
20
|
-
**If no requirements** (requirements & background):
|
|
21
|
-
- Main features and goals
|
|
22
|
-
- User roles and use cases
|
|
23
|
-
- Known constraints and limitations
|
|
24
|
-
|
|
25
|
-
**If no architecture** (architecture info):
|
|
26
|
-
- Architecture pattern (DDD / Clean Architecture / etc.)
|
|
27
|
-
- Module structure
|
|
28
|
-
- Key technical decisions
|
|
29
|
-
|
|
30
|
-
**Supplementary information** (always available):
|
|
31
|
-
- Project-specific coding standards
|
|
32
|
-
- Team conventions
|
|
33
|
-
- Third-party integration details
|
|
34
|
-
|
|
35
|
-
### Step 3: Write Context
|
|
36
|
-
Based on information collected:
|
|
37
|
-
1. Update `.ai-agents/workspace/project-context.yaml` (matching fields)
|
|
38
|
-
2. Update `.ai-agents/workspace/session.yaml` (if initialization changed)
|
|
39
|
-
3. If coding standards provided -> Write to `.ai-agents/knowledge/principle/`
|
|
40
|
-
4. If project knowledge provided -> Write to `.ai-agents/knowledge/project/`
|
|
41
|
-
5. Update `config.yaml` `pattern.active` if user confirmed architecture pattern
|
|
42
|
-
|
|
43
|
-
### Step 4: Verification Report
|
|
44
|
-
- Show updated context summary
|
|
45
|
-
- Display completeness change (before vs after)
|
|
46
|
-
- If context is large -> Suggest running `/mvt-check-context`
|
|
47
|
-
- Suggest next steps
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
name: mvt-add-context
|
|
2
|
-
output: .claude/skills/mvt-add-context/SKILL.md
|
|
3
|
-
|
|
4
|
-
frontmatter:
|
|
5
|
-
name: mvt-add-context
|
|
6
|
-
description: "Interactively add or update project context information to the MVTT workspace. Use when user wants to manually add project details, requirements, architecture info, coding standards, or team conventions."
|
|
7
|
-
|
|
8
|
-
sections:
|
|
9
|
-
- type: inline
|
|
10
|
-
content: |
|
|
11
|
-
# MVT Context Add
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
|
|
15
|
-
Guide users through adding or updating project context information in the MVTT workspace. This is a user-driven, interactive process complementary to `/mvt-sync-context` (which is code-driven and automatic).
|
|
16
|
-
|
|
17
|
-
- type: shared
|
|
18
|
-
source: sections/role-header.md
|
|
19
|
-
params:
|
|
20
|
-
role: Conductor
|
|
21
|
-
role_desc: "a Workflow Coordinator"
|
|
22
|
-
decision_rules:
|
|
23
|
-
- rule: "Project not initialized -> Suggest `/mvt-init` first, but allow manual context entry"
|
|
24
|
-
- rule: "Missing project basics -> Guide through project info collection"
|
|
25
|
-
- rule: "Missing requirements -> Guide through requirements entry"
|
|
26
|
-
- rule: "Missing architecture -> Guide through architecture info"
|
|
27
|
-
- rule: "User provides coding standards -> Write to knowledge/principle/"
|
|
28
|
-
- rule: "User provides project knowledge -> Write to knowledge/project/"
|
|
29
|
-
boundaries:
|
|
30
|
-
- scope: "analyze code automatically"
|
|
31
|
-
skill: "/mvt-sync-context or /mvt-analyze-code"
|
|
32
|
-
- scope: "make architecture decisions"
|
|
33
|
-
skill: "/mvt-design"
|
|
34
|
-
- scope: "write implementation code"
|
|
35
|
-
skill: "/mvt-implement"
|
|
36
|
-
|
|
37
|
-
- type: shared
|
|
38
|
-
source: sections/activation-load-context.md
|
|
39
|
-
|
|
40
|
-
- type: shared
|
|
41
|
-
source: sections/activation-load-config.md
|
|
42
|
-
|
|
43
|
-
- type: inline
|
|
44
|
-
content: |
|
|
45
|
-
### Step 3: Pre-flight Checks
|
|
46
|
-
- No blocking checks required.
|
|
47
|
-
|
|
48
|
-
### Step 4: Execute
|
|
49
|
-
Proceed to Execution Flow below.
|
|
50
|
-
|
|
51
|
-
- type: file
|
|
52
|
-
source: ./business.md
|
|
53
|
-
|
|
54
|
-
- type: inline
|
|
55
|
-
content: |
|
|
56
|
-
## Output Format
|
|
57
|
-
|
|
58
|
-
No external template -- output is inline:
|
|
59
|
-
|
|
60
|
-
```markdown
|
|
61
|
-
## Context Updated
|
|
62
|
-
|
|
63
|
-
### Completeness
|
|
64
|
-
- **Before**: {pct_before}%
|
|
65
|
-
- **After**: {pct_after}%
|
|
66
|
-
|
|
67
|
-
### Changes Made
|
|
68
|
-
| Section | Status | Details |
|
|
69
|
-
|---------|--------|---------|
|
|
70
|
-
| Project Info | {Updated/Unchanged} | {summary} |
|
|
71
|
-
| Requirements | {Updated/Unchanged} | {summary} |
|
|
72
|
-
| Architecture | {Updated/Unchanged} | {summary} |
|
|
73
|
-
| Knowledge | {Updated/Unchanged} | {summary} |
|
|
74
|
-
|
|
75
|
-
### Files Modified
|
|
76
|
-
- {list of modified files}
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
**Suggested Next Steps**:
|
|
80
|
-
- `/mvt-check-context` -- Analyze context load if context is large
|
|
81
|
-
- `/mvt-analyze` -- Start requirements analysis
|
|
82
|
-
- `/mvt-status` -- View current project status
|
|
83
|
-
```
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
## Codebase Analysis Report
|
|
2
|
-
|
|
3
|
-
### Project: {name}
|
|
4
|
-
- **Root**: `{root_path}`
|
|
5
|
-
- **Primary Language**: {language}
|
|
6
|
-
- **Detected Framework**: {framework}
|
|
7
|
-
|
|
8
|
-
### Architecture Discovery
|
|
9
|
-
|
|
10
|
-
#### Module Structure
|
|
11
|
-
| Module | Path | Responsibility | Type |
|
|
12
|
-
|--------|------|----------------|------|
|
|
13
|
-
| {module} | `{path}` | {description} | {Domain/Application/Infrastructure/Interface} |
|
|
14
|
-
|
|
15
|
-
#### Entity Inventory
|
|
16
|
-
| Entity | Location | Relationships |
|
|
17
|
-
|--------|----------|---------------|
|
|
18
|
-
| {entity} | `{file}` | {related_entities} |
|
|
19
|
-
|
|
20
|
-
#### Service Inventory
|
|
21
|
-
| Service | Location | Dependencies | Methods |
|
|
22
|
-
|---------|----------|--------------|---------|
|
|
23
|
-
| {service} | `{file}` | {deps} | {methods} |
|
|
24
|
-
|
|
25
|
-
### Dependency Analysis
|
|
26
|
-
```mermaid
|
|
27
|
-
graph TD
|
|
28
|
-
A[Module A] --> B[Module B]
|
|
29
|
-
B --> C[Module C]
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Key Findings
|
|
33
|
-
| # | Finding | Type | Severity |
|
|
34
|
-
|---|---------|------|----------|
|
|
35
|
-
| 1 | {finding} | {architecture/code-quality/dependency} | {info/warning/concern} |
|
|
36
|
-
|
|
37
|
-
### Workspace Updated
|
|
38
|
-
- [x] project-context.yaml updated with discovered structure
|
|
39
|
-
- [x] session.yaml updated
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
**Suggested Next Steps**:
|
|
43
|
-
- `/mvt-analyze {requirements}` to add requirements on top of discovered structure
|
|
44
|
-
- `/mvt-design` to design new features for existing architecture
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
## Workspace Cleanup
|
|
2
|
-
|
|
3
|
-
### Cleanup Candidates
|
|
4
|
-
| Item | Current Size | Action | Result |
|
|
5
|
-
|------|-------------|--------|--------|
|
|
6
|
-
| {artifact} | ~{tokens} tokens | {Summarize/Remove} | ~{reduced} tokens |
|
|
7
|
-
| **Total** | **~{total} tokens** | | **~{new_total} tokens ({savings} saved)** |
|
|
8
|
-
|
|
9
|
-
Proceed with cleanup? [Y/n]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
## Configuration Manager
|
|
2
|
-
|
|
3
|
-
| # | Category | Current Settings |
|
|
4
|
-
|---|----------|------------------|
|
|
5
|
-
| 1 | System | Language: {lang}, Mode: {mode} |
|
|
6
|
-
| 2 | Output | Format: {format}, Emojis: {on/off} |
|
|
7
|
-
| 3 | Pattern | Active: {pattern} |
|
|
8
|
-
| 4 | Wizard | Start guided setup |
|
|
9
|
-
| 5 | Reset | Reset to defaults |
|
|
10
|
-
|
|
11
|
-
**Select (1-5):**
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
## Context Load Analysis Report
|
|
2
|
-
|
|
3
|
-
### Overall Assessment
|
|
4
|
-
- **Total Context Size**: ~{total_tokens} tokens
|
|
5
|
-
- **Health Status**: {Good / Moderate / High / Overloaded}
|
|
6
|
-
|
|
7
|
-
### Breakdown by Category
|
|
8
|
-
| Category | Files | Est. Tokens | Percentage |
|
|
9
|
-
|----------|-------|-------------|------------|
|
|
10
|
-
| Core (session + context) | {n} | {tokens} | {pct}% |
|
|
11
|
-
| Knowledge | {n} | {tokens} | {pct}% |
|
|
12
|
-
| Artifacts | {n} | {tokens} | {pct}% |
|
|
13
|
-
| Skills | {n} | {tokens} | {pct}% |
|
|
14
|
-
| **Total** | **{n}** | **{tokens}** | **100%** |
|
|
15
|
-
|
|
16
|
-
### Top 5 Largest Files
|
|
17
|
-
| Rank | File | Est. Tokens | Suggestion |
|
|
18
|
-
|------|------|-------------|------------|
|
|
19
|
-
| 1 | {file} | {tokens} | {suggestion} |
|
|
20
|
-
| 2 | {file} | {tokens} | {suggestion} |
|
|
21
|
-
| 3 | {file} | {tokens} | {suggestion} |
|
|
22
|
-
| 4 | {file} | {tokens} | {suggestion} |
|
|
23
|
-
| 5 | {file} | {tokens} | {suggestion} |
|
|
24
|
-
|
|
25
|
-
### Optimization Recommendations
|
|
26
|
-
1. {recommendation_1}
|
|
27
|
-
2. {recommendation_2}
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
**Suggested Next Steps**:
|
|
31
|
-
- `/mvt-cleanup` - Clean up old artifacts to reduce context size
|
|
32
|
-
- `/mvt-context-add` - Update project context if information is outdated
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
## Bug Fix: {Issue Description}
|
|
2
|
-
|
|
3
|
-
### Issue Analysis
|
|
4
|
-
- **Symptom**: {what_user_observes}
|
|
5
|
-
- **Root Cause**: {why_it_happens}
|
|
6
|
-
- **Impact**: {what_is_affected}
|
|
7
|
-
|
|
8
|
-
### Root Cause Analysis
|
|
9
|
-
| # | Hypothesis | Evidence | Result |
|
|
10
|
-
|---|-----------|----------|--------|
|
|
11
|
-
| 1 | {hypothesis} | {evidence} | {confirmed/rejected} |
|
|
12
|
-
|
|
13
|
-
### Fix Applied
|
|
14
|
-
| File | Line | Before | After |
|
|
15
|
-
|------|------|--------|-------|
|
|
16
|
-
| `{file}` | {line} | {old_code} | {new_code} |
|
|
17
|
-
|
|
18
|
-
### Implementation
|
|
19
|
-
```{language}
|
|
20
|
-
{fix_code}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Verification
|
|
24
|
-
- {how_to_verify_fix}
|
|
25
|
-
- {test_command_if_applicable}
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
**Suggested Next Steps**:
|
|
29
|
-
- `/mvt-review` to verify the fix
|
|
30
|
-
- `/mvt-test` to add regression tests
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
## Project Initialization Complete
|
|
2
|
-
|
|
3
|
-
### Project: {name}
|
|
4
|
-
- **Type**: {type}
|
|
5
|
-
- **Pattern**: {pattern}
|
|
6
|
-
- **Tech Stack**: {language} / {framework}
|
|
7
|
-
|
|
8
|
-
### Architecture Pattern Selection
|
|
9
|
-
|
|
10
|
-
| Detected Pattern | Confidence |
|
|
11
|
-
|------------------|------------|
|
|
12
|
-
| {pattern_name} | {high/medium/low} |
|
|
13
|
-
|
|
14
|
-
**Available Patterns**:
|
|
15
|
-
1. `ddd` - Domain-Driven Design
|
|
16
|
-
2. `clean-architecture` - Layer separation with dependency inversion
|
|
17
|
-
3. `frontend-react` - React/Next.js frontend
|
|
18
|
-
4. `generic` - Simple projects without specific architecture
|
|
19
|
-
|
|
20
|
-
**Recommended**: `{suggested_pattern}`
|
|
21
|
-
|
|
22
|
-
- Reply `yes` to accept
|
|
23
|
-
- Reply with pattern name to select different
|
|
24
|
-
- Reply `analyze` to create a custom pattern from project analysis
|
|
25
|
-
- Reply `none` to proceed without a pattern
|
|
26
|
-
|
|
27
|
-
### Workspace Updated
|
|
28
|
-
- [x] project-context.yaml
|
|
29
|
-
- [x] session.yaml
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
**Suggested Next Steps**:
|
|
33
|
-
- `/mvt-analyze {requirements}` - Start analyzing requirements
|
|
34
|
-
- `/mvt-status` - View project status
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
## Refactoring: {Target}
|
|
2
|
-
|
|
3
|
-
### Refactoring Type
|
|
4
|
-
{type from: Extract Method/Class, Rename, Move, Decompose Conditional, Replace Inheritance with Composition, Change Interface/API}
|
|
5
|
-
|
|
6
|
-
### Goals
|
|
7
|
-
- {goal_1}
|
|
8
|
-
- {goal_2}
|
|
9
|
-
|
|
10
|
-
### Risk Assessment
|
|
11
|
-
- **Risk Level**: {Low | Medium | High}
|
|
12
|
-
- **Impact Scope**: {number} files in {number} modules
|
|
13
|
-
- **Test Coverage**: {Covered | Partial | None}
|
|
14
|
-
|
|
15
|
-
### Changes
|
|
16
|
-
| File | Action | Before | After |
|
|
17
|
-
|------|--------|--------|-------|
|
|
18
|
-
| `{file}` | {Create/Modify/Delete} | {description} | {description} |
|
|
19
|
-
|
|
20
|
-
### Implementation
|
|
21
|
-
```{language}
|
|
22
|
-
{refactored_code}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Behavior Verification
|
|
26
|
-
- {how_behavior_is_preserved}
|
|
27
|
-
- {test_commands_or_manual_verification_steps}
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
**Suggested Next Steps**:
|
|
31
|
-
- `/mvt-review` to verify changes
|
|
32
|
-
- `/mvt-test` to run tests
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
## Project Status
|
|
2
|
-
|
|
3
|
-
### Current: {phase} Phase ({agent})
|
|
4
|
-
|
|
5
|
-
```mermaid
|
|
6
|
-
flowchart LR
|
|
7
|
-
A[analyze] ===> B[design] ---> C[implement] ---> D[review] ---> E[test]
|
|
8
|
-
style A fill:#90EE90
|
|
9
|
-
style B fill:#FFD700
|
|
10
|
-
style C fill:#E0E0E0
|
|
11
|
-
style D fill:#E0E0E0
|
|
12
|
-
style E fill:#E0E0E0
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### Project: {name}
|
|
16
|
-
- **Type**: {type}
|
|
17
|
-
- **Initialized**: {date}
|
|
18
|
-
- **Tech Stack**: {language} / {framework}
|
|
19
|
-
|
|
20
|
-
### Progress This Session
|
|
21
|
-
| Phase | Status | Completed |
|
|
22
|
-
|-------|--------|-----------|
|
|
23
|
-
| Analyze | {status} | {time} |
|
|
24
|
-
| Design | {status} | {time} |
|
|
25
|
-
| Implement | {status} | {time} |
|
|
26
|
-
| Review | {status} | {time} |
|
|
27
|
-
| Test | {status} | {time} |
|
|
28
|
-
|
|
29
|
-
### Active Change
|
|
30
|
-
- **Change ID**: {change_id}
|
|
31
|
-
- **Title**: {title}
|
|
32
|
-
- **Started**: {date}
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
**Suggested Next Steps**:
|
|
36
|
-
- {relevant_next_step}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
## Context Sync Complete
|
|
2
|
-
|
|
3
|
-
### Files Analyzed
|
|
4
|
-
| File | Change Type | Entities | Services |
|
|
5
|
-
|------|-------------|----------|----------|
|
|
6
|
-
| {file_path} | {Modified/Added/Deleted} | {entities} | {services} |
|
|
7
|
-
|
|
8
|
-
### Index Updates
|
|
9
|
-
- **Topics added**: {count}
|
|
10
|
-
- **Entities added**: {count}
|
|
11
|
-
- **Keywords added**: {count}
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
**Suggested Next Steps**:
|
|
15
|
-
- Continue with your current task
|
|
16
|
-
- `/mvt-status` to verify context state
|