@hivehub/rulebook 3.0.0 → 3.2.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 (566) hide show
  1. package/.claude/commands/ralph-config.md +112 -0
  2. package/.claude/commands/ralph-history.md +110 -0
  3. package/.claude/commands/ralph-init.md +72 -0
  4. package/.claude/commands/ralph-pause-resume.md +105 -0
  5. package/.claude/commands/ralph-run.md +101 -0
  6. package/.claude/commands/ralph-status.md +76 -0
  7. package/.claude/commands/rulebook-memory-save.md +48 -0
  8. package/.claude/commands/rulebook-memory-search.md +47 -0
  9. package/.claude/commands/rulebook-task-apply.md +67 -0
  10. package/.claude/commands/rulebook-task-archive.md +70 -0
  11. package/.claude/commands/rulebook-task-create.md +93 -0
  12. package/.claude/commands/rulebook-task-list.md +42 -0
  13. package/.claude/commands/rulebook-task-show.md +52 -0
  14. package/.claude/commands/rulebook-task-validate.md +53 -0
  15. package/.claude-plugin/marketplace.json +29 -0
  16. package/.claude-plugin/plugin.json +8 -0
  17. package/LICENSE +0 -0
  18. package/README.md +67 -5
  19. package/dist/agents/claude-code.d.ts +0 -0
  20. package/dist/agents/claude-code.d.ts.map +0 -0
  21. package/dist/agents/claude-code.js +0 -0
  22. package/dist/agents/claude-code.js.map +0 -0
  23. package/dist/agents/cursor-agent.d.ts +0 -0
  24. package/dist/agents/cursor-agent.d.ts.map +0 -0
  25. package/dist/agents/cursor-agent.js +0 -0
  26. package/dist/agents/cursor-agent.js.map +0 -0
  27. package/dist/agents/gemini-cli.d.ts +0 -0
  28. package/dist/agents/gemini-cli.d.ts.map +0 -0
  29. package/dist/agents/gemini-cli.js +0 -0
  30. package/dist/agents/gemini-cli.js.map +0 -0
  31. package/dist/agents/ralph-parser.d.ts +52 -0
  32. package/dist/agents/ralph-parser.d.ts.map +1 -0
  33. package/dist/agents/ralph-parser.js +223 -0
  34. package/dist/agents/ralph-parser.js.map +1 -0
  35. package/dist/cli/commands.d.ts +13 -0
  36. package/dist/cli/commands.d.ts.map +1 -1
  37. package/dist/cli/commands.js +385 -21
  38. package/dist/cli/commands.js.map +1 -1
  39. package/dist/cli/docs-prompts.d.ts +0 -0
  40. package/dist/cli/docs-prompts.d.ts.map +0 -0
  41. package/dist/cli/docs-prompts.js +0 -0
  42. package/dist/cli/docs-prompts.js.map +0 -0
  43. package/dist/cli/prompts.d.ts +0 -0
  44. package/dist/cli/prompts.d.ts.map +0 -0
  45. package/dist/cli/prompts.js +0 -0
  46. package/dist/cli/prompts.js.map +0 -0
  47. package/dist/core/agent-manager.d.ts +0 -0
  48. package/dist/core/agent-manager.d.ts.map +0 -0
  49. package/dist/core/agent-manager.js +0 -0
  50. package/dist/core/agent-manager.js.map +0 -0
  51. package/dist/core/auto-fixer.d.ts +0 -0
  52. package/dist/core/auto-fixer.d.ts.map +0 -0
  53. package/dist/core/auto-fixer.js +0 -0
  54. package/dist/core/auto-fixer.js.map +0 -0
  55. package/dist/core/changelog-generator.d.ts +0 -0
  56. package/dist/core/changelog-generator.d.ts.map +0 -0
  57. package/dist/core/changelog-generator.js +0 -0
  58. package/dist/core/changelog-generator.js.map +0 -0
  59. package/dist/core/claude-mcp.d.ts +0 -0
  60. package/dist/core/claude-mcp.d.ts.map +0 -0
  61. package/dist/core/claude-mcp.js +0 -0
  62. package/dist/core/claude-mcp.js.map +0 -0
  63. package/dist/core/cli-bridge.d.ts +0 -0
  64. package/dist/core/cli-bridge.d.ts.map +0 -0
  65. package/dist/core/cli-bridge.js +0 -0
  66. package/dist/core/cli-bridge.js.map +0 -0
  67. package/dist/core/config-manager.d.ts +13 -2
  68. package/dist/core/config-manager.d.ts.map +1 -1
  69. package/dist/core/config-manager.js +185 -7
  70. package/dist/core/config-manager.js.map +1 -1
  71. package/dist/core/coverage-checker.d.ts +0 -0
  72. package/dist/core/coverage-checker.d.ts.map +0 -0
  73. package/dist/core/coverage-checker.js +0 -0
  74. package/dist/core/coverage-checker.js.map +0 -0
  75. package/dist/core/custom-templates.d.ts +0 -0
  76. package/dist/core/custom-templates.d.ts.map +0 -0
  77. package/dist/core/custom-templates.js +0 -0
  78. package/dist/core/custom-templates.js.map +0 -0
  79. package/dist/core/dependency-checker.d.ts +0 -0
  80. package/dist/core/dependency-checker.d.ts.map +0 -0
  81. package/dist/core/dependency-checker.js +0 -0
  82. package/dist/core/dependency-checker.js.map +0 -0
  83. package/dist/core/detector.d.ts +0 -0
  84. package/dist/core/detector.d.ts.map +0 -0
  85. package/dist/core/detector.js +0 -0
  86. package/dist/core/detector.js.map +0 -0
  87. package/dist/core/docs-generator.d.ts +0 -0
  88. package/dist/core/docs-generator.d.ts.map +0 -0
  89. package/dist/core/docs-generator.js +0 -0
  90. package/dist/core/docs-generator.js.map +0 -0
  91. package/dist/core/generator.d.ts +0 -0
  92. package/dist/core/generator.d.ts.map +1 -1
  93. package/dist/core/generator.js +128 -45
  94. package/dist/core/generator.js.map +1 -1
  95. package/dist/core/gitignore-generator.d.ts +0 -0
  96. package/dist/core/gitignore-generator.d.ts.map +0 -0
  97. package/dist/core/gitignore-generator.js +0 -0
  98. package/dist/core/gitignore-generator.js.map +0 -0
  99. package/dist/core/health-scorer.d.ts +0 -0
  100. package/dist/core/health-scorer.d.ts.map +0 -0
  101. package/dist/core/health-scorer.js +0 -0
  102. package/dist/core/health-scorer.js.map +0 -0
  103. package/dist/core/iteration-tracker.d.ts +57 -0
  104. package/dist/core/iteration-tracker.d.ts.map +1 -0
  105. package/dist/core/iteration-tracker.js +209 -0
  106. package/dist/core/iteration-tracker.js.map +1 -0
  107. package/dist/core/logger.d.ts +0 -0
  108. package/dist/core/logger.d.ts.map +0 -0
  109. package/dist/core/logger.js +0 -0
  110. package/dist/core/logger.js.map +0 -0
  111. package/dist/core/merger.d.ts +0 -0
  112. package/dist/core/merger.d.ts.map +0 -0
  113. package/dist/core/merger.js +0 -0
  114. package/dist/core/merger.js.map +0 -0
  115. package/dist/core/migrator.d.ts +0 -0
  116. package/dist/core/migrator.d.ts.map +0 -0
  117. package/dist/core/migrator.js +0 -0
  118. package/dist/core/migrator.js.map +0 -0
  119. package/dist/core/minimal-scaffolder.d.ts +0 -0
  120. package/dist/core/minimal-scaffolder.d.ts.map +0 -0
  121. package/dist/core/minimal-scaffolder.js +0 -0
  122. package/dist/core/minimal-scaffolder.js.map +0 -0
  123. package/dist/core/modern-console.d.ts +0 -0
  124. package/dist/core/modern-console.d.ts.map +0 -0
  125. package/dist/core/modern-console.js +0 -0
  126. package/dist/core/modern-console.js.map +0 -0
  127. package/dist/core/openspec-manager.d.ts +0 -0
  128. package/dist/core/openspec-manager.d.ts.map +0 -0
  129. package/dist/core/openspec-manager.js +0 -0
  130. package/dist/core/openspec-manager.js.map +0 -0
  131. package/dist/core/openspec-migrator.d.ts +0 -0
  132. package/dist/core/openspec-migrator.d.ts.map +0 -0
  133. package/dist/core/openspec-migrator.js +0 -0
  134. package/dist/core/openspec-migrator.js.map +0 -0
  135. package/dist/core/prd-generator.d.ts +36 -0
  136. package/dist/core/prd-generator.d.ts.map +1 -0
  137. package/dist/core/prd-generator.js +137 -0
  138. package/dist/core/prd-generator.js.map +1 -0
  139. package/dist/core/ralph-manager.d.ts +75 -0
  140. package/dist/core/ralph-manager.d.ts.map +1 -0
  141. package/dist/core/ralph-manager.js +274 -0
  142. package/dist/core/ralph-manager.js.map +1 -0
  143. package/dist/core/skills-manager.d.ts +0 -0
  144. package/dist/core/skills-manager.d.ts.map +0 -0
  145. package/dist/core/skills-manager.js +0 -0
  146. package/dist/core/skills-manager.js.map +0 -0
  147. package/dist/core/task-manager.d.ts +0 -0
  148. package/dist/core/task-manager.d.ts.map +0 -0
  149. package/dist/core/task-manager.js +0 -0
  150. package/dist/core/task-manager.js.map +0 -0
  151. package/dist/core/test-task-manager.d.ts +0 -0
  152. package/dist/core/test-task-manager.d.ts.map +0 -0
  153. package/dist/core/test-task-manager.js +0 -0
  154. package/dist/core/test-task-manager.js.map +0 -0
  155. package/dist/core/validator.d.ts +0 -0
  156. package/dist/core/validator.d.ts.map +0 -0
  157. package/dist/core/validator.js +0 -0
  158. package/dist/core/validator.js.map +0 -0
  159. package/dist/core/version-bumper.d.ts +0 -0
  160. package/dist/core/version-bumper.d.ts.map +0 -0
  161. package/dist/core/version-bumper.js +0 -0
  162. package/dist/core/version-bumper.js.map +0 -0
  163. package/dist/core/watcher.d.ts +0 -0
  164. package/dist/core/watcher.d.ts.map +0 -0
  165. package/dist/core/watcher.js +0 -0
  166. package/dist/core/watcher.js.map +0 -0
  167. package/dist/core/workflow-generator.d.ts +0 -0
  168. package/dist/core/workflow-generator.d.ts.map +0 -0
  169. package/dist/core/workflow-generator.js +297 -297
  170. package/dist/core/workflow-generator.js.map +0 -0
  171. package/dist/index.d.ts +0 -0
  172. package/dist/index.d.ts.map +0 -0
  173. package/dist/index.js +46 -1
  174. package/dist/index.js.map +1 -1
  175. package/dist/mcp/rulebook-server.d.ts +0 -0
  176. package/dist/mcp/rulebook-server.d.ts.map +1 -1
  177. package/dist/mcp/rulebook-server.js +263 -18
  178. package/dist/mcp/rulebook-server.js.map +1 -1
  179. package/dist/memory/hnsw-index.d.ts +0 -0
  180. package/dist/memory/hnsw-index.d.ts.map +1 -1
  181. package/dist/memory/hnsw-index.js +0 -0
  182. package/dist/memory/hnsw-index.js.map +1 -1
  183. package/dist/memory/memory-cache.d.ts +0 -0
  184. package/dist/memory/memory-cache.d.ts.map +1 -1
  185. package/dist/memory/memory-cache.js +0 -0
  186. package/dist/memory/memory-cache.js.map +1 -1
  187. package/dist/memory/memory-hooks.d.ts +6 -0
  188. package/dist/memory/memory-hooks.d.ts.map +1 -1
  189. package/dist/memory/memory-hooks.js +70 -15
  190. package/dist/memory/memory-hooks.js.map +1 -1
  191. package/dist/memory/memory-manager.d.ts +1 -0
  192. package/dist/memory/memory-manager.d.ts.map +1 -1
  193. package/dist/memory/memory-manager.js +9 -7
  194. package/dist/memory/memory-manager.js.map +1 -1
  195. package/dist/memory/memory-search.d.ts +0 -0
  196. package/dist/memory/memory-search.d.ts.map +1 -1
  197. package/dist/memory/memory-search.js +3 -8
  198. package/dist/memory/memory-search.js.map +1 -1
  199. package/dist/memory/memory-store.d.ts +0 -0
  200. package/dist/memory/memory-store.d.ts.map +1 -1
  201. package/dist/memory/memory-store.js +68 -71
  202. package/dist/memory/memory-store.js.map +1 -1
  203. package/dist/memory/memory-types.d.ts +1 -0
  204. package/dist/memory/memory-types.d.ts.map +1 -1
  205. package/dist/memory/memory-types.js +0 -0
  206. package/dist/memory/memory-types.js.map +0 -0
  207. package/dist/memory/memory-vectorizer.d.ts +0 -0
  208. package/dist/memory/memory-vectorizer.d.ts.map +1 -1
  209. package/dist/memory/memory-vectorizer.js +108 -13
  210. package/dist/memory/memory-vectorizer.js.map +1 -1
  211. package/dist/types.d.ts +70 -0
  212. package/dist/types.d.ts.map +1 -1
  213. package/dist/types.js +0 -0
  214. package/dist/types.js.map +0 -0
  215. package/dist/utils/file-system.d.ts +0 -0
  216. package/dist/utils/file-system.d.ts.map +0 -0
  217. package/dist/utils/file-system.js +0 -0
  218. package/dist/utils/file-system.js.map +0 -0
  219. package/dist/utils/git-hooks.d.ts +0 -0
  220. package/dist/utils/git-hooks.d.ts.map +0 -0
  221. package/dist/utils/git-hooks.js +0 -0
  222. package/dist/utils/git-hooks.js.map +0 -0
  223. package/dist/utils/rulesignore.d.ts +0 -0
  224. package/dist/utils/rulesignore.d.ts.map +0 -0
  225. package/dist/utils/rulesignore.js +0 -0
  226. package/dist/utils/rulesignore.js.map +0 -0
  227. package/package.json +108 -107
  228. package/templates/cli/AIDER.md +0 -0
  229. package/templates/cli/AMAZON_Q.md +0 -0
  230. package/templates/cli/AUGGIE.md +0 -0
  231. package/templates/cli/CLAUDE.md +85 -0
  232. package/templates/cli/CLAUDE_CODE.md +0 -0
  233. package/templates/cli/CLINE.md +69 -2
  234. package/templates/cli/CODEBUDDY.md +0 -0
  235. package/templates/cli/CODEIUM.md +0 -0
  236. package/templates/cli/CODEX.md +0 -0
  237. package/templates/cli/CONTINUE.md +0 -0
  238. package/templates/cli/CURSOR_CLI.md +37 -3
  239. package/templates/cli/FACTORY.md +0 -0
  240. package/templates/cli/GEMINI.md +0 -0
  241. package/templates/cli/KILOCODE.md +0 -0
  242. package/templates/cli/OPENCODE.md +0 -0
  243. package/templates/cli/_GENERIC_TEMPLATE.md +0 -0
  244. package/templates/cli/gemini-extension.json +0 -0
  245. package/templates/commands/rulebook-memory-save.md +0 -0
  246. package/templates/commands/rulebook-memory-search.md +0 -0
  247. package/templates/commands/rulebook-task-apply.md +0 -0
  248. package/templates/commands/rulebook-task-archive.md +0 -0
  249. package/templates/commands/rulebook-task-create.md +0 -0
  250. package/templates/commands/rulebook-task-list.md +0 -0
  251. package/templates/commands/rulebook-task-show.md +0 -0
  252. package/templates/commands/rulebook-task-validate.md +0 -0
  253. package/templates/core/AGENT_AUTOMATION.md +142 -38
  254. package/templates/core/DAG.md +0 -0
  255. package/templates/core/DOCUMENTATION_RULES.md +0 -0
  256. package/templates/core/QUALITY_ENFORCEMENT.md +0 -0
  257. package/templates/core/RALPH.md +430 -0
  258. package/templates/core/RULEBOOK.md +20 -1
  259. package/templates/frameworks/ANGULAR.md +0 -0
  260. package/templates/frameworks/DJANGO.md +0 -0
  261. package/templates/frameworks/ELECTRON.md +0 -0
  262. package/templates/frameworks/FLASK.md +0 -0
  263. package/templates/frameworks/FLUTTER.md +0 -0
  264. package/templates/frameworks/JQUERY.md +0 -0
  265. package/templates/frameworks/LARAVEL.md +0 -0
  266. package/templates/frameworks/NESTJS.md +0 -0
  267. package/templates/frameworks/NEXTJS.md +0 -0
  268. package/templates/frameworks/NUXT.md +0 -0
  269. package/templates/frameworks/RAILS.md +0 -0
  270. package/templates/frameworks/REACT.md +0 -0
  271. package/templates/frameworks/REACT_NATIVE.md +0 -0
  272. package/templates/frameworks/SPRING.md +0 -0
  273. package/templates/frameworks/SYMFONY.md +0 -0
  274. package/templates/frameworks/VUE.md +0 -0
  275. package/templates/frameworks/ZEND.md +0 -0
  276. package/templates/git/CI_CD_PATTERNS.md +0 -0
  277. package/templates/git/GITHUB_ACTIONS.md +0 -0
  278. package/templates/git/GITLAB_CI.md +0 -0
  279. package/templates/git/GIT_WORKFLOW.md +0 -0
  280. package/templates/git/SECRETS_MANAGEMENT.md +0 -0
  281. package/templates/hooks/COMMIT_MSG.md +0 -0
  282. package/templates/hooks/POST_CHECKOUT.md +0 -0
  283. package/templates/hooks/PREPARE_COMMIT_MSG.md +0 -0
  284. package/templates/hooks/PRE_COMMIT.md +0 -0
  285. package/templates/hooks/PRE_PUSH.md +0 -0
  286. package/templates/hooks/csharp-pre-commit.sh +0 -0
  287. package/templates/hooks/csharp-pre-push.sh +0 -0
  288. package/templates/hooks/dart-pre-commit.sh +0 -0
  289. package/templates/hooks/dart-pre-push.sh +0 -0
  290. package/templates/hooks/elixir-pre-commit.sh +0 -0
  291. package/templates/hooks/elixir-pre-push.sh +0 -0
  292. package/templates/hooks/erlang-pre-commit.sh +0 -0
  293. package/templates/hooks/erlang-pre-push.sh +0 -0
  294. package/templates/hooks/go-pre-commit.sh +0 -0
  295. package/templates/hooks/go-pre-push.sh +0 -0
  296. package/templates/hooks/haskell-pre-commit.sh +0 -0
  297. package/templates/hooks/haskell-pre-push.sh +0 -0
  298. package/templates/hooks/java-pre-commit.sh +0 -0
  299. package/templates/hooks/java-pre-push.sh +0 -0
  300. package/templates/hooks/kotlin-pre-commit.sh +0 -0
  301. package/templates/hooks/kotlin-pre-push.sh +0 -0
  302. package/templates/hooks/php-pre-commit.sh +0 -0
  303. package/templates/hooks/php-pre-push.sh +0 -0
  304. package/templates/hooks/python-pre-commit.sh +0 -0
  305. package/templates/hooks/python-pre-push.sh +0 -0
  306. package/templates/hooks/ruby-pre-commit.sh +0 -0
  307. package/templates/hooks/ruby-pre-push.sh +0 -0
  308. package/templates/hooks/rust-pre-commit.sh +0 -0
  309. package/templates/hooks/rust-pre-push.sh +0 -0
  310. package/templates/hooks/scala-pre-commit.sh +0 -0
  311. package/templates/hooks/scala-pre-push.sh +0 -0
  312. package/templates/hooks/swift-pre-commit.sh +0 -0
  313. package/templates/hooks/swift-pre-push.sh +0 -0
  314. package/templates/hooks/typescript-pre-commit.sh +0 -0
  315. package/templates/hooks/typescript-pre-push.sh +0 -0
  316. package/templates/ides/COPILOT.md +0 -0
  317. package/templates/ides/CURSOR.md +0 -0
  318. package/templates/ides/JETBRAINS_AI.md +0 -0
  319. package/templates/ides/REPLIT.md +0 -0
  320. package/templates/ides/TABNINE.md +0 -0
  321. package/templates/ides/VSCODE.md +0 -0
  322. package/templates/ides/WINDSURF.md +0 -0
  323. package/templates/ides/ZED.md +0 -0
  324. package/templates/languages/ADA.md +0 -0
  325. package/templates/languages/C.md +0 -0
  326. package/templates/languages/CPP.md +0 -0
  327. package/templates/languages/CSHARP.md +0 -0
  328. package/templates/languages/DART.md +0 -0
  329. package/templates/languages/ELIXIR.md +0 -0
  330. package/templates/languages/ERLANG.md +0 -0
  331. package/templates/languages/GO.md +0 -0
  332. package/templates/languages/HASKELL.md +0 -0
  333. package/templates/languages/JAVA.md +0 -0
  334. package/templates/languages/JAVASCRIPT.md +0 -0
  335. package/templates/languages/JULIA.md +0 -0
  336. package/templates/languages/KOTLIN.md +0 -0
  337. package/templates/languages/LISP.md +0 -0
  338. package/templates/languages/LUA.md +0 -0
  339. package/templates/languages/OBJECTIVEC.md +0 -0
  340. package/templates/languages/PHP.md +0 -0
  341. package/templates/languages/PYTHON.md +0 -0
  342. package/templates/languages/R.md +0 -0
  343. package/templates/languages/RUBY.md +0 -0
  344. package/templates/languages/RUST.md +0 -0
  345. package/templates/languages/SAS.md +0 -0
  346. package/templates/languages/SCALA.md +0 -0
  347. package/templates/languages/SOLIDITY.md +0 -0
  348. package/templates/languages/SQL.md +0 -0
  349. package/templates/languages/SWIFT.md +0 -0
  350. package/templates/languages/TYPESCRIPT.md +0 -0
  351. package/templates/languages/ZIG.md +0 -0
  352. package/templates/modules/ATLASSIAN.md +0 -0
  353. package/templates/modules/CONTEXT7.md +0 -0
  354. package/templates/modules/FIGMA.md +0 -0
  355. package/templates/modules/GITHUB_MCP.md +0 -0
  356. package/templates/modules/GRAFANA.md +0 -0
  357. package/templates/modules/MEMORY.md +74 -11
  358. package/templates/modules/NOTION.md +0 -0
  359. package/templates/modules/PLAYWRIGHT.md +0 -0
  360. package/templates/modules/RULEBOOK_MCP.md +0 -0
  361. package/templates/modules/SERENA.md +0 -0
  362. package/templates/modules/SUPABASE.md +0 -0
  363. package/templates/modules/SYNAP.md +0 -0
  364. package/templates/modules/VECTORIZER.md +0 -0
  365. package/templates/services/AZURE_BLOB.md +0 -0
  366. package/templates/services/CASSANDRA.md +0 -0
  367. package/templates/services/DYNAMODB.md +0 -0
  368. package/templates/services/ELASTICSEARCH.md +0 -0
  369. package/templates/services/GCS.md +0 -0
  370. package/templates/services/INFLUXDB.md +0 -0
  371. package/templates/services/KAFKA.md +0 -0
  372. package/templates/services/MARIADB.md +0 -0
  373. package/templates/services/MEMCACHED.md +0 -0
  374. package/templates/services/MINIO.md +0 -0
  375. package/templates/services/MONGODB.md +0 -0
  376. package/templates/services/MYSQL.md +0 -0
  377. package/templates/services/NEO4J.md +0 -0
  378. package/templates/services/ORACLE.md +0 -0
  379. package/templates/services/POSTGRESQL.md +0 -0
  380. package/templates/services/RABBITMQ.md +0 -0
  381. package/templates/services/REDIS.md +0 -0
  382. package/templates/services/S3.md +0 -0
  383. package/templates/services/SQLITE.md +0 -0
  384. package/templates/services/SQLSERVER.md +0 -0
  385. package/templates/skills/cli/aider/SKILL.md +0 -0
  386. package/templates/skills/cli/amazon-q/SKILL.md +0 -0
  387. package/templates/skills/cli/auggie/SKILL.md +0 -0
  388. package/templates/skills/cli/claude/SKILL.md +0 -0
  389. package/templates/skills/cli/claude-code/SKILL.md +0 -0
  390. package/templates/skills/cli/cline/SKILL.md +0 -0
  391. package/templates/skills/cli/codebuddy/SKILL.md +0 -0
  392. package/templates/skills/cli/codeium/SKILL.md +0 -0
  393. package/templates/skills/cli/codex/SKILL.md +0 -0
  394. package/templates/skills/cli/continue/SKILL.md +0 -0
  395. package/templates/skills/cli/cursor-cli/SKILL.md +0 -0
  396. package/templates/skills/cli/factory/SKILL.md +0 -0
  397. package/templates/skills/cli/gemini/SKILL.md +0 -0
  398. package/templates/skills/cli/kilocode/SKILL.md +0 -0
  399. package/templates/skills/cli/opencode/SKILL.md +0 -0
  400. package/templates/skills/core/agent-automation/SKILL.md +0 -0
  401. package/templates/skills/core/dag/SKILL.md +0 -0
  402. package/templates/skills/core/documentation-rules/SKILL.md +0 -0
  403. package/templates/skills/core/quality-enforcement/SKILL.md +0 -0
  404. package/templates/skills/core/rulebook/SKILL.md +0 -0
  405. package/templates/skills/frameworks/angular/SKILL.md +0 -0
  406. package/templates/skills/frameworks/django/SKILL.md +0 -0
  407. package/templates/skills/frameworks/electron/SKILL.md +0 -0
  408. package/templates/skills/frameworks/flask/SKILL.md +0 -0
  409. package/templates/skills/frameworks/flutter/SKILL.md +0 -0
  410. package/templates/skills/frameworks/jquery/SKILL.md +0 -0
  411. package/templates/skills/frameworks/laravel/SKILL.md +0 -0
  412. package/templates/skills/frameworks/nestjs/SKILL.md +0 -0
  413. package/templates/skills/frameworks/nextjs/SKILL.md +0 -0
  414. package/templates/skills/frameworks/nuxt/SKILL.md +0 -0
  415. package/templates/skills/frameworks/rails/SKILL.md +0 -0
  416. package/templates/skills/frameworks/react/SKILL.md +0 -0
  417. package/templates/skills/frameworks/react-native/SKILL.md +0 -0
  418. package/templates/skills/frameworks/spring/SKILL.md +0 -0
  419. package/templates/skills/frameworks/symfony/SKILL.md +0 -0
  420. package/templates/skills/frameworks/vue/SKILL.md +0 -0
  421. package/templates/skills/frameworks/zend/SKILL.md +0 -0
  422. package/templates/skills/ides/copilot/SKILL.md +0 -0
  423. package/templates/skills/ides/cursor/SKILL.md +0 -0
  424. package/templates/skills/ides/jetbrains-ai/SKILL.md +0 -0
  425. package/templates/skills/ides/replit/SKILL.md +0 -0
  426. package/templates/skills/ides/tabnine/SKILL.md +0 -0
  427. package/templates/skills/ides/vscode/SKILL.md +0 -0
  428. package/templates/skills/ides/windsurf/SKILL.md +0 -0
  429. package/templates/skills/ides/zed/SKILL.md +0 -0
  430. package/templates/skills/languages/ada/SKILL.md +0 -0
  431. package/templates/skills/languages/c/SKILL.md +0 -0
  432. package/templates/skills/languages/cpp/SKILL.md +0 -0
  433. package/templates/skills/languages/csharp/SKILL.md +0 -0
  434. package/templates/skills/languages/dart/SKILL.md +0 -0
  435. package/templates/skills/languages/elixir/SKILL.md +0 -0
  436. package/templates/skills/languages/erlang/SKILL.md +0 -0
  437. package/templates/skills/languages/go/SKILL.md +0 -0
  438. package/templates/skills/languages/haskell/SKILL.md +0 -0
  439. package/templates/skills/languages/java/SKILL.md +0 -0
  440. package/templates/skills/languages/javascript/SKILL.md +0 -0
  441. package/templates/skills/languages/julia/SKILL.md +0 -0
  442. package/templates/skills/languages/kotlin/SKILL.md +0 -0
  443. package/templates/skills/languages/lisp/SKILL.md +0 -0
  444. package/templates/skills/languages/lua/SKILL.md +0 -0
  445. package/templates/skills/languages/objectivec/SKILL.md +0 -0
  446. package/templates/skills/languages/php/SKILL.md +0 -0
  447. package/templates/skills/languages/python/SKILL.md +0 -0
  448. package/templates/skills/languages/r/SKILL.md +0 -0
  449. package/templates/skills/languages/ruby/SKILL.md +0 -0
  450. package/templates/skills/languages/rust/SKILL.md +0 -0
  451. package/templates/skills/languages/sas/SKILL.md +0 -0
  452. package/templates/skills/languages/scala/SKILL.md +0 -0
  453. package/templates/skills/languages/solidity/SKILL.md +0 -0
  454. package/templates/skills/languages/sql/SKILL.md +0 -0
  455. package/templates/skills/languages/swift/SKILL.md +0 -0
  456. package/templates/skills/languages/typescript/SKILL.md +0 -0
  457. package/templates/skills/languages/zig/SKILL.md +0 -0
  458. package/templates/skills/modules/atlassian/SKILL.md +0 -0
  459. package/templates/skills/modules/context7/SKILL.md +0 -0
  460. package/templates/skills/modules/figma/SKILL.md +0 -0
  461. package/templates/skills/modules/github-mcp/SKILL.md +0 -0
  462. package/templates/skills/modules/grafana/SKILL.md +0 -0
  463. package/templates/skills/modules/memory/SKILL.md +0 -0
  464. package/templates/skills/modules/notion/SKILL.md +0 -0
  465. package/templates/skills/modules/playwright/SKILL.md +0 -0
  466. package/templates/skills/modules/rulebook-mcp/SKILL.md +0 -0
  467. package/templates/skills/modules/serena/SKILL.md +0 -0
  468. package/templates/skills/modules/supabase/SKILL.md +0 -0
  469. package/templates/skills/modules/synap/SKILL.md +0 -0
  470. package/templates/skills/modules/vectorizer/SKILL.md +0 -0
  471. package/templates/skills/services/azure-blob/SKILL.md +0 -0
  472. package/templates/skills/services/cassandra/SKILL.md +0 -0
  473. package/templates/skills/services/dynamodb/SKILL.md +0 -0
  474. package/templates/skills/services/elasticsearch/SKILL.md +0 -0
  475. package/templates/skills/services/gcs/SKILL.md +0 -0
  476. package/templates/skills/services/influxdb/SKILL.md +0 -0
  477. package/templates/skills/services/kafka/SKILL.md +0 -0
  478. package/templates/skills/services/mariadb/SKILL.md +0 -0
  479. package/templates/skills/services/memcached/SKILL.md +0 -0
  480. package/templates/skills/services/minio/SKILL.md +0 -0
  481. package/templates/skills/services/mongodb/SKILL.md +0 -0
  482. package/templates/skills/services/mysql/SKILL.md +0 -0
  483. package/templates/skills/services/neo4j/SKILL.md +0 -0
  484. package/templates/skills/services/oracle/SKILL.md +0 -0
  485. package/templates/skills/services/postgresql/SKILL.md +0 -0
  486. package/templates/skills/services/rabbitmq/SKILL.md +0 -0
  487. package/templates/skills/services/redis/SKILL.md +0 -0
  488. package/templates/skills/services/s3/SKILL.md +0 -0
  489. package/templates/skills/services/sqlite/SKILL.md +0 -0
  490. package/templates/skills/services/sqlserver/SKILL.md +0 -0
  491. package/templates/skills/workflows/ralph/SETUP.md +228 -0
  492. package/templates/skills/workflows/ralph/SKILL.md +309 -0
  493. package/templates/skills/workflows/ralph/install.sh +87 -0
  494. package/templates/skills/workflows/ralph/manifest.json +158 -0
  495. package/templates/workflows/codespell.yml +0 -0
  496. package/templates/workflows/cpp-lint.yml +0 -0
  497. package/templates/workflows/cpp-publish.yml +0 -0
  498. package/templates/workflows/cpp-test.yml +0 -0
  499. package/templates/workflows/dotnet-lint.yml +0 -0
  500. package/templates/workflows/dotnet-publish.yml +0 -0
  501. package/templates/workflows/dotnet-test.yml +0 -0
  502. package/templates/workflows/elixir-lint.yml +0 -0
  503. package/templates/workflows/elixir-publish.yml +0 -0
  504. package/templates/workflows/elixir-test.yml +0 -0
  505. package/templates/workflows/erlang-lint.yml +0 -0
  506. package/templates/workflows/erlang-test.yml +0 -0
  507. package/templates/workflows/go-lint.yml +0 -0
  508. package/templates/workflows/go-publish.yml +0 -0
  509. package/templates/workflows/go-test.yml +0 -0
  510. package/templates/workflows/java-lint.yml +0 -0
  511. package/templates/workflows/java-publish.yml +0 -0
  512. package/templates/workflows/java-test.yml +0 -0
  513. package/templates/workflows/kotlin-lint.yml +0 -0
  514. package/templates/workflows/kotlin-publish.yml +0 -0
  515. package/templates/workflows/kotlin-test.yml +0 -0
  516. package/templates/workflows/php-lint.yml +0 -0
  517. package/templates/workflows/php-publish.yml +0 -0
  518. package/templates/workflows/php-test.yml +0 -0
  519. package/templates/workflows/python-lint.yml +0 -0
  520. package/templates/workflows/python-publish.yml +0 -0
  521. package/templates/workflows/python-test.yml +0 -0
  522. package/templates/workflows/rust-lint.yml +0 -0
  523. package/templates/workflows/rust-publish.yml +0 -0
  524. package/templates/workflows/rust-test.yml +0 -0
  525. package/templates/workflows/solidity-lint.yml +0 -0
  526. package/templates/workflows/solidity-test.yml +0 -0
  527. package/templates/workflows/swift-lint.yml +0 -0
  528. package/templates/workflows/swift-publish.yml +0 -0
  529. package/templates/workflows/swift-test.yml +0 -0
  530. package/templates/workflows/typescript-lint.yml +0 -0
  531. package/templates/workflows/typescript-publish.yml +0 -0
  532. package/templates/workflows/typescript-test.yml +0 -0
  533. package/templates/workflows/zig-lint.yml +0 -0
  534. package/templates/workflows/zig-test.yml +0 -0
  535. package/dist/core/modern-console-new.d.ts +0 -81
  536. package/dist/core/modern-console-new.d.ts.map +0 -1
  537. package/dist/core/modern-console-new.js +0 -340
  538. package/dist/core/modern-console-new.js.map +0 -1
  539. package/dist/mcp/handlers/archive-task.d.ts +0 -17
  540. package/dist/mcp/handlers/archive-task.d.ts.map +0 -1
  541. package/dist/mcp/handlers/archive-task.js +0 -36
  542. package/dist/mcp/handlers/archive-task.js.map +0 -1
  543. package/dist/mcp/handlers/create-task.d.ts +0 -17
  544. package/dist/mcp/handlers/create-task.d.ts.map +0 -1
  545. package/dist/mcp/handlers/create-task.js +0 -56
  546. package/dist/mcp/handlers/create-task.js.map +0 -1
  547. package/dist/mcp/handlers/list-tasks.d.ts +0 -22
  548. package/dist/mcp/handlers/list-tasks.d.ts.map +0 -1
  549. package/dist/mcp/handlers/list-tasks.js +0 -42
  550. package/dist/mcp/handlers/list-tasks.js.map +0 -1
  551. package/dist/mcp/handlers/show-task.d.ts +0 -25
  552. package/dist/mcp/handlers/show-task.d.ts.map +0 -1
  553. package/dist/mcp/handlers/show-task.js +0 -43
  554. package/dist/mcp/handlers/show-task.js.map +0 -1
  555. package/dist/mcp/handlers/update-task.d.ts +0 -17
  556. package/dist/mcp/handlers/update-task.d.ts.map +0 -1
  557. package/dist/mcp/handlers/update-task.js +0 -35
  558. package/dist/mcp/handlers/update-task.js.map +0 -1
  559. package/dist/mcp/handlers/validate-task.d.ts +0 -15
  560. package/dist/mcp/handlers/validate-task.d.ts.map +0 -1
  561. package/dist/mcp/handlers/validate-task.js +0 -27
  562. package/dist/mcp/handlers/validate-task.js.map +0 -1
  563. package/dist/mcp/rulebook-config.d.ts +0 -22
  564. package/dist/mcp/rulebook-config.d.ts.map +0 -1
  565. package/dist/mcp/rulebook-config.js +0 -65
  566. package/dist/mcp/rulebook-config.js.map +0 -1
package/package.json CHANGED
@@ -1,107 +1,108 @@
1
- {
2
- "name": "@hivehub/rulebook",
3
- "version": "3.0.0",
4
- "description": "Standardize AI-generated projects with automated templates, quality gates, persistent memory, and framework detection for 28 languages, 17 frameworks, 13 MCP modules, and 20 services",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "rulebook": "./dist/index.js",
9
- "rulebook-mcp": "./dist/mcp/rulebook-server.js"
10
- },
11
- "scripts": {
12
- "build": "tsc",
13
- "dev": "tsx src/index.ts",
14
- "test": "vitest run --no-watch",
15
- "test:watch": "vitest",
16
- "test:coverage": "vitest run --coverage --no-watch",
17
- "test:agent": "node scripts/test-agent-simple.mjs",
18
- "test:agent:quick": "node scripts/test-agent-simple.mjs",
19
- "test:agent:full": "node scripts/test-agent-manager.js all",
20
- "test:agent:comprehensive": "npx vitest run tests/agent-manager-comprehensive.test.ts",
21
- "setup:mcp": "node scripts/setup-mcp-config.js",
22
- "lint": "npx eslint src/**/*.ts --quiet",
23
- "lint:fix": "npx eslint src/**/*.ts --fix --quiet",
24
- "format": "npx prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
25
- "type-check": "tsc --noEmit",
26
- "prepublishOnly": "npm run build",
27
- "publish:wsl": "export BROWSER=wslview && npm publish",
28
- "mcp-server": "node dist/mcp/rulebook-server.js"
29
- },
30
- "keywords": [
31
- "ai",
32
- "automation",
33
- "templates",
34
- "rules",
35
- "standards",
36
- "cli",
37
- "npx",
38
- "agents",
39
- "cursor",
40
- "windsurf",
41
- "git-hooks",
42
- "frameworks",
43
- "nestjs",
44
- "django",
45
- "nextjs",
46
- "mcp",
47
- "typescript",
48
- "rust",
49
- "python"
50
- ],
51
- "author": "HiveLLM Team",
52
- "license": "Apache-2.0",
53
- "engines": {
54
- "node": ">=20.0.0"
55
- },
56
- "dependencies": {
57
- "@modelcontextprotocol/sdk": "^1.22.0",
58
- "@types/blessed": "^0.1.26",
59
- "ansi-escapes": "^7.2.0",
60
- "blessed": "^0.1.81",
61
- "chalk": "^5.3.0",
62
- "cli-cursor": "^5.0.0",
63
- "commander": "^14.0.2",
64
- "execa": "^9.6.0",
65
- "glob": "^13.0.0",
66
- "inquirer": "^13.0.1",
67
- "js-yaml": "^4.1.1",
68
- "node-notifier": "^10.0.1",
69
- "ora": "^9.0.0",
70
- "picocolors": "^1.0.0",
71
- "sql.js": "^1.14.0",
72
- "uuid": "^13.0.0",
73
- "zod": "^3.25.76"
74
- },
75
- "devDependencies": {
76
- "@eslint/js": "^9.37.0",
77
- "@types/inquirer": "^9.0.0",
78
- "@types/js-yaml": "^4.0.0",
79
- "@types/node": "^24.10.1",
80
- "@types/node-notifier": "^8.0.5",
81
- "@types/uuid": "^10.0.0",
82
- "@typescript-eslint/eslint-plugin": "^8.47.0",
83
- "@typescript-eslint/parser": "^8.47.0",
84
- "@vitest/coverage-v8": "^4.0.13",
85
- "eslint": "^9.37.0",
86
- "globals": "^15.11.0",
87
- "prettier": "^3.2.0",
88
- "tsx": "^4.7.0",
89
- "typescript": "^5.3.3",
90
- "vitest": "^4.0.13"
91
- },
92
- "publishConfig": {
93
- "access": "public"
94
- },
95
- "files": [
96
- "dist",
97
- "templates"
98
- ],
99
- "repository": {
100
- "type": "git",
101
- "url": "https://github.com/hivellm/rulebook.git"
102
- },
103
- "bugs": {
104
- "url": "https://github.com/hivellm/rulebook/issues"
105
- },
106
- "homepage": "https://github.com/hivellm/rulebook#readme"
107
- }
1
+ {
2
+ "name": "@hivehub/rulebook",
3
+ "version": "3.2.0",
4
+ "description": "Standardize AI-generated projects with automated templates, quality gates, persistent memory, and framework detection for 28 languages, 17 frameworks, 13 MCP modules, and 20 services",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "rulebook": "./dist/index.js",
9
+ "rulebook-mcp": "./dist/mcp/rulebook-server.js"
10
+ },
11
+ "keywords": [
12
+ "ai",
13
+ "automation",
14
+ "templates",
15
+ "rules",
16
+ "standards",
17
+ "cli",
18
+ "npx",
19
+ "agents",
20
+ "cursor",
21
+ "windsurf",
22
+ "git-hooks",
23
+ "frameworks",
24
+ "nestjs",
25
+ "django",
26
+ "nextjs",
27
+ "mcp",
28
+ "typescript",
29
+ "rust",
30
+ "python"
31
+ ],
32
+ "author": "HiveLLM Team",
33
+ "license": "Apache-2.0",
34
+ "engines": {
35
+ "node": ">=20.0.0"
36
+ },
37
+ "dependencies": {
38
+ "@modelcontextprotocol/sdk": "^1.22.0",
39
+ "@types/blessed": "^0.1.26",
40
+ "ansi-escapes": "^7.2.0",
41
+ "blessed": "^0.1.81",
42
+ "chalk": "^5.3.0",
43
+ "cli-cursor": "^5.0.0",
44
+ "commander": "^14.0.2",
45
+ "execa": "^9.6.0",
46
+ "glob": "^13.0.0",
47
+ "inquirer": "^13.0.1",
48
+ "js-yaml": "^4.1.1",
49
+ "node-notifier": "^10.0.1",
50
+ "ora": "^9.0.0",
51
+ "picocolors": "^1.0.0",
52
+ "sql.js": "^1.14.0",
53
+ "uuid": "^13.0.0",
54
+ "zod": "^3.25.76"
55
+ },
56
+ "devDependencies": {
57
+ "@eslint/js": "^9.37.0",
58
+ "@types/inquirer": "^9.0.0",
59
+ "@types/js-yaml": "^4.0.0",
60
+ "@types/node": "^24.10.1",
61
+ "@types/node-notifier": "^8.0.5",
62
+ "@types/uuid": "^10.0.0",
63
+ "@typescript-eslint/eslint-plugin": "^8.47.0",
64
+ "@typescript-eslint/parser": "^8.47.0",
65
+ "@vitest/coverage-v8": "^4.0.13",
66
+ "eslint": "^9.37.0",
67
+ "globals": "^15.11.0",
68
+ "prettier": "^3.2.0",
69
+ "tsx": "^4.7.0",
70
+ "typescript": "^5.3.3",
71
+ "vitest": "^4.0.13"
72
+ },
73
+ "publishConfig": {
74
+ "access": "public"
75
+ },
76
+ "files": [
77
+ "dist",
78
+ "templates",
79
+ ".claude-plugin",
80
+ ".claude/commands"
81
+ ],
82
+ "repository": {
83
+ "type": "git",
84
+ "url": "https://github.com/hivellm/rulebook.git"
85
+ },
86
+ "bugs": {
87
+ "url": "https://github.com/hivellm/rulebook/issues"
88
+ },
89
+ "homepage": "https://github.com/hivellm/rulebook#readme",
90
+ "scripts": {
91
+ "build": "tsc",
92
+ "dev": "tsx src/index.ts",
93
+ "test": "vitest run --no-watch",
94
+ "test:watch": "vitest",
95
+ "test:coverage": "vitest run --coverage --no-watch",
96
+ "test:agent": "node scripts/test-agent-simple.mjs",
97
+ "test:agent:quick": "node scripts/test-agent-simple.mjs",
98
+ "test:agent:full": "node scripts/test-agent-manager.js all",
99
+ "test:agent:comprehensive": "npx vitest run tests/agent-manager-comprehensive.test.ts",
100
+ "setup:mcp": "node scripts/setup-mcp-config.js",
101
+ "lint": "npx eslint src/**/*.ts --quiet",
102
+ "lint:fix": "npx eslint src/**/*.ts --fix --quiet",
103
+ "format": "npx prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
104
+ "type-check": "tsc --noEmit",
105
+ "publish:wsl": "export BROWSER=wslview && npm publish",
106
+ "mcp-server": "node dist/mcp/rulebook-server.js"
107
+ }
108
+ }
File without changes
File without changes
File without changes
@@ -26,7 +26,92 @@ Implement [feature] with tests first (95%+ coverage)."
26
26
  2. Request features with standards reference
27
27
  3. Review generated code
28
28
  4. Run quality checks
29
+ 5. Save learnings to persistent memory
29
30
 
30
31
  **Critical**: Claude has 200K context - paste full AGENTS.md for best results.
31
32
 
33
+ ## ⚠️ Token Optimization (CRITICAL)
34
+
35
+ **MINIMIZE unnecessary output to reduce token consumption:**
36
+
37
+ ### DO ✅
38
+ - Output code directly without explanations
39
+ - Use code comments for complex logic instead of markdown
40
+ - Return results concisely: "✅ Done" or "❌ Error: reason"
41
+ - Use tables only when absolutely necessary
42
+ - Combine multiple small outputs into single response
43
+
44
+ ### DON'T ❌
45
+ - **NEVER generate markdown reports or summaries** unless explicitly requested
46
+ - **NEVER use excessive heading levels** (#, ##, ###, etc.)
47
+ - **NEVER create "Quality Checks" sections** with status boxes
48
+ - **NEVER output commit messages verbatim** - just say "committed"
49
+ - **NEVER explain what you did** - assume user knows project structure
50
+ - **NEVER use emoji status lines** (✅ Type check: Passed) - too verbose
51
+ - **NEVER generate "Next Steps" sections** - just do the work
52
+ - **NEVER output implementation details in plain text** - put in code comments
53
+
54
+ ### Example: BAD (Wastes Tokens)
55
+ ```
56
+ ✅ Implementation Complete
57
+
58
+ 📝 Changes:
59
+ - Added UserService class
60
+ - Added authentication middleware
61
+ - Updated routes configuration
62
+
63
+ 🧪 Quality Checks:
64
+ - ✅ Type check: Passed
65
+ - ✅ Linting: Passed (0 warnings)
66
+ - ✅ Tests: 45/45 passed (100%)
67
+ - ✅ Coverage: 96% (threshold: 95%)
68
+
69
+ 📊 Summary:
70
+ This implementation adds...
71
+
72
+ Next Steps:
73
+ 1. Review the code
74
+ 2. Deploy to production
75
+ ```
76
+
77
+ ### Example: GOOD (Efficient)
78
+ ```
79
+ ✅ Done. UserService added with auth middleware.
80
+ ```
81
+
82
+ Put details in code comments, not markdown.
83
+
84
+ ## Persistent Memory Integration
85
+
86
+ ### Search for Past Context
87
+ Before implementing a feature, search memory for similar past work:
88
+
89
+ ```bash
90
+ # Search for past implementations
91
+ rulebook memory search "feature name" --mode hybrid --type feature
92
+
93
+ # View timeline of related work
94
+ rulebook memory timeline --memoryId <id>
95
+ ```
96
+
97
+ ### Save Implementation Insights
98
+ After completing implementation, capture key learnings:
99
+
100
+ ```bash
101
+ # Save feature implementation
102
+ rulebook memory save "Implemented [feature] with [approach]. Key decision: [why]. Gotcha: [edge case]. Pattern: [reusable solution]" --type feature --title "[Feature name]" --tags tag1,tag2
103
+
104
+ # Save bugfix insights
105
+ rulebook memory save "Fixed [bug] by [solution]. Root cause: [why it happened]. Test case: [added validation]" --type bugfix --title "[Bug description]" --tags bugfix,area
106
+
107
+ # Save architectural decisions
108
+ rulebook memory save "Chose [approach] over [alternative] because [reasoning]. Tradeoffs: [what was sacrificed]. Future implications: [impact on architecture]" --type decision --title "[Decision name]" --tags architecture,decision
109
+ ```
110
+
111
+ ### Use Context from Memory
112
+ When Claude Code returns, your memory system auto-captures learnings. Review and augment:
113
+ 1. Search relevant memories: `rulebook memory search "your topic"`
114
+ 2. Review 3-layer search results: compact → timeline → full details
115
+ 3. Reference past patterns in new implementations
116
+
32
117
  <!-- CLAUDE:END -->
File without changes
@@ -24,9 +24,76 @@ Install Cline extension in VS Code or use CLI mode.
24
24
 
25
25
  1. Keep AGENTS.md open in workspace
26
26
  2. Request features with "Follow @AGENTS.md" prefix
27
- 3. Review proposed changes before approval
28
- 4. Verify tests pass after implementation
27
+ 3. Search memory for similar past implementations before starting
28
+ 4. Review proposed changes before approval
29
+ 5. Verify tests pass after implementation
30
+ 6. Save learnings to persistent memory
29
31
 
30
32
  **Critical**: Reference @AGENTS.md in every prompt for consistent output.
31
33
 
34
+ ## ⚠️ Token Optimization (CRITICAL)
35
+
36
+ **Minimize output to reduce token consumption:**
37
+
38
+ ### DO ✅
39
+ - Output code directly
40
+ - Use code comments for explanations
41
+ - Return concise results: "✅ Done" instead of reports
42
+ - Combine multiple small outputs
43
+
44
+ ### DON'T ❌
45
+ - **NEVER generate markdown reports** unless explicitly requested
46
+ - **NEVER use emoji status lines** (✅ Type check: Passed)
47
+ - **NEVER create "Quality Checks" sections** with status boxes
48
+ - **NEVER explain implementation details** in plain text
49
+ - **NEVER add "Next Steps" sections**
50
+
51
+ **Example**:
52
+ - ❌ BAD: "✅ Type check: Passed. ✅ Linting: 0 warnings. ✅ Tests: 45/45..." (500+ tokens)
53
+ - ✅ GOOD: "✅ Checks pass. Tests: 45/45." (~50 tokens)
54
+
55
+ ## Persistent Memory Integration
56
+
57
+ ### Before Implementation
58
+ Always search for past similar work:
59
+
60
+ ```bash
61
+ # Search for feature implementations
62
+ rulebook memory search "your feature" --mode hybrid
63
+
64
+ # View specific implementation details
65
+ rulebook memory get <memory-id>
66
+ ```
67
+
68
+ ### Prompt Template with Memory
69
+ When requesting a feature, include memory context:
70
+
71
+ ```
72
+ Follow @AGENTS.md and @.rulebook/memory.md.
73
+
74
+ Similar past implementations from memory:
75
+ [paste relevant memory summaries]
76
+
77
+ Implement [feature]...
78
+ ```
79
+
80
+ ### After Implementation
81
+ Cline's auto-capture may save learnings. Augment with additional context:
82
+
83
+ ```bash
84
+ # Verify auto-captured memory
85
+ rulebook memory search "feature name" --type feature
86
+
87
+ # Add additional context if needed
88
+ rulebook memory save "Implementation details and patterns..." --type feature --title "Feature name"
89
+ ```
90
+
91
+ ## Memory-Aware Development
92
+
93
+ The memory system provides:
94
+ - **Pattern discovery**: Find reusable solutions from past work
95
+ - **Gotcha avoidance**: Learn from past edge cases
96
+ - **Decision context**: Understand architectural choices
97
+ - **Faster iteration**: Reference proven approaches
98
+
32
99
  <!-- CLINE:END -->
File without changes
File without changes
File without changes
File without changes
@@ -19,10 +19,44 @@ Cursor automatically references:
19
19
  ## Workflow
20
20
 
21
21
  1. Use `@AGENTS.md` in chat to reference standards
22
- 2. Request: "Follow @AGENTS.md. Implement [feature] with tests."
23
- 3. Cursor respects .cursorrules and AGENTS.md automatically
24
- 4. Review and accept changes
22
+ 2. Check past implementations in memory before starting
23
+ 3. Request: "Follow @AGENTS.md. Implement [feature] with tests."
24
+ 4. Cursor respects .cursorrules and AGENTS.md automatically
25
+ 5. Save implementation learnings to memory
26
+ 6. Review and accept changes
25
27
 
26
28
  **Critical**: Generated `.cursorrules` points to AGENTS.md. Use @ mentions for explicit references.
27
29
 
30
+ ## Persistent Memory Integration
31
+
32
+ ### Using Memory in Cursor
33
+ When requesting features, include memory context:
34
+
35
+ ```
36
+ @AGENTS.md
37
+ @.rulebook/memory.md (if available)
38
+
39
+ Search memory for similar implementations and include in your reasoning before implementing.
40
+ Implement [feature]...
41
+ ```
42
+
43
+ ### Capturing Implementation Learnings
44
+ After Cursor completes work:
45
+
46
+ ```bash
47
+ # Review auto-captured memories
48
+ rulebook memory search "feature name"
49
+
50
+ # Augment with additional insights
51
+ rulebook memory save "Implementation approach, patterns discovered, edge cases handled..." --type feature --title "Feature name" --tags relevant,tags
52
+ ```
53
+
54
+ ### Memory-Enhanced Development
55
+ Cursor + Memory workflow:
56
+ 1. **Search**: Find past implementations with similar patterns
57
+ 2. **Reference**: Include relevant memories in prompts for context
58
+ 3. **Implement**: Cursor generates code informed by past solutions
59
+ 4. **Capture**: Save learnings for future sessions
60
+ 5. **Search Again**: Next session finds and leverages the work
61
+
28
62
  <!-- CURSOR_CLI:END -->
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes