@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.
Files changed (126) hide show
  1. package/README.md +7 -3
  2. package/agents/code-researcher.md +3 -3
  3. package/agents/feature-researcher.md +1 -1
  4. package/agents/implementor.md +4 -4
  5. package/agents/pr-comment-fixer.md +1 -1
  6. package/agents/release-fix-applier.md +1 -1
  7. package/agents/review-fixer.md +1 -1
  8. package/index.js +146 -95
  9. package/package.json +1 -1
  10. package/registration.json +0 -4
  11. package/shared/references/artifact-store.md +613 -0
  12. package/shared/references/branch-prep.md +2 -0
  13. package/shared/references/forge-detection.md +3 -2
  14. package/shared/references/review-artifact-format.md +13 -6
  15. package/shared/references/review-checklist.md +3 -2
  16. package/shared/references/review-dispatch.md +15 -10
  17. package/shared/references/target-capability-matrix.md +140 -32
  18. package/shared/references/visual-mode.md +19 -13
  19. package/shared/references/worktree-strategy.md +12 -8
  20. package/shared/scripts/artifact-body.sh +71 -0
  21. package/shared/scripts/artifact-store-pointer.sh +245 -0
  22. package/shared/scripts/ci-monitor.sh +9 -4
  23. package/shared/scripts/collect-linear-keys.sh +77 -0
  24. package/shared/scripts/lib/ci-classify.sh +13 -10
  25. package/shared/scripts/lib/forge.sh +13 -4
  26. package/shared/scripts/prepare-feature-branch.sh +118 -10
  27. package/shared/scripts/release-ci-monitor.sh +2 -2
  28. package/shared/scripts/report-bundle-drift.sh +1 -1
  29. package/shared/scripts/resolve-artifact-store.sh +636 -0
  30. package/shared/scripts/validate-file-paths.sh +11 -4
  31. package/skills/blueprint/SKILL.md +48 -13
  32. package/skills/bundle-release/scripts/draft-notes.sh +1 -1
  33. package/skills/bundle-release/scripts/release_versions.py +9 -1
  34. package/skills/clean/SKILL.md +1 -1
  35. package/skills/clean/scripts/detect-project-type.sh +2 -2
  36. package/skills/clean/scripts/generate-report.sh +34 -5
  37. package/skills/clean/scripts/validate-safety.sh +9 -6
  38. package/skills/code-report/SKILL.md +26 -14
  39. package/skills/code-report/scripts/check-prerequisites.sh +72 -12
  40. package/skills/code-report/templates/report-structure.md +1 -1
  41. package/skills/code-review/SKILL.md +68 -17
  42. package/skills/code-review/references/pr-procedure.md +28 -15
  43. package/skills/compatibility-audit/SKILL.md +10 -5
  44. package/skills/compatibility-audit/references/reading-the-report.md +4 -1
  45. package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +64 -7
  46. package/skills/compatibility-audit/scripts/audit-target-features.sh +13 -10
  47. package/skills/deep-research/SKILL.md +28 -5
  48. package/skills/deep-research/references/completion-summary-template.md +3 -2
  49. package/skills/deep-research/scripts/validate-research.sh +8 -2
  50. package/skills/feature-research/SKILL.md +48 -25
  51. package/skills/feature-research/scripts/validate-research.sh +51 -12
  52. package/skills/feature-research/scripts/validate-spec.sh +53 -22
  53. package/skills/feature-research/templates/research-agents.md +15 -14
  54. package/skills/feature-research/templates/spec-structure.md +5 -0
  55. package/skills/formatters/scripts/apply-aliases.sh +3 -1
  56. package/skills/formatters/scripts/apply-ci.sh +3 -1
  57. package/skills/git-workflow/SKILL.md +2 -1
  58. package/skills/git-workflow/references/pr-creation.md +10 -0
  59. package/skills/git-workflow/scripts/analyze-changes.sh +21 -11
  60. package/skills/git-workflow/scripts/create-pr.sh +51 -6
  61. package/skills/git-workflow/scripts/validate-commit.sh +26 -14
  62. package/skills/hooks-workflow/scripts/verify-hooks.sh +1 -1
  63. package/skills/implement-plan/SKILL.md +35 -16
  64. package/skills/implement-plan/references/agent-task-prompt.md +8 -5
  65. package/skills/implement-plan/references/linear-sync.md +20 -0
  66. package/skills/implement-plan/references/output-formats.md +17 -2
  67. package/skills/implement-plan/references/plan-inputs.md +23 -4
  68. package/skills/implement-plan/scripts/check-prerequisites.sh +95 -49
  69. package/skills/implement-plan/scripts/parse-dependencies.sh +10 -10
  70. package/skills/init/SKILL.md +77 -42
  71. package/skills/init/references/flag-reference.md +41 -17
  72. package/skills/init/references/project-profile-heuristics.md +3 -0
  73. package/skills/init/references/template-library.md +15 -5
  74. package/skills/init/scripts/profile-project.sh +26 -0
  75. package/skills/init/scripts/render-template.py +2 -2
  76. package/skills/init/templates/AGENTS.md.tmpl +6 -0
  77. package/skills/init/templates/git/gitignore.tmpl +5 -0
  78. package/skills/orchestrate/SKILL.md +17 -2
  79. package/skills/parallel-plan/SKILL.md +14 -8
  80. package/skills/plan/SKILL.md +18 -2
  81. package/skills/plan/references/planning-tracks.md +1 -1
  82. package/skills/plan-workflow/SKILL.md +67 -32
  83. package/skills/plan-workflow/references/checkpoint-messages.md +23 -14
  84. package/skills/plan-workflow/references/plan-structure.md +1 -1
  85. package/skills/plan-workflow/references/planning-agents.md +11 -9
  86. package/skills/plan-workflow/references/research-agents-optimized.md +12 -10
  87. package/skills/plan-workflow/references/research-agents.md +11 -10
  88. package/skills/plan-workflow/scripts/check-prerequisites.sh +50 -11
  89. package/skills/plan-workflow/scripts/check-state.sh +53 -9
  90. package/skills/plan-workflow/scripts/persist-or-fail.sh +21 -7
  91. package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +28 -14
  92. package/skills/plan-workflow/scripts/validate-research-artifacts.sh +35 -10
  93. package/skills/plan-workflow/scripts/validate-shared.sh +56 -15
  94. package/skills/plan-workflow/scripts/validate-workflow-plan.sh +48 -17
  95. package/skills/pr-autofix/SKILL.md +19 -4
  96. package/skills/pr-autofix/references/output-templates.md +3 -2
  97. package/skills/pr-autofix/scripts/fetch-pr-comments.sh +1 -2
  98. package/skills/pr-autofix/scripts/post-summary.sh +1 -2
  99. package/skills/pr-autofix/scripts/resolve-thread.sh +3 -4
  100. package/skills/prp-implement/SKILL.md +31 -16
  101. package/skills/prp-implement/references/agent-task-prompt.md +5 -2
  102. package/skills/prp-implement/references/detection.md +4 -1
  103. package/skills/prp-implement/references/linear-sync.md +25 -0
  104. package/skills/prp-implement/references/report-output.md +15 -2
  105. package/skills/prp-plan/SKILL.md +62 -30
  106. package/skills/prp-plan/references/enhanced-researchers.md +8 -9
  107. package/skills/prp-plan/scripts/validate-prp-plan.sh +42 -18
  108. package/skills/prp-pr/SKILL.md +14 -1
  109. package/skills/prp-prd/SKILL.md +21 -9
  110. package/skills/prp-spec/SKILL.md +30 -20
  111. package/skills/quick-fix/SKILL.md +6 -4
  112. package/skills/quick-review/SKILL.md +62 -25
  113. package/skills/release-model/scripts/collect-signals.sh +9 -3
  114. package/skills/releaser/scripts/publish-release.sh +6 -3
  115. package/skills/research-to-issues/SKILL.md +33 -14
  116. package/skills/research-to-issues/scripts/validate-prerequisites.sh +45 -23
  117. package/skills/research-to-issues/templates/task-issue.md +4 -0
  118. package/skills/research-to-issues/templates/tracking-issue.md +3 -0
  119. package/skills/review-fix/SKILL.md +96 -14
  120. package/skills/review-fix/references/fix-report.md +10 -10
  121. package/skills/review-fix/references/plan.md +5 -2
  122. package/skills/shared-context/SKILL.md +14 -11
  123. package/skills/visual-plan/SKILL.md +26 -8
  124. package/skills/visual-recap/SKILL.md +1 -1
  125. package/skills/write-docs/scripts/audit-documentation.sh +44 -10
  126. package/skills/write-docs/scripts/generate-doc-index.sh +10 -3
@@ -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 docs/prps/plans/{name}.plan.md for /prp-implement.
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 | 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`. |
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 `WORKTREE_MODE=false` if `--no-worktree` is present. `--worktree` is accepted as a legacy no-op (matches the default). Remaining text is the feature description or PRD path.
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 | Action |
72
- | ------------------------- | ----------------------------------------------------------------- |
73
- | Path ending in `.prd.md` | Parse PRD, find next pending phase |
74
- | Path ending in `.spec.md` | Read spec, extract requirements and technical approach as context |
75
- | Path to `.md` with phases | Parse phases, find next pending |
76
- | Path to other file | Read for context, treat as free-form |
77
- | Free-form text | Proceed to Phase 1 |
78
- | Empty | Ask user what feature to plan |
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**, each with `background=false`; validate every candidate report against its backstop artifact.
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 copied verbatim from `enhanced-researchers.md`. Per `enhanced-researchers.md`, each role-specific prompt also instructs the researcher to write a backstop file at `docs/prps/plans/.prp-research/<feature-slug>/<role-name>.md` (`api-researcher.md`, `business-analyzer.md`, `tech-designer.md`, `ux-researcher.md`, `security-researcher.md`, `practices-researcher.md`, `recommendations-agent.md`) in addition to returning the same content inline.
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
- Save to `docs/prps/plans/{kebab-case-feature-name}.plan.md`. Create directory first:
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
- mkdir -p docs/prps/plans
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
- Derive `<feature-slug>` from the kebab-case plan file name (same value used for `{kebab-case-feature-name}.plan.md`). Derive `<repo>` from `git rev-parse --show-toplevel` basename.
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**: leave the emitted plan file in `docs/prps/plans/<name>.plan.md` (in the main checkout). The implementor (`prp-implement`) will **move** it into the feature worktree once the worktree is created — do not pre-write the plan to a worktree path, and do not copy it. See `worktree-strategy.md` §7.
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 "docs/prps/plans/{name}.plan.md"
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 path of the just-written `docs/prps/plans/{name}.plan.md` — and capture its printed link.
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, the skill invokes `visual-plan <absolute-plan-path>` AFTER Phase 6, passing the just-written `.plan.md` path (the file written in Phase 6 and validated in Phase 6.5). `visual-plan` derives its own `visual/` output directory from that path and prints the resulting link; the skill surfaces that link in the Report block. When `--dry-run` is set, print `visual generation would run` and skip — no visual artifacts, directories, or links are produced.
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 file path.
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**: docs/prps/plans/{name}.plan.md
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 docs/prps/plans/{name}.plan.md` to execute this plan.
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
- - Run `/ycc:prp-implement <plan-path>` to execute this plan
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 `docs/prps/plans/.prp-research/<feature-slug>/api-researcher.md` using the Write tool, AND also return the same content inline in your final response.
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 `docs/prps/plans/.prp-research/<feature-slug>/business-analyzer.md` using the Write tool, AND also return the same content inline in your final response.
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 `docs/prps/plans/.prp-research/<feature-slug>/tech-designer.md` using the Write tool, AND also return the same content inline in your final response.
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 `docs/prps/plans/.prp-research/<feature-slug>/ux-researcher.md` using the Write tool, AND also return the same content inline in your final response.
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 `docs/prps/plans/.prp-research/<feature-slug>/security-researcher.md` using the Write tool, AND also return the same content inline in your final response.
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 `docs/prps/plans/.prp-research/<feature-slug>/practices-researcher.md` using the Write tool, AND also return the same content inline in your final response.
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 (Glob for docs/prps, Read README or CHANGELOG for context)
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 `docs/prps/plans/.prp-research/<feature-slug>/recommendations-agent.md` using the Write tool, AND also return the same content inline in your final response.
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
  ```
@@ -17,8 +17,6 @@
17
17
  # See resolve-plans-dir.sh for configuration options.
18
18
 
19
19
  set -uo pipefail
20
-
21
- PLAN_FILE="${1:-}"
22
20
  ERRORS=0
23
21
  WARNINGS=0
24
22
 
@@ -26,9 +24,11 @@ WARNINGS=0
26
24
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
27
25
  SHARED_DIR="${SCRIPT_DIR}/../../../shared/scripts"
28
26
 
29
- if [[ -f "${SHARED_DIR}/resolve-plans-dir.sh" ]]; then
30
- # shellcheck source=../../../shared/scripts/resolve-plans-dir.sh
31
- source "${SHARED_DIR}/resolve-plans-dir.sh"
27
+ if [[ -f "${SHARED_DIR}/resolve-artifact-store.sh" ]]; then
28
+ # shellcheck source=../../../shared/scripts/resolve-artifact-store.sh
29
+ source "${SHARED_DIR}/resolve-artifact-store.sh"
30
+ # shellcheck source=../../../shared/scripts/artifact-body.sh
31
+ source "${SHARED_DIR}/artifact-body.sh"
32
32
  fi
33
33
 
34
34
  if [[ -f "${SHARED_DIR}/validate-file-paths.sh" ]]; then
@@ -56,16 +56,44 @@ success() {
56
56
  echo -e "${GREEN}✓${NC} $1"
57
57
  }
58
58
 
59
+ PLAN_FILE=""
60
+ STORE_FLAG=""
61
+ while [[ $# -gt 0 ]]; do
62
+ case "$1" in
63
+ --store=*)
64
+ STORE_FLAG="$1"
65
+ ;;
66
+ *)
67
+ if [[ -z "$PLAN_FILE" ]]; then
68
+ PLAN_FILE="$1"
69
+ else
70
+ echo "Usage: validate-prp-plan.sh <plan-file> [--store=linear|local]" >&2
71
+ exit 1
72
+ fi
73
+ ;;
74
+ esac
75
+ shift
76
+ done
77
+
78
+ if [[ -n "$STORE_FLAG" ]]; then
79
+ # shellcheck disable=SC2086
80
+ resolve_artifact_store "$PWD" "$STORE_FLAG" || {
81
+ echo "ERROR: invalid ${STORE_FLAG#--}" >&2
82
+ exit 1
83
+ }
84
+ fi
85
+
59
86
  if [[ -z "$PLAN_FILE" ]]; then
60
- echo "Usage: validate-prp-plan.sh <plan-file>"
87
+ echo "Usage: validate-prp-plan.sh <plan-file> [--store=linear|local]"
61
88
  echo ""
62
89
  echo "Validates the structure and content of a PRP plan artifact."
63
90
  exit 1
64
91
  fi
65
92
 
66
- # Resolve relative paths against PLANS_ROOT
67
- if [[ "$PLAN_FILE" != /* && -n "${PLANS_ROOT:-}" ]]; then
68
- PLAN_FILE="${PLANS_ROOT}/${PLAN_FILE}"
93
+ # Resolve relative paths against the active artifact root: PLANS_ROOT in local
94
+ # mode, ARTIFACT_ROOT in linear mode.
95
+ if [[ "$PLAN_FILE" != /* && -n "${ARTIFACT_ROOT:-${PLANS_ROOT:-}}" ]]; then
96
+ PLAN_FILE="${ARTIFACT_ROOT:-$PLANS_ROOT}/${PLAN_FILE}"
69
97
  fi
70
98
 
71
99
  if [[ ! -f "$PLAN_FILE" ]]; then
@@ -81,18 +109,14 @@ fi
81
109
 
82
110
  echo "Validating PRP plan: $PLAN_FILE"
83
111
  echo ""
84
-
85
- # Read file content
86
- CONTENT=$(cat "$PLAN_FILE")
112
+ # Read file content minus any leading frontmatter block (linear-mode identity
113
+ # metadata is not body; see _shared/references/artifact-store.md, Frontmatter).
114
+ CONTENT=$(artifact_body "$PLAN_FILE")
87
115
 
88
116
  # --- Title check ---
89
117
  echo "Checking document structure..."
90
- # Avoid pipefail false negatives when grep exits early on a match.
91
- if awk '
92
- NR > 5 { exit found ? 0 : 1 }
93
- /^# / { found = 1; exit 0 }
94
- END { exit found ? 0 : 1 }
95
- ' "$PLAN_FILE"; then
118
+ # Match against the body only: the H1 must sit in its first five lines.
119
+ if grep -q "^# " <<<"$(head -n 5 <<<"$CONTENT")"; then
96
120
  success "Title present"
97
121
  else
98
122
  error "Missing title (# heading)"
@@ -7,6 +7,8 @@ description: Creates GitHub PRs from already-committed branches without commit o
7
7
 
8
8
  # Create Pull Request
9
9
 
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
+
10
12
  > Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
11
13
 
12
14
  **Input**: `$ARGUMENTS` — optional, may contain a base branch name and/or flags (e.g., `--draft`).
@@ -110,7 +112,18 @@ Check for related PRP artifacts:
110
112
  - `docs/prps/plans/` — Plans that were executed (including the `completed/` subfolder)
111
113
  - `docs/prps/prds/` — Related PRDs
112
114
 
113
- Reference these in the PR body if they exist.
115
+ Reference these in the PR body if they exist. When the resolved store is `linear` (`bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" --shell`, reading `ARTIFACT_STORE=`; default `linear`), list the Linear Project and plan Document URLs from the artifact cache identity instead of `docs/prps` paths, per artifact-store.md **PR linking**.
116
+
117
+ ### Linear Issue Links
118
+
119
+ Link issues in the Related Issues section per `{{package-root}}/shared/references/artifact-store.md` **PR linking** (collection, verification, `Closes` vs `Refs`, skip message):
120
+
121
+ ```bash
122
+ bash "{{package-root}}/shared/scripts/collect-linear-keys.sh" --base "origin/<base>"
123
+ ```
124
+
125
+ - Also add the `linear.issue` from the cached plan's frontmatter as a `closes` candidate: use the cache path known in the session, else `.ycc/artifacts/<slug>/{parallel-plan,prp-plan}.md` where `<slug>` is the branch name without a leading `feat/`. Check the current checkout, then the main checkout (parent of `git rev-parse --path-format=absolute --git-common-dir`), per the contract's step 1.
126
+ - Emit `Closes <KEY>` for `closes` keys and `Refs <KEY>` for `refs`-only keys, plus `Closes #<n>` for linked GitHub issues, without duplicating lines already in the body or template.
114
127
 
115
128
  ---
116
129
 
@@ -8,10 +8,12 @@ description: Develops problem-first PRDs through interactive discovery. Use when
8
8
 
9
9
  > Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.
10
10
 
11
- **Operational context:** Run Foundation, Market Grounding, Vision, Technical Feasibility, Decisions, and Generate gates; write the hypothesis-driven product spec to docs/prps/prds/{name}.prd.md.
11
+ **Operational context:** Run Foundation, Market Grounding, Vision, Technical Feasibility, Decisions, and Generate gates; write the hypothesis-driven product spec to the resolved `prd` artifact path.
12
12
 
13
13
  **Input**: `$ARGUMENTS`
14
14
 
15
+ Before interpreting input, parse and strip `--store=local|linear`; retain the exact override as `STORE_FLAG` (empty when absent). Reject other `--store=` values and conflicting overrides. Pass `${STORE_FLAG}` to every resolver call; only the remaining text is the product idea.
16
+
15
17
  **Questions:** class `clarify` (every interview gate); headless (no question tool or chat turn): print the open questions, write nothing, stop. See `{{package-root}}/shared/references/question-policy.md`.
16
18
 
17
19
  ---
@@ -155,13 +157,23 @@ Ask final clarifying questions:
155
157
 
156
158
  ## Phase 7: GENERATE — Write PRD
157
159
 
158
- **Output path**: `docs/prps/prds/{kebab-case-name}.prd.md`
160
+ Derive `<slug>` from the kebab-case product/feature name. Resolve in three separate steps:
159
161
 
160
- Create directory if needed:
162
+ 1. Print the mode and read `ARTIFACT_STORE=` from stdout:
161
163
 
162
- ```bash
163
- mkdir -p docs/prps/prds
164
- ```
164
+ ```bash
165
+ bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --shell
166
+ ```
167
+
168
+ 2. In linear mode only, apply the **Linear call gate** in `{{package-root}}/shared/references/artifact-store.md` before any write or `--ensure`.
169
+ 3. Resolve the destination once writing is permitted:
170
+
171
+ ```bash
172
+ OUT="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=prd --slug=<slug>)"
173
+ mkdir -p "$(dirname "$OUT")"
174
+ ```
175
+
176
+ Before writing in linear mode, follow artifact-store.md **Planning skills**: when `linear.document` identity is missing, run Lookup steps 3–6, Load any hit and preserve its identity, then replace through Conflict and Save. Write `$OUT`. Local mode keeps `docs/prps/prds/<slug>.prd.md` under the current checkout's git toplevel without identity frontmatter. Retain the printed mode and absolute path across tool calls.
165
177
 
166
178
  ### PRD Template
167
179
 
@@ -332,7 +344,7 @@ After generating, report:
332
344
  ```markdown
333
345
  ## PRD Created
334
346
 
335
- **File**: `docs/prps/prds/{name}.prd.md`
347
+ **File**: `{resolved absolute OUT path}`
336
348
 
337
349
  ### Summary
338
350
 
@@ -366,7 +378,7 @@ After generating, report:
366
378
 
367
379
  ### To Start Implementation
368
380
 
369
- Run: `/ycc:prp-plan docs/prps/prds/{name}.prd.md`
381
+ Run: `/ycc:prp-plan {resolved absolute OUT path}`
370
382
 
371
383
  This will automatically select the next pending phase and create an implementation plan.
372
384
  ```
@@ -409,7 +421,7 @@ This will automatically select the next pending phase and create an implementati
409
421
  |
410
422
  v
411
423
  +---------------------------------------------------------+
412
- | GENERATE: Write PRD to docs/prps/prds/ |
424
+ | GENERATE: Write PRD to resolved artifact path |
413
425
  +---------------------------------------------------------+
414
426
  ```
415
427
 
@@ -8,7 +8,7 @@ description: Writes lightweight single-pass PRP feature specs. Use when specifyi
8
8
  # PRP Spec
9
9
 
10
10
 
11
- **Operational context:** Write docs/prps/specs/{name}.spec.md with problem, requirements, technical approach, integration points, and risks; accept free-form input or ask clarifying questions. --ground adds codebase/market research through prp-researcher. Use prp-prd for problem discovery and feature-research for heavyweight multi-agent research.
11
+ **Operational context:** Write the resolved `spec` artifact with problem, requirements, technical approach, integration points, and risks; accept free-form input or ask clarifying questions. --ground adds codebase/market research through prp-researcher. Use prp-prd for problem discovery and feature-research for heavyweight multi-agent research.
12
12
 
13
13
  > Part of the PRP workflow series. Parallel entry point alongside `prp-prd` — both feed directly into `prp-plan`.
14
14
 
@@ -20,14 +20,14 @@ description: Writes lightweight single-pass PRP feature specs. Use when specifyi
20
20
 
21
21
  ## Key Distinctions
22
22
 
23
- | This skill (`prp-spec`) | NOT this (`feature-research`) | NOT this (`prp-prd`) |
24
- | ----------------------------- | ---------------------------------- | ------------------------------- |
25
- | Single-pass spec generation | 7-agent parallel research team | Interactive PRD with hypothesis |
26
- | `docs/prps/specs/` | `docs/plans/[name]/` | `docs/prps/prds/` |
27
- | 1 output file | 8 output files (7 research + spec) | 1 output file |
28
- | Optional researcher dispatch | Always deploys full team | Always dispatches researcher |
29
- | Technical approach included | Full technical specifications | Problem-first, solution-light |
30
- | 1 GATE wait for clarification | Runs without GATEs | 6 GATE waits through phases |
23
+ | This skill (`prp-spec`) | NOT this (`feature-research`) | NOT this (`prp-prd`) |
24
+ | ----------------------------- | ----------------------------------- | ------------------------------- |
25
+ | Single-pass spec generation | 7-agent parallel research team | Interactive PRD with hypothesis |
26
+ | `spec` artifact | `feature-spec` + research artifacts | `prd` artifact |
27
+ | 1 output file | 8 output files (7 research + spec) | 1 output file |
28
+ | Optional researcher dispatch | Always deploys full team | Always dispatches researcher |
29
+ | Technical approach included | Full technical specifications | Problem-first, solution-light |
30
+ | 1 GATE wait for clarification | Runs without GATEs | 6 GATE waits through phases |
31
31
 
32
32
  **Pipeline model** — `prp-spec` and `prp-prd` are parallel entry points into `prp-plan`, not sequential steps:
33
33
 
@@ -63,7 +63,7 @@ Extract flags from `$ARGUMENTS`:
63
63
  | ---------- | -------------------------------------------------------------------------------------------- |
64
64
  | `--ground` | Dispatch `prp-researcher` in dual mode for codebase + market grounding before generating |
65
65
 
66
- Strip the flag, set `GROUND_MODE=true|false`. The remaining text is the feature description or file path.
66
+ Strip `--ground`, set `GROUND_MODE=true|false`. Parse and strip `--store=local|linear`, retaining the exact override as `STORE_FLAG` (empty when absent); reject other values or conflicting overrides. Forward `${STORE_FLAG}` to every resolver call. Only the remaining text is the feature description or file path.
67
67
 
68
68
  ### Input Detection
69
69
 
@@ -133,13 +133,23 @@ Instruct the researcher to return the compact discovery table format (codebase)
133
133
 
134
134
  ## Phase 3 — GENERATE
135
135
 
136
- **Output path**: `docs/prps/specs/{kebab-case-name}.spec.md`
136
+ Derive `<slug>` from the kebab-case feature name. Resolve in three separate steps:
137
137
 
138
- Create the directory if needed:
138
+ 1. Print the mode and read `ARTIFACT_STORE=` from stdout:
139
139
 
140
- ```bash
141
- mkdir -p docs/prps/specs
142
- ```
140
+ ```bash
141
+ bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --shell
142
+ ```
143
+
144
+ 2. In linear mode only, apply the **Linear call gate** in `{{package-root}}/shared/references/artifact-store.md` before any write or `--ensure`.
145
+ 3. Resolve the destination once writing is permitted:
146
+
147
+ ```bash
148
+ OUT="$(bash "{{package-root}}/shared/scripts/resolve-artifact-store.sh" ${STORE_FLAG} --ensure --kind=spec --slug=<slug>)"
149
+ mkdir -p "$(dirname "$OUT")"
150
+ ```
151
+
152
+ Before writing in linear mode, follow artifact-store.md **Planning skills**: when `linear.document` identity is missing, run Lookup steps 3–6, Load any hit and preserve its identity, then replace through Conflict and Save. Write `$OUT`. Local mode keeps `docs/prps/specs/<slug>.spec.md` under the current checkout's git toplevel without identity frontmatter. Retain the printed mode and absolute path across tool calls.
143
153
 
144
154
  ### Spec Template
145
155
 
@@ -225,7 +235,7 @@ Report to the user:
225
235
  ```markdown
226
236
  ## Spec Created
227
237
 
228
- **File**: `docs/prps/specs/{name}.spec.md`
238
+ **File**: `{resolved absolute OUT path}`
229
239
 
230
240
  ### Summary
231
241
 
@@ -238,7 +248,7 @@ Report to the user:
238
248
  ### Next Steps
239
249
 
240
250
  - Review and refine the spec
241
- - Run `/ycc:prp-plan docs/prps/specs/{name}.spec.md` to create an implementation plan
251
+ - Run `/ycc:prp-plan {resolved absolute OUT path}` to create an implementation plan
242
252
  - If the problem needs deeper discovery, run `/ycc:prp-prd` instead — it feeds into `prp-plan` directly
243
253
  ```
244
254
 
@@ -247,7 +257,7 @@ Report to the user:
247
257
  ## Anti-patterns — Do NOT Do These
248
258
 
249
259
 
250
- 2. **Do NOT output to `docs/plans/`**: Specs go to `docs/prps/specs/`. The `docs/plans/` tree belongs to the `feature-research` / `plan-workflow` track. Always write to `docs/prps/specs/` regardless of the user's current working directory.
260
+ 2. **Do NOT choose a competing output tree**: Always resolve kind `spec` through the artifact helper, regardless of the user's current working directory. It is distinct from the `feature-spec` artifact produced by `feature-research`.
251
261
 
252
262
  3. **Do NOT write implementation details**: The spec captures WHAT and WHY, not HOW. Implementation steps, file paths, and code snippets belong in the plan produced by `prp-plan`.
253
263
 
@@ -263,9 +273,9 @@ Report to the user:
263
273
 
264
274
  - **Entry point**: Parallel to `/ycc:prp-prd` — use `prp-spec` when the problem is clear, `prp-prd` when it needs interactive discovery. Both feed directly into `prp-plan`.
265
275
  - **Input**: Accepts free-form descriptions or starts with clarifying questions. Can be invoked standalone.
266
- - **Downstream**: Specs feed into `/ycc:prp-plan` for implementation planning. `prp-plan` recognizes `.spec.md` files as input.
276
+ - **Downstream**: Specs feed into `/ycc:prp-plan` for implementation planning. Pass the actual resolved path and identify it as a PRP spec (linear mode names it `spec.md`; local mode uses `.spec.md`).
267
277
  - **Grounding**: Optionally dispatches `prp-researcher` in dual mode for codebase + market discovery.
268
- - **Heavyweight alternative**: For multi-agent research across many domains, use `/ycc:feature-research` instead (outputs to `docs/plans/`).
278
+ - **Heavyweight alternative**: For multi-agent research across many domains, use `/ycc:feature-research` instead (produces `feature-spec` and research artifacts).
269
279
 
270
280
  ## Success Criteria
271
281
 
@@ -10,9 +10,10 @@ description: Applies inline Quick Review findings without review artifacts. Use
10
10
  Apply fixes from an inline Quick Review findings block without writing or
11
11
  updating a review artifact.
12
12
 
13
- **Core rule**: This skill is artifact-free. It MUST NOT create files under
14
- `docs/prps/reviews/` — that would lose the audit contract — and it MUST NOT
15
- update any review markdown file. If the
13
+ **Core rule**: This skill is artifact-free. It MUST NOT create review files in
14
+ any store (local `docs/prps/reviews/` or linear `.ycc/artifacts/*/reviews/`) —
15
+ that would lose the audit contract — it MUST NOT update any review markdown
16
+ file, and it makes no Linear calls. If the
16
17
  user wants an auditable artifact, route them to `/ycc:review-fix` with a saved
17
18
  review file instead.
18
19
 
@@ -240,7 +241,8 @@ so the user can decide whether to save a formal review artifact or fix manually.
240
241
  ## Relationship to review-fix
241
242
 
242
243
  - `/ycc:quick-fix` is for ephemeral, inline quick-review findings.
243
- - `/ycc:review-fix` is for artifacts under `docs/prps/reviews/`.
244
+ - `/ycc:review-fix` is for saved review artifacts (local `docs/prps/reviews/`
245
+ or the linear artifact-store cache and Document).
244
246
  - Do not teach `/ycc:review-fix` to parse inline quick-review payloads; keeping
245
247
  the workflows separate preserves the audit trail contract for artifact-backed
246
248
  reviews.