@baselane/packs 0.1.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 (450) hide show
  1. package/LICENSE +191 -0
  2. package/NOTICE +6 -0
  3. package/README.md +15 -0
  4. package/dist/ai-merge.d.ts +26 -0
  5. package/dist/ai-merge.js +165 -0
  6. package/dist/aliases.d.ts +7 -0
  7. package/dist/aliases.js +9 -0
  8. package/dist/compose-draft.d.ts +19 -0
  9. package/dist/compose-draft.js +170 -0
  10. package/dist/drift-detect.d.ts +8 -0
  11. package/dist/drift-detect.js +21 -0
  12. package/dist/index.d.ts +40 -0
  13. package/dist/index.js +21 -0
  14. package/dist/ingest.d.ts +25 -0
  15. package/dist/ingest.js +262 -0
  16. package/dist/load.d.ts +7 -0
  17. package/dist/load.js +29 -0
  18. package/dist/manifest.d.ts +71 -0
  19. package/dist/manifest.js +208 -0
  20. package/dist/materialize-harness.d.ts +15 -0
  21. package/dist/materialize-harness.js +48 -0
  22. package/dist/merge-region.d.ts +60 -0
  23. package/dist/merge-region.js +166 -0
  24. package/dist/overlap.d.ts +32 -0
  25. package/dist/overlap.js +49 -0
  26. package/dist/pack-from-fileset.d.ts +13 -0
  27. package/dist/pack-from-fileset.js +133 -0
  28. package/dist/render/adapters.d.ts +6 -0
  29. package/dist/render/adapters.js +43 -0
  30. package/dist/render/agents-md.d.ts +3 -0
  31. package/dist/render/agents-md.js +49 -0
  32. package/dist/render/bundle-union.d.ts +10 -0
  33. package/dist/render/bundle-union.js +87 -0
  34. package/dist/render/bundle.d.ts +3 -0
  35. package/dist/render/bundle.js +51 -0
  36. package/dist/render/capabilities.d.ts +19 -0
  37. package/dist/render/capabilities.js +86 -0
  38. package/dist/render/claude.d.ts +3 -0
  39. package/dist/render/claude.js +92 -0
  40. package/dist/render/design.d.ts +27 -0
  41. package/dist/render/design.js +443 -0
  42. package/dist/render/graph.d.ts +11 -0
  43. package/dist/render/graph.js +245 -0
  44. package/dist/render/memory.d.ts +35 -0
  45. package/dist/render/memory.js +353 -0
  46. package/dist/render/render-pack.d.ts +3 -0
  47. package/dist/render/render-pack.js +43 -0
  48. package/dist/render/repo-union.d.ts +14 -0
  49. package/dist/render/repo-union.js +94 -0
  50. package/dist/render/rollout-files.d.ts +18 -0
  51. package/dist/render/rollout-files.js +39 -0
  52. package/dist/render/system-map.d.ts +8 -0
  53. package/dist/render/system-map.js +73 -0
  54. package/dist/render/tasks.d.ts +32 -0
  55. package/dist/render/tasks.js +327 -0
  56. package/dist/render/wiki.d.ts +30 -0
  57. package/dist/render/wiki.js +288 -0
  58. package/dist/seed/graph-seed.d.ts +17 -0
  59. package/dist/seed/graph-seed.js +18 -0
  60. package/dist/seed/wiki-seed.d.ts +23 -0
  61. package/dist/seed/wiki-seed.js +133 -0
  62. package/dist/seed-skills.d.ts +18 -0
  63. package/dist/seed-skills.js +134 -0
  64. package/dist/types.d.ts +122 -0
  65. package/dist/types.js +1 -0
  66. package/dist/validate.d.ts +30 -0
  67. package/dist/validate.js +397 -0
  68. package/package.json +38 -0
  69. package/packs/database-review/pack.json +44 -0
  70. package/packs/database-review/rendered/.baselane/capabilities.json +10 -0
  71. package/packs/database-review/rendered/.baselane/system-map/README.md +18 -0
  72. package/packs/database-review/rendered/.claude/agents/database-reviewer.md +8 -0
  73. package/packs/database-review/rendered/.claude/commands/db-review.md +6 -0
  74. package/packs/database-review/rendered/.claude/commands/map.md +6 -0
  75. package/packs/database-review/rendered/.claude/settings.json +26 -0
  76. package/packs/database-review/rendered/.github/copilot-instructions.md +48 -0
  77. package/packs/database-review/rendered/AGENTS.md +66 -0
  78. package/packs/database-review/rendered/CLAUDE.md +9 -0
  79. package/packs/database-review/rendered/GEMINI.md +3 -0
  80. package/packs/disciplined-workflow/pack.json +63 -0
  81. package/packs/disciplined-workflow/rendered/.baselane/capabilities.json +10 -0
  82. package/packs/disciplined-workflow/rendered/.baselane/tasks/README.md +36 -0
  83. package/packs/disciplined-workflow/rendered/.claude/agents/plan-reviewer.md +8 -0
  84. package/packs/disciplined-workflow/rendered/.claude/agents/task-reviewer.md +8 -0
  85. package/packs/disciplined-workflow/rendered/.claude/commands/brainstorm.md +6 -0
  86. package/packs/disciplined-workflow/rendered/.claude/commands/execute-plan.md +6 -0
  87. package/packs/disciplined-workflow/rendered/.claude/commands/plan-work.md +6 -0
  88. package/packs/disciplined-workflow/rendered/.claude/commands/write-plan.md +6 -0
  89. package/packs/disciplined-workflow/rendered/.claude/settings.json +24 -0
  90. package/packs/disciplined-workflow/rendered/.github/copilot-instructions.md +24 -0
  91. package/packs/disciplined-workflow/rendered/AGENTS.md +43 -0
  92. package/packs/disciplined-workflow/rendered/CLAUDE.md +12 -0
  93. package/packs/disciplined-workflow/rendered/GEMINI.md +3 -0
  94. package/packs/frontend-design/pack.json +129 -0
  95. package/packs/frontend-design/rendered/.claude/skills/clone/SKILL.md +39 -0
  96. package/packs/frontend-design/rendered/.claude/skills/functional-ui/SKILL.md +78 -0
  97. package/packs/frontend-design/rendered/.claude/skills/gsap/SKILL.md +36 -0
  98. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-core.md +254 -0
  99. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-frameworks.md +266 -0
  100. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-performance.md +79 -0
  101. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-plugins.md +433 -0
  102. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-react.md +136 -0
  103. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-scrolltrigger.md +296 -0
  104. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-timeline.md +107 -0
  105. package/packs/frontend-design/rendered/.claude/skills/gsap/gsap-utils.md +284 -0
  106. package/packs/frontend-design/rendered/.claude/skills/marketing-ui/SKILL.md +36 -0
  107. package/packs/frontend-design/rendered/.claude/skills/shadcn/SKILL.md +267 -0
  108. package/packs/frontend-design/rendered/.claude/skills/shadcn/base-vs-radix.md +306 -0
  109. package/packs/frontend-design/rendered/.claude/skills/shadcn/cli.md +290 -0
  110. package/packs/frontend-design/rendered/.claude/skills/shadcn/composition.md +195 -0
  111. package/packs/frontend-design/rendered/.claude/skills/shadcn/customization.md +209 -0
  112. package/packs/frontend-design/rendered/.claude/skills/shadcn/forms.md +192 -0
  113. package/packs/frontend-design/rendered/.claude/skills/shadcn/icons.md +101 -0
  114. package/packs/frontend-design/rendered/.claude/skills/shadcn/mcp.md +105 -0
  115. package/packs/frontend-design/rendered/.claude/skills/shadcn/registry.md +277 -0
  116. package/packs/frontend-design/rendered/.claude/skills/shadcn/styling.md +162 -0
  117. package/packs/frontend-design/rendered/.github/copilot-instructions.md +474 -0
  118. package/packs/frontend-design/rendered/AGENTS.md +33 -0
  119. package/packs/frontend-design/rendered/CLAUDE.md +10 -0
  120. package/packs/frontend-design/rendered/GEMINI.md +456 -0
  121. package/packs/frontend-taste/pack.json +43 -0
  122. package/packs/frontend-taste/rendered/.baselane/capabilities.json +16 -0
  123. package/packs/frontend-taste/rendered/.claude/agents/taste-reviewer.md +8 -0
  124. package/packs/frontend-taste/rendered/.claude/commands/design-review.md +6 -0
  125. package/packs/frontend-taste/rendered/.claude/settings.json +15 -0
  126. package/packs/frontend-taste/rendered/.github/copilot-instructions.md +51 -0
  127. package/packs/frontend-taste/rendered/AGENTS.md +68 -0
  128. package/packs/frontend-taste/rendered/CLAUDE.md +8 -0
  129. package/packs/frontend-taste/rendered/DESIGN.md +72 -0
  130. package/packs/frontend-taste/rendered/GEMINI.md +3 -0
  131. package/packs/go-rules/pack.json +38 -0
  132. package/packs/go-rules/rendered/.claude/agents/go-reviewer.md +8 -0
  133. package/packs/go-rules/rendered/.claude/commands/go-review.md +6 -0
  134. package/packs/go-rules/rendered/.claude/settings.json +15 -0
  135. package/packs/go-rules/rendered/.github/copilot-instructions.md +44 -0
  136. package/packs/go-rules/rendered/AGENTS.md +54 -0
  137. package/packs/go-rules/rendered/CLAUDE.md +8 -0
  138. package/packs/go-rules/rendered/GEMINI.md +3 -0
  139. package/packs/python-rules/pack.json +38 -0
  140. package/packs/python-rules/rendered/.claude/agents/python-reviewer.md +8 -0
  141. package/packs/python-rules/rendered/.claude/commands/python-review.md +6 -0
  142. package/packs/python-rules/rendered/.claude/settings.json +15 -0
  143. package/packs/python-rules/rendered/.github/copilot-instructions.md +43 -0
  144. package/packs/python-rules/rendered/AGENTS.md +53 -0
  145. package/packs/python-rules/rendered/CLAUDE.md +8 -0
  146. package/packs/python-rules/rendered/GEMINI.md +3 -0
  147. package/packs/second-brain/pack.json +36 -0
  148. package/packs/second-brain/rendered/.baselane/capabilities.json +25 -0
  149. package/packs/second-brain/rendered/.baselane/memory/README.md +34 -0
  150. package/packs/second-brain/rendered/.baselane/wiki/README.md +62 -0
  151. package/packs/second-brain/rendered/.claude/agents/librarian.md +14 -0
  152. package/packs/second-brain/rendered/.claude/commands/remember.md +6 -0
  153. package/packs/second-brain/rendered/.claude/commands/wiki.md +6 -0
  154. package/packs/second-brain/rendered/.claude/settings.json +35 -0
  155. package/packs/second-brain/rendered/.github/copilot-instructions.md +24 -0
  156. package/packs/second-brain/rendered/AGENTS.md +41 -0
  157. package/packs/second-brain/rendered/CLAUDE.md +9 -0
  158. package/packs/second-brain/rendered/GEMINI.md +3 -0
  159. package/packs/security-review/pack.json +72 -0
  160. package/packs/security-review/rendered/.claude/agents/security-reviewer.md +8 -0
  161. package/packs/security-review/rendered/.claude/commands/security-audit.md +6 -0
  162. package/packs/security-review/rendered/.claude/commands/security-scan.md +6 -0
  163. package/packs/security-review/rendered/.claude/settings.json +35 -0
  164. package/packs/security-review/rendered/.claude/skills/security-audit/SKILL.md +44 -0
  165. package/packs/security-review/rendered/.claude/skills/validate-at-boundaries/SKILL.md +41 -0
  166. package/packs/security-review/rendered/.github/copilot-instructions.md +137 -0
  167. package/packs/security-review/rendered/AGENTS.md +66 -0
  168. package/packs/security-review/rendered/CLAUDE.md +11 -0
  169. package/packs/security-review/rendered/GEMINI.md +90 -0
  170. package/packs/software-engineer-harness/pack.json +98 -0
  171. package/packs/software-engineer-harness/rendered/.baselane/capabilities.json +15 -0
  172. package/packs/software-engineer-harness/rendered/.baselane/system-map/README.md +18 -0
  173. package/packs/software-engineer-harness/rendered/.baselane/tasks/README.md +36 -0
  174. package/packs/software-engineer-harness/rendered/.claude/agents/architect.md +8 -0
  175. package/packs/software-engineer-harness/rendered/.claude/agents/checker.md +8 -0
  176. package/packs/software-engineer-harness/rendered/.claude/agents/code-reviewer.md +8 -0
  177. package/packs/software-engineer-harness/rendered/.claude/agents/code-simplifier.md +8 -0
  178. package/packs/software-engineer-harness/rendered/.claude/agents/planner.md +8 -0
  179. package/packs/software-engineer-harness/rendered/.claude/agents/reviewer.md +8 -0
  180. package/packs/software-engineer-harness/rendered/.claude/commands/build-and-check.md +6 -0
  181. package/packs/software-engineer-harness/rendered/.claude/commands/map.md +6 -0
  182. package/packs/software-engineer-harness/rendered/.claude/commands/plan-change.md +6 -0
  183. package/packs/software-engineer-harness/rendered/.claude/commands/plan-work.md +6 -0
  184. package/packs/software-engineer-harness/rendered/.claude/commands/review-change.md +6 -0
  185. package/packs/software-engineer-harness/rendered/.claude/commands/tdd-task.md +6 -0
  186. package/packs/software-engineer-harness/rendered/.claude/settings.json +35 -0
  187. package/packs/software-engineer-harness/rendered/.github/copilot-instructions.md +37 -0
  188. package/packs/software-engineer-harness/rendered/AGENTS.md +58 -0
  189. package/packs/software-engineer-harness/rendered/CLAUDE.md +18 -0
  190. package/packs/software-engineer-harness/rendered/GEMINI.md +3 -0
  191. package/packs/systematic-debugging/pack.json +44 -0
  192. package/packs/systematic-debugging/rendered/.claude/agents/debugger.md +8 -0
  193. package/packs/systematic-debugging/rendered/.claude/commands/debug.md +6 -0
  194. package/packs/systematic-debugging/rendered/.claude/commands/root-cause.md +6 -0
  195. package/packs/systematic-debugging/rendered/.claude/settings.json +15 -0
  196. package/packs/systematic-debugging/rendered/.github/copilot-instructions.md +20 -0
  197. package/packs/systematic-debugging/rendered/AGENTS.md +31 -0
  198. package/packs/systematic-debugging/rendered/CLAUDE.md +9 -0
  199. package/packs/systematic-debugging/rendered/GEMINI.md +3 -0
  200. package/packs/token-efficiency-harness/pack.json +49 -0
  201. package/packs/token-efficiency-harness/rendered/.baselane/capabilities.json +10 -0
  202. package/packs/token-efficiency-harness/rendered/.baselane/memory/README.md +34 -0
  203. package/packs/token-efficiency-harness/rendered/.claude/agents/scout.md +8 -0
  204. package/packs/token-efficiency-harness/rendered/.claude/commands/handoff.md +6 -0
  205. package/packs/token-efficiency-harness/rendered/.claude/commands/remember.md +6 -0
  206. package/packs/token-efficiency-harness/rendered/.claude/commands/usage-audit.md +6 -0
  207. package/packs/token-efficiency-harness/rendered/.claude/settings.json +26 -0
  208. package/packs/token-efficiency-harness/rendered/.github/copilot-instructions.md +26 -0
  209. package/packs/token-efficiency-harness/rendered/AGENTS.md +44 -0
  210. package/packs/token-efficiency-harness/rendered/CLAUDE.md +10 -0
  211. package/packs/token-efficiency-harness/rendered/GEMINI.md +3 -0
  212. package/packs/typescript-rules/pack.json +46 -0
  213. package/packs/typescript-rules/rendered/.claude/agents/typescript-reviewer.md +8 -0
  214. package/packs/typescript-rules/rendered/.claude/commands/typescript-review.md +6 -0
  215. package/packs/typescript-rules/rendered/.claude/settings.json +15 -0
  216. package/packs/typescript-rules/rendered/.claude/skills/immutable-updates/SKILL.md +46 -0
  217. package/packs/typescript-rules/rendered/.github/copilot-instructions.md +89 -0
  218. package/packs/typescript-rules/rendered/AGENTS.md +55 -0
  219. package/packs/typescript-rules/rendered/CLAUDE.md +9 -0
  220. package/packs/typescript-rules/rendered/GEMINI.md +51 -0
  221. package/skills/algorithmic-art/LICENSE +202 -0
  222. package/skills/algorithmic-art/LICENSE.txt +202 -0
  223. package/skills/algorithmic-art/SKILL.md +405 -0
  224. package/skills/algorithmic-art/templates/generator_template.js +223 -0
  225. package/skills/algorithmic-art/templates/viewer.html +599 -0
  226. package/skills/brainstorming/LICENSE +21 -0
  227. package/skills/brainstorming/SKILL.md +159 -0
  228. package/skills/brainstorming/scripts/frame-template.html +213 -0
  229. package/skills/brainstorming/scripts/helper.js +167 -0
  230. package/skills/brainstorming/scripts/server.cjs +723 -0
  231. package/skills/brainstorming/scripts/start-server.sh +209 -0
  232. package/skills/brainstorming/scripts/stop-server.sh +120 -0
  233. package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  234. package/skills/brainstorming/visual-companion.md +291 -0
  235. package/skills/brand-guidelines/LICENSE +202 -0
  236. package/skills/brand-guidelines/LICENSE.txt +202 -0
  237. package/skills/brand-guidelines/SKILL.md +73 -0
  238. package/skills/canvas-design/LICENSE +202 -0
  239. package/skills/canvas-design/LICENSE.txt +202 -0
  240. package/skills/canvas-design/SKILL.md +130 -0
  241. package/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  242. package/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  243. package/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  244. package/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  245. package/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  246. package/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  247. package/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  248. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  249. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  250. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  251. package/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  252. package/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  253. package/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  254. package/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  255. package/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  256. package/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  257. package/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  258. package/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  259. package/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  260. package/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  261. package/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  262. package/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  263. package/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  264. package/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  265. package/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  266. package/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  267. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  268. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  269. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  270. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  271. package/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  272. package/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  273. package/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  274. package/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  275. package/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  276. package/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  277. package/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  278. package/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  279. package/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  280. package/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  281. package/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  282. package/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  283. package/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  284. package/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  285. package/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  286. package/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  287. package/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  288. package/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  289. package/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  290. package/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  291. package/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  292. package/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  293. package/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  294. package/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  295. package/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  296. package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  297. package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  298. package/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  299. package/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  300. package/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  301. package/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  302. package/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  303. package/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  304. package/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  305. package/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  306. package/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  307. package/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  308. package/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  309. package/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  310. package/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  311. package/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  312. package/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  313. package/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  314. package/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  315. package/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  316. package/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  317. package/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  318. package/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  319. package/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  320. package/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  321. package/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  322. package/skills/dispatching-parallel-agents/LICENSE +21 -0
  323. package/skills/dispatching-parallel-agents/SKILL.md +185 -0
  324. package/skills/executing-plans/LICENSE +21 -0
  325. package/skills/executing-plans/SKILL.md +70 -0
  326. package/skills/finishing-a-development-branch/LICENSE +21 -0
  327. package/skills/finishing-a-development-branch/SKILL.md +241 -0
  328. package/skills/first-party/README.md +32 -0
  329. package/skills/first-party/append-only-jsonl-stores/SKILL.md +50 -0
  330. package/skills/first-party/golden-snapshot-discipline/SKILL.md +45 -0
  331. package/skills/first-party/immutable-updates/SKILL.md +46 -0
  332. package/skills/first-party/manifest.json +10 -0
  333. package/skills/first-party/ts-extension-imports/SKILL.md +49 -0
  334. package/skills/first-party/validate-at-boundaries/SKILL.md +41 -0
  335. package/skills/first-party/zero-dependency-discipline/SKILL.md +41 -0
  336. package/skills/frontend-design/LICENSE +177 -0
  337. package/skills/frontend-design/LICENSE.txt +177 -0
  338. package/skills/frontend-design/SKILL.md +55 -0
  339. package/skills/internal-comms/LICENSE +202 -0
  340. package/skills/internal-comms/LICENSE.txt +202 -0
  341. package/skills/internal-comms/SKILL.md +32 -0
  342. package/skills/internal-comms/examples/3p-updates.md +47 -0
  343. package/skills/internal-comms/examples/company-newsletter.md +65 -0
  344. package/skills/internal-comms/examples/faq-answers.md +30 -0
  345. package/skills/internal-comms/examples/general-comms.md +16 -0
  346. package/skills/mcp-builder/LICENSE +202 -0
  347. package/skills/mcp-builder/LICENSE.txt +202 -0
  348. package/skills/mcp-builder/SKILL.md +236 -0
  349. package/skills/mcp-builder/reference/evaluation.md +602 -0
  350. package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  351. package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  352. package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  353. package/skills/mcp-builder/scripts/connections.py +151 -0
  354. package/skills/mcp-builder/scripts/evaluation.py +373 -0
  355. package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  356. package/skills/mcp-builder/scripts/requirements.txt +2 -0
  357. package/skills/receiving-code-review/LICENSE +21 -0
  358. package/skills/receiving-code-review/SKILL.md +213 -0
  359. package/skills/requesting-code-review/LICENSE +21 -0
  360. package/skills/requesting-code-review/SKILL.md +103 -0
  361. package/skills/requesting-code-review/code-reviewer.md +172 -0
  362. package/skills/seed-manifest.json +185 -0
  363. package/skills/skill-creator/LICENSE +202 -0
  364. package/skills/skill-creator/LICENSE.txt +202 -0
  365. package/skills/skill-creator/SKILL.md +485 -0
  366. package/skills/skill-creator/agents/analyzer.md +274 -0
  367. package/skills/skill-creator/agents/comparator.md +202 -0
  368. package/skills/skill-creator/agents/grader.md +223 -0
  369. package/skills/skill-creator/assets/eval_review.html +146 -0
  370. package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  371. package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  372. package/skills/skill-creator/references/schemas.md +430 -0
  373. package/skills/skill-creator/scripts/__init__.py +0 -0
  374. package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  375. package/skills/skill-creator/scripts/generate_report.py +326 -0
  376. package/skills/skill-creator/scripts/improve_description.py +247 -0
  377. package/skills/skill-creator/scripts/package_skill.py +136 -0
  378. package/skills/skill-creator/scripts/quick_validate.py +103 -0
  379. package/skills/skill-creator/scripts/run_eval.py +310 -0
  380. package/skills/skill-creator/scripts/run_loop.py +328 -0
  381. package/skills/skill-creator/scripts/utils.py +47 -0
  382. package/skills/slack-gif-creator/LICENSE +202 -0
  383. package/skills/slack-gif-creator/LICENSE.txt +202 -0
  384. package/skills/slack-gif-creator/SKILL.md +254 -0
  385. package/skills/slack-gif-creator/core/easing.py +234 -0
  386. package/skills/slack-gif-creator/core/frame_composer.py +176 -0
  387. package/skills/slack-gif-creator/core/gif_builder.py +269 -0
  388. package/skills/slack-gif-creator/core/validators.py +136 -0
  389. package/skills/slack-gif-creator/requirements.txt +4 -0
  390. package/skills/subagent-driven-development/LICENSE +21 -0
  391. package/skills/subagent-driven-development/SKILL.md +418 -0
  392. package/skills/subagent-driven-development/implementer-prompt.md +139 -0
  393. package/skills/subagent-driven-development/scripts/review-package +44 -0
  394. package/skills/subagent-driven-development/scripts/sdd-workspace +22 -0
  395. package/skills/subagent-driven-development/scripts/task-brief +40 -0
  396. package/skills/subagent-driven-development/task-reviewer-prompt.md +188 -0
  397. package/skills/systematic-debugging/CREATION-LOG.md +119 -0
  398. package/skills/systematic-debugging/LICENSE +21 -0
  399. package/skills/systematic-debugging/SKILL.md +296 -0
  400. package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  401. package/skills/systematic-debugging/condition-based-waiting.md +115 -0
  402. package/skills/systematic-debugging/defense-in-depth.md +122 -0
  403. package/skills/systematic-debugging/find-polluter.sh +63 -0
  404. package/skills/systematic-debugging/root-cause-tracing.md +169 -0
  405. package/skills/systematic-debugging/test-academic.md +14 -0
  406. package/skills/systematic-debugging/test-pressure-1.md +58 -0
  407. package/skills/systematic-debugging/test-pressure-2.md +68 -0
  408. package/skills/systematic-debugging/test-pressure-3.md +69 -0
  409. package/skills/test-driven-development/LICENSE +21 -0
  410. package/skills/test-driven-development/SKILL.md +371 -0
  411. package/skills/test-driven-development/testing-anti-patterns.md +299 -0
  412. package/skills/theme-factory/LICENSE +202 -0
  413. package/skills/theme-factory/LICENSE.txt +202 -0
  414. package/skills/theme-factory/SKILL.md +59 -0
  415. package/skills/theme-factory/theme-showcase.pdf +0 -0
  416. package/skills/theme-factory/themes/arctic-frost.md +19 -0
  417. package/skills/theme-factory/themes/botanical-garden.md +19 -0
  418. package/skills/theme-factory/themes/desert-rose.md +19 -0
  419. package/skills/theme-factory/themes/forest-canopy.md +19 -0
  420. package/skills/theme-factory/themes/golden-hour.md +19 -0
  421. package/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  422. package/skills/theme-factory/themes/modern-minimalist.md +19 -0
  423. package/skills/theme-factory/themes/ocean-depths.md +19 -0
  424. package/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  425. package/skills/theme-factory/themes/tech-innovation.md +19 -0
  426. package/skills/using-git-worktrees/LICENSE +21 -0
  427. package/skills/using-git-worktrees/SKILL.md +202 -0
  428. package/skills/using-superpowers/LICENSE +21 -0
  429. package/skills/using-superpowers/SKILL.md +62 -0
  430. package/skills/using-superpowers/references/antigravity-tools.md +23 -0
  431. package/skills/using-superpowers/references/codex-tools.md +39 -0
  432. package/skills/using-superpowers/references/pi-tools.md +16 -0
  433. package/skills/verification-before-completion/LICENSE +21 -0
  434. package/skills/verification-before-completion/SKILL.md +139 -0
  435. package/skills/web-artifacts-builder/LICENSE +202 -0
  436. package/skills/web-artifacts-builder/LICENSE.txt +202 -0
  437. package/skills/web-artifacts-builder/SKILL.md +74 -0
  438. package/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
  439. package/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
  440. package/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
  441. package/skills/webapp-testing/LICENSE +202 -0
  442. package/skills/webapp-testing/LICENSE.txt +202 -0
  443. package/skills/webapp-testing/SKILL.md +96 -0
  444. package/skills/webapp-testing/examples/console_logging.py +35 -0
  445. package/skills/webapp-testing/examples/element_discovery.py +40 -0
  446. package/skills/webapp-testing/examples/static_html_automation.py +33 -0
  447. package/skills/webapp-testing/scripts/with_server.py +106 -0
  448. package/skills/writing-plans/LICENSE +21 -0
  449. package/skills/writing-plans/SKILL.md +174 -0
  450. package/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://baselane.dev/schema/workflow-pack-v1.json",
3
+ "id": "systematic-debugging",
4
+ "version": "1.1.0",
5
+ "title": "Systematic debugging",
6
+ "summary": "Root cause before fix: a four-phase debugging discipline governed by the Iron Law, escalating to an architectural review after three failed attempts instead of a fourth guess. The same discipline also ships as the \"systematic-debugging\" seed skill in the skills library — adopting both is redundant, not complementary; pick this pack for the enforcing subagent/hooks or the skill for zero-setup guidance.",
7
+ "scope": "both",
8
+ "attribution": { "source": "obra/superpowers", "url": "https://github.com/obra/superpowers", "license": "MIT" },
9
+ "context": {
10
+ "markdown": "## Systematic debugging\n\n- The Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. If you have not found the root cause, you may not propose a fix.\n- Work the four phases in order: (1) root-cause investigation, (2) pattern analysis, (3) hypothesis and testing, (4) implementation.\n- After three failed fix attempts, STOP — the architecture is suspect. Do not attempt a fourth fix without an explicit architectural discussion.\n"
11
+ },
12
+ "agents": [
13
+ {
14
+ "name": "debugger",
15
+ "description": "Phase-disciplined investigator that reports an evidence chain from symptom to cause, not a guess.",
16
+ "tools": ["Read", "Grep", "Glob", "Bash"],
17
+ "model": "sonnet",
18
+ "prompt": "You are a systematic debugger. Obey the Iron Law: do not propose a fix until you have found the root cause. Reproduce the failure first, then work the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, implementation. Report the evidence chain from symptom to cause with file:line references, and never present a hypothesis as a conclusion. If three fixes have already failed, stop and recommend an architectural review instead of attempting a fourth."
19
+ }
20
+ ],
21
+ "commands": [
22
+ {
23
+ "name": "debug",
24
+ "description": "Walk a bug through the four phases; refuse to patch before the root cause is found.",
25
+ "argument_hint": "[symptom]",
26
+ "prompt": "Investigate $ARGUMENTS through the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, then implementation. Do not propose or apply a fix until the root cause is identified with evidence. If three fixes have already failed, stop and raise the architecture for discussion instead of trying a fourth."
27
+ },
28
+ {
29
+ "name": "root-cause",
30
+ "description": "Trace a symptom back to its origin before any change.",
31
+ "argument_hint": "[symptom or failing test]",
32
+ "prompt": "Trace $ARGUMENTS backwards from the observed symptom to its origin: reproduce it, follow the data and control flow to the first point where reality diverges from intent, and state the root cause with the evidence chain that proves it — before proposing any change."
33
+ }
34
+ ],
35
+ "hooks": [
36
+ {
37
+ "event": "PostToolUse",
38
+ "matcher": "Edit|Write",
39
+ "description": "After an edit, nudge the root-cause-before-fix discipline.",
40
+ "action": "print-reminder",
41
+ "message": "Root cause before fix: is this change addressing the cause you proved, or patching a symptom?"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: debugger
3
+ description: Phase-disciplined investigator that reports an evidence chain from symptom to cause, not a guess.
4
+ tools: Read, Grep, Glob, Bash
5
+ model: sonnet
6
+ ---
7
+
8
+ You are a systematic debugger. Obey the Iron Law: do not propose a fix until you have found the root cause. Reproduce the failure first, then work the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, implementation. Report the evidence chain from symptom to cause with file:line references, and never present a hypothesis as a conclusion. If three fixes have already failed, stop and recommend an architectural review instead of attempting a fourth.
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Walk a bug through the four phases; refuse to patch before the root cause is found.
3
+ argument-hint: [symptom]
4
+ ---
5
+
6
+ Investigate $ARGUMENTS through the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, then implementation. Do not propose or apply a fix until the root cause is identified with evidence. If three fixes have already failed, stop and raise the architecture for discussion instead of trying a fourth.
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Trace a symptom back to its origin before any change.
3
+ argument-hint: [symptom or failing test]
4
+ ---
5
+
6
+ Trace $ARGUMENTS backwards from the observed symptom to its origin: reproduce it, follow the data and control flow to the first point where reality diverges from intent, and state the root cause with the evidence chain that proves it — before proposing any change.
@@ -0,0 +1,15 @@
1
+ {
2
+ "hooks": {
3
+ "PostToolUse": [
4
+ {
5
+ "matcher": "Edit|Write",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "echo \"Root cause before fix: is this change addressing the cause you proved, or patching a symptom?\""
10
+ }
11
+ ]
12
+ }
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,20 @@
1
+ # Copilot instructions
2
+
3
+ ## Systematic debugging
4
+
5
+ - The Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. If you have not found the root cause, you may not propose a fix.
6
+ - Work the four phases in order: (1) root-cause investigation, (2) pattern analysis, (3) hypothesis and testing, (4) implementation.
7
+ - After three failed fix attempts, STOP — the architecture is suspect. Do not attempt a fourth fix without an explicit architectural discussion.
8
+
9
+ ## Workflow pack: Systematic debugging
10
+
11
+ Root cause before fix: a four-phase debugging discipline governed by the Iron Law, escalating to an architectural review after three failed attempts instead of a fourth guess. The same discipline also ships as the "systematic-debugging" seed skill in the skills library — adopting both is redundant, not complementary; pick this pack for the enforcing subagent/hooks or the skill for zero-setup guidance.
12
+
13
+ When acting as the debugger role: You are a systematic debugger. Obey the Iron Law: do not propose a fix until you have found the root cause. Reproduce the failure first, then work the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, implementation. Report the evidence chain from symptom to cause with file:line references, and never present a hypothesis as a conclusion. If three fixes have already failed, stop and recommend an architectural review instead of attempting a fourth.
14
+
15
+ Workflow steps:
16
+
17
+ - debug: Investigate $ARGUMENTS through the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, then implementation. Do not propose or apply a fix until the root cause is identified with evidence. If three fixes have already failed, stop and raise the architecture for discussion instead of trying a fourth.
18
+ - root-cause: Trace $ARGUMENTS backwards from the observed symptom to its origin: reproduce it, follow the data and control flow to the first point where reality diverges from intent, and state the root cause with the evidence chain that proves it — before proposing any change.
19
+
20
+ - Root cause before fix: is this change addressing the cause you proved, or patching a symptom?
@@ -0,0 +1,31 @@
1
+ # AGENTS.md
2
+
3
+ <!-- generated from workflow-pack systematic-debugging v1.1.0 -->
4
+ <!-- adapted from obra/superpowers (MIT) — https://github.com/obra/superpowers -->
5
+
6
+ ## Systematic debugging
7
+
8
+ - The Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. If you have not found the root cause, you may not propose a fix.
9
+ - Work the four phases in order: (1) root-cause investigation, (2) pattern analysis, (3) hypothesis and testing, (4) implementation.
10
+ - After three failed fix attempts, STOP — the architecture is suspect. Do not attempt a fourth fix without an explicit architectural discussion.
11
+
12
+ ## Workflow pack: Systematic debugging
13
+
14
+ Root cause before fix: a four-phase debugging discipline governed by the Iron Law, escalating to an architectural review after three failed attempts instead of a fourth guess. The same discipline also ships as the "systematic-debugging" seed skill in the skills library — adopting both is redundant, not complementary; pick this pack for the enforcing subagent/hooks or the skill for zero-setup guidance.
15
+
16
+ ### Roles
17
+
18
+ - **debugger** — Phase-disciplined investigator that reports an evidence chain from symptom to cause, not a guess.
19
+
20
+ ### Commands
21
+
22
+ - **/debug** `[symptom]` — Walk a bug through the four phases; refuse to patch before the root cause is found.
23
+ - How it runs: Investigate $ARGUMENTS through the four phases in order — root-cause investigation, pattern analysis, hypothesis and testing, then implementation. Do not propose or apply a fix until the root cause is identified with evidence. If three fixes have already failed, stop and raise the architecture for discussion instead of trying a fourth.
24
+ - **/root-cause** `[symptom or failing test]` — Trace a symptom back to its origin before any change.
25
+ - How it runs: Trace $ARGUMENTS backwards from the observed symptom to its origin: reproduce it, follow the data and control flow to the first point where reality diverges from intent, and state the root cause with the evidence chain that proves it — before proposing any change.
26
+
27
+ ### Guardrails
28
+
29
+ - After an edit, nudge the root-cause-before-fix discipline.
30
+
31
+ Tool-specific implementations live alongside this file (see `CLAUDE.md` for the Claude Code implementation). Tools without a native subagent/command surface should treat the sections above as operating instructions.
@@ -0,0 +1,9 @@
1
+ # CLAUDE.md
2
+
3
+ @AGENTS.md
4
+
5
+ This project defines a native Claude Code implementation of this workflow pack:
6
+ - Subagent: `.claude/agents/debugger.md`
7
+ - Command: `.claude/commands/debug.md`
8
+ - Command: `.claude/commands/root-cause.md`
9
+ - Hooks: see `.claude/settings.json`
@@ -0,0 +1,3 @@
1
+ # GEMINI.md
2
+
3
+ @AGENTS.md
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://baselane.dev/schema/workflow-pack-v1.json",
3
+ "id": "token-efficiency-harness",
4
+ "version": "1.2.0",
5
+ "title": "Token-efficiency harness",
6
+ "summary": "Keeps per-turn context small: one task per session, model tiering, capped thinking, and budgeted autonomous runs — the habits that keep token spend down without cutting output.",
7
+ "scope": "both",
8
+ "context": {
9
+ "markdown": "## Token-efficiency discipline\n\nEach turn re-sends the whole session, so keep it small:\n\n- **One task, one session.** When a task is done, `/clear`. For genuinely long tasks, `/compact` at milestones (after a feature lands, never mid-debug).\n- **Hand off instead of continuing.** End multi-day work by writing a handoff note into repo memory (`/handoff`), then start tomorrow clean from that note.\n- **Tier your models.** The main conversation gets the best model; search, mechanical edits, and fan-out go to cheaper subagents. Five parallel top-tier agents burn five times the rate.\n- **Cap extended thinking** for routine work (`MAX_THINKING_TOKENS=10000`); raise it only for genuinely hard problems.\n- **Specific beats short.** One precise sentence replaces three exploratory rounds. Grep logs first and paste the 10 relevant lines, never the 500-line dump — a paste is re-sent on every following turn.\n- **Work in bursts.** The prompt cache expires after a few idle minutes; rapid-fire turns replay history cheaply, sporadic drips rebuild it at full price.\n- **Budget every autonomous run.** State a token budget and a definition of done, and require a diff summary plus self-review at the end so a stuck loop cannot retry forever.\n"
10
+ },
11
+ "agents": [
12
+ {
13
+ "name": "scout",
14
+ "description": "Cheap, fast reconnaissance: finds files, symbols, and usage sites and returns file:line references — never full file dumps. Use for any search or lookup before involving the main model.",
15
+ "tools": ["Read", "Grep", "Glob", "Bash"],
16
+ "model": "haiku",
17
+ "prompt": "You are a scout. Locate what was asked for (files, symbols, call sites, config values) as quickly and cheaply as possible. Return findings as a short list of file:line references with a one-line note each. Do not paste file contents unless a specific excerpt was requested, and never more than 10 lines of it."
18
+ }
19
+ ],
20
+ "commands": [
21
+ {
22
+ "name": "handoff",
23
+ "description": "End the session with a durable handoff note in memory so the next session starts clean and cheap.",
24
+ "argument_hint": "[note-name]",
25
+ "prompt": "Write a durable handoff note under `.baselane/memory/` — a new fact file with `name`/`description` frontmatter plus a line in `.baselane/memory/MEMORY.md` — covering what was completed (with commit hashes), what remains, key files and decisions, and the exact next step. Keep it under 40 lines, then tell the user to /clear and resume from memory next session."
26
+ },
27
+ {
28
+ "name": "usage-audit",
29
+ "description": "Audit local Claude Code token usage and recommend the highest-impact fix.",
30
+ "argument_hint": "[optional]",
31
+ "prompt": "Run `npx ccusage@latest` via Bash and read the breakdown. Report: the top model by tokens, cache-read volume versus fresh input, and the single highest-impact change from the token-efficiency rules in AGENTS.md (session hygiene, model tiering, thinking cap, or run budgets). End with one concrete habit change for this user."
32
+ }
33
+ ],
34
+ "hooks": [
35
+ {
36
+ "event": "PostToolUse",
37
+ "matcher": "Task",
38
+ "description": "Remind about model tiering whenever a subagent is spawned.",
39
+ "action": "print-reminder",
40
+ "message": "Tier your subagents: search/mechanical work runs on haiku or sonnet — reserve the top model for the main loop."
41
+ }
42
+ ],
43
+ "onboarding": [
44
+ { "id": "init-memory", "title": "Initialize the memory directory", "description": "Create .baselane/memory/ for persistent agent memory.", "command": "baselane memory init" }
45
+ ],
46
+ "capabilities": [
47
+ { "type": "memory", "store": "repo", "method": "files" }
48
+ ]
49
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 1,
3
+ "capabilities": [
4
+ {
5
+ "type": "memory",
6
+ "store": "repo",
7
+ "method": "files"
8
+ }
9
+ ]
10
+ }
@@ -0,0 +1,34 @@
1
+ # Memory protocol
2
+
3
+ This directory holds durable facts the AI has learned while working on this project —
4
+ one fact per file, plus an index. Consult the index before acting; add a fact after
5
+ learning something durable (a decision, a correction, a constraint that isn't obvious
6
+ from the code).
7
+
8
+ ## Format
9
+
10
+ Each fact is a single markdown file with simple frontmatter:
11
+
12
+ ```markdown
13
+ ---
14
+ name: <short-kebab-case-slug>
15
+ description: <one-line summary — used to decide relevance during recall>
16
+ ---
17
+
18
+ <the fact, in a sentence or two.>
19
+ ```
20
+
21
+ ## Index
22
+
23
+ `MEMORY.md` in this directory lists every fact, one line per file, so the index alone
24
+ can be scanned without opening each one:
25
+
26
+ ```markdown
27
+ - [Title](file.md) — one-line hook
28
+ ```
29
+
30
+ ## Rule
31
+
32
+ - Consult `MEMORY.md` before acting — recall what's already known.
33
+ - After learning something durable, write a new fact file and add a line to
34
+ `MEMORY.md`. Use `/remember <fact>` to do both in one step.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: scout
3
+ description: Cheap, fast reconnaissance: finds files, symbols, and usage sites and returns file:line references — never full file dumps. Use for any search or lookup before involving the main model.
4
+ tools: Read, Grep, Glob, Bash
5
+ model: haiku
6
+ ---
7
+
8
+ You are a scout. Locate what was asked for (files, symbols, call sites, config values) as quickly and cheaply as possible. Return findings as a short list of file:line references with a one-line note each. Do not paste file contents unless a specific excerpt was requested, and never more than 10 lines of it.
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: End the session with a durable handoff note in memory so the next session starts clean and cheap.
3
+ argument-hint: [note-name]
4
+ ---
5
+
6
+ Write a durable handoff note under `.baselane/memory/` — a new fact file with `name`/`description` frontmatter plus a line in `.baselane/memory/MEMORY.md` — covering what was completed (with commit hashes), what remains, key files and decisions, and the exact next step. Keep it under 40 lines, then tell the user to /clear and resume from memory next session.
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Append a durable fact to .baselane/memory/ and update its index.
3
+ argument-hint: <fact>
4
+ ---
5
+
6
+ Write $ARGUMENTS as a new fact file under `.baselane/memory/` (kebab-case name, frontmatter with `name` and `description`, then the fact itself). Then add a one-line entry for it to `.baselane/memory/MEMORY.md` (create the index if it doesn't exist yet). Keep the fact to one durable, non-obvious sentence or two.
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Audit local Claude Code token usage and recommend the highest-impact fix.
3
+ argument-hint: [optional]
4
+ ---
5
+
6
+ Run `npx ccusage@latest` via Bash and read the breakdown. Report: the top model by tokens, cache-read volume versus fresh input, and the single highest-impact change from the token-efficiency rules in AGENTS.md (session hygiene, model tiering, thinking cap, or run budgets). End with one concrete habit change for this user.
@@ -0,0 +1,26 @@
1
+ {
2
+ "hooks": {
3
+ "PostToolUse": [
4
+ {
5
+ "matcher": "Task",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "echo \"Tier your subagents: search/mechanical work runs on haiku or sonnet — reserve the top model for the main loop.\""
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "Stop": [
15
+ {
16
+ "matcher": "",
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "echo \"Before finishing, capture any durable decisions or facts from this session to .baselane/memory/ (use /remember) and update its MEMORY.md index.\""
21
+ }
22
+ ]
23
+ }
24
+ ]
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ # Copilot instructions
2
+
3
+ ## Token-efficiency discipline
4
+
5
+ Each turn re-sends the whole session, so keep it small:
6
+
7
+ - **One task, one session.** When a task is done, `/clear`. For genuinely long tasks, `/compact` at milestones (after a feature lands, never mid-debug).
8
+ - **Hand off instead of continuing.** End multi-day work by writing a handoff note into repo memory (`/handoff`), then start tomorrow clean from that note.
9
+ - **Tier your models.** The main conversation gets the best model; search, mechanical edits, and fan-out go to cheaper subagents. Five parallel top-tier agents burn five times the rate.
10
+ - **Cap extended thinking** for routine work (`MAX_THINKING_TOKENS=10000`); raise it only for genuinely hard problems.
11
+ - **Specific beats short.** One precise sentence replaces three exploratory rounds. Grep logs first and paste the 10 relevant lines, never the 500-line dump — a paste is re-sent on every following turn.
12
+ - **Work in bursts.** The prompt cache expires after a few idle minutes; rapid-fire turns replay history cheaply, sporadic drips rebuild it at full price.
13
+ - **Budget every autonomous run.** State a token budget and a definition of done, and require a diff summary plus self-review at the end so a stuck loop cannot retry forever.
14
+
15
+ ## Workflow pack: Token-efficiency harness
16
+
17
+ Keeps per-turn context small: one task per session, model tiering, capped thinking, and budgeted autonomous runs — the habits that keep token spend down without cutting output.
18
+
19
+ When acting as the scout role: You are a scout. Locate what was asked for (files, symbols, call sites, config values) as quickly and cheaply as possible. Return findings as a short list of file:line references with a one-line note each. Do not paste file contents unless a specific excerpt was requested, and never more than 10 lines of it.
20
+
21
+ Workflow steps:
22
+
23
+ - handoff: Write a durable handoff note under `.baselane/memory/` — a new fact file with `name`/`description` frontmatter plus a line in `.baselane/memory/MEMORY.md` — covering what was completed (with commit hashes), what remains, key files and decisions, and the exact next step. Keep it under 40 lines, then tell the user to /clear and resume from memory next session.
24
+ - usage-audit: Run `npx ccusage@latest` via Bash and read the breakdown. Report: the top model by tokens, cache-read volume versus fresh input, and the single highest-impact change from the token-efficiency rules in AGENTS.md (session hygiene, model tiering, thinking cap, or run budgets). End with one concrete habit change for this user.
25
+
26
+ - Tier your subagents: search/mechanical work runs on haiku or sonnet — reserve the top model for the main loop.
@@ -0,0 +1,44 @@
1
+ # AGENTS.md
2
+
3
+ <!-- generated from workflow-pack token-efficiency-harness v1.2.0 -->
4
+
5
+ ## Token-efficiency discipline
6
+
7
+ Each turn re-sends the whole session, so keep it small:
8
+
9
+ - **One task, one session.** When a task is done, `/clear`. For genuinely long tasks, `/compact` at milestones (after a feature lands, never mid-debug).
10
+ - **Hand off instead of continuing.** End multi-day work by writing a handoff note into repo memory (`/handoff`), then start tomorrow clean from that note.
11
+ - **Tier your models.** The main conversation gets the best model; search, mechanical edits, and fan-out go to cheaper subagents. Five parallel top-tier agents burn five times the rate.
12
+ - **Cap extended thinking** for routine work (`MAX_THINKING_TOKENS=10000`); raise it only for genuinely hard problems.
13
+ - **Specific beats short.** One precise sentence replaces three exploratory rounds. Grep logs first and paste the 10 relevant lines, never the 500-line dump — a paste is re-sent on every following turn.
14
+ - **Work in bursts.** The prompt cache expires after a few idle minutes; rapid-fire turns replay history cheaply, sporadic drips rebuild it at full price.
15
+ - **Budget every autonomous run.** State a token budget and a definition of done, and require a diff summary plus self-review at the end so a stuck loop cannot retry forever.
16
+
17
+ ## Harness capabilities
18
+
19
+ - memory · repo · files — provisioned
20
+
21
+ ### Memory
22
+
23
+ Consult `.baselane/memory/` and its `MEMORY.md` index before acting — it holds durable facts from past sessions. Use `/remember` to add one after learning something durable.
24
+
25
+ ## Workflow pack: Token-efficiency harness
26
+
27
+ Keeps per-turn context small: one task per session, model tiering, capped thinking, and budgeted autonomous runs — the habits that keep token spend down without cutting output.
28
+
29
+ ### Roles
30
+
31
+ - **scout** — Cheap, fast reconnaissance: finds files, symbols, and usage sites and returns file:line references — never full file dumps. Use for any search or lookup before involving the main model.
32
+
33
+ ### Commands
34
+
35
+ - **/handoff** `[note-name]` — End the session with a durable handoff note in memory so the next session starts clean and cheap.
36
+ - How it runs: Write a durable handoff note under `.baselane/memory/` — a new fact file with `name`/`description` frontmatter plus a line in `.baselane/memory/MEMORY.md` — covering what was completed (with commit hashes), what remains, key files and decisions, and the exact next step. Keep it under 40 lines, then tell the user to /clear and resume from memory next session.
37
+ - **/usage-audit** `[optional]` — Audit local Claude Code token usage and recommend the highest-impact fix.
38
+ - How it runs: Run `npx ccusage@latest` via Bash and read the breakdown. Report: the top model by tokens, cache-read volume versus fresh input, and the single highest-impact change from the token-efficiency rules in AGENTS.md (session hygiene, model tiering, thinking cap, or run budgets). End with one concrete habit change for this user.
39
+
40
+ ### Guardrails
41
+
42
+ - Remind about model tiering whenever a subagent is spawned.
43
+
44
+ Tool-specific implementations live alongside this file (see `CLAUDE.md` for the Claude Code implementation). Tools without a native subagent/command surface should treat the sections above as operating instructions.
@@ -0,0 +1,10 @@
1
+ # CLAUDE.md
2
+
3
+ @AGENTS.md
4
+
5
+ This project defines a native Claude Code implementation of this workflow pack:
6
+ - Subagent: `.claude/agents/scout.md`
7
+ - Command: `.claude/commands/handoff.md`
8
+ - Command: `.claude/commands/usage-audit.md`
9
+ - Command: `.claude/commands/remember.md`
10
+ - Hooks: see `.claude/settings.json`
@@ -0,0 +1,3 @@
1
+ # GEMINI.md
2
+
3
+ @AGENTS.md
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://baselane.dev/schema/workflow-pack-v1.json",
3
+ "id": "typescript-rules",
4
+ "version": "1.4.0",
5
+ "title": "TypeScript rules",
6
+ "summary": "TypeScript conventions a linter can't check — explicit public-API types, unknown over any with narrowing, immutable updates, Zod at the boundary — with a reviewer and a prettier guard; formatting and lint rules belong in CI.",
7
+ "scope": "repo",
8
+ "attribution": { "source": "affaan-m/ECC", "url": "https://github.com/affaan-m/ECC", "license": "MIT" },
9
+ "context": {
10
+ "markdown": "## TypeScript/JavaScript conventions (beyond what the linter enforces)\n\n`eslint` and `prettier` already enforce formatting, `no-explicit-any`, and stray `console.log` — this pack is the judgment they can't encode. Keep the mechanical checks in CI (`prettier --check .`, `eslint .`); the reviewer covers the rest.\n\n### Types at the surface\n\n- Give exported functions, shared utilities, and public methods explicit parameter and return types; let inference handle obvious locals.\n- Use `interface` for object shapes meant to be extended; use `type` for unions, intersections, and mapped types. Prefer string-literal unions over `enum` unless interop demands one.\n- Use `unknown` for external/untrusted input and narrow it before use (`error instanceof Error`); reserve `any` for genuine escape hatches, never as the default.\n- Type React props with a named `interface`/`type` and type callback props explicitly; skip `React.FC` unless you need it.\n\n### Immutability\n\n- Return new objects/arrays via spread (`{ ...user, name }`) or `map`/`filter` — never `push`/`splice`/assignment on a value you received.\n\n### Errors and boundaries\n\n- Handle errors explicitly with context, then re-raise or return a typed error; narrow an `unknown` caught error before reading `.message`.\n- Validate external input at the boundary with a schema (e.g. Zod) and infer the type from the schema rather than hand-writing both.\n- Read required secrets from the environment and fail fast at startup if one is missing.\n\n### Flag in review (a linter won't)\n\n- An exported function with no parameter/return types.\n- `any` where `unknown` plus a type guard would do.\n- In-place mutation of a function argument.\n- A repeated inline object shape that should be a named type.\n"
11
+ },
12
+ "skills": [
13
+ {
14
+ "name": "immutable-updates",
15
+ "description": "Use when updating objects, arrays, or records in application code — return a new copy with the change applied instead of mutating the original in place, to prevent hidden side effects and aliasing bugs.",
16
+ "body": "# Immutable updates\n\nWhen you change a value, **produce a new copy — never mutate the argument you were handed.** Shared\nreferences mean an in-place mutation is a spooky-action-at-a-distance bug: some other holder of the\nsame object sees a change it never asked for.\n\n```ts\n// WRONG — mutates the caller's object\nfunction rename(user, name) {\n user.name = name;\n return user;\n}\n\n// CORRECT — returns a new object, original untouched\nfunction rename(user, name) {\n return { ...user, name };\n}\n```\n\n## Patterns\n\n- **Object field:** `{ ...obj, field: value }`.\n- **Nested field:** spread each level you touch — `{ ...obj, addr: { ...obj.addr, city } }`.\n- **Array append/remove:** `[...list, item]`, `list.filter(x => x.id !== id)`,\n `list.map(x => x.id === id ? { ...x, done: true } : x)` — not `push`/`splice`/index assignment.\n- **Record update:** `{ ...map, [key]: value }` and `const { [key]: _drop, ...rest } = map` to remove.\n\n## Why it pays off\n\n- **No hidden side effects.** A function that returns a new value can't corrupt state its caller\n still depends on. Behavior is a function of inputs, not of call order.\n- **Debugging is local.** When a value is wrong, the mutation that produced it is the expression\n that built it — not some distant `.sort()` or field write on a shared reference.\n- **Safe concurrency and change-detection.** Referential equality (`prev !== next`) becomes a\n reliable \"did this change?\" signal for caches, memoization, and UI diffing.\n\n## When in-place is acceptable\n\nA locally-scoped object that never escapes the function — a builder/accumulator you allocated and\nreturn once — is fine to mutate. The rule protects values that are *shared*: arguments, fields on\nlong-lived state, anything another holder still references.\n",
17
+ "category": "write"
18
+ }
19
+ ],
20
+ "agents": [
21
+ {
22
+ "name": "typescript-reviewer",
23
+ "description": "Reviews changed TypeScript/JavaScript against the standards: explicit public-API types, unknown over any, immutable updates, Zod boundaries, and env-var secrets. Reports file:line + severity. Use after any TS/JS change.",
24
+ "tools": ["Read", "Grep", "Glob", "Bash"],
25
+ "model": "sonnet",
26
+ "prompt": "You are a TypeScript reviewer. Read the changed TS/JS files and check them against the conventions in context: explicit types on exported/public APIs, `unknown` over `any` with narrowing, immutable updates via spread/array methods, typed error handling, boundary validation with a schema library, and env-var secrets that fail fast. Formatting and lint rules are the linter/CI's job — don't re-litigate them. Cite the exact file:line for each finding, name the concrete failure mode, and give severity. If the change is sound, say so plainly rather than inventing findings."
27
+ }
28
+ ],
29
+ "commands": [
30
+ {
31
+ "name": "typescript-review",
32
+ "description": "Run the TypeScript reviewer over the current change against this pack's TypeScript standards.",
33
+ "argument_hint": "[base ref]",
34
+ "prompt": "Invoke the typescript-reviewer subagent on the changed TypeScript files (the diff since $ARGUMENTS, or the working tree if no ref is given). It checks this pack's conventions — explicit public-API types, unknown over any with narrowing, immutable updates, and Zod at the boundary — and reports file:line + severity. Formatting and lint rules are CI's job; don't re-litigate them. Fix any Critical or Important findings before merging."
35
+ }
36
+ ],
37
+ "hooks": [
38
+ {
39
+ "event": "PostToolUse",
40
+ "matcher": "Edit|Write",
41
+ "description": "After an edit, check formatting with prettier when it is installed.",
42
+ "action": "run-command",
43
+ "command": "if command -v prettier >/dev/null 2>&1; then prettier --check .; else echo \"prettier not found — install prettier to check formatting (typescript-rules)\"; fi"
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: typescript-reviewer
3
+ description: Reviews changed TypeScript/JavaScript against the standards: explicit public-API types, unknown over any, immutable updates, Zod boundaries, and env-var secrets. Reports file:line + severity. Use after any TS/JS change.
4
+ tools: Read, Grep, Glob, Bash
5
+ model: sonnet
6
+ ---
7
+
8
+ You are a TypeScript reviewer. Read the changed TS/JS files and check them against the conventions in context: explicit types on exported/public APIs, `unknown` over `any` with narrowing, immutable updates via spread/array methods, typed error handling, boundary validation with a schema library, and env-var secrets that fail fast. Formatting and lint rules are the linter/CI's job — don't re-litigate them. Cite the exact file:line for each finding, name the concrete failure mode, and give severity. If the change is sound, say so plainly rather than inventing findings.
@@ -0,0 +1,6 @@
1
+ ---
2
+ description: Run the TypeScript reviewer over the current change against this pack's TypeScript standards.
3
+ argument-hint: [base ref]
4
+ ---
5
+
6
+ Invoke the typescript-reviewer subagent on the changed TypeScript files (the diff since $ARGUMENTS, or the working tree if no ref is given). It checks this pack's conventions — explicit public-API types, unknown over any with narrowing, immutable updates, and Zod at the boundary — and reports file:line + severity. Formatting and lint rules are CI's job; don't re-litigate them. Fix any Critical or Important findings before merging.
@@ -0,0 +1,15 @@
1
+ {
2
+ "hooks": {
3
+ "PostToolUse": [
4
+ {
5
+ "matcher": "Edit|Write",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "if command -v prettier >/dev/null 2>&1; then prettier --check .; else echo \"prettier not found — install prettier to check formatting (typescript-rules)\"; fi"
10
+ }
11
+ ]
12
+ }
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: immutable-updates
3
+ description: Use when updating objects, arrays, or records in application code — return a new copy with the change applied instead of mutating the original in place, to prevent hidden side effects and aliasing bugs.
4
+ ---
5
+
6
+ # Immutable updates
7
+
8
+ When you change a value, **produce a new copy — never mutate the argument you were handed.** Shared
9
+ references mean an in-place mutation is a spooky-action-at-a-distance bug: some other holder of the
10
+ same object sees a change it never asked for.
11
+
12
+ ```ts
13
+ // WRONG — mutates the caller's object
14
+ function rename(user, name) {
15
+ user.name = name;
16
+ return user;
17
+ }
18
+
19
+ // CORRECT — returns a new object, original untouched
20
+ function rename(user, name) {
21
+ return { ...user, name };
22
+ }
23
+ ```
24
+
25
+ ## Patterns
26
+
27
+ - **Object field:** `{ ...obj, field: value }`.
28
+ - **Nested field:** spread each level you touch — `{ ...obj, addr: { ...obj.addr, city } }`.
29
+ - **Array append/remove:** `[...list, item]`, `list.filter(x => x.id !== id)`,
30
+ `list.map(x => x.id === id ? { ...x, done: true } : x)` — not `push`/`splice`/index assignment.
31
+ - **Record update:** `{ ...map, [key]: value }` and `const { [key]: _drop, ...rest } = map` to remove.
32
+
33
+ ## Why it pays off
34
+
35
+ - **No hidden side effects.** A function that returns a new value can't corrupt state its caller
36
+ still depends on. Behavior is a function of inputs, not of call order.
37
+ - **Debugging is local.** When a value is wrong, the mutation that produced it is the expression
38
+ that built it — not some distant `.sort()` or field write on a shared reference.
39
+ - **Safe concurrency and change-detection.** Referential equality (`prev !== next`) becomes a
40
+ reliable "did this change?" signal for caches, memoization, and UI diffing.
41
+
42
+ ## When in-place is acceptable
43
+
44
+ A locally-scoped object that never escapes the function — a builder/accumulator you allocated and
45
+ return once — is fine to mutate. The rule protects values that are *shared*: arguments, fields on
46
+ long-lived state, anything another holder still references.