@yandy-r/ycc-opencode 0.0.0-bootstrap.0 → 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 +42 -0
  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 +33 -7
  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,78 @@
1
+ # Best Practices
2
+
3
+ Per-language tool selection, rationale, and deviation guidance. The skill installs this toolchain by default; override with per-stack flags if the project has strong reasons to diverge.
4
+
5
+ ---
6
+
7
+ ## Rust — `rustfmt` + `clippy`
8
+
9
+ - **Formatter:** `cargo fmt --all` using `rustfmt.toml` (project-pinned edition, max width 100).
10
+ - **Linter:** `cargo clippy --all-targets -- -D warnings` using `clippy.toml`. `-D warnings` treats every clippy lint as an error in CI.
11
+ - **Rationale:** Both tools are first-party (rust-lang/rustfmt, rust-lang/rust-clippy). `rustfmt` is the canonical formatter; deviating fragments the ecosystem. `-D warnings` in CI surfaces regressions early.
12
+ - **When to deviate:** Projects on `beta`/`nightly` that need unstable `rustfmt` options — pin via `rust-toolchain.toml` and document the rationale in the project's README.
13
+
14
+ ---
15
+
16
+ ## Go — `gofmt` + `goimports` + `golangci-lint`
17
+
18
+ - **Formatter:** `gofmt -w` + `goimports -w` (the latter reorders imports and adds missing ones).
19
+ - **Linter:** `golangci-lint run ./...` using `.golangci.yml`. The template enables `errcheck`, `govet`, `ineffassign`, `staticcheck`, `unused`, and `gofmt`/`goimports` consistency checks.
20
+ - **Rationale:** `gofmt` is the language-mandated formatter. `golangci-lint` is the de-facto meta-linter — it multiplexes every useful linter, caches per-package, and is the fastest way to get broad coverage.
21
+ - **When to deviate:** Monorepos with build tags or generated code should extend `issues.exclude-rules` in `.golangci.yml` rather than disable linters globally.
22
+
23
+ ---
24
+
25
+ ## TypeScript / JavaScript — `biome` + `tsc`
26
+
27
+ - **Formatter + linter:** `@biomejs/biome format --write` and `@biomejs/biome check --fix` against `biome.json`. In CI, use `@biomejs/biome ci` on JS/TS/CSS/JSON/JSONC sources.
28
+ - **Type checker:** `tsc --noEmit` against `tsconfig.json` (runs when any `tsconfig*.json` is present).
29
+ - **Rationale:** Biome is a single Rust-based tool that replaces Prettier + ESLint + several common plugins. It is ~100× faster on medium repos, has zero plugin resolution overhead, and ships sensible defaults. A single dependency replaces ~15 `eslint-*` plugins.
30
+ - **When to deviate:**
31
+ - Projects with extensive ESLint plugin investments (e.g., `eslint-plugin-react-hooks` with custom rules, framework-specific linters not yet in Biome) should keep ESLint but still pair with Biome's formatter.
32
+ - Legacy ecosystems still on `eslint@8` with `eslint-config-*` dependencies may defer migration until the plugins land in Biome or support Biome's plugin API.
33
+
34
+ ---
35
+
36
+ ## Python — `ruff` + `black`
37
+
38
+ - **Linter + import sorter:** `ruff check --fix` (replaces `flake8`, `isort`, `pyupgrade`, `pydocstyle`, etc.).
39
+ - **Formatter:** `black .` (or `ruff format .` — both are supported; the default template uses `black` for broadest ecosystem familiarity).
40
+ - **Config:** `[tool.ruff]` and `[tool.black]` in `pyproject.toml`. The skill **refuses to overwrite** an existing `pyproject.toml`; it emits the merge snippet for manual addition.
41
+ - **Rationale:** `ruff` is a Rust-based linter that is ~100× faster than the combined Python tool stack and subsumes `flake8`, `isort`, `pyupgrade`, `pydocstyle`, and more. `black` remains the canonical formatter — though `ruff format` is a fully-compatible drop-in if the project prefers a single tool.
42
+ - **When to deviate:** Projects using `mypy --strict` should add it explicitly to the lint script; it is orthogonal to `ruff`. Django/Flask projects with `isort` profiles codified in team docs should keep `isort` settings in `[tool.ruff.lint.isort]` to preserve behavior.
43
+
44
+ ---
45
+
46
+ ## Docs — `markdownlint` + `prettier`
47
+
48
+ - **Markdown linter:** `markdownlint` (CommonMark + `.markdownlint.json` rules, default rule set MD001–MD059).
49
+ - **Formatter:** `prettier --write` for Markdown and YAML by default. In docs-only repos, it also owns JSON/JSONC.
50
+ - **Rationale:** `markdownlint` catches Markdown-specific structural issues (heading ordering, list indent, line-length exceptions). Prettier remains the lightweight docs formatter, while TS/JS repos delegate JSON/JSONC to Biome so the tools never fight over the same files.
51
+ - **When to deviate:** MDX-heavy repos should add `mdx` to `prettier` plugins. Docs sites using Vale or custom writing-style linters can layer them on top.
52
+
53
+ ---
54
+
55
+ ## Shell — `shellcheck` + `shfmt`
56
+
57
+ - **Linter:** `shellcheck --severity=warning` (catches quoting, word-splitting, unused variables, cross-shell portability issues).
58
+ - **Formatter:** `shfmt -w -i 2 -ci` (2-space indent, switch-case indented) — optional; not all repos install it.
59
+ - **Rationale:** `shellcheck` is the only mature static analyzer for POSIX shell/bash. Its checks prevent the vast majority of production shell bugs.
60
+ - **When to deviate:** Projects using `zsh` extensions or `ksh` features that `shellcheck` can't handle should pin `# shellcheck shell=bash` at the top of each file or exclude via `.shellcheckrc`.
61
+
62
+ ---
63
+
64
+ ## Guiding Principles
65
+
66
+ 1. **Prefer Rust-based tools for performance.** `biome`, `ruff`, `shfmt` are all orders of magnitude faster than their predecessors and pay back their install cost within the first lint run.
67
+ 2. **Pin configs, not tool versions by default.** Use `mise.toml` / `rust-toolchain.toml` / `go.mod`'s `toolchain` directive for most version pinning. The formatter bundle manages a tooling-specific `shellcheck` pin so local runs and generated CI stay aligned.
68
+ 3. **Single source of truth per language.** One formatter per stack. Adding a second (e.g., both `prettier` and `biome` on `.ts` files) guarantees a fight.
69
+ 4. **Always gate `-D warnings` / `--strict` behind CI, not local dev.** Local lint should be fast and forgiving; CI should be strict.
70
+ 5. **Idempotence over cleverness.** The skill prefers `--sync` (prune stale, install fresh) over cascading merge heuristics. Tool configs should be reproducible, not negotiated.
71
+
72
+ ---
73
+
74
+ ## The Installer Contract
75
+
76
+ The skill **does not reimplement** linter/formatter dispatch. It installs a self-contained bundle (`scripts/style.sh`, `lint.sh`, `format.sh`, `init-formatters.sh`, templates) rooted in `scripts/style.sh`. All runtime dispatch — stack detection, `--modified` file filtering, `cargo fmt` vs `cargo fmt --check`, etc. — lives in that bundle. Upgrading the bundle upstream propagates to all installed targets via `formatters --sync`.
77
+
78
+ When in doubt about which tool runs on a given file, read `scripts/style.sh` functions `run_*_lint` and `run_*_format`. That file is the source of truth.
@@ -0,0 +1,178 @@
1
+ # Flag Reference
2
+
3
+ ## Contents
4
+
5
+ - Flag Matrix
6
+ - Per-Flag Examples
7
+
8
+ Detailed reference for every flag accepted by `formatters`. See `SKILL.md` for live phase logic.
9
+
10
+ ---
11
+
12
+ ## Flag Matrix
13
+
14
+ | Flag | Default | Affects phases | Writes to | Example |
15
+ | ------------------ | ----------- | ---------------- | ------------------------------------------------------------------- | ---------------------------------------- |
16
+ | `--dry-run` | off | 3 (halt) | nothing | `formatters --dry-run` |
17
+ | `--force` | off | 4, 5 (overwrite) | all target files | `formatters --force` |
18
+ | `--yes` | off | 3 (skip prompt) | existing files preserved | `formatters --yes` |
19
+ | `--sync` | auto | 4 (prune) | `scripts/` bundle + removes stale managed files | `formatters --sync` |
20
+ | `--copy` | on | 4 (install) | `scripts/` bundle | `formatters --copy` |
21
+ | `--ci` | off | 5 (extend) | `.github/workflows/lint.yml` + `.github/workflows/lint-autofix.yml` | `formatters --ci` |
22
+ | `--no-autofix` | off | 5 (skip) | (suppresses `lint-autofix.yml`; only meaningful with `--ci`) | `formatters --ci --no-autofix` |
23
+ | `--hooks` | off | 5 (extend) | `lefthook.yml` or `.husky/pre-commit` | `formatters --hooks` |
24
+ | `--no-aliases` | off | 5 (skip) | (suppresses package.json / Makefile / justfile alias injection) | `formatters --no-aliases` |
25
+ | `--no-docs` | off | 5 (skip) | (suppresses README section append) | `formatters --no-docs` |
26
+ | `--target=<dir>` | `$PWD` | 1 (override) | configs + scripts land in `<dir>` | `formatters --target=~/projects/app` |
27
+ | `--profile=<lang>` | auto-detect | 1 (override) | (forces stack flags) | `formatters --profile=rust` |
28
+ | `--rust` | auto | 4 (enable) | `rustfmt.toml`, `clippy.toml` | `formatters --rust` |
29
+ | `--ts` | auto | 4 (enable) | `biome.json`, `tsconfig.json`, `package.json` (TS scaffold only) | `formatters --ts` |
30
+ | `--python` | auto | 4 (enable) | `pyproject.toml` (scaffold only; refuses to overwrite) | `formatters --python` |
31
+ | `--go` | auto | 4 (enable) | `.golangci.yml` | `formatters --go` |
32
+ | `--docs` | auto | 4 (enable) | `.markdownlint.json`, `.prettierrc`, `.prettierignore` | `formatters --docs` |
33
+ | `--shell` | auto | 4 (enable) | `.gitignore` entry for `/tools/shellcheck` + bundled shell tooling | `formatters --shell` |
34
+ | `--all` | off | 4 (enable all) | every stack regardless of detection | `formatters --all` |
35
+
36
+ ### Flag precedence
37
+
38
+ 1. `--profile=<lang>` **and** explicit stack flags (`--rust`, `--ts`, …) override auto-detection entirely.
39
+ 2. `--all` is shorthand for every per-stack flag; it does not override `--no-aliases` or `--no-docs`.
40
+ 3. `--force` implies `--yes`; `--yes --force` are both accepted for clarity.
41
+ 4. `--sync` and `--copy` are mutually exclusive. If neither is passed, `--sync` is chosen when `has_style_bundle=true`, otherwise `--copy`.
42
+ 5. `--dry-run` wins over everything: the phase runs for reporting only, no writes.
43
+
44
+ ### `--profile` accepted values
45
+
46
+ | Value | Skips detection? | Effect |
47
+ | --------- | ---------------- | --------------------------------------------------------------- |
48
+ | `rust` | yes | Forces `--rust` |
49
+ | `ts-node` | yes | Forces `--ts` and `--docs` |
50
+ | `python` | yes | Forces `--python` |
51
+ | `go` | yes | Forces `--go` |
52
+ | `docs` | yes | Forces `--docs` only (useful for pure-docs repos) |
53
+ | `mixed` | yes | Forces every stack whose matching manifest exists in the target |
54
+
55
+ ---
56
+
57
+ ## Per-Flag Examples
58
+
59
+ ### `--dry-run`
60
+
61
+ Preview everything without writing. Combines with any other flag.
62
+
63
+ ```
64
+ formatters --dry-run
65
+ formatters --dry-run --ci --hooks
66
+ ```
67
+
68
+ ### `--force`
69
+
70
+ Non-interactive overwrite. Required when running in CI or over existing user-authored configs.
71
+
72
+ ```
73
+ formatters --force --yes
74
+ ```
75
+
76
+ ### `--sync`
77
+
78
+ Re-run after a prior install. Prunes managed files that were removed from the upstream bundle. Safe to run periodically.
79
+
80
+ ```
81
+ formatters --sync
82
+ ```
83
+
84
+ ### `--ci`
85
+
86
+ Emit `.github/workflows/lint.yml` (authoritative check) **and** `.github/workflows/lint-autofix.yml` (applies `./scripts/style.sh format` + `lint --fix` and pushes fixes back to same-repo PRs). Each destination is managed independently — an existing file is skipped unless `--force` is also passed.
87
+
88
+ The check workflow runs on every pull request and on pushes to the default branch (detected via `git symbolic-ref refs/remotes/origin/HEAD`, falling back to `main`) and to `release/**` maintenance branches, so patch lines cut under the release-branches model (see `/ycc:release-model`) stay linted.
89
+
90
+ The autofix workflow:
91
+
92
+ - Triggers on pull requests to the target repo's default branch (detected via `git symbolic-ref refs/remotes/origin/HEAD`, falling back to `main`).
93
+ - Skips fork PRs via `github.event.pull_request.head.repo.full_name == github.repository` — `GITHUB_TOKEN` cannot push to fork branches.
94
+ - Commits as `github-actions[bot]`; the check workflow (`lint.yml`) still runs authoritatively on the resulting push.
95
+ - Carries a commented `git add -u -- . ':(exclude)...'` placeholder — customize after install if the project has generated files that should not be auto-fixed.
96
+
97
+ ```
98
+ formatters --ci # installs both workflows
99
+ formatters --ci --force # overwrite both if they already exist
100
+ formatters --ci --no-autofix # install only lint.yml (check-only)
101
+ ```
102
+
103
+ ### `--no-autofix`
104
+
105
+ Only meaningful when `--ci` is set. Skips installing `lint-autofix.yml`. The existing check workflow (`lint.yml`) is still installed. Use when a repo has branch-protection rules that forbid bot pushes, or when the team prefers to run formatters exclusively via pre-commit hooks.
106
+
107
+ ```
108
+ formatters --ci --no-autofix
109
+ ```
110
+
111
+ ### `--hooks`
112
+
113
+ Wire a pre-commit hook via lefthook (default) or husky (if `.husky/` is detected). Always prints a `git commit --no-verify` escape reminder.
114
+
115
+ The emitted pre-commit commands call `./scripts/style.sh lint --staged` and
116
+ `./scripts/style.sh format --staged`, which scope work to files in the git
117
+ index only (fast feedback). The bundled `style.sh` accepts `--modified`,
118
+ `--staged`, or `--unstaged` as mutually-exclusive scope flags — see
119
+ `./scripts/style.sh lint --help` for details.
120
+
121
+ If `lefthook.yml` already exists (e.g., because `init --git` ran first),
122
+ `apply-hooks.sh` merges its `pre-commit` block into the existing file rather
123
+ than overwriting, so the init-owned `pre-push` and `commit-msg` stages are
124
+ preserved.
125
+
126
+ ```
127
+ formatters --hooks
128
+ ```
129
+
130
+ ### `--no-aliases` / `--no-docs`
131
+
132
+ Opt out of the post-install sugar. Useful when the target project already has a custom Makefile or docs pipeline.
133
+
134
+ ```
135
+ formatters --no-aliases
136
+ formatters --no-aliases --no-docs
137
+ ```
138
+
139
+ ### `--target=<dir>`
140
+
141
+ Install into a directory other than `$PWD`. The directory must exist and should be a git repo (hooks refuse otherwise).
142
+
143
+ ```
144
+ formatters --target=~/projects/new-app
145
+ ```
146
+
147
+ ### `--profile=<lang>`
148
+
149
+ Skip detection entirely and force a stack set. Auto-detection already ignores
150
+ gitignored files and well-known vendored/build directories (`node_modules`,
151
+ `dist`, `vendor`, `.venv`, …), so this is mainly needed to force a specific stack.
152
+ To drop a vendored tree that is **committed and not gitignored**, list it in
153
+ `.style-excludes` or `STYLE_EXTRA_EXCLUDES` instead (see
154
+ `references/stack-detection.md`).
155
+
156
+ ```
157
+ formatters --profile=rust
158
+ formatters --profile=mixed --target=./monorepo
159
+ ```
160
+
161
+ ### Per-stack flags (`--rust`, `--ts`, `--python`, `--go`, `--docs`, `--shell`)
162
+
163
+ Enable one or more specific stacks explicitly. When any per-stack flag is passed, auto-detection is suppressed and only the named stacks run.
164
+
165
+ ```
166
+ formatters --rust --go
167
+ formatters --ts --docs
168
+ ```
169
+
170
+ When `--ts` and `--docs` are both enabled, Biome owns JS/TS/CSS/JSON/JSONC and Prettier is limited to Markdown/YAML so the formatters do not overlap.
171
+
172
+ ### `--all`
173
+
174
+ Install configs for every supported stack regardless of detection. Useful for template repos or scaffolding an empty project ahead of code.
175
+
176
+ ```
177
+ formatters --all
178
+ ```
@@ -0,0 +1,119 @@
1
+ # Stack Detection
2
+
3
+ ## Contents
4
+
5
+ - Detection Predicates
6
+ - Manifest + Config Probes
7
+ - Heuristics for Merging with Existing Configs
8
+ - Adding a New Stack
9
+
10
+ How `profile-style.sh` decides which language tracks and configs apply to a target project. Predicates mirror the upstream logic in `scripts/style.sh` (`detect_*_project` functions, roughly lines 133–181). Keep this table in sync when upstream changes.
11
+
12
+ ---
13
+
14
+ ## Detection Predicates
15
+
16
+ | Stack | Positive if any match | Notes |
17
+ | ------ | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
18
+ | Rust | `Cargo.toml` exists **OR** any `*.rs` file exists | Workspace and crate repos both pass |
19
+ | Go | `go.mod` exists **OR** any `*.go` file exists | |
20
+ | TS/JS | any `tsconfig*.json` **OR** `biome.json(c)` **OR** `*.ts/.tsx/.js/.jsx/.mjs/.cjs/.mts/.cts` | Covers Node, Deno, Bun, browser, and edge runtimes |
21
+ | Python | `pyproject.toml` **OR** `requirements.txt` **OR** `setup.py` **OR** any `*.py/*.pyi` | |
22
+ | Docs | any `.markdownlint*` or `.prettierrc*` exists **OR** any `*.md/.mdx/.yaml/.yml` **OR** `*.json/.jsonc` when TS/JS is not detected | Docs track yields JSON/JSONC to Biome in TS/JS repos |
23
+ | Shell | any `*.sh` file | Always attempted when shellcheck is on the PATH |
24
+
25
+ ### Ignore-aware enumeration
26
+
27
+ The suffix-based checks go through `directory_has_suffixes` — a thin wrapper over
28
+ `dir_has_source_suffix` in `bundle/lib/excludes.sh`. Detection enumerates only
29
+ **project source**, i.e. the same set the linter operates on:
30
+
31
+ - **Git worktree** → `git ls-files --cached --others --exclude-standard`, so
32
+ `.gitignore` is honored (tracked + brand-new untracked files, minus ignored ones).
33
+ - **Non-git dir** → a `find` fallback that prunes `.git/`.
34
+
35
+ Both then drop `STYLE_EXCLUDES` paths (`node_modules`, `dist`, `build`, `out`,
36
+ `vendor`, `.venv`, `__pycache__`, the tool caches, generated bundle dirs, …).
37
+ The unambiguous dependency/cache dirs listed in `STYLE_EXCLUDES_ANY_DEPTH`
38
+ (`node_modules`, `vendor`, `.venv`, `venv`, `__pycache__`, `.mypy_cache`,
39
+ `.pytest_cache`, `.ruff_cache`) are pruned at **any** depth; every other entry —
40
+ including generic words like `env`, `build`, `out` — matches **root-relative only**
41
+ so a legitimately-tracked nested source dir is never silently dropped.
42
+
43
+ Net effect: a stray `*.rs`/`*.py` inside `node_modules/`, a build-output dir, or
44
+ any gitignored/vendored tree no longer flips `detect_*` to `true`. `profile-style.sh`
45
+ and `style.sh` share this one enumeration, so detection and linting can never
46
+ disagree about what counts as source.
47
+
48
+ ### User excludes (committed vendored trees)
49
+
50
+ A vendored tree that is committed **and not gitignored** is still source to git.
51
+ Declare it non-source for both detection and linting with either:
52
+
53
+ - **`.style-excludes`** at the project root — one entry per line; blank lines,
54
+ `#` lines and `entry # comment` trailing comments are ignored (a `#` inside an entry is
55
+ kept). Example:
56
+
57
+ ```text
58
+ # checked-in reference data
59
+ config/data/trashguide
60
+ third_party
61
+ ```
62
+
63
+ - **`STYLE_EXTRA_EXCLUDES`** env var — whitespace- or colon-separated entries, for
64
+ CI or one-off runs (`STYLE_EXTRA_EXCLUDES="third_party:gen" ./scripts/style.sh lint`).
65
+
66
+ Entries are appended to `STYLE_EXCLUDES` and match **root-relative** (the path
67
+ itself or anything under `<entry>/`); a leading `./` or trailing `/` is ignored.
68
+ When any user exclude is set, full-repo Python runs pass the filtered file list to
69
+ ruff/black instead of `.`; explicitly passed files bypass ruff/black's own
70
+ `exclude` settings unless `force-exclude` is enabled in their config. Tools that scan the tree themselves (`cargo`,
71
+ `golangci-lint`, `tsc`) do not see these entries — use their own config to skip
72
+ the path.
73
+
74
+ ---
75
+
76
+ ## Manifest + Config Probes
77
+
78
+ In addition to stack detection, `profile-style.sh` emits existence flags for known config files. The skill uses these to decide whether to create vs skip vs merge during the install phase.
79
+
80
+ | Probe key | Source | Default action on re-run |
81
+ | -------------------------------- | --------------------------------------------------------- | --------------------------------------------------- |
82
+ | `has_style_bundle` | `scripts/.style-bundle-manifest` exists | Prefer `--sync` on install |
83
+ | `has_package_json` | `package.json` at target root | Merge `scripts` block via `jq` |
84
+ | `has_makefile` | `Makefile` at target root | Append targets with duplicate-target guard |
85
+ | `has_justfile` | `justfile` at target root | Append recipes |
86
+ | `has_existing_prettierrc` | `.prettierrc` / `.prettierrc.json` / `.prettierrc.y(a)ml` | Skip template; warn on conflict |
87
+ | `has_existing_biome_json` | `biome.json` or `biome.jsonc` | Skip template; warn on conflict |
88
+ | `has_existing_golangci_yml` | `.golangci.yml` or `.golangci.yaml` | Skip template; warn on conflict |
89
+ | `has_existing_rustfmt_toml` | `rustfmt.toml` | Skip template |
90
+ | `has_existing_clippy_toml` | `clippy.toml` | Skip template |
91
+ | `has_existing_pyproject_ruff` | `pyproject.toml` contains `[tool.ruff]` or `[tool.black]` | Refuse to overwrite; emit merge hint |
92
+ | `has_existing_markdownlint_json` | `.markdownlint.json` or `.markdownlint.jsonc` | Skip template |
93
+ | `has_lefthook` | `lefthook.yml` or `lefthook.yaml` | Merge `pre-commit` commands (preserve other stages) |
94
+ | `has_husky` | `.husky/` directory | Append to `.husky/pre-commit` |
95
+ | `has_pre_commit_framework` | `.pre-commit-config.yaml` | Leave alone; skill does not manage it |
96
+ | `ci_provider` | `.github/workflows/` / `.gitlab-ci.yml` / `.circleci/` | Drives which CI template to emit |
97
+
98
+ ---
99
+
100
+ ## Heuristics for Merging with Existing Configs
101
+
102
+ 1. **Never silently overwrite a user-authored config.** Compare canonical content (or presence of `[tool.*]` tables for TOML) and present a diff before prompting.
103
+ 2. **Tool configs are idempotent targets.** Re-running with `--sync` on an unchanged project is a no-op by design.
104
+ 3. **package.json scripts merge, never replace.** `apply-aliases.sh` loads the user's existing `scripts` object, adds only keys not already present, and writes back via `jq`. Existing `lint`, `format`, etc. are preserved unless `--force` is passed.
105
+ 4. **Docs appending is anchored.** `apply-docs.sh` matches `^##\s+Linting & Formatting\s*$` to decide between create vs replace. No heading match → append at EOF with a single blank-line separator.
106
+ 5. **Hook tooling is detected before installed.** If both `lefthook.yml` and `.husky/` exist, prefer lefthook (repo-shared) and log the choice.
107
+
108
+ ---
109
+
110
+ ## Adding a New Stack
111
+
112
+ If upstream `scripts/style.sh` gains a new language track:
113
+
114
+ 1. Add a row to the predicate table above.
115
+ 2. Add a matching probe key if relevant.
116
+ 3. Extend `profile-style.sh` to emit the new `detect_<lang>=true|false` line.
117
+ 4. Add a conditional block to `references/templates/readme-section.md.tmpl`.
118
+ 5. Update `flag-reference.md` with the new per-stack enable flag.
119
+ 6. Regenerate bundles and re-run `./scripts/validate.sh`.
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ # Auto-fix + format staged files, then re-stage the fixes.
5
+ # To bypass once: git commit --no-verify
6
+
7
+ set -e
8
+
9
+ ./scripts/style.sh lint --modified --fix
10
+ ./scripts/style.sh format --modified
11
+
12
+ # Re-stage any files the fixer touched.
13
+ git diff --name-only --diff-filter=ACMR | xargs -r git add
@@ -0,0 +1,31 @@
1
+ # --- formatters managed block (do not edit by hand) ---
2
+ lint:
3
+ ./scripts/style.sh lint
4
+
5
+ lint-modified:
6
+ ./scripts/style.sh lint --modified
7
+
8
+ lint-staged:
9
+ ./scripts/style.sh lint --staged
10
+
11
+ lint-unstaged:
12
+ ./scripts/style.sh lint --unstaged
13
+
14
+ lint-fix:
15
+ ./scripts/style.sh lint --fix
16
+
17
+ lint-fix-modified:
18
+ ./scripts/style.sh lint --fix --modified
19
+
20
+ format:
21
+ ./scripts/style.sh format
22
+
23
+ format-modified:
24
+ ./scripts/style.sh format --modified
25
+
26
+ format-staged:
27
+ ./scripts/style.sh format --staged
28
+
29
+ format-unstaged:
30
+ ./scripts/style.sh format --unstaged
31
+ # --- end formatters managed block ---
@@ -0,0 +1,22 @@
1
+ # lefthook.yml — managed by formatters
2
+ #
3
+ # Stage ownership (when used with init --git):
4
+ # - formatters owns the `pre-commit` lint/format stage (this file).
5
+ # - init --git owns `pre-push` (test/validate) and `commit-msg` (commitlint).
6
+ # If an init-emitted lefthook.yml already exists, apply-hooks.sh merges these
7
+ # commands into its `pre-commit` block instead of overwriting.
8
+
9
+ pre-commit:
10
+ parallel: true
11
+ commands:
12
+ style-lint:
13
+ run: ./scripts/style.sh lint --staged --fix
14
+ stage_fixed: true
15
+ style-format:
16
+ run: ./scripts/style.sh format --staged
17
+ stage_fixed: true
18
+
19
+ pre-push:
20
+ commands:
21
+ style-ci:
22
+ run: ./scripts/style.sh lint
@@ -0,0 +1,94 @@
1
+ name: Lint autofix
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [{{DEFAULT_BRANCH}}]
6
+
7
+ permissions:
8
+ contents: write
9
+
10
+ concurrency:
11
+ group: lint-autofix-${{ github.event.pull_request.number || github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ format-and-push:
16
+ name: Format and push fixes
17
+ # Fork PRs cannot be pushed back to; the check workflow (lint.yml) still runs authoritatively.
18
+ if: github.event.pull_request.head.repo.full_name == github.repository
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - name: Checkout PR head branch
22
+ uses: actions/checkout@v4
23
+ with:
24
+ ref: ${{ github.head_ref }}
25
+ fetch-depth: 0
26
+ token: ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ {{#IF_RUST}}
29
+ - uses: dtolnay/rust-toolchain@stable
30
+ with:
31
+ components: rustfmt, clippy
32
+ - uses: Swatinem/rust-cache@v2
33
+ {{/IF_RUST}}
34
+
35
+ {{#IF_GO}}
36
+ - uses: actions/setup-go@v5
37
+ with:
38
+ go-version: stable
39
+ cache: true
40
+ {{/IF_GO}}
41
+
42
+ {{#IF_TS}}
43
+ - uses: actions/setup-node@v4
44
+ with:
45
+ node-version: lts/*
46
+ cache: npm
47
+ - run: npm ci --no-audit --no-fund
48
+ {{/IF_TS}}
49
+
50
+ {{#IF_PYTHON}}
51
+ - uses: actions/setup-python@v5
52
+ with:
53
+ python-version: "3.12"
54
+ - run: pip install --no-cache-dir ruff black
55
+ {{/IF_PYTHON}}
56
+
57
+ {{#IF_SHELL}}
58
+ - name: Install shellcheck
59
+ run: ./scripts/install-shellcheck.sh
60
+ {{/IF_SHELL}}
61
+
62
+ {{#IF_DOCS}}
63
+ - uses: actions/setup-node@v4
64
+ with:
65
+ node-version: lts/*
66
+ {{/IF_DOCS}}
67
+
68
+ - name: Apply formatters
69
+ run: ./scripts/style.sh format
70
+
71
+ - name: Apply auto-fixable lint
72
+ # Unfixable violations are reported by the check workflow (lint.yml); do not block the push-back here.
73
+ run: ./scripts/style.sh lint --fix
74
+ continue-on-error: true
75
+
76
+ - name: Commit and push if changed
77
+ env:
78
+ PR_HEAD_REF: ${{ github.head_ref }}
79
+ run: |
80
+ git config user.name "github-actions[bot]"
81
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
82
+ if git diff --quiet && git diff --cached --quiet; then
83
+ echo "No autofix changes."
84
+ exit 0
85
+ fi
86
+ # Customize exclusions here, e.g.:
87
+ # git add -u -- . ':(exclude)CHANGELOG.md' ':(exclude)docs/internal/**'
88
+ git add -u -- .
89
+ if git diff --cached --quiet; then
90
+ echo "No autofix changes remain after exclusions."
91
+ exit 0
92
+ fi
93
+ git commit -m "chore: apply format + lint --fix (autofix workflow)"
94
+ git push origin "HEAD:${PR_HEAD_REF}"
@@ -0,0 +1,85 @@
1
+ name: Lint
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [{{DEFAULT_BRANCH}}, 'release/**']
7
+
8
+ concurrency:
9
+ group: lint-${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ {{#IF_RUST}}
14
+ lint-rust:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: dtolnay/rust-toolchain@stable
19
+ with:
20
+ components: rustfmt, clippy
21
+ - uses: Swatinem/rust-cache@v2
22
+ - run: ./scripts/style.sh lint --rust
23
+ {{/IF_RUST}}
24
+
25
+ {{#IF_GO}}
26
+ lint-go:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ - uses: actions/setup-go@v5
31
+ with:
32
+ go-version: stable
33
+ cache: true
34
+ - uses: golangci/golangci-lint-action@v6
35
+ with:
36
+ version: latest
37
+ args: --timeout=5m
38
+ {{/IF_GO}}
39
+
40
+ {{#IF_TS}}
41
+ lint-ts:
42
+ runs-on: ubuntu-latest
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ - uses: actions/setup-node@v4
46
+ with:
47
+ node-version: lts/*
48
+ cache: npm
49
+ - run: npm ci --no-audit --no-fund
50
+ - run: ./scripts/style.sh lint --ts
51
+ {{/IF_TS}}
52
+
53
+ {{#IF_PYTHON}}
54
+ lint-python:
55
+ runs-on: ubuntu-latest
56
+ steps:
57
+ - uses: actions/checkout@v4
58
+ - uses: actions/setup-python@v5
59
+ with:
60
+ python-version: "3.12"
61
+ - run: pip install --no-cache-dir ruff black
62
+ - run: ./scripts/style.sh lint --python
63
+ {{/IF_PYTHON}}
64
+
65
+ {{#IF_SHELL}}
66
+ lint-shell:
67
+ runs-on: ubuntu-latest
68
+ steps:
69
+ - uses: actions/checkout@v4
70
+ - name: Install shellcheck
71
+ run: ./scripts/install-shellcheck.sh
72
+ - run: ./scripts/style.sh lint --shell
73
+ {{/IF_SHELL}}
74
+
75
+ {{#IF_DOCS}}
76
+ lint-docs:
77
+ runs-on: ubuntu-latest
78
+ steps:
79
+ - uses: actions/checkout@v4
80
+ - uses: actions/setup-node@v4
81
+ with:
82
+ node-version: lts/*
83
+ - run: npx --yes markdownlint-cli "**/*.md" --ignore-path .markdownlintignore
84
+ - run: npx --yes prettier --check "{{DOCS_PRETTIER_GLOB}}" --ignore-path .prettierignore
85
+ {{/IF_DOCS}}
@@ -0,0 +1,34 @@
1
+ # --- formatters managed block (do not edit by hand) ---
2
+ .PHONY: lint lint-modified lint-staged lint-unstaged lint-fix lint-fix-modified \
3
+ format format-modified format-staged format-unstaged
4
+
5
+ lint:
6
+ ./scripts/style.sh lint
7
+
8
+ lint-modified:
9
+ ./scripts/style.sh lint --modified
10
+
11
+ lint-staged:
12
+ ./scripts/style.sh lint --staged
13
+
14
+ lint-unstaged:
15
+ ./scripts/style.sh lint --unstaged
16
+
17
+ lint-fix:
18
+ ./scripts/style.sh lint --fix
19
+
20
+ lint-fix-modified:
21
+ ./scripts/style.sh lint --fix --modified
22
+
23
+ format:
24
+ ./scripts/style.sh format
25
+
26
+ format-modified:
27
+ ./scripts/style.sh format --modified
28
+
29
+ format-staged:
30
+ ./scripts/style.sh format --staged
31
+
32
+ format-unstaged:
33
+ ./scripts/style.sh format --unstaged
34
+ # --- end formatters managed block ---