@yandy-r/ycc-opencode 0.0.0-stage → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/AGENTS.md +38 -0
  2. package/LICENSE +21 -0
  3. package/README.md +41 -2
  4. package/agents/ansible-automation-expert.md +115 -0
  5. package/agents/api-docs-expert.md +146 -0
  6. package/agents/api-documenter.md +105 -0
  7. package/agents/architect.md +264 -0
  8. package/agents/architecture-analyst.md +99 -0
  9. package/agents/backport-conflict-resolver.md +134 -0
  10. package/agents/cloudflare-architect.md +85 -0
  11. package/agents/cloudflare-developer.md +196 -0
  12. package/agents/code-architect.md +101 -0
  13. package/agents/code-documenter.md +114 -0
  14. package/agents/code-explorer.md +99 -0
  15. package/agents/code-finder.md +83 -0
  16. package/agents/code-researcher.md +102 -0
  17. package/agents/code-reviewer.md +268 -0
  18. package/agents/code-simplifier.md +77 -0
  19. package/agents/codebase-advisor.md +130 -0
  20. package/agents/db-modifier.md +235 -0
  21. package/agents/docs-git-committer.md +220 -0
  22. package/agents/documentation-writer.md +92 -0
  23. package/agents/feature-researcher.md +121 -0
  24. package/agents/feature-writer.md +89 -0
  25. package/agents/frontend-ui-developer.md +98 -0
  26. package/agents/git-cleanup.md +173 -0
  27. package/agents/go-api-architect.md +172 -0
  28. package/agents/go-expert-architect.md +147 -0
  29. package/agents/implementor.md +167 -0
  30. package/agents/library-docs-writer.md +128 -0
  31. package/agents/nextjs-ux-ui-expert.md +127 -0
  32. package/agents/nodejs-backend-architect.md +112 -0
  33. package/agents/nodejs-backend-developer.md +184 -0
  34. package/agents/planner.md +257 -0
  35. package/agents/pr-comment-fixer.md +284 -0
  36. package/agents/practices-researcher.md +80 -0
  37. package/agents/project-file-cleaner.md +140 -0
  38. package/agents/prp-researcher.md +231 -0
  39. package/agents/python-developer.md +171 -0
  40. package/agents/python-expert-architect.md +188 -0
  41. package/agents/readme-generator.md +100 -0
  42. package/agents/release-fix-applier.md +194 -0
  43. package/agents/releaser.md +147 -0
  44. package/agents/research-specialist.md +106 -0
  45. package/agents/reverse-proxy-architect.md +131 -0
  46. package/agents/review-fixer.md +264 -0
  47. package/agents/root-cause-analyzer.md +105 -0
  48. package/agents/rust-build-resolver.md +183 -0
  49. package/agents/rust-expert-architect.md +149 -0
  50. package/agents/rust-reviewer.md +126 -0
  51. package/agents/sql-database-developer.md +195 -0
  52. package/agents/systems-engineering-expert.md +203 -0
  53. package/agents/terraform-architect.md +109 -0
  54. package/agents/terraform-developer.md +229 -0
  55. package/agents/test-strategy-planner.md +126 -0
  56. package/agents/turso-database-architect.md +139 -0
  57. package/agents/typescript-developer.md +170 -0
  58. package/agents/typescript-expert-architect.md +167 -0
  59. package/index.js +260 -0
  60. package/package.json +35 -4
  61. package/registration.json +4384 -0
  62. package/shared/references/agent-native-setup.md +121 -0
  63. package/shared/references/branch-prep.md +31 -0
  64. package/shared/references/branching-model.md +162 -0
  65. package/shared/references/ci-monitoring.md +445 -0
  66. package/shared/references/forge-detection.md +162 -0
  67. package/shared/references/goal-pairing.md +53 -0
  68. package/shared/references/pr-base-and-backport.md +143 -0
  69. package/shared/references/review-artifact-format.md +141 -0
  70. package/shared/references/review-checklist.md +161 -0
  71. package/shared/references/review-dispatch.md +71 -0
  72. package/shared/references/session-state.md +159 -0
  73. package/shared/references/standalone-dispatch.md +298 -0
  74. package/shared/references/target-capability-matrix.md +325 -0
  75. package/shared/references/visual-mode.md +155 -0
  76. package/shared/references/worktree-strategy.md +310 -0
  77. package/shared/scripts/backport-audit.sh +283 -0
  78. package/shared/scripts/ci-monitor.sh +637 -0
  79. package/shared/scripts/lib/backport-lib.sh +47 -0
  80. package/shared/scripts/lib/ci-classify.sh +103 -0
  81. package/shared/scripts/lib/forge.sh +264 -0
  82. package/shared/scripts/lib/release-state-lib.sh +300 -0
  83. package/shared/scripts/list-worktrees.sh +178 -0
  84. package/shared/scripts/merge-children.sh +82 -0
  85. package/shared/scripts/move-plan-to-worktree.sh +231 -0
  86. package/shared/scripts/pr-guard.sh +283 -0
  87. package/shared/scripts/prepare-feature-branch.sh +326 -0
  88. package/shared/scripts/release-ci-monitor.sh +671 -0
  89. package/shared/scripts/release-state-update.sh +216 -0
  90. package/shared/scripts/release-state.sh +178 -0
  91. package/shared/scripts/report-bundle-drift.sh +343 -0
  92. package/shared/scripts/require-python.sh +17 -0
  93. package/shared/scripts/resolve-plans-dir.sh +262 -0
  94. package/shared/scripts/rules-pointer.sh +20 -0
  95. package/shared/scripts/rules_pointer.py +267 -0
  96. package/shared/scripts/setup-worktree.sh +288 -0
  97. package/shared/scripts/validate-file-paths.sh +249 -0
  98. package/shared/scripts/visual-egress-guard.sh +303 -0
  99. package/shared/scripts/visual-recap-collect.sh +247 -0
  100. package/shared/scripts/worktree-paths.sh +86 -0
  101. package/skills/backport/SKILL.md +291 -0
  102. package/skills/backport/scripts/cherry-pick-pr.sh +232 -0
  103. package/skills/backport/scripts/find-pending.sh +199 -0
  104. package/skills/blueprint/SKILL.md +410 -0
  105. package/skills/blueprint/references/bootstrap-mapping.md +87 -0
  106. package/skills/bundle-author/SKILL.md +119 -0
  107. package/skills/bundle-author/references/surface-map.md +128 -0
  108. package/skills/bundle-author/references/templates/agent-template.md +21 -0
  109. package/skills/bundle-author/references/templates/skill-template.md +36 -0
  110. package/skills/bundle-author/references/when-not-to-scaffold.md +85 -0
  111. package/skills/bundle-author/scripts/scaffold-skill.sh +156 -0
  112. package/skills/bundle-release/SKILL.md +188 -0
  113. package/skills/bundle-release/references/release-checklist.md +196 -0
  114. package/skills/bundle-release/references/release-notes-template.md +48 -0
  115. package/skills/bundle-release/references/version-policy.md +150 -0
  116. package/skills/bundle-release/scripts/bump-version.sh +97 -0
  117. package/skills/bundle-release/scripts/draft-notes.sh +222 -0
  118. package/skills/bundle-release/scripts/preflight.sh +164 -0
  119. package/skills/bundle-release/scripts/release_versions.py +361 -0
  120. package/skills/clean/SKILL.md +107 -0
  121. package/skills/clean/references/agent-prompts.md +199 -0
  122. package/skills/clean/references/safety-config.md +125 -0
  123. package/skills/clean/scripts/detect-project-type.sh +423 -0
  124. package/skills/clean/scripts/generate-report.sh +245 -0
  125. package/skills/clean/scripts/validate-safety.sh +401 -0
  126. package/skills/code-report/SKILL.md +375 -0
  127. package/skills/code-report/scripts/check-prerequisites.sh +65 -0
  128. package/skills/code-report/templates/report-structure.md +202 -0
  129. package/skills/code-review/SKILL.md +153 -0
  130. package/skills/code-review/references/pr-procedure.md +311 -0
  131. package/skills/compatibility-audit/SKILL.md +226 -0
  132. package/skills/compatibility-audit/references/reading-the-report.md +159 -0
  133. package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +372 -0
  134. package/skills/compatibility-audit/scripts/audit-target-features.sh +558 -0
  135. package/skills/deep-research/SKILL.md +251 -0
  136. package/skills/deep-research/references/analysis-prompts.md +702 -0
  137. package/skills/deep-research/references/completion-summary-template.md +66 -0
  138. package/skills/deep-research/references/persona-analogical.md +159 -0
  139. package/skills/deep-research/references/persona-archaeological.md +69 -0
  140. package/skills/deep-research/references/persona-contrarian.md +155 -0
  141. package/skills/deep-research/references/persona-futurist.md +70 -0
  142. package/skills/deep-research/references/persona-historical.md +142 -0
  143. package/skills/deep-research/references/persona-journalistic.md +69 -0
  144. package/skills/deep-research/references/persona-negative-space.md +70 -0
  145. package/skills/deep-research/references/persona-systems.md +69 -0
  146. package/skills/deep-research/references/synthesis-template.md +569 -0
  147. package/skills/deep-research/references/verification-log-template.md +32 -0
  148. package/skills/deep-research/scripts/check-prerequisites.sh +153 -0
  149. package/skills/deep-research/scripts/validate-research.sh +244 -0
  150. package/skills/feature-research/SKILL.md +292 -0
  151. package/skills/feature-research/scripts/validate-research.sh +159 -0
  152. package/skills/feature-research/scripts/validate-spec.sh +270 -0
  153. package/skills/feature-research/templates/research-agents.md +569 -0
  154. package/skills/feature-research/templates/spec-structure.md +437 -0
  155. package/skills/formatters/SKILL.md +207 -0
  156. package/skills/formatters/references/best-practices.md +78 -0
  157. package/skills/formatters/references/flag-reference.md +178 -0
  158. package/skills/formatters/references/stack-detection.md +119 -0
  159. package/skills/formatters/references/templates/husky-pre-commit.tmpl +13 -0
  160. package/skills/formatters/references/templates/justfile-snippet.just.tmpl +31 -0
  161. package/skills/formatters/references/templates/lefthook.yml.tmpl +22 -0
  162. package/skills/formatters/references/templates/lint-autofix.yml.tmpl +94 -0
  163. package/skills/formatters/references/templates/lint.yml.tmpl +85 -0
  164. package/skills/formatters/references/templates/makefile-snippet.mk.tmpl +34 -0
  165. package/skills/formatters/references/templates/package-json-scripts.json.tmpl +14 -0
  166. package/skills/formatters/references/templates/readme-section.md.tmpl +118 -0
  167. package/skills/formatters/scripts/apply-aliases.sh +245 -0
  168. package/skills/formatters/scripts/apply-ci.sh +136 -0
  169. package/skills/formatters/scripts/apply-docs.sh +187 -0
  170. package/skills/formatters/scripts/apply-hooks.sh +261 -0
  171. package/skills/formatters/scripts/bundle/format.sh +15 -0
  172. package/skills/formatters/scripts/bundle/go-tools.sh +119 -0
  173. package/skills/formatters/scripts/bundle/init-formatters.sh +517 -0
  174. package/skills/formatters/scripts/bundle/install-shellcheck.sh +85 -0
  175. package/skills/formatters/scripts/bundle/lib/excludes.sh +179 -0
  176. package/skills/formatters/scripts/bundle/lib/modified-files.sh +222 -0
  177. package/skills/formatters/scripts/bundle/lib/shellcheck-resolve.sh +81 -0
  178. package/skills/formatters/scripts/bundle/lib/shellcheck-version.sh +5 -0
  179. package/skills/formatters/scripts/bundle/lint.sh +15 -0
  180. package/skills/formatters/scripts/bundle/style.sh +1410 -0
  181. package/skills/formatters/scripts/bundle/templates/biome.json +81 -0
  182. package/skills/formatters/scripts/bundle/templates/clippy.toml +2 -0
  183. package/skills/formatters/scripts/bundle/templates/markdownlint.json +14 -0
  184. package/skills/formatters/scripts/bundle/templates/markdownlintignore +38 -0
  185. package/skills/formatters/scripts/bundle/templates/prettierignore +45 -0
  186. package/skills/formatters/scripts/bundle/templates/prettierrc.json +11 -0
  187. package/skills/formatters/scripts/bundle/templates/python-pyproject.toml +80 -0
  188. package/skills/formatters/scripts/bundle/templates/rustfmt.toml +41 -0
  189. package/skills/formatters/scripts/bundle/templates/tsconfig.json +21 -0
  190. package/skills/formatters/scripts/profile-style.sh +264 -0
  191. package/skills/frontend-design/SKILL.md +151 -0
  192. package/skills/frontend-patterns/SKILL.md +66 -0
  193. package/skills/frontend-patterns/references/animation.md +21 -0
  194. package/skills/frontend-patterns/references/components-and-state.md +40 -0
  195. package/skills/frontend-patterns/references/data-and-performance.md +34 -0
  196. package/skills/frontend-patterns/references/forms-errors-a11y.md +35 -0
  197. package/skills/git-cleanup/SKILL.md +286 -0
  198. package/skills/git-cleanup/references/active-code-rules.md +318 -0
  199. package/skills/git-cleanup/references/host-detection.md +217 -0
  200. package/skills/git-workflow/SKILL.md +130 -0
  201. package/skills/git-workflow/references/ci-monitoring-phase.md +130 -0
  202. package/skills/git-workflow/references/commit-phases.md +247 -0
  203. package/skills/git-workflow/references/examples-and-troubleshooting.md +47 -0
  204. package/skills/git-workflow/references/goal-pairing.md +23 -0
  205. package/skills/git-workflow/references/pr-creation.md +269 -0
  206. package/skills/git-workflow/scripts/analyze-changes.sh +266 -0
  207. package/skills/git-workflow/scripts/create-pr.sh +464 -0
  208. package/skills/git-workflow/scripts/validate-commit.sh +235 -0
  209. package/skills/git-workflow/templates/agent-prompts.md +518 -0
  210. package/skills/git-workflow/templates/commit-types.md +504 -0
  211. package/skills/git-workflow/templates/documentation-decision.md +509 -0
  212. package/skills/git-workflow/templates/pr-template.md +772 -0
  213. package/skills/go-patterns/SKILL.md +89 -0
  214. package/skills/go-patterns/references/design-and-tooling.md +336 -0
  215. package/skills/go-patterns/references/errors-and-concurrency.md +292 -0
  216. package/skills/go-testing/SKILL.md +133 -0
  217. package/skills/go-testing/references/advanced-testing.md +349 -0
  218. package/skills/go-testing/references/test-structure.md +277 -0
  219. package/skills/hooks-workflow/SKILL.md +232 -0
  220. package/skills/hooks-workflow/references/support-notes.md +134 -0
  221. package/skills/hooks-workflow/references/templates/claude-settings.json.tmpl +13 -0
  222. package/skills/hooks-workflow/references/templates/codex-config-fragment.toml.tmpl +9 -0
  223. package/skills/hooks-workflow/references/templates/cursor-rule-fragment.mdc.tmpl +16 -0
  224. package/skills/hooks-workflow/scripts/build-hook-config.sh +487 -0
  225. package/skills/hooks-workflow/scripts/verify-hooks.sh +257 -0
  226. package/skills/implement-plan/SKILL.md +221 -0
  227. package/skills/implement-plan/references/agent-task-prompt.md +214 -0
  228. package/skills/implement-plan/references/output-formats.md +150 -0
  229. package/skills/implement-plan/references/plan-inputs.md +126 -0
  230. package/skills/implement-plan/scripts/check-prerequisites.sh +78 -0
  231. package/skills/implement-plan/scripts/parse-dependencies.sh +206 -0
  232. package/skills/init/SKILL.md +272 -0
  233. package/skills/init/references/conventional-commits.md +114 -0
  234. package/skills/init/references/flag-reference.md +236 -0
  235. package/skills/init/references/label-taxonomy.md +115 -0
  236. package/skills/init/references/project-profile-heuristics.md +156 -0
  237. package/skills/init/references/template-library.md +129 -0
  238. package/skills/init/scripts/count-source-files.sh +60 -0
  239. package/skills/init/scripts/generate-agent-catalog.sh +193 -0
  240. package/skills/init/scripts/generate-mcp-catalog.sh +214 -0
  241. package/skills/init/scripts/migrate-rules.py +459 -0
  242. package/skills/init/scripts/migrate-rules.sh +26 -0
  243. package/skills/init/scripts/profile-project.sh +453 -0
  244. package/skills/init/scripts/render-template.py +226 -0
  245. package/skills/init/scripts/render-template.sh +25 -0
  246. package/skills/init/scripts/rules-report.sh +31 -0
  247. package/skills/init/scripts/rules_file_lib.py +41 -0
  248. package/skills/init/templates/AGENTS.md.tmpl +38 -0
  249. package/skills/init/templates/CLAUDE.md.tmpl +7 -0
  250. package/skills/init/templates/ai-rule.md.tmpl +3 -0
  251. package/skills/init/templates/cursor-rule.mdc.tmpl +7 -0
  252. package/skills/init/templates/git/commitlint.config.cjs.tmpl +40 -0
  253. package/skills/init/templates/git/gitignore.tmpl +120 -0
  254. package/skills/init/templates/git/gitmessage.tmpl +27 -0
  255. package/skills/init/templates/git/install-lefthook.sh.tmpl +131 -0
  256. package/skills/init/templates/git/lefthook-usage.md.tmpl +101 -0
  257. package/skills/init/templates/git/lefthook.yml.tmpl +64 -0
  258. package/skills/init/templates/github/bug_report.yml.tmpl +78 -0
  259. package/skills/init/templates/github/config.yml.tmpl +5 -0
  260. package/skills/init/templates/github/copilot-instructions.md.tmpl +24 -0
  261. package/skills/init/templates/github/docs_request.yml.tmpl +41 -0
  262. package/skills/init/templates/github/feature_request.yml.tmpl +59 -0
  263. package/skills/init/templates/github/labels.md.tmpl +75 -0
  264. package/skills/init/templates/github/pull_request_template.md.tmpl +66 -0
  265. package/skills/init/templates/github/workflows/pr-title-autofix.yml.tmpl +101 -0
  266. package/skills/init/templates/github/workflows/pr-title.yml.tmpl +55 -0
  267. package/skills/init/templates/workspace-report.md +83 -0
  268. package/skills/orchestrate/SKILL.md +165 -0
  269. package/skills/orchestrate/references/agent-catalog.md +601 -0
  270. package/skills/orchestrate/references/agent-prompts.md +495 -0
  271. package/skills/orchestrate/references/dispatch-playbook.md +333 -0
  272. package/skills/orchestrate/references/task-breakdown.md +410 -0
  273. package/skills/orchestrate/scripts/analyze-task.sh +139 -0
  274. package/skills/orchestrate/scripts/summarize-results.sh +160 -0
  275. package/skills/orchestrate/scripts/validate-agents.sh +92 -0
  276. package/skills/parallel-plan/SKILL.md +124 -0
  277. package/skills/plan/SKILL.md +134 -0
  278. package/skills/plan/references/enhanced-personas.md +131 -0
  279. package/skills/plan/references/personas-and-merge.md +77 -0
  280. package/skills/plan/references/plan-validation.md +65 -0
  281. package/skills/plan/references/planner-prompts.md +68 -0
  282. package/skills/plan/references/planning-tracks.md +73 -0
  283. package/skills/plan-workflow/SKILL.md +406 -0
  284. package/skills/plan-workflow/references/checkpoint-messages.md +370 -0
  285. package/skills/plan-workflow/references/plan-structure.md +238 -0
  286. package/skills/plan-workflow/references/planning-agents.md +511 -0
  287. package/skills/plan-workflow/references/research-agents-optimized.md +348 -0
  288. package/skills/plan-workflow/references/research-agents.md +436 -0
  289. package/skills/plan-workflow/references/shared-structure.md +152 -0
  290. package/skills/plan-workflow/references/validation-agents.md +363 -0
  291. package/skills/plan-workflow/scripts/check-prerequisites.sh +65 -0
  292. package/skills/plan-workflow/scripts/check-state.sh +190 -0
  293. package/skills/plan-workflow/scripts/persist-or-fail.sh +135 -0
  294. package/skills/plan-workflow/scripts/validate-analysis-artifacts.sh +216 -0
  295. package/skills/plan-workflow/scripts/validate-research-artifacts.sh +225 -0
  296. package/skills/plan-workflow/scripts/validate-shared.sh +229 -0
  297. package/skills/plan-workflow/scripts/validate-workflow-plan.sh +256 -0
  298. package/skills/pr-autofix/SKILL.md +307 -0
  299. package/skills/pr-autofix/references/ci-loop.md +64 -0
  300. package/skills/pr-autofix/references/comment-sources.md +197 -0
  301. package/skills/pr-autofix/references/data-shapes.md +87 -0
  302. package/skills/pr-autofix/references/goal-example.md +30 -0
  303. package/skills/pr-autofix/references/output-templates.md +162 -0
  304. package/skills/pr-autofix/references/prompt-injection-safety.md +165 -0
  305. package/skills/pr-autofix/references/related-skills.md +11 -0
  306. package/skills/pr-autofix/references/severity-mapping.md +146 -0
  307. package/skills/pr-autofix/scripts/fetch-pr-comments.sh +364 -0
  308. package/skills/pr-autofix/scripts/post-summary.sh +226 -0
  309. package/skills/pr-autofix/scripts/resolve-thread.sh +251 -0
  310. package/skills/prp-commit/SKILL.md +128 -0
  311. package/skills/prp-implement/SKILL.md +177 -0
  312. package/skills/prp-implement/references/agent-task-prompt.md +36 -0
  313. package/skills/prp-implement/references/detection.md +49 -0
  314. package/skills/prp-implement/references/dry-run.md +0 -0
  315. package/skills/prp-implement/references/report-output.md +204 -0
  316. package/skills/prp-implement/references/validation-and-failures.md +118 -0
  317. package/skills/prp-plan/SKILL.md +323 -0
  318. package/skills/prp-plan/references/enhanced-researchers.md +425 -0
  319. package/skills/prp-plan/references/parallel-additions.md +56 -0
  320. package/skills/prp-plan/references/plan-template.md +264 -0
  321. package/skills/prp-plan/references/synthesis-map.md +25 -0
  322. package/skills/prp-plan/scripts/preflight-enhanced-agents.sh +111 -0
  323. package/skills/prp-plan/scripts/validate-prp-plan.sh +368 -0
  324. package/skills/prp-pr/SKILL.md +402 -0
  325. package/skills/prp-prd/SKILL.md +442 -0
  326. package/skills/prp-spec/SKILL.md +274 -0
  327. package/skills/python-patterns/SKILL.md +103 -0
  328. package/skills/python-patterns/references/core-idioms.md +304 -0
  329. package/skills/python-patterns/references/design-and-tooling.md +407 -0
  330. package/skills/python-testing/SKILL.md +114 -0
  331. package/skills/python-testing/references/mocking-and-integration.md +395 -0
  332. package/skills/python-testing/references/pytest-core.md +366 -0
  333. package/skills/quick-fix/SKILL.md +246 -0
  334. package/skills/quick-review/SKILL.md +304 -0
  335. package/skills/release-model/SKILL.md +231 -0
  336. package/skills/release-model/references/pointer-and-labels.md +83 -0
  337. package/skills/release-model/references/signals-and-proposal.md +68 -0
  338. package/skills/release-model/references/template-placeholders.md +42 -0
  339. package/skills/release-model/references/upgrade-and-audit.md +131 -0
  340. package/skills/release-model/scripts/collect-signals.sh +459 -0
  341. package/skills/release-model/scripts/pointer-targets.sh +29 -0
  342. package/skills/release-model/templates/RELEASING.md.tmpl +151 -0
  343. package/skills/releaser/SKILL.md +251 -0
  344. package/skills/releaser/references/ci-optimization-checklist.md +149 -0
  345. package/skills/releaser/references/ci-templates/docker-release.yml +88 -0
  346. package/skills/releaser/references/ci-templates/generic-release.yml +69 -0
  347. package/skills/releaser/references/ci-templates/go-release.yml +50 -0
  348. package/skills/releaser/references/ci-templates/node-release.yml +126 -0
  349. package/skills/releaser/references/ci-templates/python-release.yml +95 -0
  350. package/skills/releaser/references/ci-templates/rust-release.yml +128 -0
  351. package/skills/releaser/references/ci-workflow-modes.md +42 -0
  352. package/skills/releaser/references/goal-pairing.md +37 -0
  353. package/skills/releaser/references/output-templates.md +143 -0
  354. package/skills/releaser/references/project-type-matrix.md +144 -0
  355. package/skills/releaser/references/release-branches.md +138 -0
  356. package/skills/releaser/references/release-ci-loop.md +249 -0
  357. package/skills/releaser/references/release-notes-template.md +42 -0
  358. package/skills/releaser/references/release-preparation.md +210 -0
  359. package/skills/releaser/scripts/check-release-branch.sh +235 -0
  360. package/skills/releaser/scripts/detect-project.sh +234 -0
  361. package/skills/releaser/scripts/draft-changelog.sh +387 -0
  362. package/skills/releaser/scripts/publish-release.sh +302 -0
  363. package/skills/research-to-issues/SKILL.md +285 -0
  364. package/skills/research-to-issues/references/label-taxonomy.md +48 -0
  365. package/skills/research-to-issues/references/parse-deep-research.md +86 -0
  366. package/skills/research-to-issues/references/parse-feature-spec.md +143 -0
  367. package/skills/research-to-issues/references/parse-parallel-plan.md +124 -0
  368. package/skills/research-to-issues/references/parse-prd.md +184 -0
  369. package/skills/research-to-issues/references/parse-prp-plan.md +237 -0
  370. package/skills/research-to-issues/references/plan-display-format.md +136 -0
  371. package/skills/research-to-issues/scripts/validate-prerequisites.sh +312 -0
  372. package/skills/research-to-issues/templates/feature-issue.md +131 -0
  373. package/skills/research-to-issues/templates/task-issue.md +104 -0
  374. package/skills/research-to-issues/templates/tracking-issue.md +126 -0
  375. package/skills/resume-session/SKILL.md +152 -0
  376. package/skills/review-fix/SKILL.md +229 -0
  377. package/skills/review-fix/references/fix-report.md +121 -0
  378. package/skills/review-fix/references/fixer-dispatch.md +79 -0
  379. package/skills/review-fix/references/plan.md +119 -0
  380. package/skills/rust-patterns/SKILL.md +85 -0
  381. package/skills/rust-patterns/references/concurrency-unsafe-modules.md +243 -0
  382. package/skills/rust-patterns/references/ownership-errors-types.md +262 -0
  383. package/skills/rust-testing/SKILL.md +99 -0
  384. package/skills/rust-testing/references/advanced-testing.md +247 -0
  385. package/skills/rust-testing/references/unit-and-integration.md +193 -0
  386. package/skills/save-session/SKILL.md +159 -0
  387. package/skills/shared-context/SKILL.md +101 -0
  388. package/skills/ts-patterns/SKILL.md +159 -0
  389. package/skills/ts-patterns/references/async-runtimes-tooling.md +375 -0
  390. package/skills/ts-patterns/references/types-errors-modules.md +336 -0
  391. package/skills/ts-testing/SKILL.md +151 -0
  392. package/skills/ts-testing/references/advanced-testing.md +350 -0
  393. package/skills/ts-testing/references/vitest-core.md +318 -0
  394. package/skills/visual-plan/SKILL.md +221 -0
  395. package/skills/visual-plan/references/canvas.md +132 -0
  396. package/skills/visual-plan/references/document-quality.md +178 -0
  397. package/skills/visual-plan/references/exemplar.md +120 -0
  398. package/skills/visual-plan/references/wireframe.md +212 -0
  399. package/skills/visual-plan/scripts/derive-visual-dir.sh +77 -0
  400. package/skills/visual-recap/SKILL.md +238 -0
  401. package/skills/visual-recap/references/wireframe.md +237 -0
  402. package/skills/write-docs/SKILL.md +354 -0
  403. package/skills/write-docs/scripts/audit-documentation.sh +190 -0
  404. package/skills/write-docs/scripts/generate-doc-index.sh +125 -0
  405. package/skills/write-docs/scripts/verify-links.sh +81 -0
  406. package/skills/write-docs/templates/docs-readme.md +34 -0
  407. package/skills/write-docs/templates/documentation-strategy.md +91 -0
@@ -0,0 +1,126 @@
1
+ # Generated by releaser — edit TODO regions before first run.
2
+ #
3
+ # Trigger: push a tag matching v*. Publishes to npm and attaches artifacts to the
4
+ # GitHub Release. Requires the NPM_TOKEN secret (or switch to npm Trusted Publishing
5
+ # via OIDC — see the commented-out block below).
6
+
7
+ name: release
8
+
9
+ on:
10
+ push:
11
+ tags:
12
+ - 'v*'
13
+ workflow_dispatch:
14
+
15
+ permissions: {}
16
+
17
+ concurrency:
18
+ group: release-${{ github.ref }}
19
+ cancel-in-progress: false
20
+
21
+ jobs:
22
+ build:
23
+ name: build (${{ matrix.os }} / ${{ matrix.arch }})
24
+ runs-on: ${{ matrix.runner }}
25
+ timeout-minutes: 20
26
+ permissions:
27
+ contents: read
28
+ strategy:
29
+ fail-fast: false
30
+ matrix:
31
+ include:
32
+ # TODO(releaser): trim the matrix to the {os x arch} combos declared in
33
+ # the skill invocation. Remove rows you do not intend to ship.
34
+ - os: linux
35
+ arch: amd64
36
+ runner: ubuntu-latest
37
+ - os: linux
38
+ arch: arm64
39
+ runner: ubuntu-24.04-arm
40
+ - os: darwin
41
+ arch: amd64
42
+ runner: macos-13
43
+ - os: darwin
44
+ arch: arm64
45
+ runner: macos-14
46
+ - os: windows
47
+ arch: amd64
48
+ runner: windows-latest
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+
52
+ - uses: actions/setup-node@v4
53
+ with:
54
+ node-version-file: '.nvmrc' # TODO(releaser): or replace with `node-version: '20'`
55
+ cache: 'npm' # TODO(releaser): switch to 'pnpm' or 'yarn' as appropriate
56
+
57
+ - run: npm ci
58
+
59
+ - name: Build
60
+ run: npm run build --if-present
61
+
62
+ - name: Package
63
+ # TODO(releaser): replace with your actual packaging step. For a CLI:
64
+ # npx pkg . --targets node20-${{ matrix.os }}-${{ matrix.arch }} --output dist/${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.arch }}
65
+ run: npm pack
66
+
67
+ - name: Checksum
68
+ shell: bash
69
+ run: |
70
+ cd dist || cd .
71
+ find . -maxdepth 1 -type f \( -name '*.tgz' -o -name "${{ github.event.repository.name }}-*" \) -print0 \
72
+ | xargs -0 sha256sum > SHA256SUMS-${{ matrix.os }}-${{ matrix.arch }}.txt
73
+
74
+ - uses: actions/upload-artifact@v4
75
+ with:
76
+ name: release-${{ matrix.os }}-${{ matrix.arch }}
77
+ path: |
78
+ dist/*
79
+ SHA256SUMS-*.txt
80
+ if-no-files-found: error
81
+ retention-days: 7
82
+
83
+ publish-npm:
84
+ name: publish (npm)
85
+ needs: build
86
+ runs-on: ubuntu-latest
87
+ timeout-minutes: 10
88
+ permissions:
89
+ contents: read
90
+ id-token: write # Required for npm Trusted Publishing (OIDC)
91
+ environment: release
92
+ steps:
93
+ - uses: actions/checkout@v4
94
+ - uses: actions/setup-node@v4
95
+ with:
96
+ node-version-file: '.nvmrc'
97
+ registry-url: 'https://registry.npmjs.org'
98
+ - run: npm ci
99
+ - run: npm run build --if-present
100
+ # Option A — API token (legacy):
101
+ - run: npm publish --provenance --access public
102
+ env:
103
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104
+ # Option B — Trusted Publishing (preferred, no token):
105
+ # - run: npm publish --provenance --access public
106
+
107
+ github-release:
108
+ name: github release
109
+ needs: build
110
+ runs-on: ubuntu-latest
111
+ timeout-minutes: 10
112
+ permissions:
113
+ contents: write # needed to upload release assets
114
+ steps:
115
+ - uses: actions/checkout@v4
116
+ - uses: actions/download-artifact@v4
117
+ with:
118
+ path: artifacts
119
+ merge-multiple: true
120
+ - name: Create release
121
+ uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 — TODO(releaser): verify latest SHA
122
+ with:
123
+ files: artifacts/*
124
+ body_path: docs/releases/${{ github.ref_name }}.md # TODO(releaser): adjust if notes live elsewhere
125
+ prerelease: ${{ contains(github.ref_name, '-') }}
126
+ fail_on_unmatched_files: true
@@ -0,0 +1,95 @@
1
+ # Generated by releaser — edit TODO regions before first run.
2
+ #
3
+ # Trigger: push a tag matching v*. Builds sdist + wheels and publishes to PyPI via
4
+ # Trusted Publishing (OIDC). To use Trusted Publishing, configure the project on
5
+ # https://pypi.org/manage/account/publishing/ — no API token required.
6
+
7
+ name: release
8
+
9
+ on:
10
+ push:
11
+ tags:
12
+ - 'v*'
13
+ workflow_dispatch:
14
+
15
+ permissions: {}
16
+
17
+ concurrency:
18
+ group: release-${{ github.ref }}
19
+ cancel-in-progress: false
20
+
21
+ jobs:
22
+ build:
23
+ name: build sdist + wheels
24
+ runs-on: ubuntu-latest
25
+ timeout-minutes: 15
26
+ permissions:
27
+ contents: read
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+
31
+ - uses: actions/setup-python@v5
32
+ with:
33
+ python-version: '3.12'
34
+ cache: 'pip'
35
+
36
+ - name: Install build tooling
37
+ run: python -m pip install --upgrade pip build
38
+
39
+ - name: Build sdist + wheel
40
+ run: python -m build
41
+ # TODO(releaser): for packages with compiled extensions, replace this with
42
+ # cibuildwheel — see https://cibuildwheel.pypa.io/en/stable/.
43
+
44
+ - name: Checksum
45
+ run: |
46
+ cd dist
47
+ sha256sum * > SHA256SUMS.txt
48
+
49
+ - uses: actions/upload-artifact@v4
50
+ with:
51
+ name: dist
52
+ path: dist/
53
+ if-no-files-found: error
54
+ retention-days: 7
55
+
56
+ publish-pypi:
57
+ name: publish (PyPI)
58
+ needs: build
59
+ runs-on: ubuntu-latest
60
+ timeout-minutes: 10
61
+ permissions:
62
+ id-token: write # Required for Trusted Publishing
63
+ environment:
64
+ name: pypi
65
+ url: https://pypi.org/p/${{ github.event.repository.name }} # TODO(releaser): set to the real package name if it differs
66
+ steps:
67
+ - uses: actions/download-artifact@v4
68
+ with:
69
+ name: dist
70
+ path: dist/
71
+ - name: Publish
72
+ uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 — TODO(releaser): verify latest SHA
73
+ with:
74
+ skip-existing: false
75
+
76
+ github-release:
77
+ name: github release
78
+ needs: build
79
+ runs-on: ubuntu-latest
80
+ timeout-minutes: 10
81
+ permissions:
82
+ contents: write
83
+ steps:
84
+ - uses: actions/checkout@v4
85
+ - uses: actions/download-artifact@v4
86
+ with:
87
+ name: dist
88
+ path: dist/
89
+ - name: Create release
90
+ uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 — TODO(releaser): verify latest SHA
91
+ with:
92
+ files: dist/*
93
+ body_path: docs/releases/${{ github.ref_name }}.md # TODO(releaser): adjust path if needed
94
+ prerelease: ${{ contains(github.ref_name, '-') }}
95
+ fail_on_unmatched_files: true
@@ -0,0 +1,128 @@
1
+ # Generated by releaser — edit TODO regions before first run.
2
+ #
3
+ # Trigger: push a tag matching v*. Builds per-platform binaries and optionally
4
+ # publishes to crates.io. If the repo already uses cargo-dist, delete this file and
5
+ # keep the cargo-dist-generated workflow instead.
6
+
7
+ name: release
8
+
9
+ on:
10
+ push:
11
+ tags:
12
+ - 'v*'
13
+ workflow_dispatch:
14
+
15
+ permissions: {}
16
+
17
+ concurrency:
18
+ group: release-${{ github.ref }}
19
+ cancel-in-progress: false
20
+
21
+ jobs:
22
+ build:
23
+ name: build (${{ matrix.target }})
24
+ runs-on: ${{ matrix.runner }}
25
+ timeout-minutes: 30
26
+ permissions:
27
+ contents: read
28
+ strategy:
29
+ fail-fast: false
30
+ matrix:
31
+ include:
32
+ # TODO(releaser): trim to the {os x arch} combos declared in the skill.
33
+ - target: x86_64-unknown-linux-gnu
34
+ runner: ubuntu-latest
35
+ - target: aarch64-unknown-linux-gnu
36
+ runner: ubuntu-24.04-arm
37
+ - target: x86_64-apple-darwin
38
+ runner: macos-13
39
+ - target: aarch64-apple-darwin
40
+ runner: macos-14
41
+ - target: x86_64-pc-windows-msvc
42
+ runner: windows-latest
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+
46
+ - name: Install Rust toolchain
47
+ uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # stable — TODO(releaser): verify latest SHA
48
+ with:
49
+ toolchain: stable
50
+ targets: ${{ matrix.target }}
51
+
52
+ - uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0 — TODO(releaser): verify latest SHA
53
+ with:
54
+ key: ${{ matrix.target }}
55
+
56
+ - name: Build
57
+ run: cargo build --release --target ${{ matrix.target }}
58
+
59
+ - name: Package
60
+ shell: bash
61
+ run: |
62
+ name="${{ github.event.repository.name }}"
63
+ tag="${{ github.ref_name }}"
64
+ target="${{ matrix.target }}"
65
+ staging="${name}-${tag}-${target}"
66
+ mkdir -p "${staging}"
67
+ if [[ "${target}" == *windows* ]]; then
68
+ cp "target/${target}/release/${name}.exe" "${staging}/"
69
+ 7z a "${staging}.zip" "${staging}"
70
+ else
71
+ cp "target/${target}/release/${name}" "${staging}/"
72
+ tar -czf "${staging}.tar.gz" "${staging}"
73
+ fi
74
+
75
+ - name: Checksum
76
+ shell: bash
77
+ run: |
78
+ for f in ${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.target }}.*; do
79
+ sha256sum "$f" > "${f}.sha256"
80
+ done
81
+
82
+ - uses: actions/upload-artifact@v4
83
+ with:
84
+ name: release-${{ matrix.target }}
85
+ path: |
86
+ ${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.target }}.*
87
+ if-no-files-found: error
88
+ retention-days: 7
89
+
90
+ publish-crates-io:
91
+ name: publish (crates.io)
92
+ needs: build
93
+ runs-on: ubuntu-latest
94
+ timeout-minutes: 15
95
+ # TODO(releaser): remove this job if the project is not a library publish.
96
+ permissions:
97
+ contents: read
98
+ environment: release
99
+ steps:
100
+ - uses: actions/checkout@v4
101
+ - uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b
102
+ with:
103
+ toolchain: stable
104
+ - uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0
105
+ - run: cargo publish
106
+ env:
107
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
108
+
109
+ github-release:
110
+ name: github release
111
+ needs: build
112
+ runs-on: ubuntu-latest
113
+ timeout-minutes: 10
114
+ permissions:
115
+ contents: write
116
+ steps:
117
+ - uses: actions/checkout@v4
118
+ - uses: actions/download-artifact@v4
119
+ with:
120
+ path: artifacts
121
+ merge-multiple: true
122
+ - name: Create release
123
+ uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 — TODO(releaser): verify latest SHA
124
+ with:
125
+ files: artifacts/*
126
+ body_path: docs/releases/${{ github.ref_name }}.md # TODO(releaser): adjust path if needed
127
+ prerelease: ${{ contains(github.ref_name, '-') }}
128
+ fail_on_unmatched_files: true
@@ -0,0 +1,42 @@
1
+ # Release Workflow Generation and Audit
2
+
3
+ ## Phase 6: CI workflow file (optional)
4
+
5
+ This phase generates or audits the **release.yml** file itself. It is separate from
6
+ the **Phase 8.5 release-CI auto-fix loop** (which watches a live workflow run after
7
+ publish). Three modes:
8
+
9
+ ### --ci-config=generate
10
+
11
+ Fails if any file in `existing_ci` looks release-related (matches
12
+ `release|publish|deploy`). Otherwise, write a new `.github/workflows/release.yml` by
13
+ copying the matching template:
14
+
15
+ - Node → `references/ci-templates/node-release.yml`
16
+ - Python → `references/ci-templates/python-release.yml`
17
+ - Go → `references/ci-templates/go-release.yml` (uses goreleaser)
18
+ - Rust → `references/ci-templates/rust-release.yml` (uses cargo-dist if configured,
19
+ else actions-rs matrix)
20
+ - Docker → `references/ci-templates/docker-release.yml`
21
+ - Generic → `references/ci-templates/generic-release.yml` (tag-triggered, uploads
22
+ artifacts via `softprops/action-gh-release`)
23
+
24
+ Substitute the Phase 3 matrix and project name into the template. Also emit a short
25
+ `.github/workflows/README.md` entry documenting the new workflow — required (see
26
+ `references/ci-optimization-checklist.md`, "Documentation" section).
27
+
28
+ ### --ci-config=audit
29
+
30
+ Delegate to the `releaser` agent. Pass the list of existing workflow files, the
31
+ detected language and build system, the expected `{os × arch}` matrix, and the full
32
+ contents of `references/ci-optimization-checklist.md` inline in the dispatch prompt
33
+ (including every numbered section and severity table, not a path or summary).
34
+ The agent returns a structured report (Findings → Severity → Fix). The skill
35
+ summarizes the top items and writes the full report to
36
+ `docs/prps/reviews/ci-release-audit.md` for later consumption by `review-fix`.
37
+
38
+ ### No --ci-config flag
39
+
40
+ Skip Phase 6 entirely. Print a one-line reminder: "Skipped CI workflow generation.
41
+ Run with `--ci-config=generate` or `--ci-config=audit` to include it. (This is
42
+ separate from `--ci`, which monitors a live release workflow after publish.)"
@@ -0,0 +1,37 @@
1
+ # Bounded Release CI Goal Pairing
2
+
3
+ ## /goal pairing
4
+
5
+ Pair this skill with the `/goal` session directive **only for the bounded Phase 8.5 release-CI auto-fix loop** — never for the skill as a whole. The full `releaser` flow has four human approval gates that exist specifically to prevent unattended publishing and looping; `/goal` must never auto-satisfy them:
6
+
7
+ - **Phase 2 — version confirm.** The user must approve the proposed version bump.
8
+ - **Phase 2 — backport gate (patches).** The user decides each unlabelled fix and any shipping without a missing backport.
9
+ - **Phase 5 — manifest diff review.** The user must approve what changed before any commit.
10
+ - **Phase 8.5.1 — CI authorization gate.** The user must approve before the bounded, destructive-capable loop starts. `--ci-yes` does **not** bypass this gate under an active `/goal` (see the 8.5.1 `/goal` re-confirmation guard).
11
+
12
+ Because the `/goal` evaluator is transcript-only it cannot answer these prompts, so a `/goal` loop will **pause** at each gate until you respond in person. That is the intended behavior: only after you have published (`--publish --confirm`) and authorized the loop does `/goal` add value — driving Phase 8.5.2+ through every `handoff` fix-and-validate and `rerun-pending` retry to green without returning control between iterations. The `GATES_INTERACTIVE` Goal Signal records that none of these gates was auto-approved.
13
+
14
+ The Phase 8.5 loop's `RESULT=` markers (from `release-ci-monitor.sh`, sharing the `ci-monitor.sh` contract with `pr-autofix` and `prp-pr`) tell the evaluator when to keep looping versus when to stop:
15
+
16
+ - **Keep looping** — `handoff` (8.5.3 fix-and-validate) and `rerun-pending` (8.5.2 wait-and-retry). Recoverable progress markers, not endpoints.
17
+ - **Done** — `RESULT=green`, with the Phase 9 summary showing "Release CI loop outcome: `green`" and the audit-log path (`CI_GREEN: PASS`, `AUDIT_LOG_PRINTED: PASS`).
18
+ - **Stop** — any terminal `bail-*` (`bail-recurrence`, `bail-nonfixable`, `bail-pushes`, `bail-timeout`, `not-found`) or `loop-blocked`. `release-ci-monitor.sh` exhausts recoverable retries internally before emitting a bail, so a printed terminal marker means no further automatic progress is possible. The evaluator distinguishes "loop again" from "stop" by `green` vs `bail-*`/`loop-blocked` in the Phase 9 summary — never by re-classifying bail codes. See `{{package-root}}/shared/references/ci-monitoring.md` ("Release mode") for the authoritative bail taxonomy.
19
+
20
+ Recommended condition template (set this **after** you have approved Phases 2 and 5, published with `--publish --confirm`, and authorized the loop at 8.5.1):
21
+
22
+ ```
23
+ /goal Drive the releaser Phase 8.5 release-CI loop to green, continuing through every
24
+ handoff and rerun-pending iteration without returning control to me. Done when the Phase 9
25
+ summary shows "Release CI loop outcome: green", the audit-log path is printed, and the Goal
26
+ Signals print verbatim — GATES_INTERACTIVE: PASS, CI_GREEN: PASS, and AUDIT_LOG_PRINTED:
27
+ PASS. If CI_GREEN prints FAIL alongside CI_BAIL_VISIBLE: PASS (a terminal bail-*, loop-blocked,
28
+ or declined), stop and report it — do not re-run. Never auto-approve the Phase 2 version
29
+ confirm, the Phase 5 manifest review, or the Phase 8.5.1 authorization. Stop after 25 turns
30
+ if not achieved.
31
+ ```
32
+
33
+ The transcript-output contract and shared caveats (worktree cwd, interactive failure prompts, platform availability) live in the shared reference — read it before relying on a `/goal` loop:
34
+
35
+ ```
36
+ {{package-root}}/shared/references/goal-pairing.md
37
+ ```
@@ -0,0 +1,143 @@
1
+ # Release Commands, Publish Modes and Final Output
2
+
3
+ ## Contents
4
+
5
+ - Phase 8: Emit next-step commands
6
+ - Phase 9: Final summary
7
+ - Success Criteria
8
+
9
+ ## Phase 8: Emit next-step commands
10
+
11
+ Always emit the following block. Substitute `<new-version>`, `<changed-files>`,
12
+ `<notes-path>`, and `<branch>` (the `branch=` from the Phase 2 branch check — the
13
+ branch being released) with real values. NEVER run these commands automatically.
14
+
15
+ ```
16
+ Release prepared. No commits or tags have been created — review the diff, then run:
17
+
18
+ git add <changed-files>
19
+ git commit -m "chore(release): v<new-version>"
20
+ git tag -a v<new-version> -m "v<new-version>"
21
+ git push origin HEAD:<branch> --follow-tags
22
+
23
+ # Create the GitHub release from the drafted notes:
24
+ gh release create v<new-version> \
25
+ --notes-file <notes-path> \
26
+ --title "v<new-version>"
27
+
28
+ # If artifacts were produced locally and need uploading:
29
+ gh release upload v<new-version> <path-to-artifact> [...]
30
+ ```
31
+
32
+ Under release-branches, append the steps the branch check asked for (see
33
+ `{{package-root}}/shared/references/branching-model.md`, "Models").
34
+ When `creates_maintenance=release/X.Y` (a final minor or major cut from the trunk):
35
+
36
+ ```
37
+ # Create the maintenance branch from the tag, and its backport label (skip the
38
+ # label if it already exists):
39
+ git push origin vX.Y.0^{commit}:refs/heads/release/X.Y
40
+ gh label create "<backport_label>" --description "Cherry-pick to release/X.Y"
41
+ ```
42
+
43
+ When `forward_port=1` (a patch cut from `release/X.Y`), carry the CHANGELOG entry — not
44
+ the version bump — to the trunk in its own PR:
45
+
46
+ ```
47
+ # Forward-port the vX.Y.Z CHANGELOG entry to <trunk>:
48
+ git fetch origin
49
+ git switch -c chore/changelog-vX.Y.Z origin/<trunk>
50
+ # Copy the X.Y.Z section from `git show vX.Y.Z:CHANGELOG.md` into CHANGELOG.md,
51
+ # in version order. Leave the version manifests alone.
52
+ git commit -am "chore(release): record vX.Y.Z in changelog"
53
+ git push -u origin HEAD
54
+ gh pr create --base <trunk> --title "chore(release): record vX.Y.Z in changelog" \
55
+ --body "Forward-port of the vX.Y.Z CHANGELOG entry from release/X.Y. No version bump."
56
+ ```
57
+
58
+ See "Forward-porting a patch's CHANGELOG entry" in `references/release-branches.md`.
59
+
60
+ If `--ci-config=generate` ran, append:
61
+
62
+ ```
63
+ # Verify the new workflow in CI by pushing the tag — the release workflow will
64
+ # build the matrix and attach artifacts to the GitHub release.
65
+ ```
66
+
67
+ **Forge provider detection**: release creation is provider-aware.
68
+ `publish-release.sh` detects the forge provider on `origin` first and routes
69
+ through the matching CLI — `gh release create` for `github`, `tea release
70
+ create --tag <tag> [--note-file]` for `forgejo`/`gitea` (per the
71
+ operation-equivalence map). The `gh release create`/`gh release upload` commands
72
+ emitted in the Phase 8 block above are the `github` path; on a `forgejo`/`gitea`
73
+ remote the helper drives `tea release create` instead. Log the resolved provider
74
+ and CLI. See `{{package-root}}/shared/references/forge-detection.md`.
75
+
76
+ When the user passed `--publish[=create|edit|auto]`, after they review the rendered
77
+ notes, run:
78
+
79
+ ```
80
+ {{package-root}}/skills/releaser/scripts/publish-release.sh v<new-version> <notes-path> --mode=<mode>
81
+ ```
82
+
83
+ **Examples:**
84
+
85
+ ```
86
+ # Preview only — prints the resolved gh command without executing it:
87
+ {{package-root}}/skills/releaser/scripts/publish-release.sh v1.4.0 docs/releases/v1.4.0.md --mode=auto
88
+
89
+ # Apply — executes the resolved gh command:
90
+ {{package-root}}/skills/releaser/scripts/publish-release.sh v1.4.0 docs/releases/v1.4.0.md --mode=auto --confirm
91
+ ```
92
+
93
+ This prints the resolved `gh` command without executing it. Re-run with `--confirm` to
94
+ apply. Use `--mode=edit` only when intentionally replacing an existing release body —
95
+ this is destructive.
96
+
97
+ ## Phase 9: Final summary
98
+
99
+ Report to the user:
100
+
101
+ - Detected language / build system / manifest files.
102
+ - Proposed vs. requested version.
103
+ - Release model and branch: `model` and `branch` from the Phase 2 check (or "no
104
+ `RELEASING.md`"), plus the follow-ups it requires — the new `release/X.Y` branch and
105
+ label, or the CHANGELOG forward-port PR.
106
+ - Backport gate (patches under release-branches): `clean` with the number of PRs verified
107
+ and the `since=` window, or the rows the user chose to ship without, listed as
108
+ "Deferred backports".
109
+ - Target `{os × arch}` matrix.
110
+ - Files modified (changelog, notes, manifests, workflow).
111
+ - CI workflow-file outcome (generate / audit / skipped) and report path if audit ran.
112
+ - Publish mode outcome: whether the release was published (applied with `--confirm`),
113
+ previewed only (print-only via `--publish` without `--confirm`), or emit-only
114
+ (no `--publish` flag).
115
+ - Release CI loop outcome (if `--ci` was set): `green` (final status), `bail-*`
116
+ (with reason and cap that fired), `loop-blocked`, `declined`, or `skipped` (no
117
+ successful publish). Include the audit log path so the user can inspect it.
118
+ - The exact command block from Phase 8.
119
+
120
+ Then, as the **last lines** of the summary, print the Goal Signals block verbatim:
121
+
122
+ ```
123
+ Goal Signals (machine-readable — printed verbatim for /goal)
124
+ RELEASE_PUBLISHED: <PASS|FAIL|n/a>
125
+ GATES_INTERACTIVE: <PASS|FAIL>
126
+ CI_GREEN: <PASS|FAIL|n/a>
127
+ CI_BAIL_VISIBLE: <PASS|n/a>
128
+ AUDIT_LOG_PRINTED: <PASS|FAIL|n/a>
129
+ ```
130
+
131
+ Print one `KEY: PASS|FAIL` per line. Use `PASS` only when the matching `## Success
132
+ Criteria` item holds; otherwise `FAIL`. See `## Success Criteria` for each key's exact
133
+ condition and `n/a` rules.
134
+
135
+ ## Success Criteria
136
+
137
+ - **RELEASE_PUBLISHED**: `--publish --confirm` ran and `publish-release.sh --confirm` exited 0 (the release exists on GitHub). `n/a` when `--publish` was not set or ran in preview-only mode.
138
+ - **GATES_INTERACTIVE**: Every human gate that applied this run — Phase 2 version confirm, the Phase 2 backport gate decisions, Phase 5 manifest diff review, and the Phase 8.5.1 authorization — was satisfied by explicit user input and **none** was auto-approved or bypassed (including under an active `/goal`). `FAIL` if any applicable gate was skipped without a human `yes`. This is the safety invariant that keeps `/goal` from wrapping the whole skill.
139
+ - **CI_GREEN**: If `--ci` ran, the Phase 8.5 loop reached `RESULT=green` and the Phase 9 summary shows "Release CI loop outcome: `green`". `n/a` when `--ci` was not set or the loop was skipped (no successful publish).
140
+ - **CI_BAIL_VISIBLE**: If `--ci` ended without green, the summary states the terminal outcome (`bail-*`, `loop-blocked`, or `declined`) and the cap/constraint that fired. `n/a` when `--ci` reached green or was not set.
141
+ - **AUDIT_LOG_PRINTED**: If `--ci` ran, the Phase 9 summary printed the audit-log path. `n/a` when `--ci` was not set or the loop was skipped.
142
+
143
+ These keys are emitted verbatim in the Phase 9 Goal Signals block so a `/goal` evaluator can observe completion from the transcript alone.