@yandy-r/ycc-opencode 6.1.0 → 6.2.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/README.md +7 -3
- package/agents/code-researcher.md +3 -3
- package/agents/feature-researcher.md +1 -1
- package/agents/implementor.md +4 -4
- package/agents/pr-comment-fixer.md +1 -1
- package/agents/release-fix-applier.md +1 -1
- package/agents/review-fixer.md +1 -1
- package/package.json +1 -1
- package/shared/references/artifact-store.md +613 -0
- package/shared/references/branch-prep.md +2 -0
- package/shared/references/forge-detection.md +3 -2
- package/shared/references/review-artifact-format.md +13 -6
- package/shared/references/review-checklist.md +3 -2
- package/shared/references/review-dispatch.md +15 -10
- package/shared/references/target-capability-matrix.md +42 -6
- package/shared/references/visual-mode.md +19 -13
- package/shared/references/worktree-strategy.md +12 -8
- package/shared/scripts/artifact-body.sh +71 -0
- package/shared/scripts/artifact-store-pointer.sh +245 -0
- package/shared/scripts/ci-monitor.sh +9 -4
- package/shared/scripts/collect-linear-keys.sh +77 -0
- package/shared/scripts/lib/ci-classify.sh +13 -10
- package/shared/scripts/lib/forge.sh +13 -4
- package/shared/scripts/prepare-feature-branch.sh +96 -10
- package/shared/scripts/release-ci-monitor.sh +2 -2
- package/shared/scripts/report-bundle-drift.sh +1 -1
- package/shared/scripts/resolve-artifact-store.sh +636 -0
- package/shared/scripts/validate-file-paths.sh +11 -4
- package/skills/blueprint/SKILL.md +48 -13
- package/skills/clean/SKILL.md +1 -1
- package/skills/clean/scripts/detect-project-type.sh +2 -2
- package/skills/clean/scripts/generate-report.sh +34 -5
- package/skills/clean/scripts/validate-safety.sh +9 -6
- package/skills/code-report/SKILL.md +26 -14
- package/skills/code-report/scripts/check-prerequisites.sh +72 -12
- package/skills/code-report/templates/report-structure.md +1 -1
- package/skills/code-review/SKILL.md +68 -17
- package/skills/code-review/references/pr-procedure.md +28 -15
- package/skills/compatibility-audit/scripts/audit-target-features.sh +1 -1
- package/skills/deep-research/SKILL.md +28 -5
- package/skills/deep-research/references/completion-summary-template.md +3 -2
- package/skills/deep-research/scripts/validate-research.sh +8 -2
- package/skills/feature-research/SKILL.md +48 -25
- package/skills/feature-research/scripts/validate-research.sh +51 -12
- package/skills/feature-research/scripts/validate-spec.sh +53 -22
- package/skills/feature-research/templates/research-agents.md +15 -14
- package/skills/feature-research/templates/spec-structure.md +5 -0
- package/skills/formatters/scripts/apply-aliases.sh +3 -1
- package/skills/formatters/scripts/apply-ci.sh +3 -1
- package/skills/git-workflow/SKILL.md +2 -1
- package/skills/git-workflow/references/pr-creation.md +10 -0
- package/skills/git-workflow/scripts/analyze-changes.sh +21 -11
- package/skills/git-workflow/scripts/create-pr.sh +51 -6
- package/skills/git-workflow/scripts/validate-commit.sh +26 -14
- package/skills/hooks-workflow/scripts/verify-hooks.sh +1 -1
- package/skills/implement-plan/SKILL.md +35 -16
- package/skills/implement-plan/references/agent-task-prompt.md +8 -5
- package/skills/implement-plan/references/linear-sync.md +20 -0
- package/skills/implement-plan/references/output-formats.md +17 -2
- package/skills/implement-plan/references/plan-inputs.md +23 -4
- package/skills/implement-plan/scripts/check-prerequisites.sh +95 -49
- package/skills/implement-plan/scripts/parse-dependencies.sh +10 -10
- package/skills/init/SKILL.md +77 -42
- package/skills/init/references/flag-reference.md +41 -17
- package/skills/init/references/project-profile-heuristics.md +3 -0
- package/skills/init/references/template-library.md +15 -5
- package/skills/init/scripts/profile-project.sh +26 -0
- package/skills/init/scripts/render-template.py +2 -2
- package/skills/init/templates/AGENTS.md.tmpl +6 -0
- package/skills/init/templates/git/gitignore.tmpl +5 -0
- package/skills/orchestrate/SKILL.md +17 -2
- package/skills/parallel-plan/SKILL.md +14 -8
- package/skills/plan/SKILL.md +18 -2
- package/skills/plan/references/planning-tracks.md +1 -1
- package/skills/plan-workflow/SKILL.md +67 -32
- package/skills/plan-workflow/references/checkpoint-messages.md +23 -14
- package/skills/plan-workflow/references/plan-structure.md +1 -1
- package/skills/plan-workflow/references/planning-agents.md +11 -9
- package/skills/plan-workflow/references/research-agents-optimized.md +12 -10
- package/skills/plan-workflow/references/research-agents.md +11 -10
- package/skills/plan-workflow/scripts/check-prerequisites.sh +50 -11
- package/skills/plan-workflow/scripts/check-state.sh +53 -9
- package/skills/plan-workflow/scripts/persist-or-fail.sh +21 -7
- package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +28 -14
- package/skills/plan-workflow/scripts/validate-research-artifacts.sh +35 -10
- package/skills/plan-workflow/scripts/validate-shared.sh +56 -15
- package/skills/plan-workflow/scripts/validate-workflow-plan.sh +48 -17
- package/skills/pr-autofix/SKILL.md +19 -4
- package/skills/pr-autofix/references/output-templates.md +3 -2
- package/skills/pr-autofix/scripts/fetch-pr-comments.sh +1 -2
- package/skills/pr-autofix/scripts/post-summary.sh +1 -2
- package/skills/pr-autofix/scripts/resolve-thread.sh +3 -4
- package/skills/prp-implement/SKILL.md +31 -16
- package/skills/prp-implement/references/agent-task-prompt.md +5 -2
- package/skills/prp-implement/references/detection.md +4 -1
- package/skills/prp-implement/references/linear-sync.md +25 -0
- package/skills/prp-implement/references/report-output.md +15 -2
- package/skills/prp-plan/SKILL.md +62 -30
- package/skills/prp-plan/references/enhanced-researchers.md +8 -9
- package/skills/prp-plan/scripts/validate-prp-plan.sh +42 -18
- package/skills/prp-pr/SKILL.md +14 -1
- package/skills/prp-prd/SKILL.md +21 -9
- package/skills/prp-spec/SKILL.md +30 -20
- package/skills/quick-fix/SKILL.md +6 -4
- package/skills/quick-review/SKILL.md +62 -25
- package/skills/release-model/scripts/collect-signals.sh +9 -3
- package/skills/releaser/scripts/publish-release.sh +6 -3
- package/skills/research-to-issues/SKILL.md +33 -14
- package/skills/research-to-issues/scripts/validate-prerequisites.sh +45 -23
- package/skills/research-to-issues/templates/task-issue.md +4 -0
- package/skills/research-to-issues/templates/tracking-issue.md +3 -0
- package/skills/review-fix/SKILL.md +96 -14
- package/skills/review-fix/references/fix-report.md +10 -10
- package/skills/review-fix/references/plan.md +5 -2
- package/skills/shared-context/SKILL.md +14 -11
- package/skills/visual-plan/SKILL.md +26 -8
- package/skills/visual-recap/SKILL.md +1 -1
- package/skills/write-docs/scripts/audit-documentation.sh +44 -10
- package/skills/write-docs/scripts/generate-doc-index.sh +10 -3
|
@@ -9,7 +9,7 @@ description: Executes PRP plan files with validation loops, reports, and archivi
|
|
|
9
9
|
|
|
10
10
|
> **OpenCode V2 compatibility:** `--team` is unsupported. If it is supplied, abort before setup or dispatch and ask the caller to rerun without it. This target uses native standalone `subagent` calls only.
|
|
11
11
|
|
|
12
|
-
Execute a plan file step-by-step with continuous validation. Every change is verified immediately; never accumulate broken state. Detect the package manager, prepare the Git branch, execute tasks, validate static/unit/build/integration/edge cases, write `docs/prps/reports/`, and archive the plan. Detect parallel-capable plans and prompt for execution mode unless a flag selects it.
|
|
12
|
+
Execute a plan file step-by-step with continuous validation. Every change is verified immediately; never accumulate broken state. Detect the package manager, prepare the Git branch, execute tasks, validate static/unit/build/integration/edge cases, write `docs/prps/reports/`, and archive the plan (linear mode: see Phase 5). Detect parallel-capable plans and prompt for execution mode unless a flag selects it.
|
|
13
13
|
|
|
14
14
|
> Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
|
|
15
15
|
|
|
@@ -29,17 +29,21 @@ Execute a plan file step-by-step with continuous validation. Every change is ver
|
|
|
29
29
|
|
|
30
30
|
Extract flags from `$ARGUMENTS` before treating the remainder as a plan path:
|
|
31
31
|
|
|
32
|
-
| Flag
|
|
33
|
-
|
|
|
34
|
-
| `--parallel`
|
|
35
|
-
| `--worktree`
|
|
36
|
-
| `--no-worktree`
|
|
32
|
+
| Flag | Effect |
|
|
33
|
+
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
34
|
+
| `--parallel` | Force standalone parallel execution when the plan has `Batches`; skip the prompt. Otherwise warn and fall back to sequential. Works in opencode, Cursor, Codex. |
|
|
35
|
+
| `--worktree` | Silent legacy no-op; isolation is on by default. |
|
|
36
|
+
| `--no-worktree` | Force worktree mode off regardless of annotations; use the prepared current checkout. |
|
|
37
|
+
| `--store=local\|linear` | Artifact store override; strip it, retain as `STORE_FLAG` (empty when absent), and forward it to every resolver call. See artifact-store.md **Implementation skills**. |
|
|
37
38
|
|
|
38
|
-
Set `PARALLEL_FLAG=true|false`, ``, `WORKTREE_MODE=true|false`, `DRY_RUN=true|false`. The remaining text is the plan
|
|
39
|
+
Set `PARALLEL_FLAG=true|false`, ``, `WORKTREE_MODE=true|false`, `DRY_RUN=true|false`. The remaining text is the plan input: a plan path, a cached linear plan path, or a Linear reference. `{{package-root}}/shared/references/artifact-store.md` **Implementation skills > Inputs** defines issue keys, references, linear plan paths and which of them select linear mode (an existing local plan path wins). If the input is a Linear reference or linear plan path and `STORE_FLAG` is empty, set `STORE_FLAG=--store=linear` before the first resolver call and forward it to every later call, per that contract.
|
|
40
|
+
|
|
41
|
+
Existing local plans keep local mode (Inputs): when `STORE_FLAG` is empty and `bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" --shell` prints `ARTIFACT_STORE_SOURCE=default`, a plan path that is not a linear plan path sets `STORE_FLAG=--store=local`; print `Using local plan at <path>; pin with store: local in .plans-config`.
|
|
39
42
|
|
|
40
43
|
Validation (abort with these exact messages):
|
|
41
44
|
|
|
42
45
|
- Both `--worktree` and `--no-worktree`: `--worktree and --no-worktree are mutually exclusive. Use --no-worktree to opt out of the default.`
|
|
46
|
+
- `--store=local` with a Linear reference or linear plan path: `A Linear plan reference requires linear mode; drop --store=local.`
|
|
43
47
|
|
|
44
48
|
|
|
45
49
|
### Package Manager and Validation Scripts
|
|
@@ -52,13 +56,14 @@ Read `{{package-root}}/shared/references/standalone-dispatch.md` for standalone
|
|
|
52
56
|
|
|
53
57
|
## Phase 1 — LOAD
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
Local mode: read the stripped plan path (`PLAN_PATH`) exactly as before; extract Summary, Patterns to Mirror, Files to Change, Step-by-Step Tasks, Validation Commands, Acceptance Criteria. Missing or invalid plan:
|
|
56
60
|
|
|
57
61
|
```
|
|
58
62
|
Error: Plan file not found or invalid.
|
|
59
63
|
Run /ycc:prp-plan <feature-description> to create a plan first.
|
|
60
64
|
```
|
|
61
65
|
|
|
66
|
+
Linear mode: follow artifact-store.md **Implementation skills > Resolve and hydrate** for kind `prp-plan` before branch preparation (`resolve-artifact-store.sh ${STORE_FLAG} --shell`, reading `ARTIFACT_STORE=`; Linear call gate; Lookup; Load); set `PLAN_PATH` to the absolute cache path and read its `tasks` map (rebuilt in memory when missing). If `DRY_RUN=true`, do not use `--ensure`, write the cache, or run Load's push/Conflict steps: reuse an existing cache file read-only, or fetch the body into a `mktemp` file outside the repository and use that as `PLAN_PATH`. A missing plan follows Lookup step 7 (ask, listing what was tried) — never report "not found" without querying Linear. Parse the selected file as above.
|
|
62
67
|
Read `references/detection.md` (Parallel-Capable Detection and Execution Mode Decision) now. A `## Batches` section makes the plan parallel-capable: parse its ordering and task `BATCH:` fields. Select sequential or parallel standalone execution; record `EXECUTION_MODE=sequential|parallel`.
|
|
63
68
|
|
|
64
69
|
|
|
@@ -66,17 +71,22 @@ Read `references/detection.md` (Parallel-Capable Detection and Execution Mode De
|
|
|
66
71
|
Apply the common worktree precedence/deduction in standalone-dispatch.md §8.1. Scan the plan's worktree annotations:
|
|
67
72
|
|
|
68
73
|
```bash
|
|
69
|
-
grep -c
|
|
70
|
-
|
|
74
|
+
# grep -c prints the count itself; exit 1 only means zero matches, so
|
|
75
|
+
# exit codes 0 and 1 both leave exactly one integer on stdout. A status
|
|
76
|
+
# above 1 (unreadable/missing file) is a real error and makes the line fail.
|
|
77
|
+
grep -c "^## Worktree Setup" "$PLAN_PATH"; [ $? -le 1 ]
|
|
78
|
+
grep -c "^\- \*\*Worktree\*\*:" "$PLAN_PATH"; [ $? -le 1 ]
|
|
71
79
|
```
|
|
72
80
|
|
|
73
|
-
|
|
81
|
+
Local mode: with a parent annotation, use its path before whitespace/comment and slug segment after `<repo>-`. Otherwise derive `WT_FEATURE_SLUG` from plan basename: strip `.plan.md`, lowercase, replace `[^a-z0-9-]` with `-`, collapse runs, truncate to 40 chars. In linear mode derive `WT_FEATURE_SLUG` from the cache slug, never from the cache basename (`prp-plan.md`), using artifact-store.md **Resolve and hydrate** step 4: lowercase, replace `[^a-z0-9-]` with `-`, collapse runs, trim `-`, truncate to 40 characters, and fall back to `untitled` if empty. Keep the raw cache slug for every resolver `--slug=` call. `WORKTREE_ACTIVE` follows common mode selection; sequential tasks use the parent execution tree too.
|
|
74
82
|
|
|
75
83
|
**CHECKPOINT**: Plan loaded. All sections identified. Tasks extracted. Parallel capability detected. Execution mode chosen.
|
|
76
84
|
|
|
77
85
|
## Phase 2 — PREPARE
|
|
78
86
|
|
|
79
|
-
|
|
87
|
+
In linear mode with `DRY_RUN=true`, skip this entire phase: no branch preparation, worktree setup, artifact relocation, or remote sync. Continue to Phase 3's dry-run roster output with the read-only or temporary `PLAN_PATH` from Phase 1.
|
|
88
|
+
|
|
89
|
+
Follow standalone-dispatch.md §8.2 for Git-state inspection, required branch preparation, and one-time parent worktree setup. Local mode keeps the one-way plan relocation; linear mode skips `move-plan-to-worktree.sh` — the plan is not moved into the worktree and worktree tasks read the absolute cache `$PLAN_PATH`. In linear mode the cache is gitignored and the only expected dirty path is a `.gitignore` whose sole change appends one `.ycc/artifacts/` rule line, which branch preparation accepts. Input plan is the stripped `$ARGUMENTS`; optional companion artifacts ride as extra move arguments (local only). Retain `$PLAN_PATH` as the canonical path for validation, prompts, report, and archive/completion. All subsequent git operations and writes run in `$WT_PARENT_PATH` when active; `--no-worktree` uses the prepared current checkout.
|
|
80
90
|
|
|
81
91
|
Sync remote after preparation in the execution tree:
|
|
82
92
|
|
|
@@ -88,7 +98,7 @@ git pull --rebase origin $(git branch --show-current) 2>/dev/null || true
|
|
|
88
98
|
|
|
89
99
|
## Phase 3 — EXECUTE
|
|
90
100
|
|
|
91
|
-
Branch on `EXECUTION_MODE` chosen in Phase 1.
|
|
101
|
+
Branch on `EXECUTION_MODE` chosen in Phase 1. In linear mode, read `references/linear-sync.md` now and apply it (orchestrator only; `implementor` subagents never call Linear).
|
|
92
102
|
|
|
93
103
|
### Path A — Sequential Execution
|
|
94
104
|
|
|
@@ -140,14 +150,18 @@ Read `references/validation-and-failures.md` now. Run every level in order; fix
|
|
|
140
150
|
|
|
141
151
|
## Phase 5 — REPORT
|
|
142
152
|
|
|
143
|
-
Read `references/report-output.md` now for report template, PRD update, archive commands, and worktree section.
|
|
153
|
+
Read `references/report-output.md` now for report template, PRD update, archive/completion commands, and worktree section.
|
|
154
|
+
|
|
155
|
+
Local mode (unchanged):
|
|
144
156
|
|
|
145
157
|
1. Create `docs/prps/reports/{plan-name}-report.md`, including assessment vs reality, task status, all validation levels, changed files, verbatim deviations, issues, tests, next steps.
|
|
146
158
|
2. If a PRD phase: change `in-progress` to `complete`, add report path.
|
|
147
159
|
3. Archive canonical `$PLAN_PATH` to its sibling `completed/` inside the execution tree (fallback to stripped `$ARGUMENTS` under `--no-worktree`).
|
|
148
160
|
4. If `WORKTREE_ACTIVE=true`, capture `list-worktrees.sh` output after archive; include full table and cleanup commands under `## Worktree Summary` in the report.
|
|
149
161
|
|
|
150
|
-
|
|
162
|
+
Linear mode: resolve the report with `bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=prp-report --slug=<slug>` (`<slug>` = cache parent directory name), write it there, and complete per `references/linear-sync.md` instead of the archive move.
|
|
163
|
+
|
|
164
|
+
**CHECKPOINT**: Report created. PRD updated. Plan archived (local) or Linear completion applied (linear). Worktree summary captured (if applicable).
|
|
151
165
|
|
|
152
166
|
## Phase 6 — OUTPUT
|
|
153
167
|
|
|
@@ -165,7 +179,7 @@ Read `references/validation-and-failures.md` when any type-check, test, lint, bu
|
|
|
165
179
|
- **TESTS_PASS**: All tests green, new tests written.
|
|
166
180
|
- **BUILD_PASS**: Build succeeds.
|
|
167
181
|
- **REPORT_CREATED**: Implementation report saved.
|
|
168
|
-
- **PLAN_ARCHIVED**:
|
|
182
|
+
- **PLAN_ARCHIVED**: Local: plan moved to `docs/prps/plans/completed/`. Linear: parent tracking issue and every tracked task issue are `completed` (or `canceled`) and the Project status update was posted (see `references/linear-sync.md`).
|
|
169
183
|
|
|
170
184
|
## /goal pairing and Next Steps
|
|
171
185
|
|
|
@@ -174,6 +188,7 @@ Read `references/report-output.md` (Goal pairing) for the condition template; re
|
|
|
174
188
|
## References — read when
|
|
175
189
|
|
|
176
190
|
- `references/detection.md`: Phase 0 package manager/scripts and Phase 1 parallel detection/mode selection.
|
|
191
|
+
- `references/linear-sync.md`: linear-mode status sync, report Save, completion, and offline replay (Phase 3/5).
|
|
177
192
|
- `references/agent-task-prompt.md`: once before parallel implementor dispatch.
|
|
178
193
|
- `references/validation-and-failures.md`: Phase 4 validation and any failed check.
|
|
179
194
|
- `references/report-output.md`: Phase 5 report/PRD/archive, Phase 6 user output, or `/goal` condition.
|
|
@@ -13,7 +13,7 @@ Read once before parallel or agent-team dispatch. Substitute complete task detai
|
|
|
13
13
|
```text
|
|
14
14
|
Implement {{TASK_ID}}: {{TASK_TITLE}}
|
|
15
15
|
|
|
16
|
-
Plan: {{PLAN_PATH}}
|
|
16
|
+
Plan: {{PLAN_PATH}} (absolute, read-only)
|
|
17
17
|
Patterns to Mirror:
|
|
18
18
|
{{PATTERNS_TO_MIRROR}}
|
|
19
19
|
|
|
@@ -25,6 +25,8 @@ apply GOTCHA warnings and use specified IMPORTS. Implement only this task.
|
|
|
25
25
|
Run your own type-check on modified files before reporting complete.
|
|
26
26
|
Report files created/modified, validation results, issues and deviations
|
|
27
27
|
verbatim (what changed and why).
|
|
28
|
+
Never edit the plan or its frontmatter, and never call Linear MCP or other
|
|
29
|
+
external tracker tools; report status only to the orchestrator.
|
|
28
30
|
|
|
29
31
|
{{WORKING_DIRECTORY_LINES}}
|
|
30
32
|
{{TEAM_COMPLETION_DIRECTIVE}}
|
|
@@ -32,5 +34,6 @@ verbatim (what changed and why).
|
|
|
32
34
|
|
|
33
35
|
`WORKING_DIRECTORY_LINES`: use shared execution-directory prompt contract, for
|
|
34
36
|
both parallel and sequential tasks. Treat that directory as repo root for all
|
|
35
|
-
|
|
37
|
+
writes and for reads of files not supplied by absolute path (the plan path may
|
|
38
|
+
lie outside it); no per-agent worktree isolation.
|
|
36
39
|
to call `update the todo tracker` to mark its own registered task complete.
|
|
@@ -27,7 +27,10 @@ Note available commands for: type-check, lint, test, build.
|
|
|
27
27
|
After reading the plan, check whether it was written in parallel mode by looking for a `## Batches` section:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
grep -c
|
|
30
|
+
# grep -c prints the count itself; exit 1 only means zero matches. Exit codes
|
|
31
|
+
# 0 and 1 both leave exactly one integer on stdout; a status above 1
|
|
32
|
+
# (unreadable or missing file) is a real read error and makes the line fail.
|
|
33
|
+
grep -c "^## Batches" "$PLAN_PATH"; [ $? -le 1 ]
|
|
31
34
|
```
|
|
32
35
|
|
|
33
36
|
- **Count > 0** → Plan is **parallel-capable**. Parse the `Batches` table to extract batch ordering and `BATCH:` fields from tasks.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# PRP Linear Sync (linear mode only)
|
|
2
|
+
|
|
3
|
+
Canonical rules: `{{package-root}}/shared/references/artifact-store.md` **Implementation skills** (Status sync, Report and completion, Offline). This file only adapts them to prp-implement's phases. Local mode never reads this file and makes no Linear calls. Only the orchestrating skill calls Linear MCP; `implementor` subagents never do. Move issues by state type, never team-specific state names, and never move an issue backwards, reopen it, change its assignee, or touch issues outside the plan's `tasks` map and parent.
|
|
4
|
+
|
|
5
|
+
## Run start
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Phase 3 status sync
|
|
9
|
+
|
|
10
|
+
- Sequential (Path A): before each task, its issue → `started` when `backlog`/`unstarted`/`triage`; after that task's Phase 0 type-check passes, its issue → `completed`.
|
|
11
|
+
- Parallel/team: at batch dispatch, every task issue in the batch → `started` (same guard); after the between-batch validation (type-check + affected tests) passes, every issue in that batch → `completed`.
|
|
12
|
+
- Failure (task or batch): leave the issue `started`; add one comment with the task id, the failing check, and a short excerpt — never secrets or full logs.
|
|
13
|
+
- Re-run: a task whose issue is already `completed` is treated as done and skipped; a `canceled` issue's task is skipped as removed. Print both in the summary. A task with no issue still runs; list it as untracked in the report and suggest re-saving the plan with its planning skill.
|
|
14
|
+
- After every state change or failure comment, apply the contract's Timestamps rule (fetch `updatedAt` first; re-stamp `tasks.<id>.updatedAt` only when it matched the stored stamp).
|
|
15
|
+
|
|
16
|
+
## Phase 5 report and completion
|
|
17
|
+
|
|
18
|
+
1. Resolve the report path: `bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=prp-report --slug=<slug>`; write the report there (same content as the local report template). Do this on failure as well as success.
|
|
19
|
+
2. Save it: post one Project status update with health `onTrack` when every task passed, `atRisk` otherwise; when the report exceeds the status-update size, also save it as a Document (`<slug> · report`). Record `linear.statusUpdate` (and `linear.document` when long) in the report cache file's frontmatter.
|
|
20
|
+
3. Replace the archive move: parent tracking issue → `completed` once all tasks pass final validation. Complete the Project only under the contract's Project completion rule (name equals the plan slug, carries `ARTIFACT_LINEAR_LABEL` when set, not `ARTIFACT_LINEAR_PROJECT`, every issue `completed` or `canceled`); otherwise leave it open and say why in the report/summary.
|
|
21
|
+
4. `PLAN_ARCHIVED: PASS` in linear mode means: parent tracking issue and every tracked task issue are `completed` (or `canceled`) and the Project status update was posted.
|
|
22
|
+
|
|
23
|
+
## Offline
|
|
24
|
+
|
|
25
|
+
If the MCP becomes unreachable mid-run, keep implementing. At the moment a transition fails, resolve the report path with `--ensure`, append it under `## Linear sync pending` in that file and set `pending: true`; the final report merges into the same file. Print the list. The next run on the same plan replays the pending transitions before dispatching, following artifact-store.md **Offline**.
|
|
@@ -11,12 +11,16 @@
|
|
|
11
11
|
|
|
12
12
|
## Implementation report
|
|
13
13
|
|
|
14
|
+
Local mode:
|
|
15
|
+
|
|
14
16
|
```bash
|
|
15
17
|
mkdir -p docs/prps/reports
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
Write report to `docs/prps/reports/{plan-name}-report.md`:
|
|
19
21
|
|
|
22
|
+
Linear mode: resolve the report path instead with `resolve-artifact-store.sh ${STORE_FLAG} --ensure --kind=prp-report --slug=<slug>` and write it there; Save and completion follow `references/linear-sync.md`. Content below is the same in both modes.
|
|
23
|
+
|
|
20
24
|
```markdown
|
|
21
25
|
# Implementation Report: [Feature Name]
|
|
22
26
|
|
|
@@ -85,7 +89,7 @@ If this implementation was for a PRD phase:
|
|
|
85
89
|
1. Update the phase status from `in-progress` to `complete`
|
|
86
90
|
2. Add report path as reference
|
|
87
91
|
|
|
88
|
-
### Archive Plan
|
|
92
|
+
### Archive Plan (local mode only)
|
|
89
93
|
|
|
90
94
|
Run inside `$WT_PARENT_PATH` (when `WORKTREE_ACTIVE=true`) so the archive lives next to the implementation report, not back in main. `$PLAN_PATH` is the relocated plan path set in Phase 2; if the run was `--no-worktree` it falls back to `$ARGUMENTS`.
|
|
91
95
|
|
|
@@ -95,6 +99,8 @@ mkdir -p "$(dirname -- "$PLAN_PATH")/completed"
|
|
|
95
99
|
mv "$PLAN_PATH" "$(dirname -- "$PLAN_PATH")/completed/"
|
|
96
100
|
```
|
|
97
101
|
|
|
102
|
+
Linear mode has no archive move: close the parent issue and apply the Project-completion rule per `references/linear-sync.md`.
|
|
103
|
+
|
|
98
104
|
### Worktree Summary (when `WORKTREE_ACTIVE=true`)
|
|
99
105
|
|
|
100
106
|
After archiving the plan, run:
|
|
@@ -110,7 +116,7 @@ Include the full output (markdown table + cleanup commands) in the implementatio
|
|
|
110
116
|
|
|
111
117
|
## User output and Goal Signals
|
|
112
118
|
|
|
113
|
-
Report to user:
|
|
119
|
+
Report to user (linear mode: print `[plan Document URL] → issues closed` instead of the archive path on the **Plan** line, and use the Linear Artifacts section):
|
|
114
120
|
|
|
115
121
|
```
|
|
116
122
|
## Implementation Complete
|
|
@@ -143,6 +149,11 @@ Report to user:
|
|
|
143
149
|
- Report: `docs/prps/reports/{name}-report.md`
|
|
144
150
|
- Archived Plan: `docs/prps/plans/completed/{name}.plan.md`
|
|
145
151
|
|
|
152
|
+
### Linear Artifacts ← include this section only when ARTIFACT_STORE=linear (omit the two Artifacts lines above)
|
|
153
|
+
|
|
154
|
+
- Report: [Linear Project / status update URL, or pending]
|
|
155
|
+
- Plan: [Linear plan Document URL] (not archived; parent issue completed)
|
|
156
|
+
|
|
146
157
|
### PRD Progress (if applicable)
|
|
147
158
|
|
|
148
159
|
| Phase | Status |
|
|
@@ -188,6 +199,8 @@ PLAN_ARCHIVED: PASS. If any signal prints FAIL, keep fixing and re-running valid
|
|
|
188
199
|
until all seven are PASS. Stop after 25 turns if not achieved.
|
|
189
200
|
```
|
|
190
201
|
|
|
202
|
+
In linear mode, replace the plan path with the Linear reference or cached plan path; `PLAN_ARCHIVED` then means what SKILL.md Success Criteria says for linear mode.
|
|
203
|
+
|
|
191
204
|
The transcript-output contract and shared caveats (worktree cwd, interactive failure
|
|
192
205
|
prompts, platform availability) live in the shared reference — read it before relying on a
|
|
193
206
|
`/goal` loop:
|
package/skills/prp-plan/SKILL.md
CHANGED
|
@@ -10,7 +10,7 @@ description: Creates self-contained PRP plans with codebase patterns. Use when p
|
|
|
10
10
|
|
|
11
11
|
Create a detailed, self-contained implementation plan that captures all codebase patterns, conventions, and context needed to implement a feature in a single pass.
|
|
12
12
|
|
|
13
|
-
**Operational context:** Detect PRD versus free-form input, discover codebase patterns through prp-researcher with optional external research, and write
|
|
13
|
+
**Operational context:** Detect PRD versus free-form input, discover codebase patterns through prp-researcher with optional external research, and write the resolved `prp-plan` artifact for /prp-implement.
|
|
14
14
|
|
|
15
15
|
> Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
|
|
16
16
|
|
|
@@ -26,17 +26,24 @@ Create a detailed, self-contained implementation plan that captures all codebase
|
|
|
26
26
|
|
|
27
27
|
Extract flags from `$ARGUMENTS`:
|
|
28
28
|
|
|
29
|
-
| Flag
|
|
30
|
-
|
|
|
31
|
-
| `--parallel`
|
|
32
|
-
| `--worktree`
|
|
33
|
-
| `--no-worktree`
|
|
34
|
-
| `--enhanced`
|
|
35
|
-
| `--visual`
|
|
29
|
+
| Flag | Effect |
|
|
30
|
+
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
31
|
+
| `--parallel` | Fan out research into 3 **standalone sub-agent** researchers; emit tasks with batch/dependency annotations. Works in opencode, Cursor, and Codex. |
|
|
32
|
+
| `--worktree` | (legacy — now default; safe to omit) Worktree annotations are emitted by default. Accepted as a silent no-op so existing pipelines continue to work. |
|
|
33
|
+
| `--no-worktree` | Opt out of worktree annotations. The plan will not contain a `## Worktree Setup` section or per-task `**Worktree**:` annotations. |
|
|
34
|
+
| `--enhanced` | Enhanced research mode: grow the research fan-out from 3 to 7 specialized researchers (api/business/tech/ux/security/practices/recommendations — same coverage as feature-research). Output is still a single PRP-compliant plan file. Composes with --parallel (default) (Claude Code only), and --no-worktree. |
|
|
35
|
+
| `--visual` | Render the finished plan as an Agent-Native visual artifact (MDX) via `visual-plan`; local-files by default, hosted shareable link requires `--share`. |
|
|
36
|
+
| `--store=local\|linear` | Artifact-store override; strip it before interpreting the feature description or input path and forward it to every resolver and visual-plan call. |
|
|
36
37
|
|
|
37
|
-
Strip the flags. Set `PARALLEL_MODE=true|false`, ``, `DRY_RUN=true|false`. Default `WORKTREE_MODE=true`; set
|
|
38
|
+
Strip the flags. Set `PARALLEL_MODE=true|false`, ``, `DRY_RUN=true|false`. Default `WORKTREE_MODE=true`; set false for `--no-worktree`. `--worktree` is a legacy no-op. Parse and strip the store override as below; reject invalid `--store=` values or conflicting overrides rather than including them in the description. Only the remaining text is the feature description or PRD/spec path.
|
|
38
39
|
|
|
39
40
|
```bash
|
|
41
|
+
STORE_FLAG=
|
|
42
|
+
case " $ARGUMENTS " in
|
|
43
|
+
*" --store=linear "*) STORE_FLAG=--store=linear ;;
|
|
44
|
+
*" --store=local "*) STORE_FLAG=--store=local ;;
|
|
45
|
+
esac
|
|
46
|
+
if [ -n "$STORE_FLAG" ]; then ARGUMENTS="${ARGUMENTS//$STORE_FLAG/}"; fi
|
|
40
47
|
# Default ON; pass --no-worktree to opt out. --worktree accepted as legacy no-op.
|
|
41
48
|
WORKTREE_MODE=true
|
|
42
49
|
case " $ARGUMENTS " in
|
|
@@ -68,14 +75,14 @@ ARGUMENTS="${ARGUMENTS//--visual/}"
|
|
|
68
75
|
|
|
69
76
|
### Input Detection
|
|
70
77
|
|
|
71
|
-
| Input Pattern
|
|
72
|
-
|
|
|
73
|
-
| Path ending in `.prd.md`
|
|
74
|
-
| Path ending in `.spec.md` | Read spec, extract requirements and technical approach as context |
|
|
75
|
-
| Path to `.md` with phases
|
|
76
|
-
| Path to other file
|
|
77
|
-
| Free-form text
|
|
78
|
-
| Empty
|
|
78
|
+
| Input Pattern | Action |
|
|
79
|
+
| -------------------------------------------- | ----------------------------------------------------------------- |
|
|
80
|
+
| Path ending in `.prd.md` or named `prd.md` | Parse PRD, find next pending phase |
|
|
81
|
+
| Path ending in `.spec.md` or named `spec.md` | Read spec, extract requirements and technical approach as context |
|
|
82
|
+
| Path to `.md` with phases | Parse phases, find next pending |
|
|
83
|
+
| Path to other file | Read for context, treat as free-form |
|
|
84
|
+
| Free-form text | Proceed to Phase 1 |
|
|
85
|
+
| Empty | Ask user what feature to plan |
|
|
79
86
|
|
|
80
87
|
### PRD Parsing (when input is a PRD)
|
|
81
88
|
|
|
@@ -102,6 +109,25 @@ Assess complexity: Small (1-3 files) | Medium (3-10 files) | Large (10+ files) |
|
|
|
102
109
|
|
|
103
110
|
If the core deliverable is vague, success criteria undefined, multiple valid interpretations exist, or there are major technical unknowns — **STOP and ask the user**. Do NOT guess.
|
|
104
111
|
|
|
112
|
+
### Resolve artifact paths
|
|
113
|
+
|
|
114
|
+
Derive `<slug>` from the feature name (kebab-case), not the cache filename `prp-plan.md`. If the input is a linear cache `prd.md` or `spec.md`, reuse its parent directory name as `<slug>` so the plan shares its source's feature Project. Retain the parsed `STORE_FLAG` and pass it to every resolver call.
|
|
115
|
+
|
|
116
|
+
1. Resolve and print the mode, then read `ARTIFACT_STORE=` from stdout:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --shell
|
|
120
|
+
OUT="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=prp-plan --slug=<slug>)"
|
|
121
|
+
RESEARCH_DIR="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=prp-research --slug=<slug>)"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
These calls resolve only; do not run `--ensure`, `mkdir`, Load, or any other write before the C.2 dry-run exit. Dry runs write nothing and require no Linear gate.
|
|
125
|
+
|
|
126
|
+
2. For a real linear run, apply the **Linear call gate** from `{{package-root}}/shared/references/artifact-store.md` before any write, including a cache pull or research backstop.
|
|
127
|
+
3. At the first permitted write, run the resolver with `${STORE_FLAG} --ensure --kind=<kind> --slug=<slug>` for that destination. Plan output is ensured only at Phase 6. Before loading a linear PRD/spec, ensure its source kind and slug, then apply Load; skip identity frontmatter when reading its body. Before research dispatch that writes backstops, ensure `prp-research`, then `mkdir -p "$RESEARCH_DIR"`; default sequential research creates no scratch directory.
|
|
128
|
+
|
|
129
|
+
Local mode keeps `docs/prps/plans/<slug>.plan.md` and `docs/prps/plans/.prp-research/<slug>/` under the current checkout's git toplevel, with no identity frontmatter. Linear mode is the default; its research backstops remain local-only. Follow artifact-store.md **Planning skills** for identity Lookup/Load before writing and Save, including task sub-issues. Shell state does not persist across tool calls: retain the printed mode, absolute `OUT` and `RESEARCH_DIR`, and substitute them in all later commands and prompts.
|
|
130
|
+
|
|
105
131
|
---
|
|
106
132
|
|
|
107
133
|
## Phase 2 — EXPLORE
|
|
@@ -130,8 +156,8 @@ Dispatch `patterns-research`, `quality-research`, and `infra-research` in one pa
|
|
|
130
156
|
#### Path B (enhanced) — when `ENHANCED_MODE=true`
|
|
131
157
|
|
|
132
158
|
- Replace the 3-row researcher table above with the 7-row roster from `{{package-root}}/skills/prp-plan/references/enhanced-researchers.md`.
|
|
133
|
-
- Dispatch in a **SINGLE message** with **SEVEN native `subagent` calls
|
|
134
|
-
- Each call uses `@prp-researcher` with `description` set to the role name (`api-researcher`, `business-analyzer`, `tech-designer`, `ux-researcher`, `security-researcher`, `practices-researcher`, `recommendations-agent`) and the role-specific prompt
|
|
159
|
+
- Before dispatch, ensure `prp-research` after the Linear gate when applicable, then create `$RESEARCH_DIR` with `mkdir -p`. Dispatch in a **SINGLE message** with **SEVEN native `subagent` calls** (standalone — no `name`). Wait for all researcher results, whether returned directly or delivered asynchronously, before synthesis.
|
|
160
|
+
- Each call uses `@prp-researcher` with `description` set to the role name (`api-researcher`, `business-analyzer`, `tech-designer`, `ux-researcher`, `security-researcher`, `practices-researcher`, `recommendations-agent`) and the role-specific prompt from `enhanced-researchers.md`. Substitute `{{RESEARCH_DIR}}` with the resolved absolute directory in every prompt. Each role writes `${RESEARCH_DIR}/<role-name>.md` in addition to returning the same content inline.
|
|
135
161
|
- The 5-line snippet cap and discovery-table-only constraints used in the 3-researcher path apply unchanged.
|
|
136
162
|
|
|
137
163
|
## Phase 3 — RESEARCH
|
|
@@ -165,12 +191,15 @@ Define:
|
|
|
165
191
|
|
|
166
192
|
**CRITICAL: Write the plan progressively in chunks to avoid timeouts.**
|
|
167
193
|
|
|
168
|
-
|
|
194
|
+
Now that the dry-run exit is past, in linear mode apply the Linear call gate before ensuring the plan destination:
|
|
169
195
|
|
|
170
196
|
```bash
|
|
171
|
-
|
|
197
|
+
OUT="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=prp-plan --slug=<slug>)"
|
|
198
|
+
mkdir -p "$(dirname "$OUT")"
|
|
172
199
|
```
|
|
173
200
|
|
|
201
|
+
Before writing in linear mode, follow artifact-store.md **Planning skills**: if document or task identity is missing, run Lookup steps 3–6 and Load any hit, preserving identity and using Conflict for replacement. Write progressively to this same absolute `$OUT`; use it throughout validation, visualization, and handoff, never a second destination.
|
|
202
|
+
|
|
174
203
|
### Step 1: Read the template
|
|
175
204
|
|
|
176
205
|
Read the plan template from `{{package-root}}/skills/prp-plan/references/plan-template.md`.
|
|
@@ -197,7 +226,7 @@ Each chunk should be a separate Write or Edit call. This prevents any single gen
|
|
|
197
226
|
|
|
198
227
|
### Worktree annotations (default — `WORKTREE_MODE=true`; skipped when `--no-worktree`)
|
|
199
228
|
|
|
200
|
-
|
|
229
|
+
Use the feature slug resolved in Phase 1 for `<feature-slug>` (never derive it from the linear cache filename). Derive `<repo>` from `git rev-parse --show-toplevel` basename.
|
|
201
230
|
|
|
202
231
|
**`## Worktree Setup` section** (top-level, before Batches/implementation):
|
|
203
232
|
|
|
@@ -209,7 +238,7 @@ Derive `<feature-slug>` from the kebab-case plan file name (same value used for
|
|
|
209
238
|
|
|
210
239
|
All tasks — parallel and sequential — share this one feature worktree path. No `**Children**:` list and no per-task `**Worktree**:` annotation lines are emitted.
|
|
211
240
|
|
|
212
|
-
> **Plan-file handoff**:
|
|
241
|
+
> **Plan-file handoff**: in local mode, leave `$OUT` in the current checkout; the implementor (`prp-implement`) will **move** it into the feature worktree once created — do not pre-write or copy it there (see `worktree-strategy.md` §7). In linear mode, never move the cache; the implementor loads the plan from it via `/ycc:prp-implement --store=linear {resolved cached plan path or Linear Document URL}`.
|
|
213
242
|
|
|
214
243
|
Follow `{{package-root}}/shared/references/worktree-strategy.md` for the full naming scheme and annotation contract.
|
|
215
244
|
|
|
@@ -227,7 +256,7 @@ Follow `{{package-root}}/shared/references/worktree-strategy.md` for the full na
|
|
|
227
256
|
After writing the plan file, run the structural validator:
|
|
228
257
|
|
|
229
258
|
```bash
|
|
230
|
-
{{package-root}}/skills/prp-plan/scripts/validate-prp-plan.sh "
|
|
259
|
+
{{package-root}}/skills/prp-plan/scripts/validate-prp-plan.sh "$OUT"
|
|
231
260
|
```
|
|
232
261
|
|
|
233
262
|
### On errors (exit 1)
|
|
@@ -247,12 +276,14 @@ Include a brief note in the report: "Plan validated with N warning(s) — see va
|
|
|
247
276
|
|
|
248
277
|
**Do NOT loop more than once.** One fix pass maximum.
|
|
249
278
|
|
|
279
|
+
After the validation/fix pass, Save the final `$OUT` in linear mode through artifact-store.md **Planning skills**, including its task sub-issues and dependency relations. Preserve existing identity frontmatter while editing. Local mode stops after the file write and validation.
|
|
280
|
+
|
|
250
281
|
---
|
|
251
282
|
|
|
252
283
|
## Phase 7 — VISUALIZE (optional)
|
|
253
284
|
|
|
254
285
|
|
|
255
|
-
- If `VISUAL_MODE=true` and `--dry-run` is NOT set, invoke `visual-plan <plan-path>` — passing the absolute
|
|
286
|
+
- If `VISUAL_MODE=true` and `--dry-run` is NOT set, invoke `visual-plan ${STORE_FLAG} <plan-path>` — passing the resolved absolute `$OUT` and the retained override — and capture its printed link.
|
|
256
287
|
- If `--dry-run` is set, print `visual generation would run` and skip the invocation.
|
|
257
288
|
|
|
258
289
|
---
|
|
@@ -261,7 +292,7 @@ Include a brief note in the report: "Plan validated with N warning(s) — see va
|
|
|
261
292
|
|
|
262
293
|
This skill exposes the shared `--visual` decorator. The canonical contract lives at `{{package-root}}/shared/references/visual-mode.md` — follow it for composition, timing, and hand-off rules.
|
|
263
294
|
|
|
264
|
-
When `VISUAL_MODE` is set and `--dry-run` is NOT,
|
|
295
|
+
When `VISUAL_MODE` is set and `--dry-run` is NOT, invoke `visual-plan ${STORE_FLAG} <absolute-plan-path>` after Phase 6.5 with the resolved absolute `$OUT`. It resolves the store-specific `visual/` output directory and prints the link; surface it in the Report block. When `--dry-run` is set, print `visual generation would run` and skip — no visual artifacts, directories, or links are produced.
|
|
265
296
|
|
|
266
297
|
---
|
|
267
298
|
|
|
@@ -269,14 +300,14 @@ When `VISUAL_MODE` is set and `--dry-run` is NOT, the skill invokes `visual-plan
|
|
|
269
300
|
|
|
270
301
|
### Update PRD (if input was a PRD)
|
|
271
302
|
|
|
272
|
-
Update the phase status from `pending` to `in-progress` and add the plan
|
|
303
|
+
Update the phase status from `pending` to `in-progress` and add the actual resolved plan path. In linear mode preserve the source PRD's identity and Save that updated `prd` artifact through artifact-store.md **Planning skills**.
|
|
273
304
|
|
|
274
305
|
### Report to User
|
|
275
306
|
|
|
276
307
|
```
|
|
277
308
|
## Plan Created
|
|
278
309
|
|
|
279
|
-
- **File**:
|
|
310
|
+
- **File**: {resolved absolute OUT path}
|
|
280
311
|
- **Source PRD**: [path or "N/A"]
|
|
281
312
|
- **Phase**: [phase name or "standalone"]
|
|
282
313
|
- **Complexity**: [level]
|
|
@@ -291,7 +322,8 @@ Update the phase status from `pending` to `in-progress` and add the plan file pa
|
|
|
291
322
|
- **Visual Artifact**: [Generated via visual-plan | n/a (--visual not set)]
|
|
292
323
|
- **Visual Link**: [hosted URL | http://127.0.0.1:PORT/... | local files only | n/a (--visual not set)]
|
|
293
324
|
|
|
294
|
-
> Next step: Run `/ycc:prp-implement
|
|
325
|
+
> Next step (local mode only): Run `/ycc:prp-implement {resolved absolute OUT path}` to execute this plan.
|
|
326
|
+
> In linear mode replace that command with: Run `/ycc:prp-implement --store=linear {resolved cached plan path or Linear Document URL}` to execute this plan.
|
|
295
327
|
```
|
|
296
328
|
|
|
297
329
|
---
|
|
@@ -313,7 +345,7 @@ The `validate-prp-plan.sh` script checks:
|
|
|
313
345
|
|
|
314
346
|
## Next Steps
|
|
315
347
|
|
|
316
|
-
-
|
|
348
|
+
- Local mode: run `/ycc:prp-implement <plan-path>` to execute this plan. Linear mode: run `/ycc:prp-implement --store=linear <cached plan path or Linear Document URL>`.
|
|
317
349
|
- Run `/ycc:plan` for quick conversational planning without artifacts
|
|
318
350
|
- Run `/ycc:plan-workflow` for the heavyweight parallel-agent planning track
|
|
319
351
|
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
- Prompt: practices-researcher
|
|
12
12
|
- Prompt: recommendations-agent
|
|
13
13
|
|
|
14
|
-
> **Contract**: Each of these 7 researchers feeds the `prp-plan` synthesizer in Phase 6. They are dispatched standalone via the `subagent` tool (see `{{package-root}}/shared/references/standalone-dispatch.md`). Each researcher returns its findings inline as structured rows that map directly to a section of the PRP plan template at `{{package-root}}/skills/prp-plan/references/plan-template.md`, **AND** additionally writes the same discovery table to a backstop file at `docs/prps/plans/.prp-research/<feature-slug>/<role-name>.md` using the `Write` tool, so the findings are never lost even if the inline return is interrupted or truncated. All 7 use `@prp-researcher`, distinguished by `description` and the role-specific prompt below (omit `name` for standalone calls).
|
|
15
14
|
|
|
16
15
|
## Roster
|
|
17
16
|
|
|
@@ -72,7 +71,7 @@ If no external APIs are needed, return: "No external research needed for this fe
|
|
|
72
71
|
Constraints:
|
|
73
72
|
- Code snippets: 5 lines max per finding
|
|
74
73
|
- Discovery table format only — no prose summaries
|
|
75
|
-
- Write your full output to the backstop file `
|
|
74
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/api-researcher.md` using the Write tool, AND also return the same content inline in your final response.
|
|
76
75
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
77
76
|
```
|
|
78
77
|
|
|
@@ -120,7 +119,7 @@ As a [actor], I want [capability], so that [benefit].
|
|
|
120
119
|
Constraints:
|
|
121
120
|
- Code snippets: 5 lines max per finding (cite file:line for any codebase evidence)
|
|
122
121
|
- Discovery table format only — no prose summaries
|
|
123
|
-
- Write your full output to the backstop file `
|
|
122
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/business-analyzer.md` using the Write tool, AND also return the same content inline in your final response.
|
|
124
123
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
125
124
|
```
|
|
126
125
|
|
|
@@ -179,7 +178,7 @@ Output format — discovery table only, no prose summaries:
|
|
|
179
178
|
Constraints:
|
|
180
179
|
- Code snippets: 5 lines max per finding
|
|
181
180
|
- Discovery table format only — no prose summaries
|
|
182
|
-
- Write your full output to the backstop file `
|
|
181
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/tech-designer.md` using the Write tool, AND also return the same content inline in your final response.
|
|
183
182
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
184
183
|
```
|
|
185
184
|
|
|
@@ -232,7 +231,7 @@ any codebase evidence; ≤10 lines total]
|
|
|
232
231
|
Constraints:
|
|
233
232
|
- Code snippets: 5 lines max per finding
|
|
234
233
|
- Discovery table format only — no prose summaries
|
|
235
|
-
- Write your full output to the backstop file `
|
|
234
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/ux-researcher.md` using the Write tool, AND also return the same content inline in your final response.
|
|
236
235
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
237
236
|
```
|
|
238
237
|
|
|
@@ -290,7 +289,7 @@ identified for this feature."
|
|
|
290
289
|
Constraints:
|
|
291
290
|
- Code snippets: 5 lines max per finding
|
|
292
291
|
- Discovery table format only — no prose summaries
|
|
293
|
-
- Write your full output to the backstop file `
|
|
292
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/security-researcher.md` using the Write tool, AND also return the same content inline in your final response.
|
|
294
293
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
295
294
|
```
|
|
296
295
|
|
|
@@ -352,7 +351,7 @@ Output format — discovery table only, no prose summaries:
|
|
|
352
351
|
Constraints:
|
|
353
352
|
- Code snippets: 5 lines max per finding
|
|
354
353
|
- Discovery table format only — no prose summaries
|
|
355
|
-
- Write your full output to the backstop file `
|
|
354
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/practices-researcher.md` using the Write tool, AND also return the same content inline in your final response.
|
|
356
355
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
357
356
|
```
|
|
358
357
|
|
|
@@ -392,7 +391,7 @@ researchers. You surface what falls between the dimensions:
|
|
|
392
391
|
|
|
393
392
|
Search scope:
|
|
394
393
|
- Codebase: read any spec files, existing plan files, or test fixtures relevant
|
|
395
|
-
to this feature
|
|
394
|
+
to this feature in the caller's resolved artifact directory (Read README or CHANGELOG for context)
|
|
396
395
|
- No external web search needed unless the feature explicitly involves a
|
|
397
396
|
third-party system not covered by api-researcher
|
|
398
397
|
|
|
@@ -420,6 +419,6 @@ Output format — discovery table only, no prose summaries:
|
|
|
420
419
|
Constraints:
|
|
421
420
|
- Code snippets: 5 lines max per finding (cite file:line for any codebase evidence)
|
|
422
421
|
- Discovery table format only — no prose summaries
|
|
423
|
-
- Write your full output to the backstop file `
|
|
422
|
+
- Write your full output to the caller-supplied backstop file `{{RESEARCH_DIR}}/recommendations-agent.md` using the Write tool, AND also return the same content inline in your final response.
|
|
424
423
|
- Do NOT reference re-dispatch the affected sub-agent with the needed guidance or inter-sub-agent coordination
|
|
425
424
|
```
|