viepilot 1.14.0 → 2.1.0
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/CHANGELOG.md +98 -0
- package/README.md +3 -3
- package/bin/viepilot.cjs +7 -5
- package/bin/vp-tools.cjs +193 -0
- package/dev-install.sh +34 -13
- package/docs/user/features/hooks.md +93 -0
- package/lib/adapters/claude-code.cjs +42 -0
- package/lib/adapters/cursor.cjs +31 -0
- package/lib/adapters/index.cjs +26 -0
- package/lib/hooks/brainstorm-staleness.cjs +231 -0
- package/lib/viepilot-config.cjs +103 -0
- package/lib/viepilot-install.cjs +128 -153
- package/package.json +1 -1
- package/skills/vp-audit/SKILL.md +21 -21
- package/skills/vp-auto/SKILL.md +21 -7
- package/skills/vp-brainstorm/SKILL.md +42 -36
- package/skills/vp-crystallize/SKILL.md +22 -16
- package/skills/vp-debug/SKILL.md +2 -2
- package/skills/vp-docs/SKILL.md +7 -7
- package/skills/vp-evolve/SKILL.md +25 -12
- package/skills/vp-info/SKILL.md +23 -23
- package/skills/vp-pause/SKILL.md +5 -5
- package/skills/vp-request/SKILL.md +12 -12
- package/skills/vp-resume/SKILL.md +4 -4
- package/skills/vp-rollback/SKILL.md +3 -3
- package/skills/vp-status/SKILL.md +4 -4
- package/skills/vp-task/SKILL.md +2 -2
- package/skills/vp-ui-components/SKILL.md +12 -12
- package/skills/vp-update/SKILL.md +17 -17
- package/templates/architect/apis.html +11 -10
- package/templates/architect/architect-actions.js +217 -0
- package/templates/architect/architecture.html +8 -7
- package/templates/architect/data-flow.html +5 -4
- package/templates/architect/decisions.html +4 -3
- package/templates/architect/deployment.html +10 -9
- package/templates/architect/erd.html +7 -6
- package/templates/architect/feature-map.html +5 -4
- package/templates/architect/sequence-diagram.html +6 -5
- package/templates/architect/style.css +146 -0
- package/templates/architect/tech-notes.html +3 -2
- package/templates/architect/tech-stack.html +8 -7
- package/templates/architect/user-use-cases.html +8 -7
- package/templates/project/AI-GUIDE.md +49 -49
- package/workflows/audit.md +3 -3
- package/workflows/autonomous.md +38 -5
- package/workflows/brainstorm.md +398 -222
- package/workflows/crystallize.md +46 -33
- package/workflows/debug.md +9 -9
- package/workflows/documentation.md +5 -5
- package/workflows/evolve.md +44 -12
- package/workflows/pause-work.md +2 -2
- package/workflows/request.md +8 -8
- package/workflows/resume-work.md +1 -1
- package/workflows/rollback.md +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-brainstorm
|
|
3
|
-
description: "Brainstorm session
|
|
3
|
+
description: "Brainstorm session to collect ideas and decisions for the project"
|
|
4
4
|
version: 1.1.0
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ version: 1.1.0
|
|
|
10
10
|
- Treat all user text after the skill mention as `{{VP_ARGS}}`
|
|
11
11
|
|
|
12
12
|
## B. User Prompting
|
|
13
|
-
Prompt user conversationally
|
|
13
|
+
Prompt user conversationally with numbered list options.
|
|
14
14
|
|
|
15
15
|
## C. Tool Usage
|
|
16
16
|
Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`, `WebFetch`, `Subagent`
|
|
@@ -25,25 +25,25 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
-
|
|
28
|
+
- Scoped to **session artifacts** (`docs/brainstorm/*`, `.viepilot/ui-direction/*`). Does **not** implement on behalf of **`/vp-auto`** for `lib/`, `tests/`, or framework `workflows/`/`skills/` changes — after brainstorm use **`/vp-crystallize`** / **`/vp-evolve`** → **`/vp-auto`** depending on the stage. Explicit override — state it in chat.
|
|
29
29
|
</implementation_routing_guard>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<objective>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- Landing page layout discovery (
|
|
40
|
-
- In-session research (research
|
|
41
|
-
- UI Direction mode:
|
|
42
|
-
- **Phase assignment (ENH-030):**
|
|
43
|
-
- **Project meta intake (FEAT-009):**
|
|
44
|
-
- **UX walkthrough (FEAT-010 + ENH-019 + ENH-020):**
|
|
45
|
-
- **Background UI extraction (ENH-026):**
|
|
46
|
-
- **Architect Design Mode (FEAT-011):** `/vp-brainstorm --architect`
|
|
33
|
+
Collect ideas, requirements, and architecture decisions for the project through interactive Q&A.
|
|
34
|
+
|
|
35
|
+
Supports:
|
|
36
|
+
- Create a new session
|
|
37
|
+
- Continue a previous session
|
|
38
|
+
- Review a past session
|
|
39
|
+
- Landing page layout discovery (follow-up questions to finalize layout)
|
|
40
|
+
- In-session research (research during the brainstorm session on demand)
|
|
41
|
+
- UI Direction mode: create/update HTML prototype + notes under `.viepilot/ui-direction/{session-id}/` — supports **multi-page** (`pages/{slug}.html` + hub `index.html`) and the **`## Pages inventory`** hook in `notes.md` when `pages/` exists (FEAT-007)
|
|
42
|
+
- **Phase assignment (ENH-030):** in every session, features/capabilities are assigned directly to Phase 1, Phase 2, Phase 3... — no MVP/Post-MVP/Future tiers. Session file stores assignments in the `## Phases` section.
|
|
43
|
+
- **Project meta intake (FEAT-009):** after **scope locked**, **before** `Completed` / `/end`, if `.viepilot/META.md` (`viepilot_profile_id`) is missing — run **sequential** Q&A with proposals; read/write `~/.viepilot/profile-map.md`; create `~/.viepilot/profiles/<slug>.md` + binding per **`docs/dev/global-profiles.md`**. If a profile is already bound — skip intake by default (ask if change needed).
|
|
44
|
+
- **UX walkthrough (FEAT-010 + ENH-019 + ENH-020):** in **`--ui`** mode, command **`/research-ui`** or **`/research ui`** runs 3 phases — simulates **end-user** (with **content stress pass** + **stress recipes by archetype** → **Stress findings**) → **UX designer + web research** → update `index.html` / `pages/*.html` / `style.css` and write **`## UX walkthrough log`** in `notes.md` (sync hub + **Pages inventory** for multi-page).
|
|
45
|
+
- **Background UI extraction (ENH-026):** automatically detects UI signal keywords in every brainstorm session (no `--ui` flag required); silent accumulation buffer; surfaces for confirmation when topic ends, `/save`, or ≥5 signals — does not interrupt the main conversation.
|
|
46
|
+
- **Architect Design Mode (FEAT-011):** `/vp-brainstorm --architect` or auto-activate when ≥3 components/services detected; generate HTML workspace (architecture, data-flow, decisions, tech-stack, tech-notes, feature-map) with Mermaid diagrams; incremental update per decision; `/review-arch` command; machine-readable `notes.md` YAML schema.
|
|
47
47
|
- **ERD page (ENH-027):** Architect workspace includes `erd.html` — Mermaid `erDiagram`, entity list table, relationship summary; triggered by DB/entity/table/relationship keywords; notes.md `## erd` YAML section exported to ARCHITECTURE.md `## Database Schema` via crystallize Step 1D.
|
|
48
48
|
- **User Use Cases page (ENH-028):** Architect workspace includes `user-use-cases.html` — actor/use-case diagram (Mermaid flowchart), use case table; triggered by user/role/actor/story keywords; notes.md `## use_cases` YAML section exported to PROJECT-CONTEXT.md `## User Stories & Use Cases` via crystallize Step 1D.
|
|
49
49
|
- **C4Context/Sequence/Deployment/APIs pages (ENH-029, 12-page workspace):** Architect workspace expanded to 12 pages — `sequence-diagram.html` (per-scenario sequenceDiagram), `deployment.html` (infra graph + environments + CI/CD pipeline), `apis.html` (endpoint tables with HTTP method badges); page boundary rules table; trigger keywords for sequence/deploy/API; notes.md `## apis` YAML section; deployment+APIs exported to ARCHITECTURE.md via crystallize Step 1D (sequence excluded — scenario docs are not architecture artifacts).
|
|
@@ -52,6 +52,12 @@ Hỗ trợ:
|
|
|
52
52
|
- `docs/brainstorm/session-{YYYY-MM-DD}.md`
|
|
53
53
|
|
|
54
54
|
**After:** Ready for `/vp-crystallize`
|
|
55
|
+
|
|
56
|
+
**Language configuration (ENH-032):**
|
|
57
|
+
- Step 0 reads `~/.viepilot/config.json` → `BRAINSTORM_LANG` = `language.document` (default: `en`).
|
|
58
|
+
- `BRAINSTORM_LANG` is used for brainstorm file storage and generated content.
|
|
59
|
+
- User session language takes precedence over config if different.
|
|
60
|
+
- Configure via: `vp-tools config set language.document vi`
|
|
55
61
|
</objective>
|
|
56
62
|
|
|
57
63
|
<execution_context>
|
|
@@ -60,12 +66,12 @@ Hỗ trợ:
|
|
|
60
66
|
|
|
61
67
|
<context>
|
|
62
68
|
Optional flags:
|
|
63
|
-
- `--new` : Force
|
|
64
|
-
- `--continue` :
|
|
65
|
-
- `--list` :
|
|
66
|
-
- `--landing` :
|
|
67
|
-
- `--research` :
|
|
68
|
-
- `--ui` :
|
|
69
|
+
- `--new` : Force create a new session
|
|
70
|
+
- `--continue` : Continue the most recent session
|
|
71
|
+
- `--list` : List all sessions
|
|
72
|
+
- `--landing` : Prioritize the Landing Page layout discovery flow
|
|
73
|
+
- `--research` : Enable proactive research suggestions during the session
|
|
74
|
+
- `--ui` : Enable UI Direction mode (live HTML/CSS direction artifacts)
|
|
69
75
|
</context>
|
|
70
76
|
|
|
71
77
|
<process>
|
|
@@ -75,20 +81,20 @@ Key steps:
|
|
|
75
81
|
1. Detect existing sessions
|
|
76
82
|
2. Ask user intent (new/continue/review)
|
|
77
83
|
3. Load context if continuing
|
|
78
|
-
4. Run interactive Q&A
|
|
79
|
-
5.
|
|
80
|
-
6.
|
|
81
|
-
6b.
|
|
82
|
-
7.
|
|
83
|
-
8.
|
|
84
|
-
9.
|
|
85
|
-
10. Save session with structured format (
|
|
84
|
+
4. Run interactive Q&A with topic-based structure
|
|
85
|
+
5. If topic is a landing page: ask follow-up layout questions + reference `21st.dev` to suggest sections/components
|
|
86
|
+
6. If topic needs UI/UX: create/update UI Direction artifacts under `.viepilot/ui-direction/{session-id}/` — legacy: `index.html` + `style.css` + `notes.md`; multi-page: add `pages/*.html`, `index.html` as hub, and after each page change update **`## Pages inventory`** in `notes.md` (see `docs/user/features/ui-direction.md`)
|
|
87
|
+
6b. When user types **`/research-ui`** or **`/research ui`** during a UI session: follow **`workflows/brainstorm.md`** exactly (FEAT-010) — do not merge into the short regular research step
|
|
88
|
+
7. If user requests research or needs to clarify a decision: research inline in the session and return to the topic
|
|
89
|
+
8. When a topic adds/modifies a capability: update **`## Phases`** in the session per `workflows/brainstorm.md`
|
|
90
|
+
9. Before completing the session: **step 5 — Project meta intake (FEAT-009)** in `workflows/brainstorm.md` when binding is missing; sequential Q&A + profile-map disambiguation + write global profile + `.viepilot/META.md`
|
|
91
|
+
10. Save session with structured format (including **`## Project meta intake (FEAT-009)`**, research notes + UI direction references + **`## Phases`**)
|
|
86
92
|
11. Suggest next action: `/vp-crystallize`
|
|
87
93
|
</process>
|
|
88
94
|
|
|
89
95
|
<success_criteria>
|
|
90
|
-
- [ ] Session file created/updated
|
|
91
|
-
- [ ] Decisions documented
|
|
96
|
+
- [ ] Session file created/updated with all required sections
|
|
97
|
+
- [ ] Decisions documented with rationale
|
|
92
98
|
- [ ] Open questions listed
|
|
93
99
|
- [ ] Action items captured
|
|
94
100
|
- [ ] Landing page topics include explicit layout selection questions
|
|
@@ -96,8 +102,8 @@ Key steps:
|
|
|
96
102
|
- [ ] Research can be executed inside the same brainstorm session
|
|
97
103
|
- [ ] UI Direction artifacts created/updated when UI mode is active
|
|
98
104
|
- [ ] Multi-page sessions: hub links + `## Pages inventory` stay in sync with `pages/*.html`
|
|
99
|
-
- [ ] **FEAT-010 + ENH-019 + ENH-020**: `/research-ui` (
|
|
100
|
-
- [ ] `## Phases` present
|
|
101
|
-
- [ ] **FEAT-009**: intake
|
|
105
|
+
- [ ] **FEAT-010 + ENH-019 + ENH-020**: `/research-ui` (when `--ui`) runs all 3 phases, including **content stress pass** + **archetype recipes** + **`## UX walkthrough log`** (with **Stress findings**) when prototype is updated
|
|
106
|
+
- [ ] `## Phases` present with Phase 1 having real content when scope is discussed
|
|
107
|
+
- [ ] **FEAT-009**: intake completed, binding already present, **or** waiver with reason before Completed; session records **`## Project meta intake (FEAT-009)`**
|
|
102
108
|
- [ ] Next steps suggested
|
|
103
109
|
</success_criteria>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-crystallize
|
|
3
|
-
description: "
|
|
3
|
+
description: "Convert brainstorm sessions into executable artifacts"
|
|
4
4
|
version: 0.8.0
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ version: 0.8.0
|
|
|
10
10
|
- Treat all user text after the skill mention as `{{VP_ARGS}}`
|
|
11
11
|
|
|
12
12
|
## B. User Prompting
|
|
13
|
-
Prompt user conversationally
|
|
13
|
+
Prompt user conversationally with numbered list options.
|
|
14
14
|
|
|
15
15
|
## C. Tool Usage
|
|
16
16
|
Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`, `WebFetch`, `Subagent`
|
|
@@ -25,18 +25,18 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
-
|
|
28
|
+
- Creates **artifacts** in `.viepilot/` (and template copy) from brainstorm — does **not** replace **`/vp-auto`** for implementing application code / framework shipping. Backlog feature code: **`/vp-evolve`** + **`/vp-auto`**. See `workflows/request.md`.
|
|
29
29
|
</implementation_routing_guard>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<objective>
|
|
33
|
-
|
|
33
|
+
Convert brainstorm sessions into structured artifacts for autonomous AI execution.
|
|
34
34
|
|
|
35
35
|
**Creates:**
|
|
36
36
|
```
|
|
37
37
|
.viepilot/
|
|
38
|
-
├── AI-GUIDE.md #
|
|
39
|
-
├── PROJECT-META.md #
|
|
38
|
+
├── AI-GUIDE.md # AI navigation guide
|
|
39
|
+
├── PROJECT-META.md # Project metadata
|
|
40
40
|
├── ARCHITECTURE.md # System design
|
|
41
41
|
├── architecture/ # ENH-022: *.mermaid sidecars (mirror fenced diagrams)
|
|
42
42
|
├── PROJECT-CONTEXT.md # Domain knowledge + `<product_vision>` (phased scope)
|
|
@@ -55,7 +55,7 @@ Chuyển đổi brainstorm sessions thành structured artifacts để AI có th
|
|
|
55
55
|
- Updated `README.md`
|
|
56
56
|
|
|
57
57
|
**ViePilot profile (FEAT-009):**
|
|
58
|
-
-
|
|
58
|
+
- Reads `.viepilot/META.md` → file `~/.viepilot/profiles/<slug>.md` (contract: `docs/dev/global-profiles.md`); pre-fills Step 0; merges into **ARCHITECTURE** (`## ViePilot organization context`), **PROJECT-CONTEXT** (`## ViePilot active profile`), **AI-GUIDE** quick context.
|
|
59
59
|
|
|
60
60
|
**Stack intelligence (global cache):**
|
|
61
61
|
- `~/.viepilot/stacks/{stack}/SUMMARY.md`
|
|
@@ -71,6 +71,12 @@ Chuyển đổi brainstorm sessions thành structured artifacts để AI có th
|
|
|
71
71
|
|
|
72
72
|
**Architect artifacts consumption (FEAT-011):**
|
|
73
73
|
- Step 1D reads `.viepilot/architect/{session}/notes.md` YAML — imports `decisions[]` → ARCHITECTURE.md, uses `tech_stack{}` as authoritative stack (conflict → ask user), surfaces `open_questions[]` with `status: open`. Soft suggestion (not hard block) when architect dir missing but ≥5 services detected.
|
|
74
|
+
|
|
75
|
+
**Language configuration (ENH-032):**
|
|
76
|
+
- Step 0-A reads `~/.viepilot/config.json` → `DOCUMENT_LANG` (default: `en`) and `COMMUNICATION_LANG` (default: `en`).
|
|
77
|
+
- `DOCUMENT_LANG` controls content language for all generated files (ROADMAP, TRACKER, ARCHITECTURE, etc.).
|
|
78
|
+
- `COMMUNICATION_LANG` controls prompt/confirmation language for this session.
|
|
79
|
+
- Configure via: `vp-tools config set language.document vi`
|
|
74
80
|
</objective>
|
|
75
81
|
|
|
76
82
|
<execution_context>
|
|
@@ -84,8 +90,8 @@ Execute workflow from `@$HOME/.cursor/viepilot/workflows/crystallize.md`
|
|
|
84
90
|
Key steps:
|
|
85
91
|
|
|
86
92
|
### Step 0: Collect Project Metadata
|
|
87
|
-
- **FEAT-009:** Load `.viepilot/META.md` + global profile file first (`workflows/crystallize.md`); set `profile_resolved` or `none`; pre-fill org/website
|
|
88
|
-
Ask user for (confirm proposals
|
|
93
|
+
- **FEAT-009:** Load `.viepilot/META.md` + global profile file first (`workflows/crystallize.md`); set `profile_resolved` or `none`; pre-fill org/website when profile is present.
|
|
94
|
+
Ask user for (confirm proposals from profile if present):
|
|
89
95
|
- Project name, description
|
|
90
96
|
- Organization name, website
|
|
91
97
|
- Package Base ID (e.g., com.company.project)
|
|
@@ -99,7 +105,7 @@ Ask user for (confirm proposals từ profile nếu có):
|
|
|
99
105
|
- Load all brainstorm sessions
|
|
100
106
|
- Extract: decisions, architecture, schemas, features
|
|
101
107
|
- Extract selected tech stacks
|
|
102
|
-
- **Phase assignment (ENH-030):** parse `## Phases`
|
|
108
|
+
- **Phase assignment (ENH-030):** parse `## Phases` from brainstorm sessions; build `phases_inventory`; run phase assignment gate (all features must have a phase — full contract: `workflows/crystallize.md` Step 1)
|
|
103
109
|
- Validate completeness (tech stack, features, schema/API clarity, **phase assignment gate**)
|
|
104
110
|
|
|
105
111
|
### Step 1A: Consume UI direction (if present)
|
|
@@ -127,7 +133,7 @@ Ask user for (confirm proposals từ profile nếu có):
|
|
|
127
133
|
- Quick lookup table
|
|
128
134
|
- Context loading strategy
|
|
129
135
|
- File relationships
|
|
130
|
-
- **FEAT-009:** Quick context
|
|
136
|
+
- **FEAT-009:** Quick context for `profile_id` + profile path when resolved
|
|
131
137
|
|
|
132
138
|
### Step 3: Generate PROJECT-META.md
|
|
133
139
|
- Project info
|
|
@@ -135,11 +141,11 @@ Ask user for (confirm proposals từ profile nếu có):
|
|
|
135
141
|
- Package structure
|
|
136
142
|
- Developer info
|
|
137
143
|
- File headers template
|
|
138
|
-
- **FEAT-009:** Align Organization
|
|
144
|
+
- **FEAT-009:** Align Organization with confirmed profile content (public only)
|
|
139
145
|
|
|
140
146
|
### Step 4: Generate ARCHITECTURE.md
|
|
141
147
|
- System overview
|
|
142
|
-
- **FEAT-009:** Section `## ViePilot organization context`
|
|
148
|
+
- **FEAT-009:** Section `## ViePilot organization context` when profile is present (or none line)
|
|
143
149
|
- Services definitions
|
|
144
150
|
- Data flow
|
|
145
151
|
- Technology decisions
|
|
@@ -153,7 +159,7 @@ Ask user for (confirm proposals từ profile nếu có):
|
|
|
153
159
|
- **ENH-022:** For each diagram type with real Mermaid, write **`.viepilot/architecture/<type>.mermaid`** (raw source) and keep it **identical** to the body inside the fenced ` ```mermaid ` block in `ARCHITECTURE.md`; omit files for `N/A` or no diagram — see `workflows/crystallize.md` Step 4.
|
|
154
160
|
|
|
155
161
|
### Step 5: Generate PROJECT-CONTEXT.md
|
|
156
|
-
- **FEAT-009:** Block `## ViePilot active profile (FEAT-009)`
|
|
162
|
+
- **FEAT-009:** Block `## ViePilot active profile (FEAT-009)` when binding is present
|
|
157
163
|
- Domain knowledge
|
|
158
164
|
- Business rules
|
|
159
165
|
- Conventions
|
|
@@ -214,6 +220,6 @@ Ask user for (confirm proposals từ profile nếu có):
|
|
|
214
220
|
- [ ] Project files created
|
|
215
221
|
- [ ] Git committed
|
|
216
222
|
- [ ] ARCHITECTURE diagram matrix is present and consistent (`required|optional|N/A`)
|
|
217
|
-
- [ ] **ENH-022:**
|
|
218
|
-
- [ ] **FEAT-009:**
|
|
223
|
+
- [ ] **ENH-022:** Every generated Mermaid diagram has a `.viepilot/architecture/<canonical-name>.mermaid` file in sync with `ARCHITECTURE.md` (no extra files created for N/A)
|
|
224
|
+
- [ ] **FEAT-009:** When profile is bound — ARCHITECTURE + PROJECT-CONTEXT record the profile source; if not — state none / not configured explicitly
|
|
219
225
|
</success_criteria>
|
package/skills/vp-debug/SKILL.md
CHANGED
|
@@ -25,12 +25,12 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
-
|
|
28
|
+
- **Investigate + log** session; does **not** merge default shipping fixes until user **explicit** (*fix now*, *hotfix*) or routes **`/vp-request` → `/vp-evolve` → `/vp-auto`**. Small patches only to **reproduce** are OK if the user agrees. See `workflows/debug.md`.
|
|
29
29
|
</implementation_routing_guard>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<objective>
|
|
33
|
-
Systematic debugging
|
|
33
|
+
Systematic debugging with persistent state tracking. Helps track issues across multiple sessions.
|
|
34
34
|
|
|
35
35
|
**Creates/Updates:**
|
|
36
36
|
- `.viepilot/debug/session-{id}.json` - Debug session state
|
package/skills/vp-docs/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-docs
|
|
3
|
-
description: "Generate comprehensive documentation
|
|
3
|
+
description: "Generate comprehensive documentation for the project"
|
|
4
4
|
version: 0.2.1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ version: 0.2.1
|
|
|
10
10
|
- Treat all user text after the skill mention as `{{VP_ARGS}}`
|
|
11
11
|
|
|
12
12
|
## B. User Prompting
|
|
13
|
-
Prompt user conversationally
|
|
13
|
+
Prompt user conversationally with options.
|
|
14
14
|
|
|
15
15
|
## C. Tool Usage
|
|
16
16
|
Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`, `WebFetch`, `Subagent`
|
|
@@ -25,12 +25,12 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
-
|
|
28
|
+
- This skill edits **`docs/`**, index, README related to docs — does **not** implement **`lib/`**, **`tests/`**, default product logic; that is **`/vp-auto`**. Explicit override required. See `workflows/request.md`.
|
|
29
29
|
</implementation_routing_guard>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<objective>
|
|
33
|
-
Generate comprehensive documentation
|
|
33
|
+
Generate comprehensive documentation from code and artifacts.
|
|
34
34
|
|
|
35
35
|
**Creates/Updates:**
|
|
36
36
|
```
|
|
@@ -60,7 +60,7 @@ CHANGELOG.md (updated)
|
|
|
60
60
|
- GitHub owner/repo from `git remote get-url origin`
|
|
61
61
|
- Skills count from `ls skills/*/SKILL.md | wc -l`
|
|
62
62
|
- Workflows count from `ls workflows/*.md | wc -l`
|
|
63
|
-
- **FEAT-009:** Optional ViePilot global profile
|
|
63
|
+
- **FEAT-009:** Optional ViePilot global profile from `.viepilot/META.md` + `~/.viepilot/profiles/` for attribution/tone (`workflows/documentation.md` §0A)
|
|
64
64
|
</objective>
|
|
65
65
|
|
|
66
66
|
<execution_context>
|
|
@@ -98,7 +98,7 @@ ACTUAL_WORKFLOWS=$(ls workflows/*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
|
98
98
|
|
|
99
99
|
### Step 0A: ViePilot active profile (FEAT-009)
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
After Step 0: resolve `.viepilot/META.md` → global profile file (same rules as `workflows/crystallize.md`). Keep working notes (org, website, audience, branding) for prose docs; do **not** fail if missing. Details: `workflows/documentation.md` §0A.
|
|
102
102
|
|
|
103
103
|
### Step 1: Ask Documentation Scope
|
|
104
104
|
```
|
|
@@ -273,5 +273,5 @@ View at: docs/README.md
|
|
|
273
273
|
- [ ] skills-reference.md has sections for all skills in skills/ directory
|
|
274
274
|
- [ ] Root README.md Documentation table updated
|
|
275
275
|
- [ ] Git committed
|
|
276
|
-
- [ ] **FEAT-009:**
|
|
276
|
+
- [ ] **FEAT-009:** If profile exists — use for attribution where appropriate; if not — silently skip (no incorrect placeholders)
|
|
277
277
|
</success_criteria>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-evolve
|
|
3
|
-
description: "
|
|
3
|
+
description: "Upgrade, add features, or start a new milestone"
|
|
4
4
|
version: 0.3.0
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ version: 0.3.0
|
|
|
10
10
|
- Treat all user text after the skill mention as `{{VP_ARGS}}`
|
|
11
11
|
|
|
12
12
|
## B. User Prompting
|
|
13
|
-
Prompt user conversationally
|
|
13
|
+
Prompt user conversationally with options.
|
|
14
14
|
|
|
15
15
|
## C. Tool Usage
|
|
16
16
|
Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`, `WebFetch`, `Subagent`
|
|
@@ -25,28 +25,28 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
28
|
+
- This skill is **planning only**: ROADMAP, phase dir, SPEC/tasks, TRACKER, version/CHANGELOG notes when the workflow specifies — does **not** implement default shipping code (`lib/`, `tests/`, `bin/`, large edits to `workflows/`/`skills/` beyond plan artifacts).
|
|
29
|
+
- **Next step:** **`/vp-auto`**. See `workflows/evolve.md`.
|
|
30
|
+
- **Exception:** User **explicit** bypass — state clearly in chat.
|
|
31
31
|
</implementation_routing_guard>
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
<objective>
|
|
35
|
-
|
|
35
|
+
Upgrade or expand the project after completing a milestone or when new features are needed.
|
|
36
36
|
|
|
37
37
|
**Modes:**
|
|
38
|
-
1. **Add Feature** -
|
|
39
|
-
2. **New Milestone** -
|
|
40
|
-
3. **Refactor** -
|
|
38
|
+
1. **Add Feature** - Add a feature to the current milestone
|
|
39
|
+
2. **New Milestone** - Start a new milestone
|
|
40
|
+
3. **Refactor** - Improve existing code
|
|
41
41
|
|
|
42
42
|
**Routing intelligence:**
|
|
43
|
-
-
|
|
44
|
-
-
|
|
43
|
+
- For requests leaning toward idea exploration (especially landing pages), prioritize routing through enhanced `/vp-brainstorm` before the crystallize phase.
|
|
44
|
+
- Supports brainstorm routing with in-session research so the user can decide within a single session.
|
|
45
45
|
|
|
46
46
|
**Updates:**
|
|
47
47
|
- `.viepilot/ROADMAP.md`
|
|
48
48
|
- `.viepilot/TRACKER.md`
|
|
49
|
-
- `.viepilot/ARCHITECTURE.md` (
|
|
49
|
+
- `.viepilot/ARCHITECTURE.md` (if there are changes)
|
|
50
50
|
- `CHANGELOG.md`
|
|
51
51
|
</objective>
|
|
52
52
|
|
|
@@ -59,6 +59,19 @@ Optional flags:
|
|
|
59
59
|
- `--feature` : Add feature mode
|
|
60
60
|
- `--milestone` : New milestone mode
|
|
61
61
|
- `--refactor` : Refactor mode
|
|
62
|
+
|
|
63
|
+
**Task path convention (BUG-009):**
|
|
64
|
+
When generating task files, ALL paths in `## Paths` blocks MUST be
|
|
65
|
+
repo-relative (relative to the repository root where `package.json` lives).
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
CORRECT: workflows/foo.md skills/vp-bar/SKILL.md lib/foo.cjs
|
|
69
|
+
INCORRECT: ~/.claude/viepilot/workflows/foo.md /absolute/path
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Absolute paths inside code block content (bash examples, runtime descriptions)
|
|
73
|
+
are fine — only the `## Paths` header block must use repo-relative paths.
|
|
74
|
+
See guard in `workflows/evolve.md` → "TASK PATH RULE (BUG-009)".
|
|
62
75
|
</context>
|
|
63
76
|
|
|
64
77
|
<process>
|
package/skills/vp-info/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-info
|
|
3
|
-
description: "
|
|
3
|
+
description: "Display ViePilot version, npm latest, skills/workflows list via vp-tools"
|
|
4
4
|
version: 0.1.1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -22,21 +22,21 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
22
22
|
<implementation_routing_guard>
|
|
23
23
|
## Implementation routing guard (ENH-021)
|
|
24
24
|
|
|
25
|
-
- **Inventory / version info** —
|
|
25
|
+
- **Inventory / version info** — does not implement shipping; implement via **`/vp-auto`**. See `workflows/request.md`.
|
|
26
26
|
</implementation_routing_guard>
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
<objective>
|
|
30
|
-
|
|
30
|
+
Run **`vp-tools info`** to retrieve the ViePilot bundle metadata (no `.viepilot/` needed in the target project).
|
|
31
31
|
|
|
32
|
-
**
|
|
32
|
+
**Useful output for agents:**
|
|
33
33
|
- `installedVersion`, `packageName`, `packageRoot`
|
|
34
|
-
- `latestNpm` (ok + version
|
|
35
|
-
- `gitHead` (
|
|
34
|
+
- `latestNpm` (ok + version or network/registry error)
|
|
35
|
+
- `gitHead` (if clone has git)
|
|
36
36
|
- `skills[]`: `id`, `version`, `relativePath`
|
|
37
37
|
- `workflows[]`: `id`, `relativePath`, `note`
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Use **`vp-tools info --json`** when parsing or comparing versions in scripts.
|
|
40
40
|
</objective>
|
|
41
41
|
|
|
42
42
|
<execution_context>
|
|
@@ -46,30 +46,30 @@ Dùng **`vp-tools info --json`** khi cần parse hoặc so sánh phiên bản tr
|
|
|
46
46
|
<process>
|
|
47
47
|
|
|
48
48
|
### Step 1: Resolve CLI
|
|
49
|
-
|
|
50
|
-
1. `vp-tools info` —
|
|
51
|
-
2. `node <viepilot-package>/bin/vp-tools.cjs info` —
|
|
49
|
+
Priority order:
|
|
50
|
+
1. `vp-tools info` — when ViePilot is already on `PATH` (npm global or shim).
|
|
51
|
+
2. `node <viepilot-package>/bin/vp-tools.cjs info` — from repo clone or `node_modules/viepilot`.
|
|
52
52
|
|
|
53
|
-
### Step 2:
|
|
53
|
+
### Step 2: Run command
|
|
54
54
|
```bash
|
|
55
55
|
vp-tools info
|
|
56
|
-
#
|
|
56
|
+
# or
|
|
57
57
|
vp-tools info --json
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
### Step 3:
|
|
61
|
-
- **`packageRoot`**:
|
|
62
|
-
- **`installedVersion`**: semver
|
|
63
|
-
- **`latestNpm`**: `{ ok, version }`
|
|
64
|
-
- **`skills`**: inventory
|
|
65
|
-
- **`workflows`**:
|
|
60
|
+
### Step 3: Interpret JSON (when using `--json`)
|
|
61
|
+
- **`packageRoot`**: root of the `viepilot` package the CLI resolved.
|
|
62
|
+
- **`installedVersion`**: semver in `package.json` of that bundle.
|
|
63
|
+
- **`latestNpm`**: `{ ok, version }` or `{ ok: false, error }`.
|
|
64
|
+
- **`skills`**: skill inventory in `skills/*/SKILL.md` (version from frontmatter).
|
|
65
|
+
- **`workflows`**: files in `workflows/*.md`.
|
|
66
66
|
|
|
67
|
-
### Step 4:
|
|
68
|
-
|
|
67
|
+
### Step 4: Common errors
|
|
68
|
+
If package root is not found: install globally (`npm i -g viepilot`), or run from a project that has `viepilot` as a dependency, or point directly to `bin/vp-tools.cjs` in a clone.
|
|
69
69
|
</process>
|
|
70
70
|
|
|
71
71
|
<success_criteria>
|
|
72
|
-
- [ ]
|
|
73
|
-
- [ ]
|
|
74
|
-
- [ ]
|
|
72
|
+
- [ ] Correct subcommand `info` called (or `--json` when parsing is needed)
|
|
73
|
+
- [ ] `installedVersion` and (if available) `latestNpm.version` clearly stated
|
|
74
|
+
- [ ] When user asks “what skills are in the bundle”, summarize from `skills[]` or CLI table output
|
|
75
75
|
</success_criteria>
|
package/skills/vp-pause/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-pause
|
|
3
|
-
description: "Pause work
|
|
3
|
+
description: "Pause work with context preservation to resume later"
|
|
4
4
|
version: 0.1.1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ version: 0.1.1
|
|
|
10
10
|
- Treat all user text after the skill mention as `{{VP_ARGS}}`
|
|
11
11
|
|
|
12
12
|
## B. User Prompting
|
|
13
|
-
Prompt user conversationally
|
|
13
|
+
Prompt user conversationally to gather state info.
|
|
14
14
|
|
|
15
15
|
## C. Tool Usage
|
|
16
16
|
Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`, `WebFetch`, `Subagent`
|
|
@@ -25,19 +25,19 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
- **Handoff state** —
|
|
28
|
+
- **Handoff state** — does not implement shipping; resume with **`/vp-resume`** then **`/vp-auto`** per plan. See `workflows/request.md`.
|
|
29
29
|
</implementation_routing_guard>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<objective>
|
|
33
|
-
Save complete work state
|
|
33
|
+
Save complete work state so it can be resumed from any context.
|
|
34
34
|
|
|
35
35
|
**Creates/Updates:**
|
|
36
36
|
- `.viepilot/HANDOFF.json` - Machine-readable state
|
|
37
37
|
- `.viepilot/phases/{current}/.continue-here.md` - Human-readable context
|
|
38
38
|
- Git WIP commit
|
|
39
39
|
|
|
40
|
-
**After:** Safe to close session. Resume
|
|
40
|
+
**After:** Safe to close session. Resume with `/vp-resume`
|
|
41
41
|
</objective>
|
|
42
42
|
|
|
43
43
|
<execution_context>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vp-request
|
|
3
|
-
description: "
|
|
3
|
+
description: "Create new request: feature, bug fix, enhancement, or brainstorm continuation"
|
|
4
4
|
version: 0.2.0
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ version: 0.2.0
|
|
|
10
10
|
- Treat all user text after the skill mention as `{{VP_ARGS}}`
|
|
11
11
|
|
|
12
12
|
## B. User Prompting
|
|
13
|
-
Prompt user conversationally
|
|
13
|
+
Prompt user conversationally with numbered list options.
|
|
14
14
|
|
|
15
15
|
## C. Tool Usage
|
|
16
16
|
Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`, `WebFetch`, `Subagent`
|
|
@@ -25,27 +25,27 @@ Use Cursor tools: `Shell`, `ReadFile`, `Glob`, `rg`, `ApplyPatch`, `WebSearch`,
|
|
|
25
25
|
<implementation_routing_guard>
|
|
26
26
|
## Implementation routing guard (ENH-021)
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
28
|
+
- This skill only **creates requests**, **backlog**, **triage** (`.viepilot/requests/*`, `TRACKER`, sometimes suggests ROADMAP) — does **not** implement default shipping code (`lib/`, `tests/`, `bin/`, `workflows/`, `skills/` of the repo, etc.).
|
|
29
|
+
- **After request:** **`/vp-evolve`** (ROADMAP + phase + tasks + plan) → **`/vp-auto`** (execute). See `workflows/request.md`.
|
|
30
|
+
- **Exception:** User **explicit** (*hotfix now*, *fix in this chat*, *bypass planning*) — must **state clearly** the bypass in chat.
|
|
31
|
+
- **Do not** suggest *”Start working now”* as direct implementation in this thread; use evolve → auto instead.
|
|
32
32
|
</implementation_routing_guard>
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
<objective>
|
|
36
|
-
|
|
37
|
-
- Bug report
|
|
36
|
+
Create and manage requests for the project under development:
|
|
37
|
+
- Bug report and fix
|
|
38
38
|
- Feature request
|
|
39
39
|
- Enhancement/Improvement
|
|
40
40
|
- Technical debt
|
|
41
|
-
- Brainstorm
|
|
41
|
+
- Brainstorm continuation for new ideas
|
|
42
42
|
|
|
43
43
|
**Creates/Updates:**
|
|
44
44
|
- `.viepilot/requests/{TYPE}-{NUMBER}.md`
|
|
45
|
-
- `.viepilot/TRACKER.md` (
|
|
46
|
-
- `.viepilot/ROADMAP.md` (
|
|
45
|
+
- `.viepilot/TRACKER.md` (add to backlog)
|
|
46
|
+
- `.viepilot/ROADMAP.md` (if approved)
|
|
47
47
|
|
|
48
|
-
**Routes to:** `/vp-auto`
|
|
48
|
+
**Routes to:** `/vp-auto` or `/vp-evolve` depending on request type
|
|
49
49
|
</objective>
|
|
50
50
|
|
|
51
51
|
<execution_context>
|