@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,304 @@
1
+ ---
2
+ name: quick-review
3
+ description: Reviews uncommitted changes inline without saving by default. Use when
4
+ requesting a quick review, checking a small local diff, or reviewing without a saved
5
+ artifact.
6
+ ---
7
+
8
+ # Quick Review
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
+
12
+ Interactive low-friction review of uncommitted changes. Output is **inline**. The default fix path is artifact-free.
13
+
14
+ **Operational context:** "Apply fixes" delegates inline findings to /ycc:quick-fix without an artifact; "Save to file" saves under docs/prps/reviews/; "Write file and apply fixes" saves an artifact and delegates to /review-fix. Writes require confirmation unless a documented scripted action selects them.
15
+
16
+ **Input**: `$ARGUMENTS`
17
+
18
+ **Core rule**: "Apply fixes" must not write a review artifact. It hands the
19
+ inline findings directly to `/ycc:quick-fix`. Only "Save to file" and
20
+ "Write file and apply fixes" write `docs/prps/reviews/quick-*.md`.
21
+
22
+ ---
23
+
24
+ ## Phase 0 — Parse flags
25
+
26
+ Extract flags from `$ARGUMENTS`:
27
+
28
+ | Flag | Effect |
29
+ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30
+ | `--parallel` | Fan out REVIEW across 3 standalone `code-reviewer` sub-agents (correctness, security, quality) and merge findings. Works in opencode, Cursor, and Codex bundles. |
31
+ | `--yes` | Skip the confirmation prompt and behave as "Apply fixes" through `/ycc:quick-fix`. Mutually exclusive with `--save` and `--write-and-apply`. |
32
+ | `--save` | Skip the confirmation prompt and behave as "Save to file" (write artifact, print Next steps, exit). Mutually exclusive with `--yes` and `--write-and-apply`. |
33
+ | `--write-and-apply` | Skip the confirmation prompt, write the review artifact, then hand off to `/ycc:review-fix`. Mutually exclusive with `--yes` and `--save`. |
34
+ | `--severity <level>` | Forwarded to `/ycc:quick-fix` or `/ycc:review-fix` during hand-off. Valid: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`. Default: `HIGH`. Ignored on "Save to file" / "Discard". |
35
+ | `--no-worktree` | Accepted as a **no-op**. Quick mode never creates a worktree. Emit a note: `--no-worktree has no effect in quick mode.` |
36
+
37
+ Strip these from `$ARGUMENTS` and set `PARALLEL_MODE`, ``,
38
+ `AUTO_YES`, `AUTO_SAVE`, `AUTO_WRITE_AND_APPLY`, and `MIN_SEVERITY` (default
39
+ `HIGH`). The remaining text MUST be empty; if not, abort with:
40
+
41
+ ```
42
+ Error: /ycc:quick-review takes no positional argument (only flags).
43
+ ```
44
+
45
+ **Validation**:
46
+
47
+ - More than one of `--yes`, `--save`, `--write-and-apply` present -> abort with: `--yes, --save, and --write-and-apply are mutually exclusive. Pick one.`
48
+ - `--severity` value not one of `CRITICAL|HIGH|MEDIUM|LOW` -> abort with: `Invalid --severity value. Use CRITICAL, HIGH, MEDIUM, or LOW.`
49
+
50
+ ---
51
+
52
+ ## Phase 1 — GATHER
53
+
54
+ ```bash
55
+ git diff --name-only HEAD
56
+ ```
57
+
58
+ If the output is empty, print `Nothing to review.` and exit. Do NOT prompt,
59
+ do NOT write anything.
60
+
61
+ Capture the list of changed files as `CHANGED_FILES` for the REVIEW phase.
62
+
63
+ ---
64
+
65
+ ## Phase 2 — REVIEW
66
+
67
+ Neither flag: **Path A** single-pass (default). `PARALLEL_MODE`: **Path B**,
68
+
69
+ Findings from all paths stay **in memory**. Do not write to disk here.
70
+
71
+ ### Path A — Single-Pass Review (default)
72
+
73
+ Read each changed file in full and apply the **Local / Quick Review —
74
+ Single-Pass Checklist** and **Severity Rubric**. Flag only gaps that affect
75
+ correctness or the stated requirements. From:
76
+
77
+ ```
78
+ {{package-root}}/shared/references/review-checklist.md
79
+ ```
80
+
81
+ ## Phase 3 — REPORT (inline)
82
+
83
+ Assign IDs and initial Status after merge using the shared artifact schema
84
+ loaded below (Finding ID rules: ordered by severity, CRITICAL first, then by
85
+ file path); the same contract applies to inline findings.
86
+
87
+ Compute:
88
+
89
+ - `critical_count`, `high_count`, `medium_count`, `low_count`
90
+ - `total_findings`
91
+ - `finding_file_count` (unique files with findings)
92
+ - `large_review = total_findings >= 5 || finding_file_count >= 3`
93
+
94
+ **Print** the review to stdout in the quick-mode variant of the Review Artifact
95
+ Format, **without** writing a file. Read the schema:
96
+
97
+ `{{package-root}}/shared/references/review-artifact-format.md`
98
+
99
+ Header: `# Quick Review — Uncommitted Changes`, `**Mode**: Quick (inline)`,
100
+ `**Author**: local`, `**Branch**: <current-branch>`,
101
+ `**Decision**: (pending user confirmation)`, then Summary, Findings (all four
102
+ fields per finding, `Status: Open`) and Files Reviewed. No Worktree Setup or
103
+ Validation Results sections. Categories: Security | Correctness | Code Quality
104
+ | Best Practices.
105
+
106
+ After the artifact block, print:
107
+
108
+ ```
109
+ Findings: [C] {critical_count} [H] {high_count} [M] {medium_count} [L] {low_count}
110
+ ```
111
+
112
+ If `large_review=true`, also print:
113
+
114
+ ```
115
+ Large quick review: {total_findings} findings across {finding_file_count} files.
116
+ You can still apply fixes directly, or write an artifact before applying fixes for an audit trail.
117
+ ```
118
+
119
+ If the count is zero across all severities, skip Phase 4 entirely. Print
120
+ `No findings. Nothing to do.` and exit.
121
+
122
+ Keep the exact printed review block in memory as `INLINE_REVIEW_PAYLOAD` for
123
+ `/ycc:quick-fix` or artifact writing.
124
+
125
+ ---
126
+
127
+ ## Phase 4 — DECIDE (confirmation)
128
+
129
+ If `AUTO_YES=true` -> skip this phase, proceed directly to Phase 5 as if the
130
+ user selected "Apply fixes".
131
+
132
+ If `AUTO_SAVE=true` -> skip this phase, proceed directly to Phase 5 as if the
133
+ user selected "Save to file".
134
+
135
+ If `AUTO_WRITE_AND_APPLY=true` -> skip this phase, proceed directly to Phase 5
136
+ as if the user selected "Write file and apply fixes".
137
+
138
+ Otherwise, ask the user with `ask the user`.
139
+
140
+ For normal reviews (`large_review=false`):
141
+
142
+ ```
143
+ question: "What should I do with this review?"
144
+ header: "Review action"
145
+ options:
146
+ - label: "Apply fixes"
147
+ description: "Hand findings directly to /quick-fix. No review file is written. (recommended)"
148
+ - label: "Save to file"
149
+ description: "Write docs/prps/reviews/quick-<timestamp>-review.md and stop."
150
+ - label: "Discard"
151
+ description: "Write nothing, exit"
152
+ ```
153
+
154
+ For large reviews (`large_review=true`):
155
+
156
+ ```
157
+ question: "This is a larger quick review. What should I do?"
158
+ header: "Review action"
159
+ options:
160
+ - label: "Apply fixes"
161
+ description: "Hand findings directly to /quick-fix. No review file is written."
162
+ - label: "Write file and apply fixes"
163
+ description: "Write docs/prps/reviews/quick-<timestamp>-review.md, then use /ycc:review-fix for an audit trail. (recommended)"
164
+ - label: "Save to file"
165
+ description: "Write docs/prps/reviews/quick-<timestamp>-review.md and stop."
166
+ - label: "Discard"
167
+ description: "Write nothing, exit"
168
+ ```
169
+
170
+ Mark "Apply fixes" with `(Recommended)` when `large_review=false` and
171
+ `critical_count + high_count > 0`. Mark "Write file and apply fixes" with
172
+ `(Recommended)` when `large_review=true`.
173
+
174
+ **Text-mode fallback** (if `ask the user` is unavailable — Cursor/Codex
175
+ bundles without that tool): print the available choices explicitly and WAIT for
176
+ the user's next message. Parse their reply case-insensitively:
177
+
178
+ - `yes` / `apply` / `apply fixes` / `fix` -> "Apply fixes"
179
+ - `write and apply` / `write file and apply fixes` / `file and fix` / `artifact and fix` -> "Write file and apply fixes"
180
+ - `save` / `save to file` / `write` / `file` -> "Save to file"
181
+ - `no` / `discard` / `cancel` / `skip` -> "Discard"
182
+ - Anything else -> re-prompt once, then default to `Discard` if still ambiguous.
183
+
184
+ ---
185
+
186
+ ## Phase 5 — HAND-OFF
187
+
188
+ Branch on the user's selection (or auto-confirm flag). If `PARALLEL_MODE=true`
189
+ (Path B was used), remove the `docs/prps/reviews/.review-scratch/quick-<TIMESTAMP>/`
190
+ scratch directory before exiting — **regardless of which branch below is
191
+ taken**, including "Discard" and "Apply fixes".
192
+
193
+ ### Selection: "Discard"
194
+
195
+ Print `Discarded. No artifact written.` and exit. Do NOT write any file.
196
+
197
+ ### Selection: "Apply fixes"
198
+
199
+ Invoke the `quick-fix` skill inline via the `Skill` tool. Do NOT write an
200
+ artifact first.
201
+
202
+ - `skill`: `"quick-fix"`
203
+ - `args`: `"[--parallel] [--severity <level>] <INLINE_REVIEW_PAYLOAD>"`
204
+
205
+ Forward `--parallel` if `PARALLEL_MODE=true`. Forward `--severity <level>` when
206
+ `MIN_SEVERITY != HIGH` (HIGH is the default on quick-fix).
207
+
208
+ After the Skill call returns, print:
209
+
210
+ ```
211
+ Fixes complete. No review artifact was written.
212
+ ```
213
+
214
+ Exit.
215
+
216
+ ### Selection: "Save to file"
217
+
218
+ Write the artifact to disk using the Phase 3 content plus the canonical header
219
+ block:
220
+
221
+ ```bash
222
+ mkdir -p docs/prps/reviews
223
+ TIMESTAMP=$(date +%Y%m%d-%H%M%S) # reuse the Path C timestamp if set
224
+ REVIEW_FILE="docs/prps/reviews/quick-${TIMESTAMP}-review.md"
225
+ ```
226
+
227
+ Write the same artifact content that was printed in Phase 3, but set
228
+ `**Decision**: COMMENT` in the header (since a review was produced but no
229
+ GitHub decision is being posted).
230
+
231
+ Print:
232
+
233
+ ```
234
+ Quick review written to: docs/prps/reviews/quick-<TIMESTAMP>-review.md
235
+ Findings: [C] {critical_count} [H] {high_count} [M] {medium_count} [L] {low_count}
236
+
237
+ Next steps:
238
+ /ycc:review-fix docs/prps/reviews/quick-<TIMESTAMP>-review.md # apply fixes {recommended_single if 1-2 Open findings}
239
+ /ycc:review-fix docs/prps/reviews/quick-<TIMESTAMP>-review.md --parallel # fan out fixes {recommended_parallel if 3+ Open across 2+ files}
240
+ ```
241
+
242
+ Annotate ONE command with `# <- recommended`:
243
+
244
+ - 1-2 Open findings -> recommend the single-pass form.
245
+ - 3+ Open findings spanning 2+ files -> recommend the `--parallel` form.
246
+ - Otherwise default to the single-pass form.
247
+
248
+ Exit.
249
+
250
+ ### Selection: "Write file and apply fixes"
251
+
252
+ Step 1 — write the artifact to disk exactly as in "Save to file".
253
+
254
+ Step 2 — invoke the `review-fix` skill inline via the `Skill` tool:
255
+
256
+ - `skill`: `"review-fix"`
257
+ - `args`: `"<REVIEW_FILE> [--parallel] [--severity <level>]"`
258
+
259
+ Forward `--parallel` if `PARALLEL_MODE=true`. Forward `--severity <level>` when
260
+ `MIN_SEVERITY != HIGH`.
261
+
262
+ Step 3 — after the Skill call returns, print:
263
+
264
+ ```
265
+ Fixes complete. Review artifact updated in place: docs/prps/reviews/quick-<TIMESTAMP>-review.md
266
+ ```
267
+
268
+ Step 4 — exit.
269
+
270
+ automatically. The review-phase fan-out is about finding issues quickly; the
271
+ fix phase has its own execution decision.
272
+
273
+ ---
274
+
275
+ ## Important Notes
276
+
277
+ - **Apply fixes is artifact-free**: direct apply routes to `/ycc:quick-fix`
278
+ without writing `docs/prps/reviews/quick-*.md`.
279
+ - **Scratch is the one ephemeral exception**: when Path B (`--parallel`) is
280
+ used, the calling skill persists each valid inline return to its scratch copy
281
+ at `docs/prps/reviews/.review-scratch/quick-<TIMESTAMP>/<reviewer-name>.md`
282
+ during the `subagent` dispatch in Phase 2. It is always deleted at the end of
283
+ Phase 5 before the skill returns control to the user — including on
284
+ "Discard" and "Apply fixes" — so the "no file written" guarantee still
285
+ holds for anything the user can observe afterward.
286
+ - **Large reviews are advisory**: `5+` findings or `3+` finding files adds a
287
+ "Write file and apply fixes" choice. It does not force artifact creation.
288
+ - **Explicit artifact-backed apply**: only `--write-and-apply` or the matching
289
+ prompt choice writes the artifact and invokes `/ycc:review-fix`.
290
+ - **Idempotent filename**: the `quick-{YYYYMMDD-HHMMSS}-review.md` pattern
291
+ produces a new file per artifact-writing invocation — no overwrites.
292
+ - **Not a replacement for `/ycc:code-review`**: if you need toolchain
293
+ validation (typecheck/lint/test/build), a `## Validation Results` block,
294
+ worktree isolation, or a GitHub review posted, use `/ycc:code-review`
295
+ without `--quick`.
296
+
297
+ ---
298
+
299
+ ## Integration with ycc
300
+
301
+ - `/ycc:code-review --quick` delegates to this skill.
302
+ - `/ycc:quick-fix` consumes inline findings for artifact-free fixing.
303
+ - `/ycc:review-fix` consumes written artifacts only.
304
+ - `/ycc:prp-commit` or `/ycc:git-workflow --commit` can commit the fixes afterward.
@@ -0,0 +1,231 @@
1
+ ---
2
+ name: release-model
3
+ description: Creates, upgrades, or audits RELEASING.md branching policy. Use when
4
+ defining a release process, adding maintenance branches, or checking release-model
5
+ drift.
6
+ ---
7
+
8
+ # Release Model
9
+
10
+ Create, upgrade, or audit a project's `RELEASING.md` — the single source of truth for its
11
+ trunk, maintenance branches, and release steps. Every other ycc skill that picks a base
12
+ branch, opens a PR, cuts a release, or cleans up branches reads it through `release-state.sh`.
13
+
14
+ **Operational context:** Render project-specific RELEASING.md with machine-readable state and CLAUDE.md/AGENTS.md pointers. Trunk-only tags every release from trunk; release-branches tags minors from trunk and patches from release/X.Y with backports. --upgrade moves to release-branches; --audit reports drift read-only.
15
+
16
+ The rules themselves (both models, where a change goes, backporting, the state-block
17
+ format) live in `{{package-root}}/shared/references/branching-model.md`. Cite
18
+ its sections; do not restate them in output or in generated files beyond what the
19
+ template already contains.
20
+
21
+ **Hard limits:** this skill never commits, pushes, tags, creates branches, or creates
22
+ labels. It writes files in the working tree only after a dry-run preview, and prints the
23
+ commands a maintainer runs for everything else.
24
+
25
+ ## Arguments
26
+
27
+ Parse `$ARGUMENTS`:
28
+
29
+ | Flag | Meaning |
30
+ | -------------------------------------- | ------------------------------------------------------------------------- |
31
+ | _(none)_ | **create** when `RELEASING.md` is missing, **audit** when it exists |
32
+ | `--upgrade` | Move an existing trunk-only model to release-branches |
33
+ | `--audit` | Read-only drift report with suggested fixes |
34
+ | `--model trunk-only\|release-branches` | Preselect the model (create only); skips the model question |
35
+ | `--trunk NAME` | Preselect the trunk branch; skips the trunk question |
36
+ | `--yes` | Accept the proposal without questions and write after showing the preview |
37
+
38
+ `--upgrade` and `--audit` are mutually exclusive; reject both together. Reject a
39
+ `--model` value other than `trunk-only` or `release-branches`.
40
+
41
+ Script paths used below:
42
+
43
+ - `SIGNALS={{package-root}}/skills/release-model/scripts/collect-signals.sh`
44
+ - `STATE={{package-root}}/shared/scripts/release-state.sh`
45
+ - `TARGETS={{package-root}}/skills/release-model/scripts/pointer-targets.sh`
46
+ - `UPDATE={{package-root}}/shared/scripts/release-state-update.sh`
47
+ - `POINTER={{package-root}}/shared/scripts/rules-pointer.sh` — the single canonical `AGENTS.md`/`CLAUDE.md` pointer helper shared with `init`; `$TARGETS` delegates to it. Release-model only reads it: it never migrates a layout and never creates a missing rules file.
48
+ - `TEMPLATE={{package-root}}/skills/release-model/templates/RELEASING.md.tmpl`
49
+
50
+ ## Phase 0 — Preflight and mode
51
+
52
+ 1. `git rev-parse --show-toplevel` must succeed; call the result `ROOT`. Otherwise STOP:
53
+ "not a git repository".
54
+ 2. Run `$STATE --repo "$ROOT" get` and branch on the result:
55
+
56
+ | Result | Flag | Mode |
57
+ | ------------------------ | ----------- | ----------------------------------------------------------------------------------- |
58
+ | exit 0, `present=0` | none | create |
59
+ | exit 0, `present=0` | `--audit` | report "no RELEASING.md" and suggest `/ycc:release-model`; stop |
60
+ | exit 0, `present=0` | `--upgrade` | STOP: nothing to upgrade; suggest `/ycc:release-model --model release-branches` |
61
+ | exit 0, `present=1` | none | audit (say so: "RELEASING.md exists — auditing; use --upgrade to change the model") |
62
+ | exit 0, `present=1` | `--upgrade` | upgrade, unless `model=release-branches` already — then report that and audit |
63
+ | exit 0, `present=1` | `--audit` | audit |
64
+ | exit 2 (malformed state) | any | show the stderr parse error verbatim, then audit (the error is the first finding) |
65
+
66
+ A dirty working tree does not block: this skill only touches `RELEASING.md`, `CLAUDE.md`,
67
+ `AGENTS.md`, `.github/copilot-instructions.md`, and `.github/labels.md`. If any of those
68
+ has uncommitted changes, warn before writing to it.
69
+
70
+ ## Phase 1 — Signals
71
+
72
+ Run `$SIGNALS --repo "$ROOT"` and keep every `key=value` line (keys and meanings are in
73
+ the script header). Signals never fail the skill: `gh_releases=unknown` means `gh` is
74
+ missing, unauthenticated, or offline — list it under "unknown signals" in the proposal.
75
+
76
+ Also resolve, without network writes:
77
+
78
+ - **Project name:** the `origin` remote's repository name
79
+ (`basename -s .git "$(git remote get-url origin)"`), else the `name` field of the first
80
+ version file, else the basename of `ROOT`.
81
+ - **Tracker candidates** — read `references/signals-and-proposal.md#tracker-detection` when listing tracker candidates.
82
+
83
+ ## Phase 2 — Proposal and questions
84
+
85
+ Present one compact proposal: the suggested model with `suggested_reason`, the trunk
86
+ (`--trunk`, else `default_branch`), the support window (`latest-minor` by default,
87
+ release-branches only), the tracker, and the supporting signals (tags, release branches,
88
+ publish workflow, version files, changelog, long-lived branches, sync merges). Flag
89
+ `long_lived_branches` and `sync_merges_recent > 0` as habits the new model forbids
90
+ (`branching-model.md#rules`, rules 2 and 3) — they are advisory, not blockers.
91
+
92
+ Then ask **at most three questions** with `ask the user`, skipping any whose answer
93
+ is already fixed by a flag:
94
+
95
+ 1. **Model** — suggested model first, marked "(Recommended)".
96
+ 2. **Trunk** — `default_branch` first; offer `main`/`master` if they exist and differ.
97
+ 3. **Support window** (release-branches only) — `latest-minor` (Recommended) or
98
+ `latest-two-minors`.
99
+
100
+ Ask about the tracker only when detection is ambiguous, and only if a question slot is
101
+ left (under release-branches with an ambiguous tracker, default the support window to
102
+ `latest-minor`, say so in the proposal, and ask about the tracker instead).
103
+
104
+ `--yes` skips every question and accepts the proposal; an ambiguous tracker becomes
105
+ `none`, noted in the summary. Read `references/signals-and-proposal.md` when
106
+ assembling the Phase 2 proposal — it holds the details and the reason-to-model mapping.
107
+
108
+ ## Phase 3 — Render RELEASING.md (create)
109
+
110
+ Build the file in a scratch directory (`SCRATCH=$(mktemp -d)`), never in `ROOT` yet.
111
+
112
+ 1. Read `$TEMPLATE` as UTF-8 with optional leading BOM stripped (`utf-8-sig` semantics), and `{{package-root}}/skills/release-model/references/template-placeholders.md`.
113
+ 2. **Conditional blocks:** for `release-branches` keep `{{#IF_RELEASE_BRANCHES}}` blocks
114
+ and drop `{{#IF_TRUNK_ONLY}}` blocks; for `trunk-only` the reverse. Delete the marker
115
+ lines of kept blocks and the whole of dropped blocks (markers included), then collapse
116
+ any run of blank lines this leaves into a single blank line.
117
+ 3. **State block:** run
118
+
119
+ ```bash
120
+ $UPDATE --print-block --model <M> --trunk <B> [--support <S>] [--tracker <T> --tracker-ref <R>]
121
+ ```
122
+
123
+ Pass `--support` only under release-branches, and `--tracker-ref` only with a non-empty
124
+ ref. The output is the block, a blank line, then a table. Take only the block: from
125
+ the first output line up to and including the first line that is exactly `-->`. Copy
126
+ it verbatim (never retype the marker strings) and replace the `{{STATE_BLOCK}}` line
127
+ with it. Leave the template's empty table markers alone.
128
+
129
+ 4. **Placeholders:** fill the rest from signals per `template-placeholders.md`
130
+ (`{{PROJECT_NAME}}`, `{{TRUNK}}`, `{{TAG_PATTERN}}` from `tag_pattern` with `none` →
131
+ `vX.Y.Z`, `{{VERSION_FILES}}` as backticked comma list, `{{CHANGELOG_FILE}}`,
132
+ `{{PUBLISH_STEP}}`, `{{TRACKER_SECTION}}`). When the project already has its own
133
+ release tooling — a release script or npm/make target, a documented release command in
134
+ `CLAUDE.md`/`CONTRIBUTING.md`, a release-notes directory — name it in `{{PUBLISH_STEP}}`
135
+ and adapt the numbered Releasing steps so they match what maintainers actually do.
136
+ Keep the section structure.
137
+ 5. Write the result to `$SCRATCH/RELEASING.md`, then run
138
+ `$UPDATE --repo "$SCRATCH" --render` to fill the Current state table.
139
+ 6. Verify: `grep -n '{{' "$SCRATCH/RELEASING.md"` prints nothing, and
140
+ `$STATE --repo "$SCRATCH" get` exits 0 with the chosen `model` and `trunk`.
141
+ 7. **Existing release branches (release-branches only):** for each branch in
142
+ `release_branches`, oldest first, run
143
+ `$UPDATE --repo "$SCRATCH" --add-maintenance <branch>`; the support window moves older
144
+ ones to `frozen` automatically. Branch names that are not `release/X.Y` are skipped
145
+ and reported.
146
+
147
+ ## Phase 4 — Pointer sections
148
+
149
+ For each `POINTER_TARGET` below (every line `$TARGETS --repo "$ROOT"` prints: existing
150
+ `CLAUDE.md`, `AGENTS.md`, and `.github/copilot-instructions.md` — never create one), read
151
+ the pointer section in `references/pointer-and-labels.md#pointer-section` and add it unless
152
+ a line matching `^## Branching & releases` is already present — then leave the file untouched
153
+ and report "already present". Append it at the end of the file, separated by one blank line.
154
+ When neither `CLAUDE.md` nor `AGENTS.md` exists, report that and suggest `/ycc:init`.
155
+
156
+ ## Phase 5 — Labels doc (release-branches only)
157
+
158
+ If `.github/labels.md` exists and does not mention `backport:`, read
159
+ `references/pointer-and-labels.md#labels-doc` and add the `backport:X.Y`
160
+ family exactly as it describes. Otherwise
161
+ skip. Never create or edit labels on the forge.
162
+
163
+ ## Phase 6 — Preview, then write
164
+
165
+ Show a dry-run preview of every change: the full new `RELEASING.md` (or `diff -u` against
166
+ the existing one) and a `diff -u` for each pointer or labels edit. Then:
167
+
168
+ - Without `--yes`: ask once, "Write these N files?" — stop on no.
169
+ - With `--yes`: write after printing the preview.
170
+
171
+ Write with `cp "$SCRATCH/RELEASING.md" "$ROOT/RELEASING.md"` and Edit/Write for the
172
+ others. Afterwards run `$STATE --repo "$ROOT" get` (must exit 0) and
173
+ `$STATE --repo "$ROOT" check`; `check` findings about branches missing on origin are
174
+ expected when the trunk has not been pushed yet — report them, do not fix them.
175
+
176
+ ## Phase 7 — Summary
177
+
178
+ Report: mode, model, trunk, support window, tracker, files written, `check` result, any
179
+ unknown signals, and the advisory findings (long-lived branches, sync merges). Next steps:
180
+
181
+ - Ship the change as a normal PR, e.g. `/ycc:git-workflow` (suggested commit:
182
+ `docs: add RELEASING.md`). Nothing has been committed.
183
+ - Under release-branches with no maintenance branch yet, print the cut-over commands for
184
+ the latest tag's line (`X.Y` from `latest_tag`), for the maintainer to run:
185
+
186
+ ```bash
187
+ git push origin <latest_tag>^{commit}:refs/heads/release/X.Y
188
+ gh label create "backport:X.Y" --description "Cherry-pick to release/X.Y"
189
+ <resolved $UPDATE path> --add-maintenance release/X.Y # then commit RELEASING.md
190
+ ```
191
+
192
+ Print `$UPDATE` as its resolved absolute path; maintainers cannot expand the plugin
193
+ root variable.
194
+
195
+ With no tags yet, say that `release/X.Y` is created when the first minor is tagged
196
+ (`/ycc:releaser` does this).
197
+
198
+ ## Mode: upgrade (trunk-only → release-branches)
199
+
200
+ Follow `references/upgrade-and-audit.md#upgrade`. In short:
201
+
202
+ 1. Change the model on a scratch copy with `$UPDATE --set-model release-branches`
203
+ (block and table only; `support`, `tracker`, `tracker_ref` are kept). No questions.
204
+ 2. Build the release-branches sections with the Phase 3 renderer in `$SCRATCH`, using the
205
+ current state's trunk, tracker, and the signals.
206
+ 3. Merge them into the existing file section by section, preserving human prose exactly
207
+ as the reference describes. Anything that cannot be merged safely is left alone and
208
+ listed as "update by hand" with the rendered text.
209
+ 4. Labels doc (Phase 5), preview (Phase 6), then write — the state change through
210
+ `$UPDATE --repo "$ROOT" --set-model release-branches`, never by hand.
211
+ 5. Summary with the cut-over commands from Phase 7.
212
+
213
+ ## Mode: audit (read-only)
214
+
215
+ Follow `references/upgrade-and-audit.md#audit`. Run `$STATE --repo "$ROOT" check`, the
216
+ signals, and (when `gh` is authenticated) `gh label list`. Report each finding with its
217
+ severity and the exact fix command. Checks cover: state parse errors, table drift,
218
+ branches missing on origin, a maintenance branch with no tag on its line, a minor tag
219
+ newer than the newest maintenance branch, `release/*` branches the state does not list,
220
+ a trunk-only model that has already patched an older line, long-lived branches, recent
221
+ sync merges on the trunk, missing `backport:X.Y` labels, and missing pointer sections.
222
+ Change nothing.
223
+
224
+ ## Important Notes
225
+
226
+ - The state block and table change only through `release-state-update.sh`; the skill
227
+ never edits them by hand. Prose after the table end marker is human-owned.
228
+ - A malformed block is never "fixed" by regenerating the file; audit reports the parse
229
+ error and the maintainer decides.
230
+ - This skill does not choose releases or versions; `/ycc:releaser` cuts releases and
231
+ `/ycc:backport` moves fixes to maintenance branches, both reading the state written here.
@@ -0,0 +1,83 @@
1
+ # Pointer section and labels doc
2
+
3
+ Exact text `release-model` adds outside `RELEASING.md`. Both edits are idempotent:
4
+ the skill checks for the marker before writing and never rewrites an existing section.
5
+
6
+ ## Pointer section
7
+
8
+ Added to every existing pointer target that `$TARGETS --repo "$ROOT"` lists
9
+ (`scripts/pointer-targets.sh`), never to a file created for this purpose. Marker: a line
10
+ matching `^## Branching & releases`. When absent, append at the end
11
+ of the file after one blank line. When `CLAUDE.md` imports `AGENTS.md` (a live
12
+ `@AGENTS.md` line, not inside a comment, code span, or fence), the pointer belongs in
13
+ `AGENTS.md` alone; `$TARGETS` leaves `CLAUDE.md` out. A dangling import exits 1 — repair it
14
+ first. Repos without the import keep the legacy behavior (every existing file).
15
+
16
+ `pointer-targets.sh` calls `_shared/scripts/rules-pointer.sh targets`, backed by
17
+ `rules_pointer.py`, the canonical parser/shim renderer also used by init. Python
18
+ 3.11+ is required. A leading UTF-8 BOM and CRLF are normalized identically in
19
+ both consumers. Release-model uses only the read-only `targets` query; the
20
+ helper's `claude-md-shim` operation renders to stdout, never writes or migrates
21
+ files. Init owns explicit creation/migration, with its existing confirmation,
22
+ backup and rollback gates. Release-model never invokes migration or creates a
23
+ missing `AGENTS.md`/`CLAUDE.md`.
24
+
25
+ When reading a release template, normalize a leading UTF-8 BOM (`utf-8-sig`);
26
+ state-block/table and workflow signal readers do the same. State rewrites retain
27
+ an existing file's BOM and CRLF.
28
+
29
+ Trunk-only:
30
+
31
+ ```markdown
32
+ ## Branching & releases
33
+
34
+ [`RELEASING.md`](RELEASING.md) is the source of truth for branches and releases. Branch
35
+ off `<trunk>` and PR back into it; every release is tagged from `<trunk>`. Never merge one
36
+ long-lived branch into another to sync it.
37
+ ```
38
+
39
+ Release-branches:
40
+
41
+ ```markdown
42
+ ## Branching & releases
43
+
44
+ [`RELEASING.md`](RELEASING.md) is the source of truth for branches and releases. Features
45
+ go into `<trunk>`; fixes for a shipped minor land on `<trunk>` first and are backported to
46
+ `release/X.Y` with the `backport:X.Y` label. Never merge one long-lived branch into another
47
+ to sync it.
48
+ ```
49
+
50
+ For `.github/copilot-instructions.md`, use the same text. When the file sits under
51
+ `.github/`, write the link as `../RELEASING.md`.
52
+
53
+ `--upgrade` replaces a pointer section only when it matches the trunk-only text above
54
+ byte-for-byte (the skill wrote it); an edited section is left alone and listed as
55
+ "update by hand".
56
+
57
+ ## Labels doc
58
+
59
+ Release-branches only, and only when `.github/labels.md` exists and does not contain
60
+ `backport:`. Two edits:
61
+
62
+ 1. In the label-family table, add one row after the last existing row, padded to the
63
+ table's column widths:
64
+
65
+ ```markdown
66
+ | `backport:X.Y` | backport | Cherry-pick to release/X.Y |
67
+ ```
68
+
69
+ 2. At the end of the file, append:
70
+
71
+ ```markdown
72
+ ## Backport labels
73
+
74
+ One `backport:X.Y` label exists per active maintenance branch (see
75
+ [`RELEASING.md`](../RELEASING.md)). Create it when `release/X.Y` is cut:
76
+
77
+ gh label create "backport:X.Y" --color "5319e7" --description "Cherry-pick to release/X.Y"
78
+ ```
79
+
80
+ Put the `gh label create` line in a `bash` fenced block.
81
+
82
+ If the file has no table, do only step 2. Run `prettier --check` on the file afterwards
83
+ when the project has prettier; fix only the table padding if it complains.