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,70 +1,70 @@
|
|
|
1
1
|
# {{PROJECT_NAME}} - AI Navigation Guide
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
3
|
+
> **Read this file BEFORE starting any task**
|
|
4
|
+
> This file helps you find the right context without loading everything
|
|
5
5
|
|
|
6
6
|
## Quick Lookup
|
|
7
7
|
|
|
8
|
-
|
|
|
9
|
-
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
| Roadmap phases (
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
8
|
+
| I need to... | Read file | Section |
|
|
9
|
+
|--------------|-----------|---------|
|
|
10
|
+
| Understand what the project does | `PROJECT-CONTEXT.md` | `<domain_knowledge>` |
|
|
11
|
+
| Vision & phased scope | `PROJECT-CONTEXT.md` | `<product_vision>` |
|
|
12
|
+
| Roadmap phases (beyond current task) | `ROADMAP.md` | Phases after current phase |
|
|
13
|
+
| Know the tech stack | `ARCHITECTURE.md` | `## Technology Decisions` |
|
|
14
|
+
| See what each service does | `ARCHITECTURE.md` | `## Services` |
|
|
15
|
+
| Know current phase | `TRACKER.md` | `## Current State` |
|
|
16
|
+
| See next task | `ROADMAP.md` | Find phase marked `In Progress` |
|
|
17
17
|
| Coding conventions | `SYSTEM-RULES.md` | `<coding_rules>` |
|
|
18
|
-
|
|
|
18
|
+
| What NOT to do | `SYSTEM-RULES.md` | `<do_not>` |
|
|
19
19
|
| Database schema | `schemas/database-schema.sql` | - |
|
|
20
20
|
| API contracts | `schemas/api-contracts.yaml` | - |
|
|
21
|
-
|
|
|
22
|
-
| Resume
|
|
21
|
+
| Past decisions | `TRACKER.md` | `## Decision Log` |
|
|
22
|
+
| Resume in-progress work | `HANDOFF.json` | - |
|
|
23
23
|
| Package structure | `PROJECT-META.md` | `## Package Structure` |
|
|
24
24
|
| File headers | `PROJECT-META.md` | `## File Headers` |
|
|
25
25
|
|
|
26
26
|
## Context Loading Strategy
|
|
27
27
|
|
|
28
|
-
### Minimal Context (
|
|
28
|
+
### Minimal Context (for quick tasks)
|
|
29
29
|
```
|
|
30
|
-
|
|
31
|
-
1. AI-GUIDE.md (file
|
|
30
|
+
Read only:
|
|
31
|
+
1. AI-GUIDE.md (this file)
|
|
32
32
|
2. TRACKER.md → Current State
|
|
33
|
-
3.
|
|
33
|
+
3. The specific file related to the task
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### Standard Context (
|
|
36
|
+
### Standard Context (for coding tasks)
|
|
37
37
|
```
|
|
38
|
-
|
|
39
|
-
1. AI-GUIDE.md (file
|
|
40
|
-
2. TRACKER.md →
|
|
41
|
-
3. PROJECT-CONTEXT.md → <product_vision> + phased scope (
|
|
42
|
-
4. ROADMAP.md → skim phases
|
|
38
|
+
Read in order:
|
|
39
|
+
1. AI-GUIDE.md (this file)
|
|
40
|
+
2. TRACKER.md → know where you are
|
|
41
|
+
3. PROJECT-CONTEXT.md → <product_vision> + phased scope (read BEFORE locking detailed design)
|
|
42
|
+
4. ROADMAP.md → skim phases after current phase, then current task
|
|
43
43
|
5. SYSTEM-RULES.md → coding rules
|
|
44
|
-
6. Schema file
|
|
44
|
+
6. Schema file if needed
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
### Full Context (
|
|
47
|
+
### Full Context (for architecture decisions)
|
|
48
48
|
```
|
|
49
|
-
|
|
49
|
+
Read in order:
|
|
50
50
|
1. AI-GUIDE.md + TRACKER.md
|
|
51
|
-
2. PROJECT-CONTEXT.md → domain + <product_vision> (
|
|
51
|
+
2. PROJECT-CONTEXT.md → domain + <product_vision> (complete)
|
|
52
52
|
3. ROADMAP.md → phases + tasks
|
|
53
53
|
4. ARCHITECTURE.md
|
|
54
54
|
5. SYSTEM-RULES.md
|
|
55
|
-
6.
|
|
55
|
+
6. Original brainstorm session (if detailed rationale needed)
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
### Product vision & phase planning (
|
|
58
|
+
### Product vision & phase planning (before "locking" architecture)
|
|
59
59
|
|
|
60
|
-
-
|
|
60
|
+
- Before deep implementation tasks or major architecture decisions: read `<product_vision>` and phase goals in `ROADMAP.md` **together** with the current task.
|
|
61
61
|
|
|
62
62
|
## File Relationships
|
|
63
63
|
|
|
64
64
|
```
|
|
65
|
-
AI-GUIDE.md (
|
|
65
|
+
AI-GUIDE.md (read first)
|
|
66
66
|
│
|
|
67
|
-
├── TRACKER.md (state
|
|
67
|
+
├── TRACKER.md (current state)
|
|
68
68
|
│ └── points to → current phase in ROADMAP.md
|
|
69
69
|
│
|
|
70
70
|
├── PROJECT-CONTEXT.md (domain + <product_vision> / phased scope)
|
|
@@ -102,24 +102,24 @@ AI-GUIDE.md (đọc đầu tiên)
|
|
|
102
102
|
|
|
103
103
|
Full guidelines: `SYSTEM-RULES.md#comment_standards`
|
|
104
104
|
|
|
105
|
-
##
|
|
105
|
+
## When to Re-read
|
|
106
106
|
|
|
107
|
-
| Trigger |
|
|
108
|
-
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
107
|
+
| Trigger | Refresh |
|
|
108
|
+
|---------|---------|
|
|
109
|
+
| Starting a new session | `TRACKER.md`, `HANDOFF.json` |
|
|
110
|
+
| Switching phases | `ROADMAP.md` section for the new phase |
|
|
111
|
+
| Encountering architecture issues | `ARCHITECTURE.md`, `SYSTEM-RULES.md` |
|
|
112
|
+
| Unclear business rule | `PROJECT-CONTEXT.md` |
|
|
113
|
+
| Need to make a new decision | `TRACKER.md` → Decision Log |
|
|
114
114
|
|
|
115
115
|
## Commands Reference
|
|
116
116
|
|
|
117
|
-
| Command |
|
|
118
|
-
|
|
119
|
-
| `/vp-status` |
|
|
120
|
-
| `/vp-auto` |
|
|
121
|
-
| `/vp-pause` |
|
|
122
|
-
| `/vp-resume` |
|
|
123
|
-
| `/vp-evolve` |
|
|
117
|
+
| Command | When to use |
|
|
118
|
+
|---------|-------------|
|
|
119
|
+
| `/vp-status` | Quick progress view |
|
|
120
|
+
| `/vp-auto` | Run autonomous execution |
|
|
121
|
+
| `/vp-pause` | Stop and save state |
|
|
122
|
+
| `/vp-resume` | Continue from pause |
|
|
123
|
+
| `/vp-evolve` | Add features / start new milestone |
|
|
124
124
|
| `/vp-docs` | Generate documentation |
|
|
125
|
-
| `/vp-task` |
|
|
125
|
+
| `/vp-task` | Manage tasks manually |
|
package/workflows/audit.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
Audit ViePilot project state
|
|
3
|
-
|
|
4
|
-
Auto-
|
|
2
|
+
Audit ViePilot project state and documentation to detect drift.
|
|
3
|
+
Works on any project using ViePilot.
|
|
4
|
+
Auto-detects if running inside the viepilot framework repo to enable framework-specific checks.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
## ViePilot Skill Scope Policy (BUG-004)
|
package/workflows/autonomous.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
Autonomous execution
|
|
3
|
-
Pauses at control points
|
|
2
|
+
Autonomous execution of project phases. For each phase: analyze → execute tasks → verify → iterate.
|
|
3
|
+
Pauses at control points for user decisions.
|
|
4
4
|
</purpose>
|
|
5
5
|
|
|
6
6
|
## ViePilot Skill Scope Policy (BUG-004)
|
|
@@ -11,7 +11,7 @@ Pauses at control points cho user decisions.
|
|
|
11
11
|
|
|
12
12
|
## Implementation entry (cross-skill)
|
|
13
13
|
|
|
14
|
-
- **`/vp-auto`** + workflow
|
|
14
|
+
- **`/vp-auto`** + this workflow is the **default lane** for **implementing** work that already has a **phase/task plan** (and doc-first **BUG-001**). **`/vp-request`** and **`/vp-evolve`** do **not** replace this step unless the user explicitly overrides — see **Implementation routing guard** in `workflows/request.md` and `workflows/evolve.md`.
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
<process>
|
|
@@ -20,8 +20,8 @@ Pauses at control points cho user decisions.
|
|
|
20
20
|
## 1. Initialize
|
|
21
21
|
|
|
22
22
|
Parse `{{VP_ARGS}}` for flags:
|
|
23
|
-
- `--from N` : Start
|
|
24
|
-
- `--phase N` :
|
|
23
|
+
- `--from N` : Start from phase N
|
|
24
|
+
- `--phase N` : Run only phase N
|
|
25
25
|
- `--fast` : Skip optional verifications
|
|
26
26
|
- `--dry-run` : Plan only
|
|
27
27
|
|
|
@@ -32,6 +32,10 @@ cat .viepilot/TRACKER.md
|
|
|
32
32
|
cat .viepilot/ROADMAP.md
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
### load_language_config
|
|
36
|
+
Read `~/.viepilot/config.json` → `COMMUNICATION_LANG` (default: `en`).
|
|
37
|
+
Use `COMMUNICATION_LANG` for all banners, control-point messages, and user-facing output in this session.
|
|
38
|
+
|
|
35
39
|
Display startup banner:
|
|
36
40
|
```
|
|
37
41
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
@@ -101,6 +105,35 @@ read:
|
|
|
101
105
|
- context_required files from task file
|
|
102
106
|
```
|
|
103
107
|
|
|
108
|
+
#### ⛔ Preflight: Task Paths Validation (BUG-009)
|
|
109
|
+
|
|
110
|
+
**Before any implementation**, read the `## Paths` block of the task file and validate each listed path:
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
FOR EACH path in ## Paths:
|
|
114
|
+
IF path starts with "~/" OR starts with "/" (absolute):
|
|
115
|
+
→ STOP. Do NOT execute this task.
|
|
116
|
+
→ Output:
|
|
117
|
+
|
|
118
|
+
⛔ TASK PATH ERROR (BUG-009)
|
|
119
|
+
Task {phase}.{task} contains an absolute or external path:
|
|
120
|
+
"{offending_path}"
|
|
121
|
+
|
|
122
|
+
Expected: a repo-relative path (e.g., workflows/foo.md, skills/vp-bar/SKILL.md)
|
|
123
|
+
|
|
124
|
+
Fix the task file before continuing:
|
|
125
|
+
.viepilot/phases/{phase-dir}/tasks/{phase}.{task}.md
|
|
126
|
+
|
|
127
|
+
Replace: {offending_path}
|
|
128
|
+
With the repo-relative equivalent (e.g., without ~/.claude/viepilot/ prefix).
|
|
129
|
+
|
|
130
|
+
ELSE:
|
|
131
|
+
→ Pass. Continue with task execution.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
This check fires on `~/`, `~\`, and any path starting with `/`.
|
|
135
|
+
It does NOT fire on paths inside code block content within the task (only the `## Paths` header block is validated).
|
|
136
|
+
|
|
104
137
|
### ViePilot Skill Scope Policy (BUG-004 baseline)
|
|
105
138
|
- **Default mode**: only reference/route skills in the ViePilot namespace (`vp-*`).
|
|
106
139
|
- **External skills** (`non vp-*`) are out of scope by default and must not be suggested implicitly.
|