claude-dev-env 2.12.0 → 2.14.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 (399) hide show
  1. package/AGENTS.md +61 -0
  2. package/CLAUDE.md +1 -57
  3. package/_shared/AGENTS.md +15 -0
  4. package/_shared/CLAUDE.md +1 -15
  5. package/_shared/advisor/AGENTS.md +22 -0
  6. package/_shared/advisor/CLAUDE.md +1 -22
  7. package/_shared/pr-loop/AGENTS.md +27 -0
  8. package/_shared/pr-loop/CLAUDE.md +1 -27
  9. package/_shared/pr-loop/scripts/AGENTS.md +35 -0
  10. package/_shared/pr-loop/scripts/CLAUDE.md +1 -35
  11. package/_shared/pr-loop/scripts/code_rules_gate.py +2 -3
  12. package/_shared/pr-loop/scripts/code_rules_gate_parts/AGENTS.md +42 -0
  13. package/_shared/pr-loop/scripts/code_rules_gate_parts/CLAUDE.md +1 -42
  14. package/_shared/pr-loop/scripts/pr_loop_shared_constants/AGENTS.md +26 -0
  15. package/_shared/pr-loop/scripts/pr_loop_shared_constants/CLAUDE.md +1 -26
  16. package/_shared/pr-loop/scripts/test_code_rules_gate.py +0 -26
  17. package/_shared/pr-loop/scripts/tests/AGENTS.md +44 -0
  18. package/_shared/pr-loop/scripts/tests/CLAUDE.md +1 -44
  19. package/_shared/process-tree/AGENTS.md +41 -0
  20. package/_shared/process-tree/CLAUDE.md +1 -41
  21. package/agents/AGENTS.md +31 -0
  22. package/agents/CLAUDE.md +1 -32
  23. package/agents/clean-coder.md +6 -6
  24. package/agents/pr-description-writer.md +11 -81
  25. package/agents/test_agent_frontmatter.py +4 -4
  26. package/audit-rubrics/AGENTS.md +43 -0
  27. package/audit-rubrics/CLAUDE.md +1 -43
  28. package/audit-rubrics/category_rubrics/AGENTS.md +37 -0
  29. package/audit-rubrics/category_rubrics/CLAUDE.md +1 -37
  30. package/audit-rubrics/prompts/AGENTS.md +37 -0
  31. package/audit-rubrics/prompts/CLAUDE.md +1 -37
  32. package/bin/AGENTS.md +112 -0
  33. package/bin/CLAUDE.md +1 -112
  34. package/bin/ever-shipped-skills.mjs +1 -0
  35. package/bin/install-constants.mjs +6 -7
  36. package/bin/install.mjs +71 -13
  37. package/bin/install.prune.test.mjs +26 -0
  38. package/bin/install.settings-defaults.test.mjs +60 -33
  39. package/bin/install.test.mjs +36 -4
  40. package/commands/AGENTS.md +23 -0
  41. package/commands/CLAUDE.md +1 -23
  42. package/commands/hook-log-extract.md +3 -3
  43. package/commands/sr-loop.md +9 -5
  44. package/docs/AGENTS.md +32 -0
  45. package/docs/CLAUDE.md +1 -33
  46. package/docs/CODE_RULES.md +1 -1
  47. package/docs/imagegen.md +22 -0
  48. package/docs/references/AGENTS.md +17 -0
  49. package/docs/references/CLAUDE.md +1 -18
  50. package/hooks/AGENTS.md +31 -0
  51. package/hooks/CLAUDE.md +1 -31
  52. package/hooks/_gh_pr_author_swap_utils.py +14 -0
  53. package/hooks/advisory/AGENTS.md +16 -0
  54. package/hooks/advisory/CLAUDE.md +1 -16
  55. package/hooks/blocking/AGENTS.md +123 -0
  56. package/hooks/blocking/CLAUDE.md +1 -148
  57. package/hooks/blocking/claude_md_orphan_file_blocker_parts/AGENTS.md +28 -0
  58. package/hooks/blocking/claude_md_orphan_file_blocker_parts/CLAUDE.md +1 -28
  59. package/hooks/blocking/code_rules_banned_identifiers.py +1 -1
  60. package/hooks/blocking/code_rules_dead_module_constant.py +149 -37
  61. package/hooks/blocking/code_rules_probe_chains.py +6 -2
  62. package/hooks/blocking/config/AGENTS.md +10 -0
  63. package/hooks/blocking/config/CLAUDE.md +1 -22
  64. package/hooks/blocking/conventional_pr_title_gate.py +1 -2
  65. package/hooks/blocking/gh_pr_author_restore.py +7 -2
  66. package/hooks/blocking/intent_only_ending_blocker.py +11 -16
  67. package/hooks/blocking/inventory_intent_records/AGENTS.md +26 -0
  68. package/hooks/blocking/inventory_intent_records/CLAUDE.md +1 -26
  69. package/hooks/blocking/package_inventory_stale_blocker_parts/AGENTS.md +26 -0
  70. package/hooks/blocking/package_inventory_stale_blocker_parts/CLAUDE.md +1 -26
  71. package/hooks/blocking/pii_prevention_blocker_parts/AGENTS.md +24 -0
  72. package/hooks/blocking/pii_prevention_blocker_parts/CLAUDE.md +1 -24
  73. package/hooks/blocking/send_user_file_open_locally_blocker.py +1 -1
  74. package/hooks/blocking/stop_dispatcher.py +4 -4
  75. package/hooks/blocking/tdd_enforcer_parts/AGENTS.md +30 -0
  76. package/hooks/blocking/tdd_enforcer_parts/CLAUDE.md +1 -30
  77. package/hooks/blocking/test_bash_pre_tool_use_dispatcher.py +0 -3
  78. package/hooks/blocking/test_code_rules_enforcer_banned_prefixes.py +1 -1
  79. package/hooks/blocking/test_code_rules_enforcer_dead_module_constant.py +171 -0
  80. package/hooks/blocking/test_code_rules_enforcer_magic_allowlist.py +1 -1
  81. package/hooks/blocking/test_gh_pr_author_restore.py +2 -1
  82. package/hooks/blocking/test_intent_only_ending_blocker.py +4 -0
  83. package/hooks/blocking/test_pre_tool_use_dispatcher.py +6 -7
  84. package/hooks/blocking/test_send_user_file_open_locally_blocker.py +4 -3
  85. package/hooks/blocking/test_shared_stdin_adoption.py +0 -2
  86. package/hooks/diagnostic/AGENTS.md +43 -0
  87. package/hooks/diagnostic/CLAUDE.md +1 -43
  88. package/hooks/diagnostic/hook_log_extractor.py +4 -38
  89. package/hooks/diagnostic/hook_log_stop_wrapper.py +6 -155
  90. package/hooks/diagnostic/migrations/AGENTS.md +16 -0
  91. package/hooks/diagnostic/migrations/CLAUDE.md +1 -16
  92. package/hooks/diagnostic/queries/AGENTS.md +19 -0
  93. package/hooks/diagnostic/queries/CLAUDE.md +1 -19
  94. package/hooks/diagnostic/test_hook_log_extractor.py +10 -23
  95. package/hooks/diagnostic/test_hook_log_stop_wrapper.py +3 -331
  96. package/hooks/git-hooks/AGENTS.md +31 -0
  97. package/hooks/git-hooks/CLAUDE.md +1 -31
  98. package/hooks/git-hooks/git_hooks_constants/AGENTS.md +21 -0
  99. package/hooks/git-hooks/git_hooks_constants/CLAUDE.md +1 -21
  100. package/hooks/git-hooks/git_hooks_constants/__init__.py +4 -12
  101. package/hooks/git-hooks/pre_push.py +49 -118
  102. package/hooks/git-hooks/test_pre_push.py +111 -137
  103. package/hooks/hooks.json +0 -35
  104. package/hooks/hooks_constants/AGENTS.md +104 -0
  105. package/hooks/hooks_constants/CLAUDE.md +1 -113
  106. package/hooks/hooks_constants/bash_pre_tool_use_dispatcher_constants.py +0 -11
  107. package/hooks/hooks_constants/convergence_branch_constants.py +0 -1
  108. package/hooks/hooks_constants/fable_spawn_gate_constants.py +3 -4
  109. package/hooks/hooks_constants/hook_log_extractor_constants.py +1 -2
  110. package/hooks/hooks_constants/pre_tool_use_dispatcher_constants.py +0 -8
  111. package/hooks/hooks_constants/send_user_file_open_locally_blocker_constants.py +1 -6
  112. package/hooks/hooks_constants/stop_dispatcher_constants.py +0 -1
  113. package/hooks/hooks_constants/task_list_loop_starter_constants.py +4 -3
  114. package/hooks/hooks_constants/test_bash_pre_tool_use_dispatcher_constants.py +1 -26
  115. package/hooks/hooks_constants/test_pre_tool_use_dispatcher_constants.py +0 -5
  116. package/hooks/hooks_constants/test_stop_dispatcher_constants.py +0 -1
  117. package/hooks/hooks_constants/working_style_prompt_constants.py +29 -20
  118. package/hooks/lifecycle/AGENTS.md +18 -0
  119. package/hooks/lifecycle/CLAUDE.md +1 -20
  120. package/hooks/observability/AGENTS.md +20 -0
  121. package/hooks/observability/CLAUDE.md +1 -20
  122. package/hooks/session/AGENTS.md +33 -0
  123. package/hooks/session/CLAUDE.md +1 -33
  124. package/hooks/session/gh_pr_author_session_cleanup.py +7 -2
  125. package/hooks/session/task_list_loop_starter.py +3 -3
  126. package/hooks/session/test_gh_pr_author_session_cleanup.py +2 -1
  127. package/hooks/session/test_task_list_loop_starter.py +10 -2
  128. package/hooks/session/test_working_style_prompt.py +9 -4
  129. package/hooks/validation/AGENTS.md +20 -0
  130. package/hooks/validation/CLAUDE.md +1 -20
  131. package/hooks/validators/AGENTS.md +51 -0
  132. package/hooks/validators/CLAUDE.md +1 -51
  133. package/hooks/validators/health_check.py +52 -19
  134. package/hooks/validators/python_style_checks.py +1 -1
  135. package/hooks/validators/test_health_check.py +112 -27
  136. package/hooks/workflow/AGENTS.md +16 -0
  137. package/hooks/workflow/CLAUDE.md +1 -16
  138. package/installable-surfaces.manifest.json +1 -0
  139. package/output-styles/AGENTS.md +15 -0
  140. package/output-styles/CLAUDE.md +1 -15
  141. package/package.json +2 -1
  142. package/rules/AGENTS.md +61 -0
  143. package/rules/CLAUDE.md +1 -63
  144. package/rules/code-standards.md +5 -9
  145. package/rules/doc-prose-cuts.md +1 -1
  146. package/rules/gh-cli-conventions.md +0 -1
  147. package/rules/git-workflow.md +1 -3
  148. package/scripts/AGENTS.md +62 -0
  149. package/scripts/CLAUDE.md +1 -63
  150. package/scripts/_code_review_test_support.py +0 -95
  151. package/scripts/codex_compat_materializer.py +4 -0
  152. package/scripts/dev_env_scripts_constants/AGENTS.md +21 -0
  153. package/scripts/dev_env_scripts_constants/CLAUDE.md +1 -21
  154. package/scripts/dev_env_scripts_constants/code_review_constants.py +9 -98
  155. package/scripts/dev_env_scripts_constants/test_code_review_constants.py +1 -44
  156. package/scripts/invoke_code_review.py +8 -451
  157. package/scripts/sync_to_cursor/AGENTS.md +23 -0
  158. package/scripts/sync_to_cursor/CLAUDE.md +1 -23
  159. package/scripts/test_invoke_code_review.py +5 -61
  160. package/scripts/test_invoke_code_review_cli.py +1 -45
  161. package/scripts/test_invoke_code_review_contract.py +1 -118
  162. package/scripts/test_validate_instruction_pairs.py +90 -0
  163. package/scripts/test_verify_installable_package.py +5 -1
  164. package/scripts/tests/AGENTS.md +33 -0
  165. package/scripts/tests/CLAUDE.md +1 -33
  166. package/scripts/tests/test_codex_compat_materializer.py +36 -1
  167. package/scripts/validate_instruction_pairs.py +183 -0
  168. package/settings.json +1 -10
  169. package/skills/AGENTS.md +72 -0
  170. package/skills/CLAUDE.md +1 -64
  171. package/skills/_shared/AGENTS.md +44 -0
  172. package/skills/_shared/CLAUDE.md +1 -44
  173. package/skills/_shared/advisor/AGENTS.md +9 -0
  174. package/skills/_shared/advisor/CLAUDE.md +1 -9
  175. package/skills/_shared/pr-loop/AGENTS.md +50 -0
  176. package/skills/_shared/pr-loop/CLAUDE.md +1 -50
  177. package/skills/_shared/pr-loop/prompts/AGENTS.md +9 -0
  178. package/skills/_shared/pr-loop/prompts/CLAUDE.md +1 -9
  179. package/skills/_shared/pr-loop/scripts/AGENTS.md +35 -0
  180. package/skills/_shared/pr-loop/scripts/CLAUDE.md +1 -35
  181. package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/AGENTS.md +24 -0
  182. package/skills/_shared/pr-loop/scripts/skills_pr_loop_constants/CLAUDE.md +1 -24
  183. package/skills/anthropic-plan/AGENTS.md +34 -0
  184. package/skills/anthropic-plan/CLAUDE.md +1 -34
  185. package/skills/anthropic-plan/scripts/AGENTS.md +11 -0
  186. package/skills/anthropic-plan/scripts/CLAUDE.md +1 -11
  187. package/skills/anthropic-plan/scripts/anthropic_plan_scripts_constants/AGENTS.md +16 -0
  188. package/skills/anthropic-plan/scripts/anthropic_plan_scripts_constants/CLAUDE.md +1 -16
  189. package/skills/anthropic-plan/templates/AGENTS.md +13 -0
  190. package/skills/anthropic-plan/templates/CLAUDE.md +1 -13
  191. package/skills/anthropic-plan/workflow/AGENTS.md +14 -0
  192. package/skills/anthropic-plan/workflow/CLAUDE.md +1 -14
  193. package/skills/auditing-claude-config/AGENTS.md +21 -0
  194. package/skills/auditing-claude-config/CLAUDE.md +1 -21
  195. package/skills/autoconverge/AGENTS.md +36 -0
  196. package/skills/autoconverge/CLAUDE.md +1 -36
  197. package/skills/autoconverge/reference/AGENTS.md +16 -0
  198. package/skills/autoconverge/reference/CLAUDE.md +1 -16
  199. package/skills/autoconverge/reference/convergence.md +7 -7
  200. package/skills/autoconverge/reference/gotchas.md +3 -10
  201. package/skills/autoconverge/workflow/AGENTS.md +26 -0
  202. package/skills/autoconverge/workflow/CLAUDE.md +1 -26
  203. package/skills/autoconverge/workflow/autoconverge_report_constants/AGENTS.md +16 -0
  204. package/skills/autoconverge/workflow/autoconverge_report_constants/CLAUDE.md +1 -16
  205. package/skills/autoconverge/workflow/converge.contract.test.mjs +53 -1388
  206. package/skills/autoconverge/workflow/converge.copilot-gate.test.mjs +4 -3
  207. package/skills/autoconverge/workflow/converge.fix-recovery.test.mjs +33 -493
  208. package/skills/autoconverge/workflow/converge.merge-conflict.test.mjs +15 -97
  209. package/skills/autoconverge/workflow/converge.mjs +201 -238
  210. package/skills/autoconverge/workflow/converge.precatch.test.mjs +1 -1
  211. package/skills/bugteam/AGENTS.md +30 -0
  212. package/skills/bugteam/CLAUDE.md +1 -30
  213. package/skills/bugteam/CONSTRAINTS.md +1 -1
  214. package/skills/bugteam/SKILL.md +9 -0
  215. package/skills/bugteam/reference/AGENTS.md +20 -0
  216. package/skills/bugteam/reference/CLAUDE.md +1 -20
  217. package/skills/bugteam/reference/audit-and-teammates.md +10 -6
  218. package/skills/bugteam/reference/obstacles/AGENTS.md +24 -0
  219. package/skills/bugteam/reference/obstacles/CLAUDE.md +1 -24
  220. package/skills/bugteam/scripts/AGENTS.md +30 -0
  221. package/skills/bugteam/scripts/CLAUDE.md +1 -30
  222. package/skills/bugteam/scripts/bugteam_scripts_constants/AGENTS.md +18 -0
  223. package/skills/bugteam/scripts/bugteam_scripts_constants/CLAUDE.md +1 -18
  224. package/skills/bugteam/test_skill_additions.py +9 -0
  225. package/skills/closeout/reference/handoff-prompt-template.md +1 -1
  226. package/skills/codex-review/AGENTS.md +46 -0
  227. package/skills/codex-review/CLAUDE.md +1 -46
  228. package/skills/codex-review/reference/AGENTS.md +15 -0
  229. package/skills/codex-review/reference/CLAUDE.md +1 -15
  230. package/skills/codex-review/scripts/codex_review_scripts_constants/AGENTS.md +18 -0
  231. package/skills/codex-review/scripts/codex_review_scripts_constants/CLAUDE.md +1 -18
  232. package/skills/codex-review/test_skill_scaffold.py +3 -3
  233. package/skills/comments/SKILL.md +65 -0
  234. package/skills/copilot-review/AGENTS.md +18 -0
  235. package/skills/copilot-review/CLAUDE.md +1 -18
  236. package/skills/descriptions/SKILL.md +51 -0
  237. package/skills/emergencies/SKILL.md +42 -0
  238. package/skills/everything-search/AGENTS.md +17 -0
  239. package/skills/everything-search/CLAUDE.md +1 -17
  240. package/skills/fresh-branch/AGENTS.md +14 -0
  241. package/skills/fresh-branch/CLAUDE.md +1 -14
  242. package/skills/grok-spawn/AGENTS.md +28 -0
  243. package/skills/grok-spawn/CLAUDE.md +1 -28
  244. package/skills/orchestrator/SKILL.md +2 -4
  245. package/skills/plan-to-pr/SKILL.md +6 -7
  246. package/skills/plan-to-pr/reference/final-validation-tasks.md +1 -1
  247. package/skills/plan-to-pr/reference/process-inventory.md +2 -2
  248. package/skills/plan-to-pr/reference/review-loop.md +2 -2
  249. package/skills/plan-to-pr/reference/run-record.schema.json +1 -1
  250. package/skills/plan-to-pr/reference/task-seeds.md +1 -1
  251. package/skills/plan-to-pr/reference/task-ticket.md +3 -4
  252. package/skills/plan-to-pr/scripts/config/constants.py +1 -2
  253. package/skills/plan-to-pr/scripts/test_validate_protocol.py +1 -1
  254. package/skills/plan-to-pr/test_skill_contract.py +2 -2
  255. package/skills/pr-converge/AGENTS.md +32 -0
  256. package/skills/pr-converge/CLAUDE.md +1 -32
  257. package/skills/pr-converge/SKILL.md +13 -16
  258. package/skills/pr-converge/pr_converge_skill_constants/AGENTS.md +26 -0
  259. package/skills/pr-converge/pr_converge_skill_constants/CLAUDE.md +1 -26
  260. package/skills/pr-converge/reference/AGENTS.md +28 -0
  261. package/skills/pr-converge/reference/CLAUDE.md +1 -28
  262. package/skills/pr-converge/reference/obstacles/AGENTS.md +23 -0
  263. package/skills/pr-converge/reference/obstacles/CLAUDE.md +1 -23
  264. package/skills/pr-converge/reference/progress-checklist.md +6 -5
  265. package/skills/pr-converge/reference/state-schema.md +1 -27
  266. package/skills/pr-converge/scripts/AGENTS.md +46 -0
  267. package/skills/pr-converge/scripts/CLAUDE.md +1 -46
  268. package/skills/pr-converge/scripts/pr_converge_scripts_constants/AGENTS.md +18 -0
  269. package/skills/pr-converge/scripts/pr_converge_scripts_constants/CLAUDE.md +1 -18
  270. package/skills/pr-converge/workflows/AGENTS.md +16 -0
  271. package/skills/pr-converge/workflows/CLAUDE.md +1 -16
  272. package/skills/pr-loop-cloud-transport/SKILL.md +1 -1
  273. package/skills/pr-loop-cloud-transport/reference/identity-and-hooks.md +3 -3
  274. package/skills/pr-loop-lifecycle/SKILL.md +1 -1
  275. package/skills/pr-loop-lifecycle/reference/teardown-publish-permissions.md +1 -1
  276. package/skills/prototype/SKILL.md +4 -4
  277. package/skills/prototype/reference/honest-limitations.md +5 -5
  278. package/skills/prototype/reference/promotion-tasks.md +2 -2
  279. package/skills/prototype/workflows/promotion.md +4 -6
  280. package/skills/rebase/AGENTS.md +32 -0
  281. package/skills/rebase/CLAUDE.md +1 -32
  282. package/skills/recall/AGENTS.md +30 -0
  283. package/skills/recall/CLAUDE.md +1 -30
  284. package/skills/remember/AGENTS.md +31 -0
  285. package/skills/remember/CLAUDE.md +1 -31
  286. package/skills/reviews/SKILL.md +85 -0
  287. package/skills/session-log/AGENTS.md +32 -0
  288. package/skills/session-log/CLAUDE.md +1 -32
  289. package/skills/session-tidy/AGENTS.md +36 -0
  290. package/skills/session-tidy/CLAUDE.md +1 -36
  291. package/skills/skill-builder/AGENTS.md +49 -0
  292. package/skills/skill-builder/CLAUDE.md +1 -49
  293. package/skills/skill-builder/references/AGENTS.md +25 -0
  294. package/skills/skill-builder/references/CLAUDE.md +1 -25
  295. package/skills/skill-builder/references/deterministic-elements.md +1 -1
  296. package/skills/skill-builder/templates/AGENTS.md +14 -0
  297. package/skills/skill-builder/templates/CLAUDE.md +1 -14
  298. package/skills/skill-builder/workflows/AGENTS.md +19 -0
  299. package/skills/skill-builder/workflows/CLAUDE.md +1 -19
  300. package/skills/small-cl/SKILL.md +52 -0
  301. package/skills/task-build/AGENTS.md +29 -0
  302. package/skills/task-build/CLAUDE.md +1 -29
  303. package/skills/update/AGENTS.md +38 -0
  304. package/skills/update/CLAUDE.md +1 -38
  305. package/system-prompts/AGENTS.md +17 -0
  306. package/system-prompts/CLAUDE.md +1 -17
  307. package/system-prompts/software-engineer.xml +3 -3
  308. package/agents/code-verifier.md +0 -74
  309. package/docs/PR_DESCRIPTION_GUIDE.md +0 -157
  310. package/docs/references/code-review-enforcement.md +0 -132
  311. package/hooks/blocking/code_review_enforcement_config_bootstrap.py +0 -53
  312. package/hooks/blocking/code_review_gate_deny.py +0 -74
  313. package/hooks/blocking/code_review_pr_create_gate.py +0 -198
  314. package/hooks/blocking/code_review_push_gate.py +0 -145
  315. package/hooks/blocking/code_review_stamp_directory_write_blocker.py +0 -348
  316. package/hooks/blocking/code_review_stamp_store.py +0 -233
  317. package/hooks/blocking/code_review_stamp_write_blocker_parts/__init__.py +0 -7
  318. package/hooks/blocking/code_review_stamp_write_blocker_parts/conftest.py +0 -15
  319. package/hooks/blocking/code_review_stamp_write_blocker_parts/obfuscated_stamp_path_reference.py +0 -212
  320. package/hooks/blocking/code_review_stamp_write_blocker_parts/split_directory_change_into_stamp.py +0 -138
  321. package/hooks/blocking/code_review_stamp_write_blocker_parts/test_obfuscated_stamp_path_reference.py +0 -49
  322. package/hooks/blocking/code_review_stamp_write_blocker_parts/test_split_directory_change_into_stamp.py +0 -38
  323. package/hooks/blocking/code_verifier_spawn_preflight_gate.py +0 -483
  324. package/hooks/blocking/config/code_review_enforcement_constants.py +0 -143
  325. package/hooks/blocking/config/test_code_review_enforcement_constants.py +0 -166
  326. package/hooks/blocking/config/verified_commit_constants.py +0 -160
  327. package/hooks/blocking/config/verified_commit_context_constants.py +0 -21
  328. package/hooks/blocking/config/verified_commit_gate_output_constants.py +0 -14
  329. package/hooks/blocking/conftest.py +0 -123
  330. package/hooks/blocking/convergence_gate_blocker.py +0 -310
  331. package/hooks/blocking/pr_converge_bugteam_enforcer.py +0 -170
  332. package/hooks/blocking/pr_description_body_audit.py +0 -148
  333. package/hooks/blocking/pr_description_command_parser.py +0 -237
  334. package/hooks/blocking/pr_description_enforcer.py +0 -227
  335. package/hooks/blocking/pr_description_pr_number.py +0 -155
  336. package/hooks/blocking/pr_description_proof_of_work.py +0 -385
  337. package/hooks/blocking/pr_description_readability.py +0 -364
  338. package/hooks/blocking/reviewer_spawn_gate.py +0 -182
  339. package/hooks/blocking/test_code_review_enforcement_config_bootstrap.py +0 -62
  340. package/hooks/blocking/test_code_review_gate_deny.py +0 -54
  341. package/hooks/blocking/test_code_review_pr_create_gate.py +0 -199
  342. package/hooks/blocking/test_code_review_push_gate.py +0 -205
  343. package/hooks/blocking/test_code_review_stamp_directory_write_blocker.py +0 -199
  344. package/hooks/blocking/test_code_review_stamp_store.py +0 -205
  345. package/hooks/blocking/test_code_verifier_spawn_preflight_gate.py +0 -710
  346. package/hooks/blocking/test_code_verifier_tools_contract.py +0 -28
  347. package/hooks/blocking/test_convergence_gate_blocker.py +0 -428
  348. package/hooks/blocking/test_pr_converge_bugteam_enforcer.py +0 -311
  349. package/hooks/blocking/test_pr_converge_bugteam_enforcer_state_tolerance.py +0 -184
  350. package/hooks/blocking/test_pr_description_enforcer.py +0 -221
  351. package/hooks/blocking/test_pr_description_enforcer_body_audit.py +0 -247
  352. package/hooks/blocking/test_pr_description_enforcer_body_rules.py +0 -493
  353. package/hooks/blocking/test_pr_description_enforcer_command_parser.py +0 -366
  354. package/hooks/blocking/test_pr_description_enforcer_pr_number.py +0 -159
  355. package/hooks/blocking/test_pr_description_enforcer_proof_gate.py +0 -175
  356. package/hooks/blocking/test_pr_description_enforcer_readability.py +0 -443
  357. package/hooks/blocking/test_pr_description_proof_of_work.py +0 -313
  358. package/hooks/blocking/test_reviewer_spawn_gate.py +0 -230
  359. package/hooks/blocking/test_verdict_directory_write_blocker.py +0 -804
  360. package/hooks/blocking/test_verification_verdict_store.py +0 -974
  361. package/hooks/blocking/test_verified_commit_config_bootstrap.py +0 -67
  362. package/hooks/blocking/test_verified_commit_docs_delta.py +0 -176
  363. package/hooks/blocking/test_verified_commit_gate.py +0 -581
  364. package/hooks/blocking/test_verified_commit_gate_additional_context.py +0 -134
  365. package/hooks/blocking/test_verified_commit_message_accuracy_blocker.py +0 -131
  366. package/hooks/blocking/test_verifier_verdict_minter.py +0 -299
  367. package/hooks/blocking/tests/test_verified_commit_gate.py +0 -41
  368. package/hooks/blocking/verdict_directory_write_blocker.py +0 -687
  369. package/hooks/blocking/verification_verdict_store.py +0 -1039
  370. package/hooks/blocking/verified_commit_config_bootstrap.py +0 -63
  371. package/hooks/blocking/verified_commit_gate.py +0 -113
  372. package/hooks/blocking/verified_commit_gate_parts/CLAUDE.md +0 -28
  373. package/hooks/blocking/verified_commit_gate_parts/__init__.py +0 -1
  374. package/hooks/blocking/verified_commit_gate_parts/command_tokenization.py +0 -174
  375. package/hooks/blocking/verified_commit_gate_parts/deny_payload.py +0 -53
  376. package/hooks/blocking/verified_commit_gate_parts/deny_reason.py +0 -80
  377. package/hooks/blocking/verified_commit_gate_parts/directory_resolution.py +0 -170
  378. package/hooks/blocking/verified_commit_gate_parts/gated_invocations.py +0 -217
  379. package/hooks/blocking/verified_commit_gate_parts/tests/conftest.py +0 -10
  380. package/hooks/blocking/verified_commit_gate_parts/tests/test_command_tokenization.py +0 -94
  381. package/hooks/blocking/verified_commit_gate_parts/tests/test_deny_payload.py +0 -17
  382. package/hooks/blocking/verified_commit_gate_parts/tests/test_deny_reason.py +0 -38
  383. package/hooks/blocking/verified_commit_gate_parts/tests/test_directory_resolution.py +0 -71
  384. package/hooks/blocking/verified_commit_gate_parts/tests/test_gated_invocations.py +0 -96
  385. package/hooks/blocking/verified_commit_message_accuracy_blocker.py +0 -167
  386. package/hooks/blocking/verifier_verdict_minter.py +0 -280
  387. package/hooks/hooks_constants/code_verifier_spawn_preflight_gate_constants.py +0 -64
  388. package/hooks/hooks_constants/convergence_gate_blocker_constants.py +0 -53
  389. package/hooks/hooks_constants/pr_converge_bugteam_enforcer_constants.py +0 -55
  390. package/hooks/hooks_constants/pr_converge_bugteam_enforcer_state.py +0 -67
  391. package/hooks/hooks_constants/pr_description_enforcer_constants.py +0 -167
  392. package/hooks/hooks_constants/pr_description_proof_of_work_constants.py +0 -107
  393. package/hooks/hooks_constants/reviewer_spawn_gate_constants.py +0 -41
  394. package/hooks/hooks_constants/test_pr_description_enforcer_constants.py +0 -292
  395. package/hooks/lifecycle/pr_converge_bugteam_skill_tracker.py +0 -198
  396. package/hooks/lifecycle/test_pr_converge_bugteam_skill_tracker.py +0 -283
  397. package/rules/proof-of-work-pr-comments.md +0 -22
  398. package/rules/verified-commit-gate-skip.md +0 -4
  399. package/scripts/Show-Asset.ps1 +0 -106
@@ -1,32 +1 @@
1
- # rebase
2
-
3
- Rebase a branch onto its base ref with verification gates that catch logically broken results before pushing.
4
-
5
- **Trigger:** `/rebase`, "rebase this branch", "PR has merge conflicts", "rebase onto main", force-push to update remote branch history.
6
-
7
- ## Purpose
8
-
9
- The default failure mode for a rebase is shipping code that compiled but does not run. This skill prevents that by running real import checks, test collection, and symbol scans after every rebase — not just syntax validation.
10
-
11
- ## Key files
12
-
13
- | File | Purpose |
14
- |---|---|
15
- | `SKILL.md` | The complete skill — four phases (pre-rebase analysis, during rebase, verification gates, push). No companion files. |
16
-
17
- ## Four phases
18
-
19
- | Phase | Key actions |
20
- |---|---|
21
- | 1 — Pre-rebase analysis | Resolve base via `gh pr view`, classify scenario (stacked/squash/long-lived), fetch fresh, scan commit messages for deleted/renamed symbols |
22
- | 2 — During rebase | Verify `--skip` with a diff, audit auto-merged files with `git diff --name-only --diff-filter=M ORIG_HEAD` |
23
- | 3 — Verification gates | `python -m compileall`, `pytest --collect-only -q`, targeted test run, reference scan for removals |
24
- | 4 — Push | Explicit authorization required; `--force-with-lease=<branch>:<sha>` only; verify mergeability after push |
25
-
26
- ## Conventions
27
-
28
- - Force-push requires explicit operator authorization every time — auto mode does not bypass this.
29
- - `--force-with-lease=<branch>:<sha>` only; bare `--force` is refused.
30
- - Never force-push `main`, `master`, `release/*`, `production`, or any multi-author branch.
31
- - Symbol scans prefer Serena (`find_referencing_symbols`) then the Grep tool, then shell grep as a last resort.
32
- - `ORIG_HEAD` is the correct ref for auto-merged file audits mid-rebase; `HEAD@{1}` shifts per step.
1
+ @AGENTS.md
@@ -0,0 +1,30 @@
1
+ # recall
2
+
3
+ Retrieves prior session context and decisions from the Obsidian vault for the current project.
4
+
5
+ **Trigger:** `/recall [search query or project name]`.
6
+
7
+ ## Purpose
8
+
9
+ Surfaces relevant session reports, decision notes, and research from the Obsidian vault before starting work. Prevents repeating decisions already made or missing known gotchas.
10
+
11
+ ## Key files
12
+
13
+ | File | Purpose |
14
+ |---|---|
15
+ | `SKILL.md` | The complete skill — six steps (resolve query, frontmatter search, content search, read top matches, present with attribution, handle no results). No companion files. |
16
+
17
+ ## How the skill runs
18
+
19
+ 1. Uses `$ARGUMENTS` as the search query, or infers the project name from conversation context.
20
+ 2. Searches by frontmatter first (`mcp__obsidian__search_notes` with `searchFrontmatter: true`) to catch session reports and decision notes tagged with the project.
21
+ 3. Falls back to content keyword search when frontmatter search returns few results.
22
+ 4. Reads the top 3 most relevant notes via `mcp__obsidian__read_note`, preferring recent notes and decision summaries over raw research.
23
+ 5. Reports each note with its path, date, relevant excerpts, and whether any decisions are marked `status: Superseded`.
24
+ 6. States clearly when no vault history exists — never infers or invents history.
25
+
26
+ ## Conventions
27
+
28
+ - `disable-model-invocation: true` is not set; this skill does invoke the model to synthesize results.
29
+ - The skill is read-only: it never writes to the vault.
30
+ - Companion to `/remember` (which writes decisions) and `/session-log` (which writes session reports).
@@ -1,30 +1 @@
1
- # recall
2
-
3
- Retrieves prior session context and decisions from the Obsidian vault for the current project.
4
-
5
- **Trigger:** `/recall [search query or project name]`.
6
-
7
- ## Purpose
8
-
9
- Surfaces relevant session reports, decision notes, and research from the Obsidian vault before starting work. Prevents repeating decisions already made or missing known gotchas.
10
-
11
- ## Key files
12
-
13
- | File | Purpose |
14
- |---|---|
15
- | `SKILL.md` | The complete skill — six steps (resolve query, frontmatter search, content search, read top matches, present with attribution, handle no results). No companion files. |
16
-
17
- ## How the skill runs
18
-
19
- 1. Uses `$ARGUMENTS` as the search query, or infers the project name from conversation context.
20
- 2. Searches by frontmatter first (`mcp__obsidian__search_notes` with `searchFrontmatter: true`) to catch session reports and decision notes tagged with the project.
21
- 3. Falls back to content keyword search when frontmatter search returns few results.
22
- 4. Reads the top 3 most relevant notes via `mcp__obsidian__read_note`, preferring recent notes and decision summaries over raw research.
23
- 5. Reports each note with its path, date, relevant excerpts, and whether any decisions are marked `status: Superseded`.
24
- 6. States clearly when no vault history exists — never infers or invents history.
25
-
26
- ## Conventions
27
-
28
- - `disable-model-invocation: true` is not set; this skill does invoke the model to synthesize results.
29
- - The skill is read-only: it never writes to the vault.
30
- - Companion to `/remember` (which writes decisions) and `/session-log` (which writes session reports).
1
+ @AGENTS.md
@@ -0,0 +1,31 @@
1
+ # remember
2
+
3
+ Saves a decision, gotcha, or architectural choice to the Obsidian vault as a structured note.
4
+
5
+ **Trigger:** User-initiated only. `/remember [what to remember]`.
6
+
7
+ ## Purpose
8
+
9
+ Writes a decision, fact, procedure, or gotcha to `decisions/[Project] - [Short Title].md` in the Obsidian vault. Each note carries structured frontmatter and a body shaped by its type, making it searchable and readable via `/recall`.
10
+
11
+ ## Key files
12
+
13
+ | File | Purpose |
14
+ |---|---|
15
+ | `SKILL.md` | The complete skill — six steps (parse input, classify type, infer project, generate title, write to vault, confirm). No companion files. |
16
+
17
+ ## Four note types
18
+
19
+ | Type | Body format |
20
+ |---|---|
21
+ | `decision` | Decision + Reasoning + Alternatives + Consequences |
22
+ | `gotcha` | Gotcha + Symptom + Fix |
23
+ | `procedural` | 1–3 clear sentences describing the how-to |
24
+ | `fact` | 1–3 clear sentences stating the fact |
25
+
26
+ ## Conventions
27
+
28
+ - `disable-model-invocation: true` is set — runs without a secondary LLM call.
29
+ - Writes via `mcp__obsidian__write_note` only; never edits existing notes.
30
+ - Path pattern: `decisions/[Project] - [Short Title].md`.
31
+ - Companion to `/recall` (reads vault) and `/session-log` (triggers decision extraction at session end).
@@ -1,31 +1 @@
1
- # remember
2
-
3
- Saves a decision, gotcha, or architectural choice to the Obsidian vault as a structured note.
4
-
5
- **Trigger:** User-initiated only. `/remember [what to remember]`.
6
-
7
- ## Purpose
8
-
9
- Writes a decision, fact, procedure, or gotcha to `decisions/[Project] - [Short Title].md` in the Obsidian vault. Each note carries structured frontmatter and a body shaped by its type, making it searchable and readable via `/recall`.
10
-
11
- ## Key files
12
-
13
- | File | Purpose |
14
- |---|---|
15
- | `SKILL.md` | The complete skill — six steps (parse input, classify type, infer project, generate title, write to vault, confirm). No companion files. |
16
-
17
- ## Four note types
18
-
19
- | Type | Body format |
20
- |---|---|
21
- | `decision` | Decision + Reasoning + Alternatives + Consequences |
22
- | `gotcha` | Gotcha + Symptom + Fix |
23
- | `procedural` | 1–3 clear sentences describing the how-to |
24
- | `fact` | 1–3 clear sentences stating the fact |
25
-
26
- ## Conventions
27
-
28
- - `disable-model-invocation: true` is set — runs without a secondary LLM call.
29
- - Writes via `mcp__obsidian__write_note` only; never edits existing notes.
30
- - Path pattern: `decisions/[Project] - [Short Title].md`.
31
- - Companion to `/recall` (reads vault) and `/session-log` (triggers decision extraction at session end).
1
+ @AGENTS.md
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: reviews
3
+ description: >-
4
+ Review a pull request or code change for code health. Use when a user asks to
5
+ "code review", "review this PR", or "review this change".
6
+ ---
7
+
8
+ # Code Review Guide
9
+
10
+ Use this guide to evaluate a pull request or code change. Apply the repository's
11
+ the repository's checked-in review contract and `CODE_RULES.md` as its project-specific quality rubric.
12
+
13
+ ## Review Judgment
14
+
15
+ Review work supports code health. Frame each conclusion around observable
16
+ behavior, maintainability, risk, and the change's intended outcome.
17
+
18
+ - Use technical evidence and repository conventions to resolve trade-offs.
19
+ - Mark a required change when it materially affects correctness, security,
20
+ reliability, data integrity, maintainability, or the stated behavior.
21
+ - Mark optional improvement as `Consider` or `Nit` so the author can prioritize
22
+ the work accurately.
23
+ - Accept an evidence-backed explanation when it satisfies the applicable
24
+ quality rubric.
25
+
26
+ ## Evaluation Criteria
27
+
28
+ Evaluate the changed code and the surrounding context for:
29
+
30
+ - Design fit, interfaces, complexity, and future maintenance cost.
31
+ - Functional behavior, user impact, edge cases, concurrency, privacy,
32
+ security, and accessibility where applicable.
33
+ - Tests that exercise the changed behavior and distinguish regressions.
34
+ - Names, comments, documentation, and style against the repository rubric and
35
+ the applicable language guide.
36
+ - Migration, configuration, compatibility, and operational effects.
37
+
38
+ ## Review Workflow
39
+
40
+ 1. Read the pull request description and identify the intended outcome.
41
+ 2. Inspect the changed code, relevant callers, and the surrounding design.
42
+ 3. Run or assess relevant verification and identify its coverage boundaries.
43
+ 4. Write each finding with the affected location, observed effect, expected
44
+ outcome, and supporting evidence.
45
+ 5. State the reviewed scope, verification performed, and any remaining
46
+ uncertainty in the review output.
47
+
48
+ Use the [comment guide](../comments/SKILL.md#writing-useful-review-comments)
49
+ for finding wording and the [description guide](../descriptions/SKILL.md#reviewing-a-description)
50
+ for description content.
51
+
52
+ ## Execution Support
53
+
54
+ Use available runners for inspection, verification, and repository navigation.
55
+ This guide supplies the judgment criteria and the corresponding guide anchors.
56
+
57
+ ## Review Responsiveness
58
+
59
+ Begin a requested review at the next clean work boundary. Provide a useful
60
+ response promptly, including the completed scope and the remaining work when
61
+ context gathering continues.
62
+
63
+ Review the highest-impact design questions early. A focused response gives the
64
+ author a clear next action while the full assessment continues.
65
+
66
+ ## Resolving Disagreements
67
+
68
+ Consolidate a disagreement into one thread that records the relevant context,
69
+ technical rationale, and desired decision. Reassess the finding against the
70
+ repository rubric and accept a sound alternative that meets the same outcome.
71
+
72
+ Seek a maintainer or lead decision when the discussion requires ownership or
73
+ product direction beyond the available evidence. Keep the resulting decision in
74
+ the pull request record.
75
+
76
+ ## Related Guides
77
+
78
+ - Use [comments](../comments/SKILL.md#when-to-use-this-guide) to draft or answer
79
+ review feedback.
80
+ - Use [descriptions](../descriptions/SKILL.md#when-to-use-this-guide) to prepare
81
+ or assess pull request context.
82
+ - Use [emergencies](../emergencies/SKILL.md#emergency-classification) to classify
83
+ an urgent production change.
84
+ - Use [small-cl](../small-cl/SKILL.md#when-to-use-this-guide) to focus or split
85
+ a change that exceeds a clear review boundary.
@@ -0,0 +1,32 @@
1
+ # session-log
2
+
3
+ Logs a session report as a self-contained HTML page in the Obsidian vault, publishes it with the `Artifact` tool, extracts unrecorded decisions, tidies the project session folder, and outputs a `/rename` command.
4
+
5
+ **Trigger:** `/session-log`, "journal this session", "log this work", "session report", "save session", "capture session", "document what we did".
6
+
7
+ ## Purpose
8
+
9
+ Produces a self-contained HTML session report shaped to the session's character (feature build, incident, research, etc.) rather than a fixed template. The skill owns the vault path, session numbering, frontmatter contract, HTML composition and publishing, decision extraction, and folder hygiene.
10
+
11
+ ## Key files
12
+
13
+ | File | Purpose |
14
+ |---|---|
15
+ | `SKILL.md` | Hub — six steps, gotchas, backend detection, run-and-report checklist. |
16
+ | `templates/frontmatter.md` | The session-page frontmatter contract and the Step 3 notes block. |
17
+
18
+ ## Six steps
19
+
20
+ 1. **Backend detection** — headless vault (`ob --version` + `OBSIDIAN_VAULT_PATH`) then local vault (`~/.claude/vault/`). Session number from `[N]. *.html` and `[N]. *.md` files in the project folder.
21
+ 2. **Session metadata** — project name, session number, session ID from `CLAUDE_CODE_SESSION_ID`, date, title.
22
+ 3. **Compose and publish via the Artifact tool** — loads the `artifact-design` skill first, designs the shape for the session's character (e.g., a PR-writeup shape for feature builds, a timeline shape for incidents), writes the HTML, then publishes it with the `Artifact` tool using the fixed favicon `📓`.
23
+ 4. **Vault context tracking** — two Edit calls set `vault_context_retrieved` and append a vault-context line, then redeploy via `Artifact` on the same `file_path` so the URL stays the same.
24
+ 5. **Decision extraction** — scans conversation for unrecorded decisions; prompts user via `AskUserQuestion` before invoking `/remember`.
25
+ 6. **Session tidy** — audits `.html` files in the project folder for naming and frontmatter; auto-fixes minor issues and redeploys via `Artifact`.
26
+
27
+ ## Conventions
28
+
29
+ - Session reports use HTML — the Artifact tool publishes HTML or Markdown, and HTML gives the report designer more visual structure.
30
+ - `write_existing_file_blocker` rejects Write on existing paths — use Edit for all vault-context updates.
31
+ - The `Artifact` tool redeploys to the same URL on repeat calls with the same `file_path` within the current run — edits made in steps 3 and 5 to the session created this run never mint a new URL.
32
+ - Final step copies `/rename [Project] - [Primary Outcome]` to the clipboard via `pwsh Set-Clipboard`.
@@ -1,32 +1 @@
1
- # session-log
2
-
3
- Logs a session report as a self-contained HTML page in the Obsidian vault, publishes it with the `Artifact` tool, extracts unrecorded decisions, tidies the project session folder, and outputs a `/rename` command.
4
-
5
- **Trigger:** `/session-log`, "journal this session", "log this work", "session report", "save session", "capture session", "document what we did".
6
-
7
- ## Purpose
8
-
9
- Produces a self-contained HTML session report shaped to the session's character (feature build, incident, research, etc.) rather than a fixed template. The skill owns the vault path, session numbering, frontmatter contract, HTML composition and publishing, decision extraction, and folder hygiene.
10
-
11
- ## Key files
12
-
13
- | File | Purpose |
14
- |---|---|
15
- | `SKILL.md` | Hub — six steps, gotchas, backend detection, run-and-report checklist. |
16
- | `templates/frontmatter.md` | The session-page frontmatter contract and the Step 3 notes block. |
17
-
18
- ## Six steps
19
-
20
- 1. **Backend detection** — headless vault (`ob --version` + `OBSIDIAN_VAULT_PATH`) then local vault (`~/.claude/vault/`). Session number from `[N]. *.html` and `[N]. *.md` files in the project folder.
21
- 2. **Session metadata** — project name, session number, session ID from `CLAUDE_CODE_SESSION_ID`, date, title.
22
- 3. **Compose and publish via the Artifact tool** — loads the `artifact-design` skill first, designs the shape for the session's character (e.g., a PR-writeup shape for feature builds, a timeline shape for incidents), writes the HTML, then publishes it with the `Artifact` tool using the fixed favicon `📓`.
23
- 4. **Vault context tracking** — two Edit calls set `vault_context_retrieved` and append a vault-context line, then redeploy via `Artifact` on the same `file_path` so the URL stays the same.
24
- 5. **Decision extraction** — scans conversation for unrecorded decisions; prompts user via `AskUserQuestion` before invoking `/remember`.
25
- 6. **Session tidy** — audits `.html` files in the project folder for naming and frontmatter; auto-fixes minor issues and redeploys via `Artifact`.
26
-
27
- ## Conventions
28
-
29
- - Session reports use HTML — the Artifact tool publishes HTML or Markdown, and HTML gives the report designer more visual structure.
30
- - `write_existing_file_blocker` rejects Write on existing paths — use Edit for all vault-context updates.
31
- - The `Artifact` tool redeploys to the same URL on repeat calls with the same `file_path` within the current run — edits made in steps 3 and 5 to the session created this run never mint a new URL.
32
- - Final step copies `/rename [Project] - [Primary Outcome]` to the clipboard via `pwsh Set-Clipboard`.
1
+ @AGENTS.md
@@ -0,0 +1,36 @@
1
+ # session-tidy
2
+
3
+ Audits, cleans, and consolidates session logs in the Obsidian vault — fixes format drift, resolves orphaned next-steps, updates stale statuses, and generates project rollup summaries.
4
+
5
+ **Trigger:** `/session-tidy`, "tidy sessions", "clean up session logs", "session audit".
6
+
7
+ ## Purpose
8
+
9
+ Maintenance utility for the `sessions/[Project]/` vault directories. Enforces the session-log format contract, moves uncategorized files into project subfolders, and generates `Summary.md` rollup files for projects with 3+ sessions.
10
+
11
+ ## Key files
12
+
13
+ | File | Purpose |
14
+ |---|---|
15
+ | `SKILL.md` | The complete skill — four phases (preflight, audit, propose changes, execute + verify). No companion files. |
16
+
17
+ ## Format contract enforced
18
+
19
+ - **Path:** `sessions/[Project]/[N]. [Title].md`
20
+ - **Frontmatter:** `type`, `project`, `session`, `date`, `status`, `blocked`, `tags` — all needed.
21
+ - **Status rules:** `completed` + `blocked: true` is contradictory; `in-progress` or `blocked` older than 7 days is stale.
22
+ - **Content:** outcome-oriented `###` headers with one emoji; no play-by-play narration.
23
+
24
+ ## Four phases
25
+
26
+ 1. **Preflight** — resolve backend (headless vault, Obsidian MCP, or local vault).
27
+ 2. **Audit** — check each file for naming, frontmatter completeness, status coherence, orphaned next-steps, and categorization.
28
+ 3. **Propose changes** — report findings; wait for user approval before changing anything.
29
+ 4. **Execute + verify** — rename files, fix frontmatter, update statuses, clean orphaned next-steps, generate `Summary.md` rollups.
30
+
31
+ ## Conventions
32
+
33
+ - `disable-model-invocation: true` is set.
34
+ - Changes need explicit user approval from Phase 2's report — the skill never auto-applies without approval.
35
+ - Companion to `/session-log` (creates sessions) and `/recall` (reads vault).
36
+ - `/session-tidy` targets Markdown session format; HTML sessions from `/session-log` may be mis-audited or get incorrect rename proposals.
@@ -1,36 +1 @@
1
- # session-tidy
2
-
3
- Audits, cleans, and consolidates session logs in the Obsidian vault — fixes format drift, resolves orphaned next-steps, updates stale statuses, and generates project rollup summaries.
4
-
5
- **Trigger:** `/session-tidy`, "tidy sessions", "clean up session logs", "session audit".
6
-
7
- ## Purpose
8
-
9
- Maintenance utility for the `sessions/[Project]/` vault directories. Enforces the session-log format contract, moves uncategorized files into project subfolders, and generates `Summary.md` rollup files for projects with 3+ sessions.
10
-
11
- ## Key files
12
-
13
- | File | Purpose |
14
- |---|---|
15
- | `SKILL.md` | The complete skill — four phases (preflight, audit, propose changes, execute + verify). No companion files. |
16
-
17
- ## Format contract enforced
18
-
19
- - **Path:** `sessions/[Project]/[N]. [Title].md`
20
- - **Frontmatter:** `type`, `project`, `session`, `date`, `status`, `blocked`, `tags` — all needed.
21
- - **Status rules:** `completed` + `blocked: true` is contradictory; `in-progress` or `blocked` older than 7 days is stale.
22
- - **Content:** outcome-oriented `###` headers with one emoji; no play-by-play narration.
23
-
24
- ## Four phases
25
-
26
- 1. **Preflight** — resolve backend (headless vault, Obsidian MCP, or local vault).
27
- 2. **Audit** — check each file for naming, frontmatter completeness, status coherence, orphaned next-steps, and categorization.
28
- 3. **Propose changes** — report findings; wait for user approval before changing anything.
29
- 4. **Execute + verify** — rename files, fix frontmatter, update statuses, clean orphaned next-steps, generate `Summary.md` rollups.
30
-
31
- ## Conventions
32
-
33
- - `disable-model-invocation: true` is set.
34
- - Changes need explicit user approval from Phase 2's report — the skill never auto-applies without approval.
35
- - Companion to `/session-log` (creates sessions) and `/recall` (reads vault).
36
- - `/session-tidy` targets Markdown session format; HTML sessions from `/session-log` may be mis-audited or get incorrect rename proposals.
1
+ @AGENTS.md
@@ -0,0 +1,49 @@
1
+ # skill-builder
2
+
3
+ Orchestrates the skill-building lifecycle: classify type, scaffold folders, write via the `skill-writer-agent` agent, enforce modularity (sub-skills / composition), write description as a trigger catalog, require deterministic steps as code, self-audit, and refine from real usage.
4
+
5
+ **Trigger:** build a skill, new skill workflow, improve this skill, optimize skill description, skill development lifecycle, skill modularity, description trigger catalog, deterministic skill scripts.
6
+
7
+ ## Purpose
8
+
9
+ Enforces craft standards for new and existing skills. For quick one-off SKILL.md edits, spawn the `skill-writer-agent` agent directly. This skill classifies, scaffolds, gathers context (composition plan, description triggers, deterministic inventory), delegates writing, and self-audits.
10
+
11
+ ## Key files
12
+
13
+ | File | Purpose |
14
+ |---|---|
15
+ | `SKILL.md` | Hub — routing, principles, file index |
16
+ | `references/skill-types.md` | 9-type taxonomy with folder structures per type |
17
+ | `references/progressive-disclosure.md` | Hub pattern, folder conventions, hard rules |
18
+ | `references/skill-modularity.md` | Cross-skill modularity, sub-skills, composition plan |
19
+ | `references/description-field.md` | Description as trigger catalog (not story prose) |
20
+ | `references/deterministic-elements.md` | Deterministic steps as code/task seeds; no markdown checkbox boards |
21
+ | `references/self-audit-checklist.md` | Post-build audit task seeds (TaskCreate / TodoWrite) |
22
+ | `references/delegation-map.md` | Subagent handoff patterns and transcript guidance |
23
+ | `references/thariq-x-post-skills.json` | Source reference — lessons from building Claude Code skills |
24
+ | `workflows/new-skill.md` | Full lifecycle for new skills (6 steps) |
25
+ | `workflows/improve-skill.md` | Observation-first flow for existing skills (6 steps) |
26
+ | `workflows/polish-skill.md` | Description trigger-catalog audit and final validation (5 steps) |
27
+ | `templates/gap-analysis.md` | Gaps, composition plan, description triggers, deterministic inventory |
28
+
29
+ ## Subdirectories
30
+
31
+ | Directory | Purpose |
32
+ |---|---|
33
+ | `references/` | Best-practice specs and the audit checklist |
34
+ | `workflows/` | Step-by-step workflows for each lifecycle phase |
35
+ | `templates/` | Reusable templates for skill artifacts |
36
+
37
+ ## Routing
38
+
39
+ - **New skill** → `workflows/new-skill.md`
40
+ - **Improve existing** → `workflows/improve-skill.md`
41
+ - **Final polish only** → `workflows/polish-skill.md`
42
+ - **Ambiguous** → ask the user which one applies
43
+
44
+ ## Conventions
45
+
46
+ - Every build ends with the self-audit at `references/self-audit-checklist.md`; fix failures before delivery.
47
+ - Modularity items, description trigger-catalog items, and deterministic-element classification are mandatory on every delivery.
48
+ - `skill-builder` orchestrates; the `skill-writer-agent` agent authors. Handoff packet must include type, gap analysis, composition plan, description trigger catalog, deterministic inventory, degree-of-freedom assessment, and constraints.
49
+ - Claude A / Claude B: Claude A (this session) designs; Claude B (subagents) tests the built skill on real tasks.
@@ -1,49 +1 @@
1
- # skill-builder
2
-
3
- Orchestrates the skill-building lifecycle: classify type, scaffold folders, write via the `skill-writer-agent` agent, enforce modularity (sub-skills / composition), write description as a trigger catalog, require deterministic steps as code, self-audit, and refine from real usage.
4
-
5
- **Trigger:** build a skill, new skill workflow, improve this skill, optimize skill description, skill development lifecycle, skill modularity, description trigger catalog, deterministic skill scripts.
6
-
7
- ## Purpose
8
-
9
- Enforces craft standards for new and existing skills. For quick one-off SKILL.md edits, spawn the `skill-writer-agent` agent directly. This skill classifies, scaffolds, gathers context (composition plan, description triggers, deterministic inventory), delegates writing, and self-audits.
10
-
11
- ## Key files
12
-
13
- | File | Purpose |
14
- |---|---|
15
- | `SKILL.md` | Hub — routing, principles, file index |
16
- | `references/skill-types.md` | 9-type taxonomy with folder structures per type |
17
- | `references/progressive-disclosure.md` | Hub pattern, folder conventions, hard rules |
18
- | `references/skill-modularity.md` | Cross-skill modularity, sub-skills, composition plan |
19
- | `references/description-field.md` | Description as trigger catalog (not story prose) |
20
- | `references/deterministic-elements.md` | Deterministic steps as code/task seeds; no markdown checkbox boards |
21
- | `references/self-audit-checklist.md` | Post-build audit task seeds (TaskCreate / TodoWrite) |
22
- | `references/delegation-map.md` | Subagent handoff patterns and transcript guidance |
23
- | `references/thariq-x-post-skills.json` | Source reference — lessons from building Claude Code skills |
24
- | `workflows/new-skill.md` | Full lifecycle for new skills (6 steps) |
25
- | `workflows/improve-skill.md` | Observation-first flow for existing skills (6 steps) |
26
- | `workflows/polish-skill.md` | Description trigger-catalog audit and final validation (5 steps) |
27
- | `templates/gap-analysis.md` | Gaps, composition plan, description triggers, deterministic inventory |
28
-
29
- ## Subdirectories
30
-
31
- | Directory | Purpose |
32
- |---|---|
33
- | `references/` | Best-practice specs and the audit checklist |
34
- | `workflows/` | Step-by-step workflows for each lifecycle phase |
35
- | `templates/` | Reusable templates for skill artifacts |
36
-
37
- ## Routing
38
-
39
- - **New skill** → `workflows/new-skill.md`
40
- - **Improve existing** → `workflows/improve-skill.md`
41
- - **Final polish only** → `workflows/polish-skill.md`
42
- - **Ambiguous** → ask the user which one applies
43
-
44
- ## Conventions
45
-
46
- - Every build ends with the self-audit at `references/self-audit-checklist.md`; fix failures before delivery.
47
- - Modularity items, description trigger-catalog items, and deterministic-element classification are mandatory on every delivery.
48
- - `skill-builder` orchestrates; the `skill-writer-agent` agent authors. Handoff packet must include type, gap analysis, composition plan, description trigger catalog, deterministic inventory, degree-of-freedom assessment, and constraints.
49
- - Claude A / Claude B: Claude A (this session) designs; Claude B (subagents) tests the built skill on real tasks.
1
+ @AGENTS.md
@@ -0,0 +1,25 @@
1
+ # skill-builder/references
2
+
3
+ Best-practice specifications and the mandatory self-audit checklist for the `/skill-builder` skill.
4
+
5
+ ## Key files
6
+
7
+ | File | Purpose |
8
+ |---|---|
9
+ | `self-audit-checklist.md` | Audit task seeds after every build, improve, or polish. Register via TaskCreate / TodoWrite. |
10
+ | `skill-types.md` | 9-type skill taxonomy with folder structures per type. |
11
+ | `progressive-disclosure.md` | Hub pattern, folder conventions, hard rules: SKILL.md under 500 lines, one-level references. |
12
+ | `skill-modularity.md` | Cross-skill modularity: one capability, sub-skills by name, composition plan, anti-monolith. |
13
+ | `description-field.md` | Frontmatter description as trigger catalog (capability stem + Triggers). No story prose. |
14
+ | `deterministic-elements.md` | Classify process steps; deterministic ones ship as code, task seeds, or fixed artifacts under CODE_RULES. |
15
+ | `delegation-map.md` | Subagent handoff patterns and transcript guidance for skill-builder → skill-writer-agent. |
16
+ | `thariq-x-post-skills.json` | Source reference data from Anthropic lessons on building Claude Code skills. |
17
+
18
+ ## Conventions
19
+
20
+ - These files load on demand from `SKILL.md` routing — not all on every run.
21
+ - `self-audit-checklist.md` always loads at the end of a build cycle.
22
+ - Load `skill-modularity.md` during Gather and when scope/overlap is diagnosed.
23
+ - Load `description-field.md` during Gather, polish Step 1, and any activation diagnosis.
24
+ - Load `deterministic-elements.md` during Gather, when prose-as-code is diagnosed, and on polish structure audit.
25
+ - `thariq-x-post-skills.json` is source reference data, not executable content.
@@ -1,25 +1 @@
1
- # skill-builder/references
2
-
3
- Best-practice specifications and the mandatory self-audit checklist for the `/skill-builder` skill.
4
-
5
- ## Key files
6
-
7
- | File | Purpose |
8
- |---|---|
9
- | `self-audit-checklist.md` | Audit task seeds after every build, improve, or polish. Register via TaskCreate / TodoWrite. |
10
- | `skill-types.md` | 9-type skill taxonomy with folder structures per type. |
11
- | `progressive-disclosure.md` | Hub pattern, folder conventions, hard rules: SKILL.md under 500 lines, one-level references. |
12
- | `skill-modularity.md` | Cross-skill modularity: one capability, sub-skills by name, composition plan, anti-monolith. |
13
- | `description-field.md` | Frontmatter description as trigger catalog (capability stem + Triggers). No story prose. |
14
- | `deterministic-elements.md` | Classify process steps; deterministic ones ship as code, task seeds, or fixed artifacts under CODE_RULES. |
15
- | `delegation-map.md` | Subagent handoff patterns and transcript guidance for skill-builder → skill-writer-agent. |
16
- | `thariq-x-post-skills.json` | Source reference data from Anthropic lessons on building Claude Code skills. |
17
-
18
- ## Conventions
19
-
20
- - These files load on demand from `SKILL.md` routing — not all on every run.
21
- - `self-audit-checklist.md` always loads at the end of a build cycle.
22
- - Load `skill-modularity.md` during Gather and when scope/overlap is diagnosed.
23
- - Load `description-field.md` during Gather, polish Step 1, and any activation diagnosis.
24
- - Load `deterministic-elements.md` during Gather, when prose-as-code is diagnosed, and on polish structure audit.
25
- - `thariq-x-post-skills.json` is source reference data, not executable content.
1
+ @AGENTS.md
@@ -112,7 +112,7 @@ The seed list file lives under `reference/` (or is a named section of an existin
112
112
 
113
113
  ## CODE_RULES bar (every code file in the skill)
114
114
 
115
- Skill scripts are production code. They obey the same rules as the rest of the repo (`docs/CODE_RULES.md` / root `AGENTS.md`), including:
115
+ Skill scripts are production code. They obey the same rules as the rest of the repo (`docs/CODE_RULES.md`), including:
116
116
 
117
117
  - **Named constants** — no bare magic numbers/strings in function bodies; skill-local values live in a `*_constants/` package the script imports.
118
118
  - **Types** — parameters and returns annotated; no bare `Any` / untyped escape hatches.
@@ -0,0 +1,14 @@
1
+ # skill-builder/templates
2
+
3
+ Reusable templates for skill-building artifacts.
4
+
5
+ ## Key files
6
+
7
+ | File | Purpose |
8
+ |---|---|
9
+ | `gap-analysis.md` | Template for gaps, composition plan, description triggers, and deterministic-elements inventory. Used in new-skill Gather and improve diagnosis. |
10
+
11
+ ## Conventions
12
+
13
+ - Fill the template inline during the workflow; do not commit completed gap analyses to this directory.
14
+ - Composition plan, Description triggers, and Deterministic Elements Inventory sections are required before Write on a new skill.
@@ -1,14 +1 @@
1
- # skill-builder/templates
2
-
3
- Reusable templates for skill-building artifacts.
4
-
5
- ## Key files
6
-
7
- | File | Purpose |
8
- |---|---|
9
- | `gap-analysis.md` | Template for gaps, composition plan, description triggers, and deterministic-elements inventory. Used in new-skill Gather and improve diagnosis. |
10
-
11
- ## Conventions
12
-
13
- - Fill the template inline during the workflow; do not commit completed gap analyses to this directory.
14
- - Composition plan, Description triggers, and Deterministic Elements Inventory sections are required before Write on a new skill.
1
+ @AGENTS.md
@@ -0,0 +1,19 @@
1
+ # skill-builder/workflows
2
+
3
+ Step-by-step workflow files for each skill lifecycle phase, loaded on demand by `SKILL.md` routing.
4
+
5
+ ## Key files
6
+
7
+ | File | Purpose |
8
+ |---|---|
9
+ | `new-skill.md` | Full lifecycle: classify, scaffold, gather (composition + description triggers + deterministic inventory), write via the skill-writer-agent agent, self-audit, deliver. |
10
+ | `improve-skill.md` | Observation-first improve: diagnose activation/modularity/quality/deterministic prose, targeted fix, re-audit. |
11
+ | `polish-skill.md` | Description trigger-catalog audit; progressive disclosure + modularity + deterministic audit; task-seeded self-audit. |
12
+
13
+ ## Conventions
14
+
15
+ - `SKILL.md` routes to exactly one workflow file per invocation based on the user's intent (new / improve / polish).
16
+ - Each workflow references `../references/self-audit-checklist.md` at its final verification step.
17
+ - New and improve load `skill-modularity.md`, `description-field.md`, and `deterministic-elements.md` when gathering or diagnosing.
18
+ - Polish Step 1 is the dedicated description rewrite pass; Step 2 covers structure, modularity, and deterministic placement.
19
+ - Load only the workflow that matches the active task; the other two stay out of context.
@@ -1,19 +1 @@
1
- # skill-builder/workflows
2
-
3
- Step-by-step workflow files for each skill lifecycle phase, loaded on demand by `SKILL.md` routing.
4
-
5
- ## Key files
6
-
7
- | File | Purpose |
8
- |---|---|
9
- | `new-skill.md` | Full lifecycle: classify, scaffold, gather (composition + description triggers + deterministic inventory), write via the skill-writer-agent agent, self-audit, deliver. |
10
- | `improve-skill.md` | Observation-first improve: diagnose activation/modularity/quality/deterministic prose, targeted fix, re-audit. |
11
- | `polish-skill.md` | Description trigger-catalog audit; progressive disclosure + modularity + deterministic audit; task-seeded self-audit. |
12
-
13
- ## Conventions
14
-
15
- - `SKILL.md` routes to exactly one workflow file per invocation based on the user's intent (new / improve / polish).
16
- - Each workflow references `../references/self-audit-checklist.md` at its final verification step.
17
- - New and improve load `skill-modularity.md`, `description-field.md`, and `deterministic-elements.md` when gathering or diagnosing.
18
- - Polish Step 1 is the dedicated description rewrite pass; Step 2 covers structure, modularity, and deterministic placement.
19
- - Load only the workflow that matches the active task; the other two stay out of context.
1
+ @AGENTS.md