peaks-cli 1.0.23 → 1.0.25
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/dist/src/cli/commands/core-artifact-commands.js +74 -2
- package/dist/src/services/session/index.d.ts +1 -1
- package/dist/src/services/session/index.js +1 -1
- package/dist/src/services/session/session-manager.d.ts +29 -0
- package/dist/src/services/session/session-manager.js +90 -2
- package/dist/src/services/skills/skill-presence-service.d.ts +2 -0
- package/dist/src/services/skills/skill-presence-service.js +22 -1
- package/dist/src/services/standards/project-standards-service.js +21 -0
- package/dist/src/shared/version.d.ts +1 -1
- package/dist/src/shared/version.js +1 -1
- package/output-styles/peaks-skill-swarm.md +34 -34
- package/package.json +1 -1
- package/skills/peaks-prd/SKILL.md +10 -10
- package/skills/peaks-qa/SKILL.md +48 -36
- package/skills/peaks-rd/SKILL.md +53 -53
- package/skills/peaks-sc/SKILL.md +9 -9
- package/skills/peaks-solo/SKILL.md +112 -99
- package/skills/peaks-txt/SKILL.md +17 -17
- package/skills/peaks-ui/SKILL.md +14 -14
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: peaks-solo
|
|
3
|
-
description: Full-auto orchestration facade for the Peaks skill family. Use when the user asks Peaks to handle a project workflow end-to-end (端到端/全流程/需求开发), especially from a product document (产品文档/PRD/飞书文档/Feishu doc) through implementation and validation. Coordinates peaks-prd, peaks-rd, peaks-ui, peaks-qa, peaks-sc, and peaks-txt while preserving user confirmation gates. Triggers on `/peaks-solo`, "peaks solo", "全流程开发", "端到端迭代", "根据产品文档开发", "从需求到上线".
|
|
3
|
+
description: Full-auto orchestration facade for the Peaks-Cli skill family. Use when the user asks Peaks-Cli to handle a project workflow end-to-end (端到端/全流程/需求开发), especially from a product document (产品文档/PRD/飞书文档/Feishu doc) through implementation and validation. Coordinates peaks-prd, peaks-rd, peaks-ui, peaks-qa, peaks-sc, and peaks-txt while preserving user confirmation gates. Triggers on `/peaks-solo`, "peaks solo", "全流程开发", "端到端迭代", "根据产品文档开发", "从需求到上线".
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Peaks Solo
|
|
6
|
+
# Peaks-Cli Solo
|
|
7
7
|
|
|
8
|
-
Peaks Solo is the orchestration facade for the Peaks short skill family.
|
|
8
|
+
Peaks-Cli Solo is the orchestration facade for the Peaks-Cli short skill family.
|
|
9
9
|
|
|
10
10
|
Use this skill to identify the user scenario, recommend an execution mode, coordinate role skills, and produce the final handoff report. Do not collapse role responsibilities into this skill.
|
|
11
11
|
|
|
12
12
|
## Code-Change Red Line (BLOCKING — read before ANY tool call)
|
|
13
13
|
|
|
14
|
-
**Peaks Solo is an orchestrator, NOT an implementer. You MUST NOT write, edit, or modify any application source code directly.**
|
|
14
|
+
**Peaks-Cli Solo is an orchestrator, NOT an implementer. You MUST NOT write, edit, or modify any application source code directly.**
|
|
15
15
|
|
|
16
16
|
Every code change — bugfix, feature, refactor, or config — MUST go through the full pipeline:
|
|
17
17
|
|
|
18
18
|
```
|
|
19
19
|
peaks-solo (orchestrate only)
|
|
20
20
|
→ Skill(skill="peaks-rd") ← ALL code changes happen HERE
|
|
21
|
-
→ Unit tests written + pass (Gate B2)
|
|
21
|
+
→ Unit tests written + pass (Peaks-Cli Gate B2)
|
|
22
22
|
→ Karpathy standards enforced (file-size ≤800 lines, TypeScript rules)
|
|
23
|
-
→ Code review evidence (Gate B3)
|
|
24
|
-
→ Security review evidence (Gate B4)
|
|
23
|
+
→ Code review evidence (Peaks-Cli Gate B3)
|
|
24
|
+
→ Security review evidence (Peaks-Cli Gate B4)
|
|
25
25
|
→ Skill(skill="peaks-qa") ← ALL validation happens HERE
|
|
26
|
-
→ Functional test execution (Gate A2)
|
|
27
|
-
→ Performance check (Gate A4)
|
|
28
|
-
→ Security test (Gate A3)
|
|
29
|
-
→ Browser E2E (when frontend; Gate D)
|
|
26
|
+
→ Functional test execution (Peaks-Cli Gate A2)
|
|
27
|
+
→ Performance check (Peaks-Cli Gate A4)
|
|
28
|
+
→ Security test (Peaks-Cli Gate A3)
|
|
29
|
+
→ Browser E2E (when frontend; Peaks-Cli Gate D)
|
|
30
30
|
→ Verdict: pass | return-to-rd | blocked
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -42,16 +42,16 @@ peaks-solo (orchestrate only)
|
|
|
42
42
|
|
|
43
43
|
**Before declaring workflow complete, run:** `peaks workflow verify-pipeline --rid <rid> --project <repo> --json`
|
|
44
44
|
|
|
45
|
-
## Startup sequence (MANDATORY — execute in order)
|
|
45
|
+
## Peaks-Cli Startup sequence (MANDATORY — execute in order)
|
|
46
46
|
|
|
47
|
-
### Step 1: Mode selection (MUST run before presence:set)
|
|
47
|
+
### Peaks-Cli Step 1: Mode selection (MUST run before presence:set)
|
|
48
48
|
|
|
49
|
-
When the user invokes Peaks Solo without explicitly naming an execution profile, use `AskUserQuestion` BEFORE any other action. Present the recommended full-auto path as the first/default option with a practical description for each:
|
|
49
|
+
When the user invokes Peaks-Cli Solo without explicitly naming an execution profile, use `AskUserQuestion` BEFORE any other action. Present the recommended full-auto path as the first/default option with a practical description for each:
|
|
50
50
|
|
|
51
|
-
1. **Full auto (Recommended)** — Peaks handles planning, role coordination, validation, and compact handoff end-to-end while preserving required confirmation gates for risky or shared-state actions.
|
|
52
|
-
2. **Assisted** — Peaks proposes plans, artifacts, and checks, then pauses for user decisions at major workflow boundaries.
|
|
53
|
-
3. **Swarm** — Peaks maximizes safe parallel role/worker execution for larger RD or QA workloads while keeping reducer validation and artifact boundaries explicit.
|
|
54
|
-
4. **Strict** — Peaks uses the most conservative gates: explicit confirmations, strict slice specs, coverage evidence, QA acceptance, and commit boundaries before continuing.
|
|
51
|
+
1. **Full auto (Recommended)** — Peaks-Cli handles planning, role coordination, validation, and compact handoff end-to-end while preserving required confirmation gates for risky or shared-state actions.
|
|
52
|
+
2. **Assisted** — Peaks-Cli proposes plans, artifacts, and checks, then pauses for user decisions at major workflow boundaries.
|
|
53
|
+
3. **Swarm** — Peaks-Cli maximizes safe parallel role/worker execution for larger RD or QA workloads while keeping reducer validation and artifact boundaries explicit.
|
|
54
|
+
4. **Strict** — Peaks-Cli uses the most conservative gates: explicit confirmations, strict slice specs, coverage evidence, QA acceptance, and commit boundaries before continuing.
|
|
55
55
|
|
|
56
56
|
Map the user's selection to the `--mode` flag value (used by `peaks skill presence:set`; `presence:set --mode` accepts any string, so the name matches the user-facing label rather than overloading "solo" which is also the skill name):
|
|
57
57
|
|
|
@@ -66,7 +66,7 @@ Map the user's selection to the `--mode` flag value (used by `peaks skill presen
|
|
|
66
66
|
|
|
67
67
|
If the user already names a profile in their invocation (e.g. `/peaks-solo --full-auto`, "用全自动模式"), skip this question and use the named profile directly.
|
|
68
68
|
|
|
69
|
-
### Step 2: Set skill presence
|
|
69
|
+
### Peaks-Cli Step 2: Set skill presence
|
|
70
70
|
|
|
71
71
|
Only after the mode is known (user selected or explicitly named), run:
|
|
72
72
|
|
|
@@ -74,22 +74,32 @@ Only after the mode is known (user selected or explicitly named), run:
|
|
|
74
74
|
peaks skill presence:set peaks-solo --mode <mode-value> --gate startup
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
Then display the compact status header: `Peaks Skill: peaks-solo | Gate: startup | Next: <one short action>`. Display this header on EVERY turn while the skill is active.
|
|
77
|
+
Then display the compact status header: `Peaks-Cli Skill: peaks-solo | Peaks-Cli Gate: startup | Next: <one short action>`. Display this header on EVERY turn while the skill is active.
|
|
78
78
|
|
|
79
|
-
Update with `peaks skill presence:set peaks-solo --mode <mode> --gate <gate>` when gates change.
|
|
79
|
+
Update with `peaks skill presence:set peaks-solo --mode <mode> --gate <gate>` when gates change. The presence file persists across the full workflow lifecycle — do NOT clear it at workflow end.
|
|
80
|
+
|
|
81
|
+
### Peaks-Cli Step 2.5: Set session title
|
|
82
|
+
|
|
83
|
+
Extract a short (8-20 Chinese characters, or 4-10 English words) descriptive title from the user's first request. The title should capture the core task — e.g. "修复登录页OAuth回调异常", "添加暗色模式开关", "搭建项目基础架构". Then run:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
peaks session title $(cat .peaks/.session.json | python3 -c "import sys,json; print(json.load(sys.stdin)['sessionId'])") "<title>"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If the session directory already has a title (check via `peaks session list --json`), skip this step — the title is already set.
|
|
80
90
|
|
|
81
91
|
## Boundaries
|
|
82
92
|
|
|
83
|
-
Peaks Solo may:
|
|
93
|
+
Peaks-Cli Solo may:
|
|
84
94
|
|
|
85
95
|
- identify scenarios such as refactor, bugfix, QA hardening, release validation, and incident response;
|
|
86
96
|
- recommend Solo, Assisted, Swarm, or Strict profiles;
|
|
87
|
-
- coordinate Peaks role skills through artifacts;
|
|
97
|
+
- coordinate Peaks-Cli role skills through artifacts;
|
|
88
98
|
- coordinate project memory extraction from stable skill artifact sections;
|
|
89
99
|
- request user confirmation at risk and commit boundaries;
|
|
90
100
|
- read CLI doctor/profile/artifact reports.
|
|
91
101
|
|
|
92
|
-
Peaks Solo must not silently:
|
|
102
|
+
Peaks-Cli Solo must not silently:
|
|
93
103
|
|
|
94
104
|
- install hooks;
|
|
95
105
|
- create agents;
|
|
@@ -98,19 +108,19 @@ Peaks Solo must not silently:
|
|
|
98
108
|
- create GitHub repositories;
|
|
99
109
|
- bypass role-skill artifacts.
|
|
100
110
|
|
|
101
|
-
Use the Peaks CLI for runtime side effects.
|
|
111
|
+
Use the Peaks-Cli CLI for runtime side effects.
|
|
102
112
|
|
|
103
|
-
## GStack integration
|
|
113
|
+
## Peaks-Cli GStack integration
|
|
104
114
|
|
|
105
|
-
Map gstack stages to Peaks role artifacts; preserve Peaks confirmation gates. Do not delegate orchestration to gstack commands.
|
|
115
|
+
Map gstack stages to Peaks-Cli role artifacts; preserve Peaks-Cli confirmation gates. Do not delegate orchestration to gstack commands.
|
|
106
116
|
|
|
107
117
|
For frontend workflows, RD and QA must use Playwright MCP (`mcp__playwright__` tool namespace) for real browser E2E (`peaks mcp plan/apply --capability playwright-mcp.browser-validation --yes`). Chrome DevTools MCP is a secondary CDP surface only. Sanitize browser artifacts before retention (no login URLs, cookies, tokens, PII). See `references/browser-workflow.md`.
|
|
108
118
|
|
|
109
|
-
## Local intermediate artifact workspace (MANDATORY)
|
|
119
|
+
## Peaks-Cli Local intermediate artifact workspace (MANDATORY)
|
|
110
120
|
|
|
111
121
|
### Workspace initialization gate
|
|
112
122
|
|
|
113
|
-
Before ANY role handoff or artifact write, Peaks Solo MUST create the workspace. Session IDs are now **auto-generated** with the format `YYYY-MM-DD-session-<6位hex>` (e.g. `2026-05-26-session-a3f8b1`). The user does not provide a session ID — the system creates and persists it in `.peaks/.session.json`.
|
|
123
|
+
Before ANY role handoff or artifact write, Peaks-Cli Solo MUST create the workspace. Session IDs are now **auto-generated** with the format `YYYY-MM-DD-session-<6位hex>` (e.g. `2026-05-26-session-a3f8b1`). The user does not provide a session ID — the system creates and persists it in `.peaks/.session.json`.
|
|
114
124
|
|
|
115
125
|
When `peaks workspace init` is run without `--session-id`, it automatically generates a new session ID using today's date and a random hex suffix. If `.peaks/.session.json` already exists with a valid session, the existing session is reused.
|
|
116
126
|
|
|
@@ -149,7 +159,7 @@ Files written into these directories during the workflow (not pre-created — th
|
|
|
149
159
|
|
|
150
160
|
### Root pollution prohibition (CRITICAL)
|
|
151
161
|
|
|
152
|
-
**NEVER write Peaks intermediate artifacts to the project root directory.** Specifically prohibited at root level:
|
|
162
|
+
**NEVER write Peaks-Cli intermediate artifacts to the project root directory.** Specifically prohibited at root level:
|
|
153
163
|
|
|
154
164
|
- PRD snapshots, document extracts, or requirement notes (`feishu-doc-*.md`, `*-snapshot.md`, etc.)
|
|
155
165
|
- RD tech docs, scan reports, slice specs, or architecture notes
|
|
@@ -166,7 +176,7 @@ If you are about to Write/Edit an intermediate artifact in the project root, STO
|
|
|
166
176
|
|
|
167
177
|
Do not default to git-backed storage or automatic commits for intermediate artifacts. Git inclusion or sync requires explicit user confirmation or an active profile that authorizes it.
|
|
168
178
|
|
|
169
|
-
## Pre-RD project scan checklist (MANDATORY)
|
|
179
|
+
## Peaks-Cli Pre-RD project scan checklist (MANDATORY)
|
|
170
180
|
|
|
171
181
|
Before handing off to `peaks-rd`, scan the project and record findings to `.peaks/<session-id>/rd/project-scan.md`. RD and UI roles read this before starting work. **project-scan.md is a session-scoped singleton** — check if it already exists before regenerating (e.g. via `ls .peaks/<session-id>/rd/project-scan.md`). If it exists and is complete (has `## Archetype` and `## Project mode` sections), reuse it. Only regenerate if missing or incomplete.
|
|
172
182
|
|
|
@@ -296,7 +306,7 @@ Grep `src/` for outdated patterns and list them as constraints in `project-scan.
|
|
|
296
306
|
- <bullet list of legacy signals from section 5; empty for greenfield>
|
|
297
307
|
```
|
|
298
308
|
|
|
299
|
-
## Frontend-only development mode
|
|
309
|
+
## Peaks-Cli Frontend-only development mode
|
|
300
310
|
|
|
301
311
|
When the project has no live backend (no swagger.json, no API server), Solo must activate frontend-only mode.
|
|
302
312
|
|
|
@@ -368,7 +378,7 @@ When the PRD source is a Feishu/Lark document that requires authentication:
|
|
|
368
378
|
|
|
369
379
|
Never silently fall back to unauthenticated `fetch` or `WebFetch` for authenticated documents.
|
|
370
380
|
|
|
371
|
-
## Request type classification (MANDATORY before `peaks request init`)
|
|
381
|
+
## Peaks-Cli Request type classification (MANDATORY before `peaks request init`)
|
|
372
382
|
|
|
373
383
|
Before initializing any role artifact, classify the request into exactly one of six types. The choice drives RD/QA gate strictness (see "Mandatory RD QA repair loop"). Pick the **primary intent** — if a request could fit two types, the higher-strictness one wins.
|
|
374
384
|
|
|
@@ -385,34 +395,34 @@ Before initializing any role artifact, classify the request into exactly one of
|
|
|
385
395
|
|
|
386
396
|
For ambiguous cases (e.g. "improve login flow"), ask the user to clarify before initializing. The cost of one `AskUserQuestion` round is much lower than running the wrong gate matrix for the whole workflow.
|
|
387
397
|
|
|
388
|
-
When Peaks Solo coordinates development in a code repository, keep this order explicit:
|
|
398
|
+
When Peaks-Cli Solo coordinates development in a code repository, keep this order explicit:
|
|
389
399
|
|
|
390
|
-
0. **Snapshot** — `peaks doctor` + `peaks project dashboard` to capture baseline state before anything else;
|
|
391
|
-
0.5. **Workspace initialization** — `.peaks/<session-id>/` created, directory structure verified;
|
|
392
|
-
0.6. **Project scan** — archetype, component library, CSS framework, build tool, state management, routing, data fetching, legacy signals detected and recorded to `.peaks/<session-id>/rd/project-scan.md`;
|
|
393
|
-
0.7. **Existing-system extraction** (MANDATORY when archetype ∈ {legacy-frontend, legacy-fullstack, frontend-monorepo}; SKIP for greenfield) — extract visual tokens and code conventions from the live codebase to `.peaks/<session-id>/system/existing-system.md`. The path lives under `system/` (not `ui/`) because the file also records non-UI conventions (service-layer signatures, hooks, naming) that backend-only or legacy-fullstack work consumes. See `references/existing-system-extraction.md`. UI design-draft and RD implementation MUST treat the extracted tokens and conventions as hard constraints;
|
|
394
|
-
1. **Standards preflight** — `peaks standards init/update --dry-run`, must reference concrete project-scan findings (never emit generic templates);
|
|
395
|
-
2. **PRD phase** — capture request as canonical artifact, extract scope and acceptance criteria:
|
|
400
|
+
0. **Peaks-Cli Snapshot** — `peaks doctor` + `peaks project dashboard` to capture baseline state before anything else;
|
|
401
|
+
0.5. **Peaks-Cli Workspace initialization** — `.peaks/<session-id>/` created, directory structure verified;
|
|
402
|
+
0.6. **Peaks-Cli Project scan** — archetype, component library, CSS framework, build tool, state management, routing, data fetching, legacy signals detected and recorded to `.peaks/<session-id>/rd/project-scan.md`;
|
|
403
|
+
0.7. **Peaks-Cli Existing-system extraction** (MANDATORY when archetype ∈ {legacy-frontend, legacy-fullstack, frontend-monorepo}; SKIP for greenfield) — extract visual tokens and code conventions from the live codebase to `.peaks/<session-id>/system/existing-system.md`. The path lives under `system/` (not `ui/`) because the file also records non-UI conventions (service-layer signatures, hooks, naming) that backend-only or legacy-fullstack work consumes. See `references/existing-system-extraction.md`. UI design-draft and RD implementation MUST treat the extracted tokens and conventions as hard constraints;
|
|
404
|
+
1. **Peaks-Cli Standards preflight** — `peaks standards init/update --dry-run`, must reference concrete project-scan findings (never emit generic templates);
|
|
405
|
+
2. **Peaks-Cli PRD phase** — capture request as canonical artifact, extract scope and acceptance criteria:
|
|
396
406
|
- Full-auto/Swarm: auto-transition to `confirmed-by-user` once the artifact is complete;
|
|
397
407
|
- Assisted/Strict: pause with `AskUserQuestion` for explicit user confirmation before proceeding;
|
|
398
|
-
3. **Swarm parallel phase** — after PRD confirmed, launch UI, RD(planning), QA(test-cases) simultaneously:
|
|
408
|
+
3. **Peaks-Cli Swarm parallel phase** — after PRD confirmed, launch UI, RD(planning), QA(test-cases) simultaneously:
|
|
399
409
|
3a. UI design draft and visual direction (MANDATORY when request is frontend/user-visible; skipped for `--type docs|chore|config` or pure-backend requests);
|
|
400
410
|
3b. RD planning artifact — `rd/tech-doc.md` for feature/refactor, `rd/bug-analysis.md` for bugfix, skipped for docs/chore/config;
|
|
401
411
|
3c. QA test-case generation (skipped for docs/chore — no acceptance surface to validate);
|
|
402
|
-
4. **RD implementation** — consumes the type-appropriate inputs: project-scan + standards + (if UI involved) UI design-draft + RD planning artifact + QA test-cases. Includes unit tests for new/changed behavior (TDD) unless `--type` is docs/chore;
|
|
403
|
-
5. **Code review + security review** — CRITICAL/HIGH issues fixed before progression; marked-blocked issues only allow a blocked handoff;
|
|
404
|
-
6. **QA validation** (auto-proceed from RD in full-auto) — execute test cases + API checks + Playwright MCP headed browser E2E for frontend + security/perf checks + test report;
|
|
405
|
-
7. **RD↔QA repair loop** — if QA verdict is `return-to-rd`, loop back to step 4 (RD implementation) and re-run through QA; max 3 repair cycles, then emit blocked TXT regardless;
|
|
406
|
-
8. **SC phase** — change-control evidence: impact, retention, validate, boundary;
|
|
407
|
-
9. **OpenSpec archive** — exit gate: validate → archive only after QA verdict=pass (when `openspec/` exists);
|
|
408
|
-
10. **TXT handoff capsule** — mode, validated decisions, artifact paths, standards deltas, open questions, next action;
|
|
409
|
-
11. **Final snapshot** — `peaks project dashboard` + `peaks skill doctor` to confirm the workflow closed cleanly.
|
|
412
|
+
4. **Peaks-Cli RD implementation** — consumes the type-appropriate inputs: project-scan + standards + (if UI involved) UI design-draft + RD planning artifact + QA test-cases. Includes unit tests for new/changed behavior (TDD) unless `--type` is docs/chore;
|
|
413
|
+
5. **Peaks-Cli Code review + security review** — CRITICAL/HIGH issues fixed before progression; marked-blocked issues only allow a blocked handoff;
|
|
414
|
+
6. **Peaks-Cli QA validation** (auto-proceed from RD in full-auto) — execute test cases + API checks + Playwright MCP headed browser E2E for frontend + security/perf checks + test report;
|
|
415
|
+
7. **Peaks-Cli RD↔QA repair loop** — if QA verdict is `return-to-rd`, loop back to step 4 (RD implementation) and re-run through QA; max 3 repair cycles, then emit blocked TXT regardless;
|
|
416
|
+
8. **Peaks-Cli SC phase** — change-control evidence: impact, retention, validate, boundary;
|
|
417
|
+
9. **Peaks-Cli OpenSpec archive** — exit gate: validate → archive only after QA verdict=pass (when `openspec/` exists);
|
|
418
|
+
10. **Peaks-Cli TXT handoff capsule** — mode, validated decisions, artifact paths, standards deltas, open questions, next action;
|
|
419
|
+
11. **Peaks-Cli Final snapshot** — `peaks project dashboard` + `peaks skill doctor` to confirm the workflow closed cleanly.
|
|
410
420
|
|
|
411
|
-
### Transition verification gates (MANDATORY — run the command, see the output)
|
|
421
|
+
### Peaks-Cli Transition verification gates (MANDATORY — run the command, see the output)
|
|
412
422
|
|
|
413
423
|
You cannot declare a phase complete from memory. Each gate below is a `ls` command you **MUST run** and whose output you **MUST see** before proceeding. If any file shows "No such file", the phase is incomplete.
|
|
414
424
|
|
|
415
|
-
**Gate A — After workspace init + project scan:**
|
|
425
|
+
**Peaks-Cli Gate A — After workspace init + project scan:**
|
|
416
426
|
```bash
|
|
417
427
|
ls .peaks/<id>/rd/project-scan.md
|
|
418
428
|
# Expected output: .peaks/<id>/rd/project-scan.md
|
|
@@ -421,7 +431,7 @@ ls .peaks/<id>/rd/project-scan.md
|
|
|
421
431
|
# File present and complete → reuse (project-scan is a session-scoped singleton)
|
|
422
432
|
```
|
|
423
433
|
|
|
424
|
-
**Gate A.5 — Existing-system extraction (legacy projects only):**
|
|
434
|
+
**Peaks-Cli Gate A.5 — Existing-system extraction (legacy projects only):**
|
|
425
435
|
```bash
|
|
426
436
|
# If project-scan.md `## Archetype` is greenfield → skip this gate
|
|
427
437
|
# Otherwise:
|
|
@@ -430,9 +440,9 @@ ls .peaks/<id>/system/existing-system.md
|
|
|
430
440
|
# (see references/existing-system-extraction.md)
|
|
431
441
|
```
|
|
432
442
|
|
|
433
|
-
**Gate B — After swarm convergence (UI + RD planning + QA test-cases):**
|
|
443
|
+
**Peaks-Cli Gate B — After swarm convergence (UI + RD planning + QA test-cases):**
|
|
434
444
|
|
|
435
|
-
Gate B has two sub-checks: a HARD gate (blocks progression) and an INFORMATIONAL check (records degradation but does not block).
|
|
445
|
+
Peaks-Cli Gate B has two sub-checks: a HARD gate (blocks progression) and an INFORMATIONAL check (records degradation but does not block).
|
|
436
446
|
|
|
437
447
|
```bash
|
|
438
448
|
# B.hard — REQUIRED before continuing to RD implementation.
|
|
@@ -458,7 +468,7 @@ ls .peaks/<id>/ui/design-draft.md 2>&1
|
|
|
458
468
|
# "No such file" + pure backend / docs / chore / config → state skip reason in TXT, proceed.
|
|
459
469
|
```
|
|
460
470
|
|
|
461
|
-
**Gate C — After RD implementation (before QA handoff):**
|
|
471
|
+
**Peaks-Cli Gate C — After RD implementation (before QA handoff):**
|
|
462
472
|
|
|
463
473
|
The CLI gate (`peaks request transition --state qa-handoff`) is the authoritative check; running this `ls` first lets you produce missing files before the CLI rejects the transition.
|
|
464
474
|
|
|
@@ -474,7 +484,7 @@ ls .peaks/<id>/rd/requests/<rid>.md
|
|
|
474
484
|
# Missing any required file → DO NOT attempt the qa-handoff transition; CLI will reject with PREREQUISITES_MISSING.
|
|
475
485
|
```
|
|
476
486
|
|
|
477
|
-
**Gate D — After QA validation:**
|
|
487
|
+
**Peaks-Cli Gate D — After QA validation:**
|
|
478
488
|
|
|
479
489
|
The CLI gate at `qa:verdict-issued` is the authoritative check; this `ls` lets you produce missing evidence before the CLI rejects the transition.
|
|
480
490
|
|
|
@@ -490,17 +500,17 @@ ls .peaks/<id>/qa/requests/<rid>.md
|
|
|
490
500
|
# Missing required file → QA incomplete; do not transition to verdict-issued.
|
|
491
501
|
```
|
|
492
502
|
|
|
493
|
-
**Gate E — Before declaring workflow complete:**
|
|
503
|
+
**Peaks-Cli Gate E — Before declaring workflow complete:**
|
|
494
504
|
```bash
|
|
495
505
|
find .peaks/<id>/ -type f | sort
|
|
496
506
|
# Verify: files from gates A-D all appear in this list.
|
|
497
507
|
# Any mandatory file missing → NOT complete. Do not emit TXT.
|
|
498
|
-
# Gate G (CLAUDE.md + .claude/rules/**) must ALSO pass before TXT is emitted.
|
|
508
|
+
# Peaks-Cli Gate G (CLAUDE.md + .claude/rules/**) must ALSO pass before TXT is emitted.
|
|
499
509
|
```
|
|
500
510
|
|
|
501
|
-
**Gate F — Root pollution check (BLOCKING before completion):**
|
|
511
|
+
**Peaks-Cli Gate F — Root pollution check (BLOCKING before completion):**
|
|
502
512
|
```bash
|
|
503
|
-
# Verify no Peaks intermediate artifacts leaked to project root.
|
|
513
|
+
# Verify no Peaks-Cli intermediate artifacts leaked to project root.
|
|
504
514
|
ls feishu-doc-*.md *-snapshot.md qa-server.js 2>&1
|
|
505
515
|
# Expected: "No such file or directory" for ALL patterns.
|
|
506
516
|
# Any file found → ROOT POLLUTION. Move it to .peaks/<id>/prd/source/
|
|
@@ -511,11 +521,11 @@ ls feishu-doc-*.md *-snapshot.md qa-server.js 2>&1
|
|
|
511
521
|
```bash
|
|
512
522
|
# Extended check for common leak patterns
|
|
513
523
|
find . -maxdepth 1 -name "*.png" -o -name "*.jpg" -o -name "qa-*.js" -o -name "mock-server.*" 2>&1
|
|
514
|
-
# Any Peaks QA/UI intermediate files here → ROOT POLLUTION. Move and note.
|
|
515
|
-
# Legitimate project files (e.g. favicon.png) are fine — only move Peaks artifacts.
|
|
524
|
+
# Any Peaks-Cli QA/UI intermediate files here → ROOT POLLUTION. Move and note.
|
|
525
|
+
# Legitimate project files (e.g. favicon.png) are fine — only move Peaks-Cli artifacts.
|
|
516
526
|
```
|
|
517
527
|
|
|
518
|
-
**Gate G — Project standards present (BLOCKING before workflow completion):**
|
|
528
|
+
**Peaks-Cli Gate G — Project standards present (BLOCKING before workflow completion):**
|
|
519
529
|
```bash
|
|
520
530
|
# After `peaks standards init/update --apply`, verify the files actually landed
|
|
521
531
|
# at the project root. The CLAUDE.md and rules files are required so that
|
|
@@ -529,15 +539,15 @@ ls <repo>/.claude/rules/common/coding-style.md \
|
|
|
529
539
|
<repo>/.claude/rules/common/security.md
|
|
530
540
|
# Any "No such file" → BLOCKED. The standards apply step did not complete; re-run
|
|
531
541
|
# standards init/update with --apply and re-verify.
|
|
532
|
-
# Skipping Gate G (e.g. because the user did not explicitly authorize writes) is
|
|
542
|
+
# Skipping Peaks-Cli Gate G (e.g. because the user did not explicitly authorize writes) is
|
|
533
543
|
# only acceptable in `assisted`/`strict` modes where the user actively declined; in
|
|
534
544
|
# `full-auto`/`swarm` the absence of these files is a workflow violation.
|
|
535
545
|
```
|
|
536
546
|
|
|
537
547
|
|
|
538
|
-
## Swarm parallel phase
|
|
548
|
+
## Peaks-Cli Swarm parallel phase
|
|
539
549
|
|
|
540
|
-
After PRD reaches `confirmed-by-user`, Solo launches peaks-ui, peaks-rd(planning), and peaks-qa(test-cases) simultaneously using parallel Agent calls. All three derive independently from the same PRD and write to separate artifact paths. Solo waits for all three, checks convergence (Gate B), then enters RD implementation.
|
|
550
|
+
After PRD reaches `confirmed-by-user`, Solo launches peaks-ui, peaks-rd(planning), and peaks-qa(test-cases) simultaneously using parallel Agent calls. All three derive independently from the same PRD and write to separate artifact paths. Solo waits for all three, checks convergence (Peaks-Cli Gate B), then enters RD implementation.
|
|
541
551
|
|
|
542
552
|
### Degradation when swarm roles fail
|
|
543
553
|
|
|
@@ -547,9 +557,9 @@ After PRD reaches `confirmed-by-user`, Solo launches peaks-ui, peaks-rd(planning
|
|
|
547
557
|
4. **Two or more missing**: Fall back to sequential mode (PRD → RD → QA); note "swarm-degraded-to-sequential".
|
|
548
558
|
5. **All three missing**: Pause workflow; report to user; request confirmation to continue.
|
|
549
559
|
|
|
550
|
-
**UI phase mandatory for frontend**: When the request affects user-visible behavior (pages, components, forms, modals, tables, styling, interaction, or layout), Peaks Solo MUST invoke `peaks-ui` in the swarm parallel phase alongside RD planning and QA test-case generation. UI produces design drafts that RD implementation later consumes. Skipping UI for frontend work is a blocking violation. The only valid reason to skip UI is when the request is purely backend (API, database, CLI, config, or build tooling).
|
|
560
|
+
**UI phase mandatory for frontend**: When the request affects user-visible behavior (pages, components, forms, modals, tables, styling, interaction, or layout), Peaks-Cli Solo MUST invoke `peaks-ui` in the swarm parallel phase alongside RD planning and QA test-case generation. UI produces design drafts that RD implementation later consumes. Skipping UI for frontend work is a blocking violation. The only valid reason to skip UI is when the request is purely backend (API, database, CLI, config, or build tooling).
|
|
551
561
|
|
|
552
|
-
## Mandatory RD QA repair loop (AUTO-PROCEED)
|
|
562
|
+
## Peaks-Cli Mandatory RD QA repair loop (AUTO-PROCEED)
|
|
553
563
|
|
|
554
564
|
> **CLI gate enforcement**: `peaks request transition` now refuses to move RD/QA to gated states when required artifacts are missing. The required files depend on `--type` chosen at `peaks request init` (default `feature`):
|
|
555
565
|
>
|
|
@@ -560,7 +570,7 @@ After PRD reaches `confirmed-by-user`, Solo launches peaks-ui, peaks-rd(planning
|
|
|
560
570
|
>
|
|
561
571
|
> When PRD lands, classify the request type before running `peaks request init` for every role — pass `--type <type>` so the artifact records it and downstream transitions enforce the right gates. Misclassifying a feature as `docs` to skip gates is a workflow violation. If a transition fails with `code: PREREQUISITES_MISSING`, the response lists every missing path — produce them, then re-transition. For one-off exceptions, the escape hatch `--allow-incomplete --reason "<text>"` records the bypass in the artifact transition note.
|
|
562
572
|
|
|
563
|
-
After `peaks-rd` finishes any implementation, repair, or code-output slice, Peaks Solo MUST automatically route the result to `peaks-qa` without waiting for user confirmation. This is not optional in full-auto mode. Solo must not declare the workflow complete, emit a TXT handoff, or stop at RD completion.
|
|
573
|
+
After `peaks-rd` finishes any implementation, repair, or code-output slice, Peaks-Cli Solo MUST automatically route the result to `peaks-qa` without waiting for user confirmation. This is not optional in full-auto mode. Solo must not declare the workflow complete, emit a TXT handoff, or stop at RD completion.
|
|
564
574
|
|
|
565
575
|
**How Solo invokes another role skill (mechanism, not metaphor):**
|
|
566
576
|
|
|
@@ -591,25 +601,25 @@ When `peaks-qa` returns `verdict=return-to-rd`, Solo does NOT manually rewrite R
|
|
|
591
601
|
|
|
592
602
|
In full-auto mode, treat the RD↔QA repair loop as a built-in controller objective: loop through RD→QA until all acceptance items pass (max 3 cycles). Do not exit the loop on a non-passing QA verdict unless the TXT handoff marks the workflow as blocked.
|
|
593
603
|
|
|
594
|
-
## Default runbook
|
|
604
|
+
## Peaks-Cli Default runbook
|
|
595
605
|
|
|
596
606
|
> **Maintenance**: The numbered workflow list above (steps 0-11) is the canonical phase sequence. This runbook is the executable CLI transcription. When updating this skill, keep both in lockstep — a change to one must be reflected in the other.
|
|
597
607
|
|
|
598
608
|
The end-to-end CLI sequence for the `full-auto` profile. `assisted` and `strict` profiles pause at `[CONFIRM]` markers below. `full-auto` and `swarm` auto-proceed through all gates. See Transition Gates for artifact verification at each stage.
|
|
599
609
|
|
|
600
610
|
```bash
|
|
601
|
-
# 0. Snapshot + 0.5 Workspace + 0.6 Project scan + 0.7 Existing-system extraction
|
|
611
|
+
# 0. Peaks-Cli Snapshot + 0.5 Peaks-Cli Workspace + 0.6 Peaks-Cli Project scan + 0.7 Peaks-Cli Existing-system extraction
|
|
602
612
|
peaks doctor --json
|
|
603
613
|
peaks project dashboard --project <repo> --json
|
|
604
614
|
peaks skill runbook peaks-solo --json
|
|
605
615
|
peaks workspace init --project <repo> --json
|
|
606
616
|
peaks scan archetype --project <repo> --json
|
|
607
|
-
# → copy archetype, frontendOnly, signals into .peaks/<session-id>/rd/project-scan.md (Gate A)
|
|
617
|
+
# → copy archetype, frontendOnly, signals into .peaks/<session-id>/rd/project-scan.md (Peaks-Cli Gate A)
|
|
608
618
|
# → if archetype != greenfield AND archetype != unknown:
|
|
609
619
|
peaks scan existing-system --project <repo> --json
|
|
610
|
-
# → copy tokens, sources, conventions, inconsistencies into .peaks/<session-id>/system/existing-system.md (Gate A.5)
|
|
620
|
+
# → copy tokens, sources, conventions, inconsistencies into .peaks/<session-id>/system/existing-system.md (Peaks-Cli Gate A.5)
|
|
611
621
|
|
|
612
|
-
# 1. Standards preflight + apply
|
|
622
|
+
# 1. Peaks-Cli Standards preflight + apply
|
|
613
623
|
# Run dry-run first to inspect deltas, then APPLY. In full-auto and swarm modes,
|
|
614
624
|
# --apply is the default — Standards files (CLAUDE.md, .claude/rules/**) live INSIDE
|
|
615
625
|
# the target project and are required for downstream skill preflight, so producing
|
|
@@ -619,9 +629,9 @@ peaks standards init --project <repo> --dry-run --json
|
|
|
619
629
|
# or: peaks standards update --project <repo> --dry-run --json
|
|
620
630
|
peaks standards init --project <repo> --apply --json
|
|
621
631
|
# or: peaks standards update --project <repo> --apply --json
|
|
622
|
-
# After apply, verify the files actually exist on disk (see Gate G).
|
|
632
|
+
# After apply, verify the files actually exist on disk (see Peaks-Cli Gate G).
|
|
623
633
|
|
|
624
|
-
# 2. PRD (Assisted/Strict: [CONFIRM] before confirmed-by-user)
|
|
634
|
+
# 2. Peaks-Cli PRD (Assisted/Strict: [CONFIRM] before confirmed-by-user)
|
|
625
635
|
# Classify the request type from the PRD: feature | bugfix | refactor | docs | config | chore
|
|
626
636
|
# This drives RD/QA gate strictness — see "Mandatory RD QA repair loop" for the matrix.
|
|
627
637
|
peaks request init --role prd --id <rid> --project <repo> --apply --type <type> --json
|
|
@@ -635,7 +645,7 @@ peaks request lint <rid> --role prd --project <repo> --json
|
|
|
635
645
|
peaks request transition <rid> --role prd --state confirmed-by-user --project <repo> --json
|
|
636
646
|
peaks request transition <rid> --role prd --state handed-off --project <repo> --json
|
|
637
647
|
|
|
638
|
-
# 3. Swarm parallel — launch UI + RD(planning) + QA(test-cases) simultaneously
|
|
648
|
+
# 3. Peaks-Cli Swarm parallel — launch UI + RD(planning) + QA(test-cases) simultaneously
|
|
639
649
|
# Pass the same --type chosen for PRD so RD/QA gate matrix lines up.
|
|
640
650
|
peaks request init --role ui --id <rid> --project <repo> --apply --type <type> --json
|
|
641
651
|
peaks request transition <rid> --role ui --state direction-locked --project <repo> --json
|
|
@@ -643,23 +653,23 @@ peaks request transition <rid> --role ui --state handed-off --project <repo> --j
|
|
|
643
653
|
peaks request init --role rd --id <rid> --project <repo> --apply --type <type> --json
|
|
644
654
|
peaks request transition <rid> --role rd --state spec-locked --project <repo> --json
|
|
645
655
|
peaks request init --role qa --id <rid> --project <repo> --apply --type <type> --json
|
|
646
|
-
# → Gate B convergence check. Assisted/Strict: [CONFIRM]
|
|
656
|
+
# → Peaks-Cli Gate B convergence check. Assisted/Strict: [CONFIRM]
|
|
647
657
|
|
|
648
|
-
# 4. RD planning artifact (the file required by the prerequisite gate)
|
|
658
|
+
# 4. Peaks-Cli RD planning artifact (the file required by the prerequisite gate)
|
|
649
659
|
# feature / refactor → write .peaks/<id>/rd/tech-doc.md
|
|
650
660
|
# bugfix → write .peaks/<id>/rd/bug-analysis.md
|
|
651
661
|
# config → no planning artifact required at this state
|
|
652
662
|
# docs / chore → no planning artifact required
|
|
653
663
|
peaks request transition <rid> --role rd --state implemented --project <repo> --json
|
|
654
664
|
|
|
655
|
-
# 5. Code review + security review BEFORE qa-handoff transition.
|
|
665
|
+
# 5. Peaks-Cli Code review + security review BEFORE qa-handoff transition.
|
|
656
666
|
# Produce the evidence files the CLI gate enforces:
|
|
657
667
|
# - .peaks/<id>/rd/code-review.md (CRITICAL/HIGH findings + fixes; required for feature/bugfix/refactor)
|
|
658
668
|
# - .peaks/<id>/rd/security-review.md (required for feature/bugfix/refactor/config)
|
|
659
669
|
# Then transition. If --type is docs/chore the gate is empty and the transition is unguarded.
|
|
660
670
|
peaks request transition <rid> --role rd --state qa-handoff --project <repo> --json
|
|
661
671
|
|
|
662
|
-
# 6. QA validation (AUTO-PROCEED from RD in full-auto)
|
|
672
|
+
# 6. Peaks-Cli QA validation (AUTO-PROCEED from RD in full-auto)
|
|
663
673
|
# Before each QA transition, produce the evidence files the CLI gate enforces:
|
|
664
674
|
# Before qa:running → .peaks/<id>/qa/test-cases/<rid>.md
|
|
665
675
|
peaks request transition <rid> --role qa --state running --project <repo> --json
|
|
@@ -667,9 +677,9 @@ peaks request transition <rid> --role qa --state running --project <repo> --json
|
|
|
667
677
|
# + .peaks/<id>/qa/security-findings.md
|
|
668
678
|
# + .peaks/<id>/qa/performance-findings.md (feature/refactor only)
|
|
669
679
|
peaks request transition <rid> --role qa --state verdict-issued --project <repo> --json
|
|
670
|
-
# → Gate D check. Assisted/Strict: [CONFIRM]
|
|
680
|
+
# → Peaks-Cli Gate D check. Assisted/Strict: [CONFIRM]
|
|
671
681
|
|
|
672
|
-
# 7. RD↔QA repair loop — if verdict is return-to-rd, re-run 4 through 6 until QA passes or blocked TXT.
|
|
682
|
+
# 7. Peaks-Cli RD↔QA repair loop — if verdict is return-to-rd, re-run 4 through 6 until QA passes or blocked TXT.
|
|
673
683
|
# Before invoking peaks-rd again, check the cycle count so you don't blow past the cap silently:
|
|
674
684
|
peaks request repair-status <rid> --project <repo> --json
|
|
675
685
|
# → atCap=true → STOP and emit a blocked TXT handoff. Do NOT enter another cycle.
|
|
@@ -679,35 +689,34 @@ peaks request repair-status <rid> --project <repo> --json
|
|
|
679
689
|
peaks scan request-type-sanity --project <repo> --type <type> --json
|
|
680
690
|
# → consistent=false → RD scope-creeped during repair; review before re-handoff.
|
|
681
691
|
|
|
682
|
-
# 8. SC phase
|
|
692
|
+
# 8. Peaks-Cli SC phase
|
|
683
693
|
peaks sc impact --change-id <cid> --module <module> --file <path> --json
|
|
684
694
|
peaks sc retention --slice-id <rid> --prd <prd> --rd <rd> --qa <qa> --json
|
|
685
695
|
peaks sc validate --slice-id <rid> --json
|
|
686
696
|
peaks sc boundary --slice-id <rid> --artifact <artifact> --code <file> --json
|
|
687
697
|
|
|
688
|
-
# 9. OpenSpec archive (exit gate; only after QA pass, when openspec/ exists)
|
|
698
|
+
# 9. Peaks-Cli OpenSpec archive (exit gate; only after QA pass, when openspec/ exists)
|
|
689
699
|
peaks openspec validate <cid> --project <repo> --json
|
|
690
700
|
peaks openspec archive <cid> --project <repo> --apply --json
|
|
691
701
|
|
|
692
|
-
# 10. TXT handoff
|
|
702
|
+
# 10. Peaks-Cli TXT handoff
|
|
693
703
|
peaks memory extract --project <repo> --artifact <qa-artifact> --dry-run --json
|
|
694
704
|
|
|
695
|
-
# 11. Final snapshot
|
|
705
|
+
# 11. Peaks-Cli Final snapshot
|
|
696
706
|
peaks project dashboard --project <repo> --json
|
|
697
707
|
peaks skill doctor --json
|
|
698
|
-
peaks skill presence:clear
|
|
699
708
|
```
|
|
700
709
|
|
|
701
710
|
Repair loop details: see `## Mandatory RD QA repair loop` above for the full 5-step procedure and the 3-cycle cap. Append transition notes via `--reason` rather than rewriting artifacts during repair cycles.
|
|
702
711
|
|
|
703
|
-
## Project standards preflight
|
|
712
|
+
## Peaks-Cli Project standards preflight
|
|
704
713
|
|
|
705
|
-
Before orchestrating an end-to-end code repository workflow, gather the project standards preflight status from RD and QA by calling the Peaks CLI:
|
|
714
|
+
Before orchestrating an end-to-end code repository workflow, gather the project standards preflight status from RD and QA by calling the Peaks-Cli CLI:
|
|
706
715
|
|
|
707
716
|
- `peaks standards init --project <path> --dry-run`
|
|
708
717
|
- `peaks standards update --project <path> --dry-run`
|
|
709
718
|
|
|
710
|
-
Use `standards init` for first-time creation and `standards update` for existing `CLAUDE.md` append/review behavior. In `full-auto` and `swarm` profiles, `--apply` runs automatically after `--dry-run` succeeds — these files live inside the target project, are required for downstream skill preflight, and producing them is part of finishing the workflow (Gate G enforces this). `assisted` and `strict` profiles pause for explicit user confirmation between dry-run and apply.
|
|
719
|
+
Use `standards init` for first-time creation and `standards update` for existing `CLAUDE.md` append/review behavior. In `full-auto` and `swarm` profiles, `--apply` runs automatically after `--dry-run` succeeds — these files live inside the target project, are required for downstream skill preflight, and producing them is part of finishing the workflow (Peaks-Cli Gate G enforces this). `assisted` and `strict` profiles pause for explicit user confirmation between dry-run and apply.
|
|
711
720
|
|
|
712
721
|
**CRITICAL — Standards must reflect the project scan.** When generating or updating `CLAUDE.md`, the content must reference concrete findings from `.peaks/<id>/rd/project-scan.md`: the detected component library (e.g. "This project uses antd 5.x"), CSS solution (e.g. "Uses Less via Umi"), build tool, state management, and routing. Never emit a generic template that says "read .claude/rules/..." without naming the actual project stack. If the project-scan has not been run yet, run it before standards init/update.
|
|
713
722
|
|
|
@@ -724,7 +733,7 @@ For project-analysis requests such as "分析项目", the handoff must include a
|
|
|
724
733
|
|
|
725
734
|
If the dry-run output lacks enough detail to explain those deltas, say that the standards increment is unknown and keep standards application blocked until another `peaks standards init/update --dry-run` provides evidence.
|
|
726
735
|
|
|
727
|
-
## Refactor mode
|
|
736
|
+
## Peaks-Cli Refactor mode
|
|
728
737
|
|
|
729
738
|
Read `references/refactor-mode.md` before handling refactor requests.
|
|
730
739
|
|
|
@@ -740,7 +749,7 @@ It must enforce the shared refactor red lines:
|
|
|
740
749
|
6. require 100% acceptance for each slice;
|
|
741
750
|
7. require code changes and sanitized intermediate artifacts to be traceable in local `.peaks/<session-id>/` storage before the next slice; commit or sync sanitized artifacts only when explicitly authorized.
|
|
742
751
|
|
|
743
|
-
## Quality-gate commands (CLI cheat sheet)
|
|
752
|
+
## Peaks-Cli Quality-gate commands (CLI cheat sheet)
|
|
744
753
|
|
|
745
754
|
These commands harden the workflow against silent skips. Use them in the runbook at the points indicated; they all support `--json` and `--session-id`.
|
|
746
755
|
|
|
@@ -752,23 +761,27 @@ These commands harden the workflow against silent skips. Use them in the runbook
|
|
|
752
761
|
|
|
753
762
|
Together with `peaks request transition` (which already CLI-enforces per-type artifact prerequisites), these four commands form the runtime quality net. SKILL.md prose is descriptive; the CLI is what physically blocks bad workflows.
|
|
754
763
|
|
|
755
|
-
## Completion handoff
|
|
764
|
+
## Peaks-Cli Completion handoff
|
|
756
765
|
|
|
757
766
|
After final validation, refresh project-local standards via `peaks standards init/update` (never hand-write). Merge scan-backed changes incrementally; preserve hand-maintained content unless user confirms deletion.
|
|
758
767
|
|
|
759
|
-
Use Peaks TXT for the compact handoff capsule: mode, validated decisions, artifact paths, standards deltas (`CLAUDE.md` and `.claude/rules/**` statuses), open questions, next action. Do not restate the full workflow log.
|
|
768
|
+
Use Peaks-Cli TXT for the compact handoff capsule: mode, validated decisions, artifact paths, standards deltas (`CLAUDE.md` and `.claude/rules/**` statuses), open questions, next action. Do not restate the full workflow log.
|
|
769
|
+
|
|
770
|
+
### Workflow completion (no auto-exit)
|
|
771
|
+
|
|
772
|
+
Do NOT call `peaks skill presence:clear` at workflow end. The presence file and header remain active so the user stays inside the workflow context. The user can continue with follow-up requirements naturally — no need to re-invoke `/peaks-solo`. The header continues to display the active skill and current gate.
|
|
760
773
|
|
|
761
|
-
## External references and lifecycle
|
|
774
|
+
## Peaks-Cli External references and lifecycle
|
|
762
775
|
|
|
763
776
|
**Codegraph**: Optional project-analysis before RD handoff. Use `peaks codegraph affected --project <path> <changed-files...> --json` for regression-surface hints. Output as untrusted supporting evidence only; never commit `.codegraph/` artifacts.
|
|
764
777
|
|
|
765
|
-
## Codegraph orchestration context
|
|
778
|
+
## Peaks-Cli Codegraph orchestration context
|
|
766
779
|
|
|
767
780
|
Solo treats `peaks codegraph affected --project <path> <changed-files...> --json` as an optional project-analysis enhancement that informs the role handoff between PRD, RD, and QA. The output is untrusted supporting evidence — Solo must not treat codegraph output as approval for scope, design, or QA verdict.
|
|
768
781
|
|
|
769
|
-
Do not run upstream installer flows, mutate agent settings, or commit `.codegraph/` artifacts into git. Peaks gates remain authoritative; codegraph context is a hint, never a substitute for role-skill output.
|
|
782
|
+
Do not run upstream installer flows, mutate agent settings, or commit `.codegraph/` artifacts into git. Peaks-Cli gates remain authoritative; codegraph context is a hint, never a substitute for role-skill output.
|
|
770
783
|
|
|
771
|
-
**External skills**: All external skill references (`mattpocock/skills`, `awesome-design-md`, `taste-skill`, `shadcn/ui`, `Chrome DevTools MCP`, `Figma Context MCP`, `Context7`, etc.) follow the three-stage pattern: capability discovery via `peaks capabilities` before naming, references only (no execute/install/persist), Peaks CLI for all side effects. Do not execute upstream installers, do not install upstream resources, do not persist sensitive examples — Peaks gates remain authoritative. External skills inform, they do not approve.
|
|
784
|
+
**External skills**: All external skill references (`mattpocock/skills`, `awesome-design-md`, `taste-skill`, `shadcn/ui`, `Chrome DevTools MCP`, `Figma Context MCP`, `Context7`, etc.) follow the three-stage pattern: capability discovery via `peaks capabilities` before naming, references only (no execute/install/persist), Peaks-Cli CLI for all side effects. Do not execute upstream installers, do not install upstream resources, do not persist sensitive examples — Peaks-Cli gates remain authoritative. External skills inform, they do not approve.
|
|
772
785
|
|
|
773
786
|
**OpenSpec lifecycle**: `render → validate → show → to-rd → validate → archive`. Solo's default runbook handles the exit gate (validate → archive after QA pass). Entry-gate validation (to-rd before slicing) is available when `openspec/` exists pre-workflow; Solo delegates it to `peaks-rd` during implementation.
|
|
774
787
|
|