@yandy-r/ycc-opencode 6.1.1 → 6.2.1
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/index.js +146 -95
- package/package.json +1 -1
- package/registration.json +0 -4
- 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 +140 -32
- 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 +118 -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/bundle-release/scripts/draft-notes.sh +1 -1
- package/skills/bundle-release/scripts/release_versions.py +9 -1
- 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/SKILL.md +10 -5
- package/skills/compatibility-audit/references/reading-the-report.md +4 -1
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +64 -7
- package/skills/compatibility-audit/scripts/audit-target-features.sh +13 -10
- 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
|
@@ -22,7 +22,7 @@ Read `{{package-root}}/shared/references/standalone-dispatch.md` for standalone
|
|
|
22
22
|
|
|
23
23
|
```
|
|
24
24
|
Error: --research-only and --plan-only are mutually exclusive
|
|
25
|
-
Usage: /ycc:plan-workflow [--research-only | --plan-only] [--no-checkpoint] [--optimized] [--dry-run] [--no-worktree] [--visual] [feature-name]
|
|
25
|
+
Usage: /ycc:plan-workflow [--research-only | --plan-only] [--no-checkpoint] [--optimized] [--dry-run] [--no-worktree] [--visual] [--store=local|linear] [feature-name]
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
2. **Feature name required**: kebab-case (lowercase, hyphens), no other special characters. If missing or invalid, abort with the matching error block from `references/checkpoint-messages.md` ("Error Messages": Missing Feature Name / Invalid Feature Name).
|
|
@@ -38,7 +38,7 @@ Read `{{package-root}}/shared/references/standalone-dispatch.md` for standalone
|
|
|
38
38
|
|
|
39
39
|
## Arguments
|
|
40
40
|
|
|
41
|
-
Parse flags first, then the feature name (first non-flag argument, required;
|
|
41
|
+
Parse flags first, then the feature name (first non-flag argument, required; artifact feature slug).
|
|
42
42
|
|
|
43
43
|
- **--research-only**: stop after research (creates shared.md only).
|
|
44
44
|
- **--plan-only**: skip research, use existing shared.md. Skips Phases 1–4, NOT Phase 5 (Analysis).
|
|
@@ -46,6 +46,7 @@ Parse flags first, then the feature name (first non-flag argument, required; dir
|
|
|
46
46
|
- **--optimized**: 7-agent unified deployment (default: 10-agent standard).
|
|
47
47
|
- **--worktree**: legacy no-op (worktree annotations are the default; safe to omit).
|
|
48
48
|
- **--no-worktree**: opt out of worktree annotations in the generated `parallel-plan.md`. No effect with `--research-only` (no plan file). Honored with `--plan-only`.
|
|
49
|
+
- **--store=local|linear**: optional artifact-store override. Forward it to every artifact-store helper call. Linear is the default; `local` opts out.
|
|
49
50
|
- **--visual**: render the finished plan as an Agent-Native visual artifact (MDX) via `visual-plan`; local files by default, hosted link requires `--share`.
|
|
50
51
|
|
|
51
52
|
If no feature name is provided, abort with the full usage instructions from `references/checkpoint-messages.md` — read when the feature name is missing ("Usage Instructions" section).
|
|
@@ -54,7 +55,7 @@ If no feature name is provided, abort with the full usage instructions from `ref
|
|
|
54
55
|
|
|
55
56
|
## Visual mode
|
|
56
57
|
|
|
57
|
-
See `{{package-root}}/shared/references/visual-mode.md` for the canonical `--visual` contract.
|
|
58
|
+
See `{{package-root}}/shared/references/visual-mode.md` for the canonical `--visual` contract. It is a terminal decorator, orthogonal to `--optimized` and `--no-worktree`; run it once at the end. With `VISUAL_MODE=true` and no `--dry-run`, invoke `visual-plan ${STORE_FLAG} <absolute-plan-path>` with the actual written `${parallel_plan_file}` and the retained store override. Dry runs print `visual generation would run` without invoking it. `--research-only` produces no plan and skips visualization.
|
|
58
59
|
|
|
59
60
|
## Phase 0: Initialize
|
|
60
61
|
|
|
@@ -79,21 +80,39 @@ ARGUMENTS="${ARGUMENTS//--visual/}"
|
|
|
79
80
|
|
|
80
81
|
Apply critical gates 1–3. **feature-name** = first non-flag argument.
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
Parse and strip `--store=local|linear` before selecting the feature name. Set `STORE_FLAG` to the exact override when supplied, otherwise empty; reject invalid/conflicting overrides. Append it to every resolver invocation and visual-plan call below.
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
### Step 2: Resolve Artifact Paths
|
|
86
|
+
|
|
87
|
+
1. Print the mode and read `ARTIFACT_STORE=` from stdout; resolve paths without writes:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --shell
|
|
91
|
+
feature_dir="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=feature-dir --slug="[feature-name]")"
|
|
92
|
+
research_dir="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=research-dir --slug="[feature-name]")"
|
|
93
|
+
shared_file="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=shared --slug="[feature-name]")"
|
|
94
|
+
parallel_plan_file="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=parallel-plan --slug="[feature-name]")"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
If `STORE_FLAG` is empty, the printed `ARTIFACT_STORE_SOURCE` is `default`, and `test -d "$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" --store=local)/[feature-name]"` succeeds (legacy local names such as `team/auth` included), set `STORE_FLAG=--store=local`, print `Using local plan at <that path>; pin with store: local in .plans-config`, and rerun the resolutions above (artifact-store.md **Implementation skills > Inputs**).
|
|
98
|
+
|
|
99
|
+
2. For a non-dry linear run only, apply the **Linear call gate** in `{{package-root}}/shared/references/artifact-store.md` before any write or pull.
|
|
100
|
+
3. Before Lookup/Load in that linear run, ensure the cache and gitignore rule:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
feature_dir="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=feature-dir --slug="[feature-name]")"
|
|
104
|
+
```
|
|
88
105
|
|
|
89
|
-
|
|
106
|
+
Then use Lookup/Load to populate missing cached inputs before state detection. For each document that will be written (research, shared, plan), if document identity is missing (or the plan has no task identity), follow **Planning skills** Lookup steps 3–6 and Load any hit before dispatch or writing; preserve identity and resolve Conflict on replacement. Local mode keeps `PLANS_DIR/<feature>/`; linear mode uses `.ycc/artifacts/<feature>/` with research in `research/`. Dry runs only resolve paths, never ensure or Load. Retain the printed mode and absolute paths across tool calls. See "Monorepo Support" below.
|
|
90
107
|
|
|
91
108
|
### Step 3: Run State Detection
|
|
92
109
|
|
|
93
110
|
```bash
|
|
94
|
-
{{package-root}}/skills/plan-workflow/scripts/check-state.sh [feature-name]
|
|
111
|
+
{{package-root}}/skills/plan-workflow/scripts/check-state.sh "[feature-name]" ${STORE_FLAG}
|
|
95
112
|
```
|
|
96
113
|
|
|
114
|
+
Set `STORE_FLAG=--store=local` or `--store=linear` only when that override was supplied (or the Step 2 local-plan rule chose `--store=local`); otherwise leave it empty so config/default resolution applies. Forward the same override to `check-prerequisites.sh` and to every path-taking validator below. Validators receive the resolved absolute artifact paths already shown.
|
|
115
|
+
|
|
97
116
|
Reports whether `${feature_dir}/` exists, `shared.md`, `parallel-plan.md`, and any research files.
|
|
98
117
|
|
|
99
118
|
### Step 4: Determine Execution Mode
|
|
@@ -112,11 +131,11 @@ Reports whether `${feature_dir}/` exists, `shared.md`, `parallel-plan.md`, and a
|
|
|
112
131
|
|
|
113
132
|
### Step 4A: Dry-Run Preview (when `--dry-run`, before anything else)
|
|
114
133
|
|
|
115
|
-
Read `references/checkpoint-messages.md` — read when previewing a dry run. Display its "Dry Run Output" section with values substituted (`{{FEATURE_NAME}}`, `{{FEATURE_DIR}}`, dispatch mode, execution mode), then **STOP** (gate 4). If `--plan-only` is also set and `check-state.sh` shows no `shared.md`, state in the preview that a real run would fail fast at Step 4B
|
|
134
|
+
Read `references/checkpoint-messages.md` — read when previewing a dry run. Display its "Dry Run Output" section with values substituted (`{{FEATURE_NAME}}`, `{{FEATURE_DIR}}`, `{{RESEARCH_DIR}}`, dispatch mode, execution mode), then **STOP** (gate 4). If `--plan-only` is also set and `check-state.sh` shows no `shared.md`, state in the preview that a real run would fail fast at Step 4B unless a linear Lookup populates the cache from an existing shared document, and **STOP**.
|
|
116
135
|
|
|
117
136
|
### Step 4B: Plan-Only Prerequisite Gate (when `--plan-only`, before any write)
|
|
118
137
|
|
|
119
|
-
Run `scripts/check-prerequisites.sh "[feature-name]"` per gate 5. Then, for `--optimized --plan-only`, verify the five unified files exist before any write or dispatch (gate 6): `analysis-architecture.md`, `analysis-patterns.md`, `analysis-integration.md`, `analysis-docs.md`, `analysis-tasks.md`.
|
|
138
|
+
Run `scripts/check-prerequisites.sh "[feature-name]" ${STORE_FLAG}` per gate 5. Then, for `--optimized --plan-only`, verify the five unified files exist before any write or dispatch (gate 6): `analysis-architecture.md`, `analysis-patterns.md`, `analysis-integration.md`, `analysis-docs.md`, `analysis-tasks.md`.
|
|
120
139
|
|
|
121
140
|
### Step 4C: Overwrite Choice (when shared.md or parallel-plan.md exists)
|
|
122
141
|
|
|
@@ -125,9 +144,17 @@ Run `scripts/check-prerequisites.sh "[feature-name]"` per gate 5. Then, for `--o
|
|
|
125
144
|
- **Headless (no question tool or chat turn), checkpoint enabled**: do not overwrite. Print the existing paths and `rerun with --no-checkpoint` to regenerate, then **STOP** without writes or dispatch.
|
|
126
145
|
- **Research-only reuse**: report the existing `shared.md` path, state that no files were changed, print `/ycc:parallel-plan <feature>` as the next step, and **STOP** without dispatching agents.
|
|
127
146
|
|
|
128
|
-
### Step 5: Create
|
|
147
|
+
### Step 5: Create Directories
|
|
148
|
+
|
|
149
|
+
Only when `--dry-run` is not set: in linear mode apply the Linear call gate from artifact-store.md before `--ensure`, then run:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
feature_dir="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=feature-dir --slug="[feature-name]")"
|
|
153
|
+
research_dir="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --kind=research-dir --slug="[feature-name]")"
|
|
154
|
+
mkdir -p "$feature_dir" "$research_dir"
|
|
155
|
+
```
|
|
129
156
|
|
|
130
|
-
|
|
157
|
+
Local `--ensure` creates only the resolved feature directory; the `mkdir` also prepares research. In linear mode `research_dir` is `${feature_dir}/research`; in local mode it equals `feature_dir`.
|
|
131
158
|
|
|
132
159
|
## Phase 1: Research Stage (unless --plan-only)
|
|
133
160
|
|
|
@@ -136,7 +163,7 @@ Only when `--dry-run` is not set: `mkdir -p "${feature_dir}"` if missing.
|
|
|
136
163
|
- Standard mode: read `{{package-root}}/skills/plan-workflow/references/research-agents.md` — read when spawning Phase 1 research agents in standard mode.
|
|
137
164
|
- Optimized mode: read `{{package-root}}/skills/plan-workflow/references/research-agents-optimized.md` — read when `--optimized` replaces the 4 researchers with 5 unified analysts.
|
|
138
165
|
|
|
139
|
-
Substitute `{{FEATURE_NAME}}` (feature directory name)
|
|
166
|
+
Substitute `{{FEATURE_NAME}}` (feature directory name), `{{FEATURE_DIR}}` (`${feature_dir}`), and every `{{RESEARCH_<LENS>_FILE}}` or `{{ANALYSIS_<NAME>_FILE}}` with its absolute path from the executed resolver (`research-<lens>` or `analysis-<name>` kind), using the same store override as Step 2 and no `--ensure` (Step 5 already created their parent). Analysis artifacts remain local-only in linear mode.
|
|
140
167
|
|
|
141
168
|
### Step 10: Spawn Research Agents (standard mode)
|
|
142
169
|
|
|
@@ -160,35 +187,39 @@ If a child report is empty or contentless, record its `sessionID`, inspect the d
|
|
|
160
187
|
|
|
161
188
|
```bash
|
|
162
189
|
# Standard mode (4-file research-*.md set):
|
|
163
|
-
{{package-root}}/skills/plan-workflow/scripts/validate-research-artifacts.sh "${feature_dir}"
|
|
190
|
+
{{package-root}}/skills/plan-workflow/scripts/validate-research-artifacts.sh "${feature_dir}" ${STORE_FLAG}
|
|
164
191
|
|
|
165
192
|
# Optimized mode (5-file unified analysis-*.md set):
|
|
166
|
-
{{package-root}}/skills/plan-workflow/scripts/validate-research-artifacts.sh "${feature_dir}" --optimized
|
|
193
|
+
{{package-root}}/skills/plan-workflow/scripts/validate-research-artifacts.sh "${feature_dir}" --optimized ${STORE_FLAG}
|
|
167
194
|
```
|
|
168
195
|
|
|
169
196
|
Append `--optimized` whenever the flag was passed (gate 8). On failure, apply the fix loop (gate 9). Do not proceed to shared.md synthesis until validation passes.
|
|
170
197
|
|
|
198
|
+
In linear mode, after validation and fixes, follow artifact-store.md section **Planning skills** to Save each standard `research-<lens>` document. Optimized `analysis-*` files stay local-only and are never pushed.
|
|
199
|
+
|
|
171
200
|
## Phase 3: Consolidate Research
|
|
172
201
|
|
|
173
202
|
### Step 13: Read Research Results
|
|
174
203
|
|
|
175
204
|
After validation passes, read the input set for the active mode:
|
|
176
205
|
|
|
177
|
-
- **Standard (4 files)**: `${
|
|
206
|
+
- **Standard (4 files)**: `${research_dir}/research-architecture.md`, `research-patterns.md`, `research-integration.md`, `research-docs.md`.
|
|
178
207
|
- **Optimized (5 unified files; no `research-*.md` exist)**: `${feature_dir}/analysis-architecture.md`, `analysis-patterns.md`, `analysis-integration.md`, `analysis-docs.md`, `analysis-tasks.md`.
|
|
179
208
|
|
|
180
209
|
### Step 14: Generate shared.md
|
|
181
210
|
|
|
182
|
-
Read `{{package-root}}/skills/plan-workflow/references/shared-structure.md` — read when writing `shared.md`. Create `${
|
|
211
|
+
Read `{{package-root}}/skills/plan-workflow/references/shared-structure.md` — read when writing `shared.md`. Create `${shared_file}` following the template exactly.
|
|
183
212
|
|
|
184
213
|
### Step 15: Validate shared.md
|
|
185
214
|
|
|
186
215
|
```bash
|
|
187
|
-
{{package-root}}/skills/plan-workflow/scripts/validate-shared.sh "${
|
|
216
|
+
{{package-root}}/skills/plan-workflow/scripts/validate-shared.sh "${shared_file}" ${STORE_FLAG}
|
|
188
217
|
```
|
|
189
218
|
|
|
190
219
|
Fix any errors before proceeding.
|
|
191
220
|
|
|
221
|
+
In linear mode, follow artifact-store.md section **Planning skills** to Save the validated `shared` document before continuing. When replacing an existing shared file, preserve its identity frontmatter and replace only the body as required by Save. Local mode writes the body without frontmatter and makes no Linear calls.
|
|
222
|
+
|
|
192
223
|
### Step 15A: Research-Only Stop (if `--research-only`)
|
|
193
224
|
|
|
194
225
|
Once `shared.md` exists and `validate-shared.sh` passed: skip Phases 4–9.5 entirely. Then:
|
|
@@ -207,7 +238,7 @@ Once `shared.md` exists and `validate-shared.sh` passed: skip Phases 4–9.5 ent
|
|
|
207
238
|
Use **ask the user**. Question: "Research complete for [feature-name]. Review the shared context before planning?" Options:
|
|
208
239
|
|
|
209
240
|
1. **Continue to planning** — proceed to Phase 5.
|
|
210
|
-
2. **Review shared.md first** — display `${
|
|
241
|
+
2. **Review shared.md first** — display `${shared_file}`, then re-prompt with the same question.
|
|
211
242
|
3. **Stop here** — display the research-phase completion summary and end the workflow. **STOP** — do not proceed to planning.
|
|
212
243
|
|
|
213
244
|
|
|
@@ -220,7 +251,7 @@ This phase must run in standard mode, including under `--plan-only` (which skips
|
|
|
220
251
|
|
|
221
252
|
### Step 18: Read Analysis Prompts
|
|
222
253
|
|
|
223
|
-
Read `{{package-root}}/skills/plan-workflow/references/planning-agents.md` — read when spawning Phase 5 analysis agents (standard mode).
|
|
254
|
+
Read `{{package-root}}/skills/plan-workflow/references/planning-agents.md` — read when spawning Phase 5 analysis agents (standard mode). Substitute `{{FEATURE_NAME}}`, `{{FEATURE_DIR}}`, `{{RESEARCH_DIR}}` (`${research_dir}`), and the three `{{ANALYSIS_<NAME>_FILE}}` paths resolved without `--ensure` using kinds `analysis-context`, `analysis-code`, and `analysis-tasks` with the same store override.
|
|
224
255
|
|
|
225
256
|
### Step 20: Spawn Analysis Agents
|
|
226
257
|
|
|
@@ -244,10 +275,10 @@ If a child report is empty or contentless, record its `sessionID`, inspect the d
|
|
|
244
275
|
|
|
245
276
|
```bash
|
|
246
277
|
# Standard mode (3-file set: analysis-context, analysis-code, analysis-tasks):
|
|
247
|
-
{{package-root}}/skills/plan-workflow/scripts/validate-analysis-artifacts.sh "${feature_dir}"
|
|
278
|
+
{{package-root}}/skills/plan-workflow/scripts/validate-analysis-artifacts.sh "${feature_dir}" ${STORE_FLAG}
|
|
248
279
|
|
|
249
280
|
# Optimized mode (5-file unified set):
|
|
250
|
-
{{package-root}}/skills/plan-workflow/scripts/validate-analysis-artifacts.sh "${feature_dir}" --optimized
|
|
281
|
+
{{package-root}}/skills/plan-workflow/scripts/validate-analysis-artifacts.sh "${feature_dir}" --optimized ${STORE_FLAG}
|
|
251
282
|
```
|
|
252
283
|
|
|
253
284
|
Pass → Step 22. Fail → fix loop (gate 9), re-validate.
|
|
@@ -256,10 +287,10 @@ Pass → Step 22. Fail → fix loop (gate 9), re-validate.
|
|
|
256
287
|
|
|
257
288
|
```bash
|
|
258
289
|
# Standard mode:
|
|
259
|
-
{{package-root}}/skills/plan-workflow/scripts/persist-or-fail.sh "${feature_dir}"
|
|
290
|
+
{{package-root}}/skills/plan-workflow/scripts/persist-or-fail.sh "${feature_dir}" ${STORE_FLAG}
|
|
260
291
|
|
|
261
292
|
# Optimized mode:
|
|
262
|
-
{{package-root}}/skills/plan-workflow/scripts/persist-or-fail.sh "${feature_dir}" --optimized
|
|
293
|
+
{{package-root}}/skills/plan-workflow/scripts/persist-or-fail.sh "${feature_dir}" --optimized ${STORE_FLAG}
|
|
263
294
|
```
|
|
264
295
|
|
|
265
296
|
Exit 0 → Phase 7. Exit 1 → prints `MISSING_FILES` and `ACTION_REQUIRED`; re-dispatch the failing agent, re-run until exit 0 (gate 7). In optimized mode the `MISSING_FILES` set is the 5 unified files.
|
|
@@ -284,7 +315,7 @@ Read `{{package-root}}/skills/plan-workflow/references/plan-structure.md` — re
|
|
|
284
315
|
|
|
285
316
|
### Step 26: Generate parallel-plan.md
|
|
286
317
|
|
|
287
|
-
Create `${
|
|
318
|
+
Create `${parallel_plan_file}` following the template exactly. Required sections: Title & Overview (3-4 information-dense sentences); Critically Relevant Files and Documentation; Implementation Plan with Phases and Tasks; Advice section.
|
|
288
319
|
|
|
289
320
|
|
|
290
321
|
### Step 27: Plan Structure Check (deferred)
|
|
@@ -328,11 +359,13 @@ Fix issues: correct invalid file paths, resolve circular dependencies, add missi
|
|
|
328
359
|
After all fixes, run once on the final artifact (before visual/completion):
|
|
329
360
|
|
|
330
361
|
```bash
|
|
331
|
-
{{package-root}}/skills/plan-workflow/scripts/validate-workflow-plan.sh "${
|
|
362
|
+
{{package-root}}/skills/plan-workflow/scripts/validate-workflow-plan.sh "${parallel_plan_file}" ${STORE_FLAG}
|
|
332
363
|
```
|
|
333
364
|
|
|
334
365
|
Fix any structural errors it reports (missing `### Phase` is an error); do not proceed until it exits 0.
|
|
335
366
|
|
|
367
|
+
In linear mode, follow artifact-store.md section **Planning skills** to Save the validated `parallel-plan` document and create/update task sub-issues with `blocks` relations mirroring dependency batches. Analysis files are not saved to Linear.
|
|
368
|
+
|
|
336
369
|
## Phase 9.5: Visual Mode (if --visual)
|
|
337
370
|
|
|
338
371
|
Runs only after the plan is written (Phase 8) and validated (Phases 8–9). It never re-orders, re-runs, or substitutes for any earlier phase. See `{{package-root}}/shared/references/visual-mode.md`.
|
|
@@ -344,7 +377,7 @@ Runs only after the plan is written (Phase 8) and validated (Phases 8–9). It n
|
|
|
344
377
|
- Otherwise invoke `visual-plan` on the **actual written plan path** (feature-dir plan resolved in Phase 0, not a hardcoded `docs/prps/plans` path):
|
|
345
378
|
|
|
346
379
|
```
|
|
347
|
-
visual-plan "${
|
|
380
|
+
visual-plan ${STORE_FLAG} "${parallel_plan_file}"
|
|
348
381
|
```
|
|
349
382
|
|
|
350
383
|
`visual-plan` derives its `visual/` output directory from the supplied plan path and prints the resulting link (hosted URL, localhost preview, or `local files only`). Surface that link in the Phase 10 summary; do not re-derive the path yourself; do not edit the plan file.
|
|
@@ -353,7 +386,7 @@ visual-plan "${feature_dir}/parallel-plan.md"
|
|
|
353
386
|
|
|
354
387
|
### Step 34: Display Completion Summary
|
|
355
388
|
|
|
356
|
-
Skipped when `RESEARCH_ONLY=true`
|
|
389
|
+
Skipped when `RESEARCH_ONLY=true` or the user stopped at the checkpoint. Otherwise use the "Full Workflow Complete Summary" in `references/checkpoint-messages.md`. List only files actually created (`--plan-only`: omit Research Phase files). In linear mode replace its implementation command with `/ycc:implement-plan --store=linear <feature-slug>`.
|
|
357
390
|
|
|
358
391
|
## Optimized Mode
|
|
359
392
|
|
|
@@ -378,7 +411,9 @@ With `--optimized`, deploy 5 unified agents instead of separate research (4) + a
|
|
|
378
411
|
|
|
379
412
|
## Output Contract
|
|
380
413
|
|
|
381
|
-
|
|
414
|
+
Files use the paths resolved in Phase 0: research files under `${research_dir}/`, shared at `${shared_file}`, analysis and plan under `${feature_dir}/`, with the final plan at `${parallel_plan_file}`. Linear mode (default) resolves under `.ycc/artifacts/<feature>/`; local mode preserves the filenames below and their existing paths.
|
|
415
|
+
|
|
416
|
+
Before printing dry-run or completion templates, substitute `{{RESEARCH_DIR}}` with `${research_dir}` and `{{FEATURE_DIR}}` with `${feature_dir}`.
|
|
382
417
|
|
|
383
418
|
| File | Producer | Required Before |
|
|
384
419
|
| -------------------------- | ----------------------- | --------------------------- |
|
|
@@ -402,7 +437,7 @@ Contract rules:
|
|
|
402
437
|
|
|
403
438
|
## Monorepo Support
|
|
404
439
|
|
|
405
|
-
|
|
440
|
+
In local mode, plans resolve through `resolve-artifact-store.sh` to the same git repository root `docs/plans/` as before, regardless of the subdirectory the skill runs from. A `.plans-config` file customizes it — repo root (`plans_dir: docs/plans`) for centralized plans, or package-level (`plans_dir: docs/plans` + `scope: local`) for local plans. In linear mode (the default) the same root resolution selects the `.ycc/artifacts/` cache; `store: local` opts out.
|
|
406
441
|
|
|
407
442
|
## Notes
|
|
408
443
|
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
Templates for user interaction points during the unified planning workflow.
|
|
14
14
|
|
|
15
|
+
`{{RESEARCH_DIR}}` is the resolved research directory: equal to `{{FEATURE_DIR}}` in local mode, or `{{FEATURE_DIR}}/research` in linear mode. Other artifacts use their resolved feature-directory paths.
|
|
16
|
+
|
|
15
17
|
---
|
|
16
18
|
|
|
17
19
|
## Dry Run Output
|
|
@@ -74,10 +76,10 @@ Agents to deploy:
|
|
|
74
76
|
|
|
75
77
|
### Research Files
|
|
76
78
|
|
|
77
|
-
- {{
|
|
78
|
-
- {{
|
|
79
|
-
- {{
|
|
80
|
-
- {{
|
|
79
|
+
- {{RESEARCH_DIR}}/research-architecture.md
|
|
80
|
+
- {{RESEARCH_DIR}}/research-patterns.md
|
|
81
|
+
- {{RESEARCH_DIR}}/research-integration.md
|
|
82
|
+
- {{RESEARCH_DIR}}/research-docs.md
|
|
81
83
|
- {{FEATURE_DIR}}/shared.md
|
|
82
84
|
|
|
83
85
|
### Analysis Files (Standard Mode)
|
|
@@ -141,10 +143,10 @@ Display after research phase (if --research-only or user stops at checkpoint):
|
|
|
141
143
|
|
|
142
144
|
Standard mode:
|
|
143
145
|
|
|
144
|
-
- {{
|
|
145
|
-
- {{
|
|
146
|
-
- {{
|
|
147
|
-
- {{
|
|
146
|
+
- {{RESEARCH_DIR}}/research-architecture.md - System structure analysis
|
|
147
|
+
- {{RESEARCH_DIR}}/research-patterns.md - Coding patterns identified
|
|
148
|
+
- {{RESEARCH_DIR}}/research-integration.md - APIs and integrations
|
|
149
|
+
- {{RESEARCH_DIR}}/research-docs.md - Relevant documentation
|
|
148
150
|
- {{FEATURE_DIR}}/shared.md - Consolidated shared context
|
|
149
151
|
|
|
150
152
|
Optimized mode (`--research-only --optimized`) — no `research-*.md`; the unified artifacts are:
|
|
@@ -197,10 +199,10 @@ Display after all phases complete:
|
|
|
197
199
|
|
|
198
200
|
### Research Phase
|
|
199
201
|
|
|
200
|
-
- {{
|
|
201
|
-
- {{
|
|
202
|
-
- {{
|
|
203
|
-
- {{
|
|
202
|
+
- {{RESEARCH_DIR}}/research-architecture.md
|
|
203
|
+
- {{RESEARCH_DIR}}/research-patterns.md
|
|
204
|
+
- {{RESEARCH_DIR}}/research-integration.md
|
|
205
|
+
- {{RESEARCH_DIR}}/research-docs.md
|
|
204
206
|
- {{FEATURE_DIR}}/shared.md
|
|
205
207
|
|
|
206
208
|
### Analysis Phase
|
|
@@ -244,12 +246,18 @@ Optimized mode — the five unified files replace both the research and analysis
|
|
|
244
246
|
|
|
245
247
|
## Next Steps
|
|
246
248
|
|
|
247
|
-
|
|
249
|
+
In local mode only, print:
|
|
248
250
|
|
|
249
251
|
/ycc:implement-plan {{FEATURE_NAME}}
|
|
250
252
|
|
|
251
253
|
This will execute the plan with parallel agents where dependencies allow.
|
|
252
254
|
|
|
255
|
+
In linear mode, replace that command with:
|
|
256
|
+
|
|
257
|
+
/ycc:implement-plan --store=linear {{FEATURE_NAME}}
|
|
258
|
+
|
|
259
|
+
This loads the plan from the Linear artifact-store cache and executes it with parallel agents where dependencies allow.
|
|
260
|
+
|
|
253
261
|
To review the plan:
|
|
254
262
|
|
|
255
263
|
cat {{FEATURE_DIR}}/parallel-plan.md
|
|
@@ -347,7 +355,7 @@ Examples of valid names:
|
|
|
347
355
|
Read when the feature name is missing; abort with this complete usage block.
|
|
348
356
|
|
|
349
357
|
```
|
|
350
|
-
Usage: /ycc:plan-workflow [options] [--visual] [feature-name]
|
|
358
|
+
Usage: /ycc:plan-workflow [options] [--visual] [--store=local|linear] [feature-name]
|
|
351
359
|
|
|
352
360
|
Options:
|
|
353
361
|
--research-only Stop after research phase (creates shared.md only)
|
|
@@ -358,6 +366,7 @@ Options:
|
|
|
358
366
|
--worktree (legacy — now default; safe to omit) Worktree annotations emitted by default
|
|
359
367
|
--no-worktree Opt out of worktree annotations in the generated parallel-plan.md
|
|
360
368
|
--visual Render the finished plan as a visual artifact via visual-plan (local-files by default; hosted link requires --share)
|
|
369
|
+
--store=local|linear Optional artifact-store override (default: linear)
|
|
361
370
|
|
|
362
371
|
Examples:
|
|
363
372
|
/ycc:plan-workflow user-authentication
|
|
@@ -223,7 +223,7 @@ Format exactly as defined in
|
|
|
223
223
|
All tasks — parallel and sequential — share this single feature worktree. Do **not**
|
|
224
224
|
add a `**Children**:` list. Do **not** add per-task `**Worktree**:` lines.
|
|
225
225
|
|
|
226
|
-
> **Plan-file handoff**: leave `parallel-plan.md` and `shared.md` in `docs/plans/<feature-slug>/`
|
|
226
|
+
> **Plan-file handoff**: in local mode, leave `parallel-plan.md` and `shared.md` at their resolved paths in the current checkout (default `docs/plans/<feature-slug>/`). The implementor (`implement-plan` / `prp-implement`) will **move** them into the feature worktree once created — never copied or synced. In linear mode (the default), never move the cache; print `/ycc:implement-plan --store=linear <feature-slug>` as the next step (the implementor loads the plan from the cache). See `worktree-strategy.md` §7 and artifact-store.md "Worktrees".
|
|
227
227
|
|
|
228
228
|
**Plan-generation agent prompt** (both standalone Path A Path B): by default (`WORKTREE_MODE=true`), append the following directive to the plan-generation prompt. Omit when `--no-worktree` was passed (`WORKTREE_MODE=false`):
|
|
229
229
|
|
|
@@ -16,7 +16,7 @@ These prompts are used to spawn analysis sub-agents for condensing planning cont
|
|
|
16
16
|
|
|
17
17
|
Apply this contract to every sub-agent prompt in this file:
|
|
18
18
|
|
|
19
|
-
- Write only your assigned
|
|
19
|
+
- Write only your assigned `{{ANALYSIS_<NAME>_FILE}}`; the orchestrator resolves it with the artifact-store `analysis-<name>` kind. Analysis artifacts remain local-only in linear mode.
|
|
20
20
|
- Do not edit any other files.
|
|
21
21
|
- After writing the file, verify it exists using the Read tool or equivalent.
|
|
22
22
|
- **Share key findings** with relevant sub-agents using re-dispatch the affected sub-agent with the needed guidance.
|
|
@@ -37,7 +37,7 @@ Apply this contract to every sub-agent prompt in this file:
|
|
|
37
37
|
````markdown
|
|
38
38
|
## PRIMARY DELIVERABLE
|
|
39
39
|
|
|
40
|
-
**Output File**: {{
|
|
40
|
+
**Output File**: {{ANALYSIS_CONTEXT_FILE}}
|
|
41
41
|
|
|
42
42
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary.
|
|
43
43
|
|
|
@@ -57,7 +57,7 @@ Read and analyze all planning documentation:
|
|
|
57
57
|
1. **Core Planning Documents**
|
|
58
58
|
- {{FEATURE_DIR}}/shared.md
|
|
59
59
|
- {{FEATURE_DIR}}/requirements.md (if exists)
|
|
60
|
-
- All other .md files in {{FEATURE_DIR}}/
|
|
60
|
+
- All other .md files in {{FEATURE_DIR}}/, plus research files in {{RESEARCH_DIR}}/ when it differs from {{FEATURE_DIR}}/
|
|
61
61
|
|
|
62
62
|
2. **Extract Key Information**
|
|
63
63
|
- Architecture decisions relevant to implementation
|
|
@@ -136,7 +136,7 @@ Be concise. Each bullet should be information-dense. Aim for 60-80% compression
|
|
|
136
136
|
|
|
137
137
|
You MUST complete ALL of these steps in order:
|
|
138
138
|
|
|
139
|
-
1. **Write file**: Use the Write tool to create {{
|
|
139
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_CONTEXT_FILE}}
|
|
140
140
|
2. **Verify file**: Use the Read tool to confirm the file exists and has content
|
|
141
141
|
3. **Share findings**: Message sub-agents with key insights
|
|
142
142
|
4. **Mark complete**: Update your task status to completed
|
|
@@ -157,7 +157,7 @@ You MUST complete ALL of these steps in order:
|
|
|
157
157
|
````markdown
|
|
158
158
|
## PRIMARY DELIVERABLE
|
|
159
159
|
|
|
160
|
-
**Output File**: {{
|
|
160
|
+
**Output File**: {{ANALYSIS_CODE_FILE}}
|
|
161
161
|
|
|
162
162
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary.
|
|
163
163
|
|
|
@@ -298,7 +298,7 @@ Focus on patterns that inform implementation. Extract actual code patterns, not
|
|
|
298
298
|
|
|
299
299
|
You MUST complete ALL of these steps in order:
|
|
300
300
|
|
|
301
|
-
1. **Write file**: Use the Write tool to create {{
|
|
301
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_CODE_FILE}}
|
|
302
302
|
2. **Verify file**: Use the Read tool to confirm the file exists and has content
|
|
303
303
|
3. **Share findings**: Message sub-agents with key insights
|
|
304
304
|
4. **Mark complete**: Update your task status to completed
|
|
@@ -319,7 +319,7 @@ You MUST complete ALL of these steps in order:
|
|
|
319
319
|
````markdown
|
|
320
320
|
## PRIMARY DELIVERABLE
|
|
321
321
|
|
|
322
|
-
**Output File**: {{
|
|
322
|
+
**Output File**: {{ANALYSIS_TASKS_FILE}}
|
|
323
323
|
|
|
324
324
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary.
|
|
325
325
|
|
|
@@ -478,7 +478,7 @@ Focus on actionable structure suggestions. The goal is to help organize the para
|
|
|
478
478
|
|
|
479
479
|
You MUST complete ALL of these steps in order:
|
|
480
480
|
|
|
481
|
-
1. **Write file**: Use the Write tool to create {{
|
|
481
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_TASKS_FILE}}
|
|
482
482
|
2. **Verify file**: Use the Read tool to confirm the file exists and has content
|
|
483
483
|
3. **Share findings**: Message sub-agents with key insights
|
|
484
484
|
4. **Mark complete**: Update your task status to completed
|
|
@@ -493,7 +493,9 @@ When spawning analysis sub-agents:
|
|
|
493
493
|
1. **Read this file** to get the prompt templates
|
|
494
494
|
2. **Substitute variables**:
|
|
495
495
|
- `{{FEATURE_NAME}}` - The feature directory name
|
|
496
|
-
- `{{FEATURE_DIR}}` -
|
|
496
|
+
- `{{FEATURE_DIR}}` - Resolved feature directory (`${feature_dir}`, resolved in Step 2)
|
|
497
|
+
- `{{RESEARCH_DIR}}` - Resolved research directory (`${research_dir}`; equals `${feature_dir}` in local mode)
|
|
498
|
+
- `{{ANALYSIS_<NAME>_FILE}}` - Absolute output path resolved for kind `analysis-<name>`
|
|
497
499
|
3. **Create tasks** - Use track the task to create 3 analysis tasks
|
|
498
500
|
5. **Monitor progress** - Use the todo tracker to check when all tasks complete
|
|
499
501
|
6. **Verify artifacts** - Check all analysis files exist on disk
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
- Agent 5: Task Planner (Unified)
|
|
10
10
|
- Optimized Mode Sub-agent Configuration
|
|
11
11
|
|
|
12
|
+
Each `{{ANALYSIS_<NAME>_FILE}}` placeholder is the absolute path resolved by the orchestrator for the `analysis-<name>` kind. These artifacts remain local-only in linear mode.
|
|
13
|
+
|
|
12
14
|
|
|
13
15
|
### Agent 1: Architecture Analyst (Unified)
|
|
14
16
|
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
```markdown
|
|
22
24
|
## PRIMARY DELIVERABLE
|
|
23
25
|
|
|
24
|
-
**Output File**: {{
|
|
26
|
+
**Output File**: {{ANALYSIS_ARCHITECTURE_FILE}}
|
|
25
27
|
|
|
26
28
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary. Do NOT return your findings in summary text without writing the file — the orchestrator will fail the pre-generation gate and re-dispatch you.
|
|
27
29
|
|
|
@@ -75,7 +77,7 @@ Be concise. Each bullet should be information-dense.
|
|
|
75
77
|
|
|
76
78
|
## Completion Checklist
|
|
77
79
|
|
|
78
|
-
1. **Write file**: Use the Write tool to create {{
|
|
80
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_ARCHITECTURE_FILE}}
|
|
79
81
|
2. **Verify file**: Use the Read tool to confirm the file exists and has the expected structure
|
|
80
82
|
3. **(Path B only)** Share findings via re-dispatch the affected sub-agent with the needed guidance, then mark your task complete via update the todo tracker
|
|
81
83
|
```
|
|
@@ -91,7 +93,7 @@ Be concise. Each bullet should be information-dense.
|
|
|
91
93
|
```markdown
|
|
92
94
|
## PRIMARY DELIVERABLE
|
|
93
95
|
|
|
94
|
-
**Output File**: {{
|
|
96
|
+
**Output File**: {{ANALYSIS_PATTERNS_FILE}}
|
|
95
97
|
|
|
96
98
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary. Do NOT return your findings in summary text without writing the file — the orchestrator will fail the pre-generation gate and re-dispatch you.
|
|
97
99
|
|
|
@@ -143,7 +145,7 @@ Extract actual code patterns with file paths, not just file listings.
|
|
|
143
145
|
|
|
144
146
|
## Completion Checklist
|
|
145
147
|
|
|
146
|
-
1. **Write file**: Use the Write tool to create {{
|
|
148
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_PATTERNS_FILE}}
|
|
147
149
|
2. **Verify file**: Use the Read tool to confirm the file exists and has the expected structure
|
|
148
150
|
3. **(Path B only)** Share findings via re-dispatch the affected sub-agent with the needed guidance, then mark your task complete via update the todo tracker
|
|
149
151
|
```
|
|
@@ -159,7 +161,7 @@ Extract actual code patterns with file paths, not just file listings.
|
|
|
159
161
|
```markdown
|
|
160
162
|
## PRIMARY DELIVERABLE
|
|
161
163
|
|
|
162
|
-
**Output File**: {{
|
|
164
|
+
**Output File**: {{ANALYSIS_INTEGRATION_FILE}}
|
|
163
165
|
|
|
164
166
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary. Do NOT return your findings in summary text without writing the file — the orchestrator will fail the pre-generation gate and re-dispatch you.
|
|
165
167
|
|
|
@@ -209,7 +211,7 @@ Be specific with route paths, table names, and file references.
|
|
|
209
211
|
|
|
210
212
|
## Completion Checklist
|
|
211
213
|
|
|
212
|
-
1. **Write file**: Use the Write tool to create {{
|
|
214
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_INTEGRATION_FILE}}
|
|
213
215
|
2. **Verify file**: Use the Read tool to confirm the file exists and has the expected structure
|
|
214
216
|
3. **(Path B only)** Share findings via re-dispatch the affected sub-agent with the needed guidance, then mark your task complete via update the todo tracker
|
|
215
217
|
```
|
|
@@ -225,7 +227,7 @@ Be specific with route paths, table names, and file references.
|
|
|
225
227
|
```markdown
|
|
226
228
|
## PRIMARY DELIVERABLE
|
|
227
229
|
|
|
228
|
-
**Output File**: {{
|
|
230
|
+
**Output File**: {{ANALYSIS_DOCS_FILE}}
|
|
229
231
|
|
|
230
232
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary. Do NOT return your findings in summary text without writing the file — the orchestrator will fail the pre-generation gate and re-dispatch you.
|
|
231
233
|
|
|
@@ -275,7 +277,7 @@ Identify which documents are REQUIRED reading vs nice-to-have.
|
|
|
275
277
|
|
|
276
278
|
## Completion Checklist
|
|
277
279
|
|
|
278
|
-
1. **Write file**: Use the Write tool to create {{
|
|
280
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_DOCS_FILE}}
|
|
279
281
|
2. **Verify file**: Use the Read tool to confirm the file exists and has the expected structure
|
|
280
282
|
3. **(Path B only)** Share findings via re-dispatch the affected sub-agent with the needed guidance, then mark your task complete via update the todo tracker
|
|
281
283
|
```
|
|
@@ -291,7 +293,7 @@ Identify which documents are REQUIRED reading vs nice-to-have.
|
|
|
291
293
|
```markdown
|
|
292
294
|
## PRIMARY DELIVERABLE
|
|
293
295
|
|
|
294
|
-
**Output File**: {{
|
|
296
|
+
**Output File**: {{ANALYSIS_TASKS_FILE}}
|
|
295
297
|
|
|
296
298
|
You MUST write this file using the Write tool. This is your #1 job. Everything else is secondary. Do NOT return your findings in summary text without writing the file — the orchestrator will fail the pre-generation gate and re-dispatch you.
|
|
297
299
|
|
|
@@ -340,7 +342,7 @@ Focus on actionable structure. The goal is to help organize the parallel plan, n
|
|
|
340
342
|
|
|
341
343
|
## Completion Checklist
|
|
342
344
|
|
|
343
|
-
1. **Write file**: Use the Write tool to create {{
|
|
345
|
+
1. **Write file**: Use the Write tool to create {{ANALYSIS_TASKS_FILE}}
|
|
344
346
|
2. **Verify file**: Use the Read tool to confirm the file exists and has the expected structure
|
|
345
347
|
3. **(Path B only)** Share findings via re-dispatch the affected sub-agent with the needed guidance, then mark your task complete via update the todo tracker
|
|
346
348
|
```
|
|
@@ -17,7 +17,8 @@ These prompts are used to spawn research sub-agents for gathering shared context
|
|
|
17
17
|
|
|
18
18
|
Apply this contract to every sub-agent prompt in this file:
|
|
19
19
|
|
|
20
|
-
- Write only your assigned
|
|
20
|
+
- Write only your assigned `{{RESEARCH_<LENS>_FILE}}`; the orchestrator resolves it with the artifact-store `research-<lens>` kind.
|
|
21
|
+
- When replacing an existing file in linear mode, preserve its frontmatter and replace only the body. The orchestrator performs the Linear Save; do not call Linear yourself.
|
|
21
22
|
- Do not edit any other files.
|
|
22
23
|
- After writing the file, verify it exists using the Read tool or equivalent.
|
|
23
24
|
- **Share key findings** with relevant sub-agents using re-dispatch the affected sub-agent with the needed guidance.
|
|
@@ -75,7 +76,7 @@ Analyze the codebase to understand:
|
|
|
75
76
|
|
|
76
77
|
**CRITICAL**: You MUST write your findings to the specified file. This is not optional.
|
|
77
78
|
|
|
78
|
-
**Output File**: {{
|
|
79
|
+
**Output File**: {{RESEARCH_ARCHITECTURE_FILE}}
|
|
79
80
|
|
|
80
81
|
Before completing this task:
|
|
81
82
|
|
|
@@ -167,7 +168,7 @@ Identify and document:
|
|
|
167
168
|
|
|
168
169
|
**CRITICAL**: You MUST write your findings to the specified file. This is not optional.
|
|
169
170
|
|
|
170
|
-
**Output File**: {{
|
|
171
|
+
**Output File**: {{RESEARCH_PATTERNS_FILE}}
|
|
171
172
|
|
|
172
173
|
Before completing this task:
|
|
173
174
|
|
|
@@ -263,7 +264,7 @@ Investigate:
|
|
|
263
264
|
|
|
264
265
|
**CRITICAL**: You MUST write your findings to the specified file. This is not optional.
|
|
265
266
|
|
|
266
|
-
**Output File**: {{
|
|
267
|
+
**Output File**: {{RESEARCH_INTEGRATION_FILE}}
|
|
267
268
|
|
|
268
269
|
Before completing this task:
|
|
269
270
|
|
|
@@ -369,7 +370,7 @@ Search for documentation in:
|
|
|
369
370
|
|
|
370
371
|
**CRITICAL**: You MUST write your findings to the specified file. This is not optional.
|
|
371
372
|
|
|
372
|
-
**Output File**: {{
|
|
373
|
+
**Output File**: {{RESEARCH_DOCS_FILE}}
|
|
373
374
|
|
|
374
375
|
Before completing this task:
|
|
375
376
|
|
|
@@ -421,7 +422,7 @@ When spawning research sub-agents:
|
|
|
421
422
|
1. **Read this file** to get the prompt templates
|
|
422
423
|
2. **Substitute variables**:
|
|
423
424
|
- `{{FEATURE_NAME}}` - The feature directory name (e.g., `user-authentication`)
|
|
424
|
-
- `{{
|
|
425
|
+
- `{{RESEARCH_<LENS>_FILE}}` - The absolute path resolved for kind `research-<lens>` (local example: `docs/plans/user-authentication/research-<lens>.md`)
|
|
425
426
|
3. **Create tasks** - Use track the task to create research tasks
|
|
426
427
|
5. **Monitor progress** - Use the todo tracker to check when all tasks complete
|
|
427
428
|
6. **Verify artifacts** - Check all research files exist on disk
|
|
@@ -430,7 +431,7 @@ When spawning research sub-agents:
|
|
|
430
431
|
|
|
431
432
|
## Variable Reference
|
|
432
433
|
|
|
433
|
-
| Variable
|
|
434
|
-
|
|
|
435
|
-
| `{{FEATURE_NAME}}`
|
|
436
|
-
| `{{
|
|
434
|
+
| Variable | Description | Example |
|
|
435
|
+
| -------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
436
|
+
| `{{FEATURE_NAME}}` | Feature directory name | `user-authentication` |
|
|
437
|
+
| `{{RESEARCH_<LENS>_FILE}}` | Absolute research output path | Local: `docs/plans/user-authentication/research-<lens>.md`; linear: `.ycc/artifacts/user-authentication/research/research-<lens>.md` |
|