viepilot 1.0.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 +230 -0
- package/LICENSE +23 -0
- package/README.md +550 -0
- package/bin/viepilot.cjs +222 -0
- package/bin/vp-tools.cjs +912 -0
- package/dev-install.sh +109 -0
- package/docs/README.md +125 -0
- package/docs/advanced-usage.md +366 -0
- package/docs/api/README.md +12 -0
- package/docs/api/graphql-schema.md +5 -0
- package/docs/api/kafka-events.md +5 -0
- package/docs/api/rest-api.md +19 -0
- package/docs/api/websocket-api.md +5 -0
- package/docs/dev/architecture.md +226 -0
- package/docs/dev/cli-reference.md +324 -0
- package/docs/dev/contributing.md +195 -0
- package/docs/dev/deployment.md +204 -0
- package/docs/dev/getting-started.md +16 -0
- package/docs/dev/testing.md +171 -0
- package/docs/dev/ui-components-library.md +36 -0
- package/docs/getting-started.md +163 -0
- package/docs/skills-reference.md +399 -0
- package/docs/troubleshooting.md +297 -0
- package/docs/user/faq.md +117 -0
- package/docs/user/features/autonomous-mode.md +111 -0
- package/docs/user/features/checkpoint-recovery.md +76 -0
- package/docs/user/features/debug-mode.md +77 -0
- package/docs/user/features/ui-direction.md +29 -0
- package/docs/user/quick-start.md +157 -0
- package/docs/videos/01-installation.md +113 -0
- package/docs/videos/02-first-project.md +132 -0
- package/docs/videos/03-autonomous-mode.md +147 -0
- package/install.sh +144 -0
- package/lib/cli-shared.cjs +108 -0
- package/package.json +78 -0
- package/skills/vp-audit/SKILL.md +140 -0
- package/skills/vp-auto/SKILL.md +204 -0
- package/skills/vp-brainstorm/SKILL.md +75 -0
- package/skills/vp-crystallize/SKILL.md +175 -0
- package/skills/vp-debug/SKILL.md +96 -0
- package/skills/vp-docs/SKILL.md +258 -0
- package/skills/vp-evolve/SKILL.md +165 -0
- package/skills/vp-pause/SKILL.md +150 -0
- package/skills/vp-request/SKILL.md +250 -0
- package/skills/vp-resume/SKILL.md +141 -0
- package/skills/vp-rollback/SKILL.md +116 -0
- package/skills/vp-status/SKILL.md +137 -0
- package/skills/vp-task/SKILL.md +139 -0
- package/skills/vp-ui-components/SKILL.md +64 -0
- package/templates/phase/PHASE-STATE.md +35 -0
- package/templates/phase/SPEC.md +40 -0
- package/templates/phase/SUMMARY.md +67 -0
- package/templates/phase/TASK.md +101 -0
- package/templates/phase/VERIFICATION.md +49 -0
- package/templates/project/AI-GUIDE.md +114 -0
- package/templates/project/ARCHITECTURE.md +70 -0
- package/templates/project/CHANGELOG.md +36 -0
- package/templates/project/CONTRIBUTING.md +154 -0
- package/templates/project/CONTRIBUTORS.md +41 -0
- package/templates/project/PROJECT-CONTEXT.md +74 -0
- package/templates/project/PROJECT-META.md +133 -0
- package/templates/project/README.md +197 -0
- package/templates/project/ROADMAP.md +56 -0
- package/templates/project/SYSTEM-RULES.md +368 -0
- package/templates/project/TRACKER.md +50 -0
- package/ui-components/INDEX.md +9 -0
- package/ui-components/base/button/README.md +8 -0
- package/ui-components/base/button/metadata.json +8 -0
- package/ui-components/base/card/README.md +8 -0
- package/ui-components/base/card/metadata.json +8 -0
- package/ui-components/base/input/README.md +8 -0
- package/ui-components/base/input/metadata.json +8 -0
- package/workflows/audit.md +549 -0
- package/workflows/autonomous.md +425 -0
- package/workflows/brainstorm.md +257 -0
- package/workflows/crystallize.md +418 -0
- package/workflows/debug.md +241 -0
- package/workflows/documentation.md +587 -0
- package/workflows/evolve.md +258 -0
- package/workflows/pause-work.md +255 -0
- package/workflows/request.md +534 -0
- package/workflows/resume-work.md +226 -0
- package/workflows/rollback.md +202 -0
- package/workflows/ui-components.md +109 -0
package/dev-install.sh
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# ViePilot Development Installation Script
|
|
4
|
+
# Creates symlinks to development version for instant updates
|
|
5
|
+
|
|
6
|
+
set -e
|
|
7
|
+
|
|
8
|
+
# Colors
|
|
9
|
+
RED='\033[0;31m'
|
|
10
|
+
GREEN='\033[0;32m'
|
|
11
|
+
YELLOW='\033[1;33m'
|
|
12
|
+
BLUE='\033[0;34m'
|
|
13
|
+
NC='\033[0m'
|
|
14
|
+
|
|
15
|
+
# Get script directory (project root)
|
|
16
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
17
|
+
CURSOR_SKILLS_DIR="$HOME/.cursor/skills"
|
|
18
|
+
VIEPILOT_DIR="$HOME/.cursor/viepilot"
|
|
19
|
+
AUTO_YES="${VIEPILOT_AUTO_YES:-0}"
|
|
20
|
+
INSTALL_PROFILE="${VIEPILOT_INSTALL_PROFILE:-cursor-agent}"
|
|
21
|
+
|
|
22
|
+
echo -e "${BLUE}"
|
|
23
|
+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
24
|
+
echo " VIEPILOT DEV INSTALLER"
|
|
25
|
+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
26
|
+
echo -e "${NC}"
|
|
27
|
+
|
|
28
|
+
echo -e "${YELLOW}Development mode installation${NC}"
|
|
29
|
+
echo " Source: $SCRIPT_DIR"
|
|
30
|
+
echo " Target: $CURSOR_SKILLS_DIR, $VIEPILOT_DIR"
|
|
31
|
+
echo " Profile: $INSTALL_PROFILE"
|
|
32
|
+
echo ""
|
|
33
|
+
|
|
34
|
+
# Confirm
|
|
35
|
+
if [ "$AUTO_YES" != "1" ]; then
|
|
36
|
+
read -p "This will replace existing installation with symlinks. Continue? (y/n) " -n 1 -r
|
|
37
|
+
echo
|
|
38
|
+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
39
|
+
echo "Installation cancelled."
|
|
40
|
+
exit 0
|
|
41
|
+
fi
|
|
42
|
+
else
|
|
43
|
+
echo "Auto-yes enabled via VIEPILOT_AUTO_YES=1"
|
|
44
|
+
fi
|
|
45
|
+
|
|
46
|
+
echo ""
|
|
47
|
+
echo -e "${BLUE}Removing old installations...${NC}"
|
|
48
|
+
|
|
49
|
+
# Remove old skill installations
|
|
50
|
+
for skill in "$CURSOR_SKILLS_DIR"/vp-*/; do
|
|
51
|
+
if [ -d "$skill" ] || [ -L "$skill" ]; then
|
|
52
|
+
rm -rf "$skill"
|
|
53
|
+
echo " Removed: $(basename "$skill")"
|
|
54
|
+
fi
|
|
55
|
+
done
|
|
56
|
+
|
|
57
|
+
# Remove old viepilot installation
|
|
58
|
+
if [ -d "$VIEPILOT_DIR" ] || [ -L "$VIEPILOT_DIR" ]; then
|
|
59
|
+
rm -rf "$VIEPILOT_DIR"
|
|
60
|
+
echo " Removed: viepilot/"
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
echo ""
|
|
64
|
+
echo -e "${BLUE}Creating skill symlinks...${NC}"
|
|
65
|
+
|
|
66
|
+
# Create skill symlinks
|
|
67
|
+
mkdir -p "$CURSOR_SKILLS_DIR"
|
|
68
|
+
for skill in "$SCRIPT_DIR"/skills/vp-*/; do
|
|
69
|
+
skill_name=$(basename "$skill")
|
|
70
|
+
ln -s "$skill" "$CURSOR_SKILLS_DIR/$skill_name"
|
|
71
|
+
echo -e " ${GREEN}✓${NC} $skill_name"
|
|
72
|
+
done
|
|
73
|
+
|
|
74
|
+
echo ""
|
|
75
|
+
echo -e "${BLUE}Creating viepilot symlinks...${NC}"
|
|
76
|
+
|
|
77
|
+
# Create viepilot directory and symlinks
|
|
78
|
+
mkdir -p "$VIEPILOT_DIR"
|
|
79
|
+
ln -s "$SCRIPT_DIR/workflows" "$VIEPILOT_DIR/workflows"
|
|
80
|
+
ln -s "$SCRIPT_DIR/templates" "$VIEPILOT_DIR/templates"
|
|
81
|
+
ln -s "$SCRIPT_DIR/bin" "$VIEPILOT_DIR/bin"
|
|
82
|
+
ln -s "$SCRIPT_DIR/lib" "$VIEPILOT_DIR/lib"
|
|
83
|
+
ln -s "$SCRIPT_DIR/ui-components" "$VIEPILOT_DIR/ui-components"
|
|
84
|
+
|
|
85
|
+
echo -e " ${GREEN}✓${NC} workflows"
|
|
86
|
+
echo -e " ${GREEN}✓${NC} templates"
|
|
87
|
+
echo -e " ${GREEN}✓${NC} bin"
|
|
88
|
+
echo -e " ${GREEN}✓${NC} lib"
|
|
89
|
+
echo -e " ${GREEN}✓${NC} ui-components"
|
|
90
|
+
|
|
91
|
+
# Count installed
|
|
92
|
+
SKILL_COUNT=$(ls -d "$CURSOR_SKILLS_DIR"/vp-*/ 2>/dev/null | wc -l | tr -d ' ')
|
|
93
|
+
WORKFLOW_COUNT=$(ls "$SCRIPT_DIR"/workflows/*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
94
|
+
|
|
95
|
+
echo ""
|
|
96
|
+
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
97
|
+
echo -e "${GREEN} DEV INSTALLATION COMPLETE ✓${NC}"
|
|
98
|
+
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
99
|
+
echo ""
|
|
100
|
+
echo "Installed (via symlinks):"
|
|
101
|
+
echo " - Skills: $SKILL_COUNT"
|
|
102
|
+
echo " - Workflows: $WORKFLOW_COUNT"
|
|
103
|
+
echo ""
|
|
104
|
+
echo -e "${YELLOW}Development mode enabled!${NC}"
|
|
105
|
+
echo "Any changes to $SCRIPT_DIR will be reflected immediately."
|
|
106
|
+
echo ""
|
|
107
|
+
echo "To switch back to stable installation:"
|
|
108
|
+
echo " ./install.sh"
|
|
109
|
+
echo ""
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# ViePilot Documentation
|
|
2
|
+
|
|
3
|
+
> Autonomous Vibe Coding Framework — phát triển phần mềm với AI có hệ thống và kiểm soát.
|
|
4
|
+
|
|
5
|
+
## Quick Links
|
|
6
|
+
|
|
7
|
+
| | |
|
|
8
|
+
|--|--|
|
|
9
|
+
| 🚀 [Quick Start](user/quick-start.md) | Bắt đầu trong 5 phút |
|
|
10
|
+
| 🔧 [CLI Reference](dev/cli-reference.md) | `vp-tools` commands |
|
|
11
|
+
| 🏗️ [Architecture](dev/architecture.md) | System design |
|
|
12
|
+
| 🔌 [API / interfaces](api/README.md) | No HTTP API — CLI & file contracts |
|
|
13
|
+
| ❓ [FAQ](user/faq.md) | Common questions |
|
|
14
|
+
| 🐛 [Troubleshooting](troubleshooting.md) | Common issues |
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Documentation Index
|
|
19
|
+
|
|
20
|
+
### User Guide
|
|
21
|
+
|
|
22
|
+
| Document | Description |
|
|
23
|
+
|----------|-------------|
|
|
24
|
+
| [Quick Start](user/quick-start.md) | Install, brainstorm, crystallize, auto — 5 min guide |
|
|
25
|
+
| [FAQ](user/faq.md) | Frequently asked questions |
|
|
26
|
+
|
|
27
|
+
#### Features
|
|
28
|
+
|
|
29
|
+
| Feature | Document |
|
|
30
|
+
|---------|----------|
|
|
31
|
+
| Autonomous Mode | [autonomous-mode.md](user/features/autonomous-mode.md) (flags, `--fast`, lượt chat) |
|
|
32
|
+
| UI Direction Mode | [ui-direction.md](user/features/ui-direction.md) |
|
|
33
|
+
| Checkpoint Recovery | [checkpoint-recovery.md](user/features/checkpoint-recovery.md) |
|
|
34
|
+
| Debug Mode | [debug-mode.md](user/features/debug-mode.md) |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
### API & machine interface
|
|
39
|
+
|
|
40
|
+
| Document | Description |
|
|
41
|
+
|----------|-------------|
|
|
42
|
+
| [API index](api/README.md) | ViePilot has no REST stack; links to CLI/file model |
|
|
43
|
+
| [REST / CLI model](api/rest-api.md) | Framework integration surface |
|
|
44
|
+
| [GraphQL](api/graphql-schema.md) | N/A for this repo |
|
|
45
|
+
| [Kafka](api/kafka-events.md) | N/A for this repo |
|
|
46
|
+
| [WebSocket](api/websocket-api.md) | N/A for this repo |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Developer Guide
|
|
51
|
+
|
|
52
|
+
| Document | Description |
|
|
53
|
+
|----------|-------------|
|
|
54
|
+
| [Getting Started](getting-started.md) | Installation and first steps |
|
|
55
|
+
| [Getting Started (dev entry)](dev/getting-started.md) | Short link into dev guide |
|
|
56
|
+
| [CLI Reference](dev/cli-reference.md) | All 13 `vp-tools` commands with examples |
|
|
57
|
+
| [Architecture](dev/architecture.md) | System layers, data flow, design decisions |
|
|
58
|
+
| [UI Components Library](dev/ui-components-library.md) | Curation taxonomy, storage contract, reuse flow |
|
|
59
|
+
| [Contributing](dev/contributing.md) | How to add skills, workflows, CLI commands |
|
|
60
|
+
| [Testing](dev/testing.md) | Test structure, running tests, writing new tests |
|
|
61
|
+
| [Deployment](dev/deployment.md) | Distribution, versioning, CI/CD |
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### Skills Reference
|
|
66
|
+
|
|
67
|
+
| Document | Description |
|
|
68
|
+
|----------|-------------|
|
|
69
|
+
| [Skills Reference](skills-reference.md) | All 13 skills with flags and examples |
|
|
70
|
+
| [Advanced Usage](advanced-usage.md) | Power user features and patterns |
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### Examples
|
|
75
|
+
|
|
76
|
+
| Example | Stack | Description |
|
|
77
|
+
|---------|-------|-------------|
|
|
78
|
+
| [web-app](../examples/web-app/) | Next.js, SQLite | Todo web application |
|
|
79
|
+
| [api-service](../examples/api-service/) | Express, PostgreSQL, JWT | REST API with auth |
|
|
80
|
+
| [cli-tool](../examples/cli-tool/) | Node.js (no deps) | CLI application |
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### Video Tutorials
|
|
85
|
+
|
|
86
|
+
| Video | Duration | Description |
|
|
87
|
+
|-------|----------|-------------|
|
|
88
|
+
| [01 — Installation](videos/01-installation.md) | 5 min | Install ViePilot and first run |
|
|
89
|
+
| [02 — First Project](videos/02-first-project.md) | 8 min | Build a REST API end-to-end |
|
|
90
|
+
| [03 — Autonomous Mode](videos/03-autonomous-mode.md) | 7 min | Control points, rollback, debug |
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### Reference
|
|
95
|
+
|
|
96
|
+
| Document | Description |
|
|
97
|
+
|----------|-------------|
|
|
98
|
+
| [Troubleshooting](troubleshooting.md) | 15+ common issues with solutions |
|
|
99
|
+
| [CHANGELOG](../CHANGELOG.md) | Version history |
|
|
100
|
+
| [CONTRIBUTING](../CONTRIBUTING.md) | Contribution guidelines |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Skills Quick Reference
|
|
105
|
+
|
|
106
|
+
| Skill | Trigger | Purpose |
|
|
107
|
+
|-------|---------|---------|
|
|
108
|
+
| `/vp-brainstorm` | "brainstorm", "ý tưởng" | Gather requirements |
|
|
109
|
+
| `/vp-crystallize` | "crystallize", "tạo artifacts" | Generate project structure |
|
|
110
|
+
| `/vp-auto` | "auto", "vibe", "chạy tự động" | Autonomous execution |
|
|
111
|
+
| `/vp-pause` | "pause", "dừng" | Save state and pause |
|
|
112
|
+
| `/vp-resume` | "resume", "tiếp tục" | Restore and continue |
|
|
113
|
+
| `/vp-status` | "status", "tiến độ" | Progress dashboard |
|
|
114
|
+
| `/vp-request` | "request", "feature", "bug" | Add feature/bug |
|
|
115
|
+
| `/vp-ui-components` | "ui components", "21st.dev" | Curate and reuse UI component library |
|
|
116
|
+
| `/vp-evolve` | "evolve", "milestone mới" | New milestone |
|
|
117
|
+
| `/vp-docs` | "docs", "documentation" | Generate docs |
|
|
118
|
+
| `/vp-task` | "task", "manual" | Manual task control |
|
|
119
|
+
| `/vp-debug` | "debug", "investigate" | Debug issues |
|
|
120
|
+
| `/vp-rollback` | "rollback", "revert" | Checkpoint recovery |
|
|
121
|
+
| `/vp-audit` | "audit", "kiểm tra" | Documentation sync |
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
*Last updated: 2026-03-31 — ViePilot framework v0.10.0 (see `.viepilot/TRACKER.md`); guided NPX installer flow added.*
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
# ViePilot Advanced Usage Guide
|
|
2
|
+
|
|
3
|
+
Power user features and patterns for experienced ViePilot users.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Autonomous Mode Flags
|
|
8
|
+
|
|
9
|
+
### `--from N` — Start from a specific phase
|
|
10
|
+
|
|
11
|
+
Skip completed phases and jump directly to phase N:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
/vp-auto --from 3
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Useful when you've manually completed earlier phases or fixed a blocker.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
### `--phase N` — Run only one phase
|
|
22
|
+
|
|
23
|
+
Useful for re-running a specific phase after changes:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
/vp-auto --phase 2
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Warning: Dependencies must be satisfied (phases before N must be complete).
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### `--fast` — Skip optional verifications
|
|
34
|
+
|
|
35
|
+
Skips manual review prompts and optional checks. Use for rapid iteration:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
/vp-auto --fast
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Not recommended for final releases — quality gates are important.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### `--dry-run` — Preview without executing
|
|
46
|
+
|
|
47
|
+
See exactly what would happen without writing any files:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
/vp-auto --dry-run
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Output shows: phases to run, tasks in each, verification steps.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 2. Mid-Project Changes
|
|
58
|
+
|
|
59
|
+
### Adding a feature (`/vp-request --feature`)
|
|
60
|
+
|
|
61
|
+
Add a new feature requirement without disrupting the current phase:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
/vp-request --feature Add export to PDF functionality
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
ViePilot will:
|
|
68
|
+
1. Create a new phase (e.g., Phase 3.5) inserted between current phases
|
|
69
|
+
2. Add it to ROADMAP.md
|
|
70
|
+
3. On next `/vp-auto`, include it in the execution queue
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
### Reporting a bug (`/vp-request --bug`)
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
/vp-request --bug Login form submits but user is not authenticated
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
ViePilot creates a bug phase with investigation and fix tasks.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### Evolving to a new milestone (`/vp-evolve`)
|
|
85
|
+
|
|
86
|
+
When M1 is complete and you want to start M2:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
/vp-evolve Add real-time collaboration features
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
ViePilot:
|
|
93
|
+
1. Archives the current milestone
|
|
94
|
+
2. Runs `/vp-brainstorm` for the new feature set
|
|
95
|
+
3. Creates M2 phases in ROADMAP.md
|
|
96
|
+
4. Updates TRACKER.md
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 3. Checkpoint Management
|
|
101
|
+
|
|
102
|
+
### Listing all checkpoints
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
vp-tools checkpoints
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Output:
|
|
109
|
+
```
|
|
110
|
+
ViePilot Checkpoints
|
|
111
|
+
|
|
112
|
+
TAG COMMIT DATE
|
|
113
|
+
─────────────────────────────────────────────────────
|
|
114
|
+
✅ vp-p3-complete a1b2c3d 2026-03-30 14:00
|
|
115
|
+
✔️ vp-p3-t4-done b2c3d4e 2026-03-30 13:45
|
|
116
|
+
✔️ vp-p3-t3-done c3d4e5f 2026-03-30 13:20
|
|
117
|
+
📌 vp-p3-t3 d4e5f6g 2026-03-30 12:00
|
|
118
|
+
...
|
|
119
|
+
|
|
120
|
+
Total: 14 checkpoints
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
### Rolling back to a checkpoint
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
/vp-rollback
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Interactive selection:
|
|
132
|
+
```
|
|
133
|
+
Select checkpoint to restore:
|
|
134
|
+
1. vp-p3-t4-done (Phase 3 Task 4 complete)
|
|
135
|
+
2. vp-p3-t3-done (Phase 3 Task 3 complete)
|
|
136
|
+
3. vp-p3-complete (Phase 3 complete)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Rollback uses `git revert` — safe, non-destructive, preserves history.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### Saving state manually
|
|
144
|
+
|
|
145
|
+
Before a risky operation:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
vp-tools save-state
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
This updates `HANDOFF.json` with:
|
|
152
|
+
- Current git HEAD
|
|
153
|
+
- Branch name
|
|
154
|
+
- Node.js version
|
|
155
|
+
- Precise timestamp
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 4. Debugging Workflows
|
|
160
|
+
|
|
161
|
+
### Starting a debug session
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
/vp-debug investigate: API returns 500 after adding auth middleware
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
ViePilot creates a structured debug session:
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
.viepilot/debug/
|
|
171
|
+
└── DEBUG-001.md
|
|
172
|
+
├── Problem Statement
|
|
173
|
+
├── Hypotheses (tracked)
|
|
174
|
+
├── Attempts (with results)
|
|
175
|
+
└── Resolution (when found)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
### Continuing a debug session
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
/vp-debug continue
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Loads the last open debug session and continues from where you left off — even across context resets.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### Closing a debug session
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
/vp-debug close: Fixed by removing duplicate middleware in app.js
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Marks the session resolved and logs the fix in CHANGELOG.md.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 5. State Management CLI
|
|
201
|
+
|
|
202
|
+
### Progress overview
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
vp-tools progress
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Returns JSON with phase completion percentages — useful for scripts.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
### Version management
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# Get current version
|
|
216
|
+
vp-tools version get
|
|
217
|
+
|
|
218
|
+
# Bump for new features (Phase complete)
|
|
219
|
+
vp-tools version bump minor
|
|
220
|
+
|
|
221
|
+
# Bump for bug fixes only
|
|
222
|
+
vp-tools version bump patch
|
|
223
|
+
|
|
224
|
+
# Major breaking change
|
|
225
|
+
vp-tools version bump major
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
### Checking for conflicts
|
|
231
|
+
|
|
232
|
+
Before running `/vp-auto` on a dirty working directory:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
vp-tools conflicts
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Shows: modified, untracked, deleted, staged files. Resolve before continuing.
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
### Cleaning generated state
|
|
243
|
+
|
|
244
|
+
Safe reset of HANDOFF.json (not code files):
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# Preview what would be removed
|
|
248
|
+
vp-tools clean --dry-run
|
|
249
|
+
|
|
250
|
+
# With confirmation prompt
|
|
251
|
+
vp-tools clean
|
|
252
|
+
|
|
253
|
+
# Force (no confirmation)
|
|
254
|
+
vp-tools clean --force
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 6. Custom Skill Creation
|
|
260
|
+
|
|
261
|
+
Create your own ViePilot skill:
|
|
262
|
+
|
|
263
|
+
```
|
|
264
|
+
skills/vp-mycustom/SKILL.md
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Required structure:
|
|
268
|
+
|
|
269
|
+
```markdown
|
|
270
|
+
---
|
|
271
|
+
name: vp-mycustom
|
|
272
|
+
description: "What my skill does"
|
|
273
|
+
version: 0.1.0
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
<cursor_skill_adapter>
|
|
277
|
+
## A. Skill Invocation
|
|
278
|
+
- Triggered by: /vp-mycustom
|
|
279
|
+
|
|
280
|
+
## B. Tool Usage
|
|
281
|
+
Use Cursor tools: Shell, Read, Write
|
|
282
|
+
</cursor_skill_adapter>
|
|
283
|
+
|
|
284
|
+
<objective>
|
|
285
|
+
What this skill accomplishes.
|
|
286
|
+
</objective>
|
|
287
|
+
|
|
288
|
+
<execution_context>
|
|
289
|
+
@$HOME/.cursor/viepilot/workflows/mycustom.md
|
|
290
|
+
</execution_context>
|
|
291
|
+
|
|
292
|
+
<success_criteria>
|
|
293
|
+
- [ ] Task completed correctly
|
|
294
|
+
</success_criteria>
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Then create `workflows/mycustom.md` with the implementation steps.
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## 7. CI/CD Integration
|
|
302
|
+
|
|
303
|
+
### Running ViePilot state checks in CI
|
|
304
|
+
|
|
305
|
+
```yaml
|
|
306
|
+
# .github/workflows/viepilot-check.yml
|
|
307
|
+
- name: Check project state
|
|
308
|
+
run: |
|
|
309
|
+
node bin/vp-tools.cjs init
|
|
310
|
+
node bin/vp-tools.cjs conflicts
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
### Version gate on PRs
|
|
316
|
+
|
|
317
|
+
Block merges if version wasn't bumped:
|
|
318
|
+
|
|
319
|
+
```yaml
|
|
320
|
+
- name: Version check
|
|
321
|
+
run: |
|
|
322
|
+
VERSION=$(node bin/vp-tools.cjs version get --raw 2>/dev/null || echo "0.0.0")
|
|
323
|
+
# Set EXPECTED to `.viepilot/TRACKER.md` "Current Version" when pinning a release
|
|
324
|
+
EXPECTED="0.8.2"
|
|
325
|
+
if [ "$VERSION" != "$EXPECTED" ]; then
|
|
326
|
+
echo "Version mismatch: got $VERSION, expected $EXPECTED"
|
|
327
|
+
exit 1
|
|
328
|
+
fi
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
## 8. Multi-Project Usage
|
|
334
|
+
|
|
335
|
+
Use ViePilot across multiple projects simultaneously:
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
# Project A
|
|
339
|
+
cd ~/project-a
|
|
340
|
+
/vp-status # shows project A state
|
|
341
|
+
|
|
342
|
+
# Project B (completely independent state)
|
|
343
|
+
cd ~/project-b
|
|
344
|
+
/vp-status # shows project B state
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Each project has its own `.viepilot/` directory — fully isolated.
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
## Context Loading Strategy
|
|
352
|
+
|
|
353
|
+
For long sessions or large codebases, follow AI-GUIDE.md's minimal context strategy:
|
|
354
|
+
|
|
355
|
+
```
|
|
356
|
+
Minimal (quick tasks):
|
|
357
|
+
AI-GUIDE.md + TRACKER.md + specific file
|
|
358
|
+
|
|
359
|
+
Standard (coding tasks):
|
|
360
|
+
Above + ROADMAP.md + SYSTEM-RULES.md
|
|
361
|
+
|
|
362
|
+
Full (architecture decisions):
|
|
363
|
+
Above + ARCHITECTURE.md + PROJECT-CONTEXT.md
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
Never load the entire codebase — be selective.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# API documentation (ViePilot framework)
|
|
2
|
+
|
|
3
|
+
ViePilot repository is a **skill + workflow framework**, not an HTTP/GraphQL/Kafka service. There is **no network API surface** in this repo.
|
|
4
|
+
|
|
5
|
+
| Document | Purpose |
|
|
6
|
+
|----------|---------|
|
|
7
|
+
| [REST / machine interface](rest-api.md) | How automation interacts with the project (CLI, files, skills) |
|
|
8
|
+
| [GraphQL](graphql-schema.md) | Not applicable |
|
|
9
|
+
| [Kafka](kafka-events.md) | Not applicable |
|
|
10
|
+
| [WebSocket](websocket-api.md) | Not applicable |
|
|
11
|
+
|
|
12
|
+
For command-line behavior, see [CLI Reference](../dev/cli-reference.md).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Kafka events — ViePilot framework
|
|
2
|
+
|
|
3
|
+
**Not applicable.** The ViePilot framework repo does not define Kafka topics or producers/consumers.
|
|
4
|
+
|
|
5
|
+
For event-driven systems built with ViePilot, document topics here after you add `.viepilot/schemas/kafka-topics.yaml` (or equivalent).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# REST API — ViePilot framework
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
This repository **does not ship a REST HTTP API**. Integration is **file-based** and **CLI-assisted**:
|
|
6
|
+
|
|
7
|
+
- **Skills** (`skills/vp-*/SKILL.md`) define how an AI assistant runs workflows.
|
|
8
|
+
- **Workflows** (`workflows/*.md`) encode step-by-step processes.
|
|
9
|
+
- **CLI** (`bin/vp-tools.cjs`) manages version, state, checkpoints, and helpers.
|
|
10
|
+
|
|
11
|
+
## Primary interfaces
|
|
12
|
+
|
|
13
|
+
| Interface | Location | Description |
|
|
14
|
+
|-----------|----------|-------------|
|
|
15
|
+
| CLI | [CLI Reference](../dev/cli-reference.md) | 13 commands (`init`, `version`, `progress`, …) |
|
|
16
|
+
| State | `.viepilot/HANDOFF.json`, `.viepilot/TRACKER.md` | Resume and progress |
|
|
17
|
+
| Contracts | Templates under `templates/` | Generated project docs |
|
|
18
|
+
|
|
19
|
+
If you are documenting an **application built with ViePilot**, add OpenAPI or schema files under that app (e.g. `.viepilot/schemas/`) and extend this folder with real endpoints.
|