@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.
- package/.claude/commands/ralph-config.md +112 -0
- package/.claude/commands/ralph-history.md +110 -0
- package/.claude/commands/ralph-init.md +72 -0
- package/.claude/commands/ralph-pause-resume.md +105 -0
- package/.claude/commands/ralph-run.md +101 -0
- package/.claude/commands/ralph-status.md +76 -0
- package/.claude/commands/rulebook-memory-save.md +48 -0
- package/.claude/commands/rulebook-memory-search.md +47 -0
- package/.claude/commands/rulebook-task-apply.md +67 -0
- package/.claude/commands/rulebook-task-archive.md +70 -0
- package/.claude/commands/rulebook-task-create.md +93 -0
- package/.claude/commands/rulebook-task-list.md +42 -0
- package/.claude/commands/rulebook-task-show.md +52 -0
- package/.claude/commands/rulebook-task-validate.md +53 -0
- package/.claude-plugin/marketplace.json +29 -0
- package/.claude-plugin/plugin.json +8 -0
- package/LICENSE +0 -0
- package/README.md +67 -5
- package/dist/agents/claude-code.d.ts +0 -0
- package/dist/agents/claude-code.d.ts.map +0 -0
- package/dist/agents/claude-code.js +0 -0
- package/dist/agents/claude-code.js.map +0 -0
- package/dist/agents/cursor-agent.d.ts +0 -0
- package/dist/agents/cursor-agent.d.ts.map +0 -0
- package/dist/agents/cursor-agent.js +0 -0
- package/dist/agents/cursor-agent.js.map +0 -0
- package/dist/agents/gemini-cli.d.ts +0 -0
- package/dist/agents/gemini-cli.d.ts.map +0 -0
- package/dist/agents/gemini-cli.js +0 -0
- package/dist/agents/gemini-cli.js.map +0 -0
- package/dist/agents/ralph-parser.d.ts +52 -0
- package/dist/agents/ralph-parser.d.ts.map +1 -0
- package/dist/agents/ralph-parser.js +223 -0
- package/dist/agents/ralph-parser.js.map +1 -0
- package/dist/cli/commands.d.ts +13 -0
- package/dist/cli/commands.d.ts.map +1 -1
- package/dist/cli/commands.js +385 -21
- package/dist/cli/commands.js.map +1 -1
- package/dist/cli/docs-prompts.d.ts +0 -0
- package/dist/cli/docs-prompts.d.ts.map +0 -0
- package/dist/cli/docs-prompts.js +0 -0
- package/dist/cli/docs-prompts.js.map +0 -0
- package/dist/cli/prompts.d.ts +0 -0
- package/dist/cli/prompts.d.ts.map +0 -0
- package/dist/cli/prompts.js +0 -0
- package/dist/cli/prompts.js.map +0 -0
- package/dist/core/agent-manager.d.ts +0 -0
- package/dist/core/agent-manager.d.ts.map +0 -0
- package/dist/core/agent-manager.js +0 -0
- package/dist/core/agent-manager.js.map +0 -0
- package/dist/core/auto-fixer.d.ts +0 -0
- package/dist/core/auto-fixer.d.ts.map +0 -0
- package/dist/core/auto-fixer.js +0 -0
- package/dist/core/auto-fixer.js.map +0 -0
- package/dist/core/changelog-generator.d.ts +0 -0
- package/dist/core/changelog-generator.d.ts.map +0 -0
- package/dist/core/changelog-generator.js +0 -0
- package/dist/core/changelog-generator.js.map +0 -0
- package/dist/core/claude-mcp.d.ts +0 -0
- package/dist/core/claude-mcp.d.ts.map +0 -0
- package/dist/core/claude-mcp.js +0 -0
- package/dist/core/claude-mcp.js.map +0 -0
- package/dist/core/cli-bridge.d.ts +0 -0
- package/dist/core/cli-bridge.d.ts.map +0 -0
- package/dist/core/cli-bridge.js +0 -0
- package/dist/core/cli-bridge.js.map +0 -0
- package/dist/core/config-manager.d.ts +13 -2
- package/dist/core/config-manager.d.ts.map +1 -1
- package/dist/core/config-manager.js +185 -7
- package/dist/core/config-manager.js.map +1 -1
- package/dist/core/coverage-checker.d.ts +0 -0
- package/dist/core/coverage-checker.d.ts.map +0 -0
- package/dist/core/coverage-checker.js +0 -0
- package/dist/core/coverage-checker.js.map +0 -0
- package/dist/core/custom-templates.d.ts +0 -0
- package/dist/core/custom-templates.d.ts.map +0 -0
- package/dist/core/custom-templates.js +0 -0
- package/dist/core/custom-templates.js.map +0 -0
- package/dist/core/dependency-checker.d.ts +0 -0
- package/dist/core/dependency-checker.d.ts.map +0 -0
- package/dist/core/dependency-checker.js +0 -0
- package/dist/core/dependency-checker.js.map +0 -0
- package/dist/core/detector.d.ts +0 -0
- package/dist/core/detector.d.ts.map +0 -0
- package/dist/core/detector.js +0 -0
- package/dist/core/detector.js.map +0 -0
- package/dist/core/docs-generator.d.ts +0 -0
- package/dist/core/docs-generator.d.ts.map +0 -0
- package/dist/core/docs-generator.js +0 -0
- package/dist/core/docs-generator.js.map +0 -0
- package/dist/core/generator.d.ts +0 -0
- package/dist/core/generator.d.ts.map +1 -1
- package/dist/core/generator.js +128 -45
- package/dist/core/generator.js.map +1 -1
- package/dist/core/gitignore-generator.d.ts +0 -0
- package/dist/core/gitignore-generator.d.ts.map +0 -0
- package/dist/core/gitignore-generator.js +0 -0
- package/dist/core/gitignore-generator.js.map +0 -0
- package/dist/core/health-scorer.d.ts +0 -0
- package/dist/core/health-scorer.d.ts.map +0 -0
- package/dist/core/health-scorer.js +0 -0
- package/dist/core/health-scorer.js.map +0 -0
- package/dist/core/iteration-tracker.d.ts +57 -0
- package/dist/core/iteration-tracker.d.ts.map +1 -0
- package/dist/core/iteration-tracker.js +209 -0
- package/dist/core/iteration-tracker.js.map +1 -0
- package/dist/core/logger.d.ts +0 -0
- package/dist/core/logger.d.ts.map +0 -0
- package/dist/core/logger.js +0 -0
- package/dist/core/logger.js.map +0 -0
- package/dist/core/merger.d.ts +0 -0
- package/dist/core/merger.d.ts.map +0 -0
- package/dist/core/merger.js +0 -0
- package/dist/core/merger.js.map +0 -0
- package/dist/core/migrator.d.ts +0 -0
- package/dist/core/migrator.d.ts.map +0 -0
- package/dist/core/migrator.js +0 -0
- package/dist/core/migrator.js.map +0 -0
- package/dist/core/minimal-scaffolder.d.ts +0 -0
- package/dist/core/minimal-scaffolder.d.ts.map +0 -0
- package/dist/core/minimal-scaffolder.js +0 -0
- package/dist/core/minimal-scaffolder.js.map +0 -0
- package/dist/core/modern-console.d.ts +0 -0
- package/dist/core/modern-console.d.ts.map +0 -0
- package/dist/core/modern-console.js +0 -0
- package/dist/core/modern-console.js.map +0 -0
- package/dist/core/openspec-manager.d.ts +0 -0
- package/dist/core/openspec-manager.d.ts.map +0 -0
- package/dist/core/openspec-manager.js +0 -0
- package/dist/core/openspec-manager.js.map +0 -0
- package/dist/core/openspec-migrator.d.ts +0 -0
- package/dist/core/openspec-migrator.d.ts.map +0 -0
- package/dist/core/openspec-migrator.js +0 -0
- package/dist/core/openspec-migrator.js.map +0 -0
- package/dist/core/prd-generator.d.ts +36 -0
- package/dist/core/prd-generator.d.ts.map +1 -0
- package/dist/core/prd-generator.js +137 -0
- package/dist/core/prd-generator.js.map +1 -0
- package/dist/core/ralph-manager.d.ts +75 -0
- package/dist/core/ralph-manager.d.ts.map +1 -0
- package/dist/core/ralph-manager.js +274 -0
- package/dist/core/ralph-manager.js.map +1 -0
- package/dist/core/skills-manager.d.ts +0 -0
- package/dist/core/skills-manager.d.ts.map +0 -0
- package/dist/core/skills-manager.js +0 -0
- package/dist/core/skills-manager.js.map +0 -0
- package/dist/core/task-manager.d.ts +0 -0
- package/dist/core/task-manager.d.ts.map +0 -0
- package/dist/core/task-manager.js +0 -0
- package/dist/core/task-manager.js.map +0 -0
- package/dist/core/test-task-manager.d.ts +0 -0
- package/dist/core/test-task-manager.d.ts.map +0 -0
- package/dist/core/test-task-manager.js +0 -0
- package/dist/core/test-task-manager.js.map +0 -0
- package/dist/core/validator.d.ts +0 -0
- package/dist/core/validator.d.ts.map +0 -0
- package/dist/core/validator.js +0 -0
- package/dist/core/validator.js.map +0 -0
- package/dist/core/version-bumper.d.ts +0 -0
- package/dist/core/version-bumper.d.ts.map +0 -0
- package/dist/core/version-bumper.js +0 -0
- package/dist/core/version-bumper.js.map +0 -0
- package/dist/core/watcher.d.ts +0 -0
- package/dist/core/watcher.d.ts.map +0 -0
- package/dist/core/watcher.js +0 -0
- package/dist/core/watcher.js.map +0 -0
- package/dist/core/workflow-generator.d.ts +0 -0
- package/dist/core/workflow-generator.d.ts.map +0 -0
- package/dist/core/workflow-generator.js +297 -297
- package/dist/core/workflow-generator.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +46 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/rulebook-server.d.ts +0 -0
- package/dist/mcp/rulebook-server.d.ts.map +1 -1
- package/dist/mcp/rulebook-server.js +263 -18
- package/dist/mcp/rulebook-server.js.map +1 -1
- package/dist/memory/hnsw-index.d.ts +0 -0
- package/dist/memory/hnsw-index.d.ts.map +1 -1
- package/dist/memory/hnsw-index.js +0 -0
- package/dist/memory/hnsw-index.js.map +1 -1
- package/dist/memory/memory-cache.d.ts +0 -0
- package/dist/memory/memory-cache.d.ts.map +1 -1
- package/dist/memory/memory-cache.js +0 -0
- package/dist/memory/memory-cache.js.map +1 -1
- package/dist/memory/memory-hooks.d.ts +6 -0
- package/dist/memory/memory-hooks.d.ts.map +1 -1
- package/dist/memory/memory-hooks.js +70 -15
- package/dist/memory/memory-hooks.js.map +1 -1
- package/dist/memory/memory-manager.d.ts +1 -0
- package/dist/memory/memory-manager.d.ts.map +1 -1
- package/dist/memory/memory-manager.js +9 -7
- package/dist/memory/memory-manager.js.map +1 -1
- package/dist/memory/memory-search.d.ts +0 -0
- package/dist/memory/memory-search.d.ts.map +1 -1
- package/dist/memory/memory-search.js +3 -8
- package/dist/memory/memory-search.js.map +1 -1
- package/dist/memory/memory-store.d.ts +0 -0
- package/dist/memory/memory-store.d.ts.map +1 -1
- package/dist/memory/memory-store.js +68 -71
- package/dist/memory/memory-store.js.map +1 -1
- package/dist/memory/memory-types.d.ts +1 -0
- package/dist/memory/memory-types.d.ts.map +1 -1
- package/dist/memory/memory-types.js +0 -0
- package/dist/memory/memory-types.js.map +0 -0
- package/dist/memory/memory-vectorizer.d.ts +0 -0
- package/dist/memory/memory-vectorizer.d.ts.map +1 -1
- package/dist/memory/memory-vectorizer.js +108 -13
- package/dist/memory/memory-vectorizer.js.map +1 -1
- package/dist/types.d.ts +70 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/dist/utils/file-system.d.ts +0 -0
- package/dist/utils/file-system.d.ts.map +0 -0
- package/dist/utils/file-system.js +0 -0
- package/dist/utils/file-system.js.map +0 -0
- package/dist/utils/git-hooks.d.ts +0 -0
- package/dist/utils/git-hooks.d.ts.map +0 -0
- package/dist/utils/git-hooks.js +0 -0
- package/dist/utils/git-hooks.js.map +0 -0
- package/dist/utils/rulesignore.d.ts +0 -0
- package/dist/utils/rulesignore.d.ts.map +0 -0
- package/dist/utils/rulesignore.js +0 -0
- package/dist/utils/rulesignore.js.map +0 -0
- package/package.json +108 -107
- package/templates/cli/AIDER.md +0 -0
- package/templates/cli/AMAZON_Q.md +0 -0
- package/templates/cli/AUGGIE.md +0 -0
- package/templates/cli/CLAUDE.md +85 -0
- package/templates/cli/CLAUDE_CODE.md +0 -0
- package/templates/cli/CLINE.md +69 -2
- package/templates/cli/CODEBUDDY.md +0 -0
- package/templates/cli/CODEIUM.md +0 -0
- package/templates/cli/CODEX.md +0 -0
- package/templates/cli/CONTINUE.md +0 -0
- package/templates/cli/CURSOR_CLI.md +37 -3
- package/templates/cli/FACTORY.md +0 -0
- package/templates/cli/GEMINI.md +0 -0
- package/templates/cli/KILOCODE.md +0 -0
- package/templates/cli/OPENCODE.md +0 -0
- package/templates/cli/_GENERIC_TEMPLATE.md +0 -0
- package/templates/cli/gemini-extension.json +0 -0
- package/templates/commands/rulebook-memory-save.md +0 -0
- package/templates/commands/rulebook-memory-search.md +0 -0
- package/templates/commands/rulebook-task-apply.md +0 -0
- package/templates/commands/rulebook-task-archive.md +0 -0
- package/templates/commands/rulebook-task-create.md +0 -0
- package/templates/commands/rulebook-task-list.md +0 -0
- package/templates/commands/rulebook-task-show.md +0 -0
- package/templates/commands/rulebook-task-validate.md +0 -0
- package/templates/core/AGENT_AUTOMATION.md +142 -38
- package/templates/core/DAG.md +0 -0
- package/templates/core/DOCUMENTATION_RULES.md +0 -0
- package/templates/core/QUALITY_ENFORCEMENT.md +0 -0
- package/templates/core/RALPH.md +430 -0
- package/templates/core/RULEBOOK.md +20 -1
- package/templates/frameworks/ANGULAR.md +0 -0
- package/templates/frameworks/DJANGO.md +0 -0
- package/templates/frameworks/ELECTRON.md +0 -0
- package/templates/frameworks/FLASK.md +0 -0
- package/templates/frameworks/FLUTTER.md +0 -0
- package/templates/frameworks/JQUERY.md +0 -0
- package/templates/frameworks/LARAVEL.md +0 -0
- package/templates/frameworks/NESTJS.md +0 -0
- package/templates/frameworks/NEXTJS.md +0 -0
- package/templates/frameworks/NUXT.md +0 -0
- package/templates/frameworks/RAILS.md +0 -0
- package/templates/frameworks/REACT.md +0 -0
- package/templates/frameworks/REACT_NATIVE.md +0 -0
- package/templates/frameworks/SPRING.md +0 -0
- package/templates/frameworks/SYMFONY.md +0 -0
- package/templates/frameworks/VUE.md +0 -0
- package/templates/frameworks/ZEND.md +0 -0
- package/templates/git/CI_CD_PATTERNS.md +0 -0
- package/templates/git/GITHUB_ACTIONS.md +0 -0
- package/templates/git/GITLAB_CI.md +0 -0
- package/templates/git/GIT_WORKFLOW.md +0 -0
- package/templates/git/SECRETS_MANAGEMENT.md +0 -0
- package/templates/hooks/COMMIT_MSG.md +0 -0
- package/templates/hooks/POST_CHECKOUT.md +0 -0
- package/templates/hooks/PREPARE_COMMIT_MSG.md +0 -0
- package/templates/hooks/PRE_COMMIT.md +0 -0
- package/templates/hooks/PRE_PUSH.md +0 -0
- package/templates/hooks/csharp-pre-commit.sh +0 -0
- package/templates/hooks/csharp-pre-push.sh +0 -0
- package/templates/hooks/dart-pre-commit.sh +0 -0
- package/templates/hooks/dart-pre-push.sh +0 -0
- package/templates/hooks/elixir-pre-commit.sh +0 -0
- package/templates/hooks/elixir-pre-push.sh +0 -0
- package/templates/hooks/erlang-pre-commit.sh +0 -0
- package/templates/hooks/erlang-pre-push.sh +0 -0
- package/templates/hooks/go-pre-commit.sh +0 -0
- package/templates/hooks/go-pre-push.sh +0 -0
- package/templates/hooks/haskell-pre-commit.sh +0 -0
- package/templates/hooks/haskell-pre-push.sh +0 -0
- package/templates/hooks/java-pre-commit.sh +0 -0
- package/templates/hooks/java-pre-push.sh +0 -0
- package/templates/hooks/kotlin-pre-commit.sh +0 -0
- package/templates/hooks/kotlin-pre-push.sh +0 -0
- package/templates/hooks/php-pre-commit.sh +0 -0
- package/templates/hooks/php-pre-push.sh +0 -0
- package/templates/hooks/python-pre-commit.sh +0 -0
- package/templates/hooks/python-pre-push.sh +0 -0
- package/templates/hooks/ruby-pre-commit.sh +0 -0
- package/templates/hooks/ruby-pre-push.sh +0 -0
- package/templates/hooks/rust-pre-commit.sh +0 -0
- package/templates/hooks/rust-pre-push.sh +0 -0
- package/templates/hooks/scala-pre-commit.sh +0 -0
- package/templates/hooks/scala-pre-push.sh +0 -0
- package/templates/hooks/swift-pre-commit.sh +0 -0
- package/templates/hooks/swift-pre-push.sh +0 -0
- package/templates/hooks/typescript-pre-commit.sh +0 -0
- package/templates/hooks/typescript-pre-push.sh +0 -0
- package/templates/ides/COPILOT.md +0 -0
- package/templates/ides/CURSOR.md +0 -0
- package/templates/ides/JETBRAINS_AI.md +0 -0
- package/templates/ides/REPLIT.md +0 -0
- package/templates/ides/TABNINE.md +0 -0
- package/templates/ides/VSCODE.md +0 -0
- package/templates/ides/WINDSURF.md +0 -0
- package/templates/ides/ZED.md +0 -0
- package/templates/languages/ADA.md +0 -0
- package/templates/languages/C.md +0 -0
- package/templates/languages/CPP.md +0 -0
- package/templates/languages/CSHARP.md +0 -0
- package/templates/languages/DART.md +0 -0
- package/templates/languages/ELIXIR.md +0 -0
- package/templates/languages/ERLANG.md +0 -0
- package/templates/languages/GO.md +0 -0
- package/templates/languages/HASKELL.md +0 -0
- package/templates/languages/JAVA.md +0 -0
- package/templates/languages/JAVASCRIPT.md +0 -0
- package/templates/languages/JULIA.md +0 -0
- package/templates/languages/KOTLIN.md +0 -0
- package/templates/languages/LISP.md +0 -0
- package/templates/languages/LUA.md +0 -0
- package/templates/languages/OBJECTIVEC.md +0 -0
- package/templates/languages/PHP.md +0 -0
- package/templates/languages/PYTHON.md +0 -0
- package/templates/languages/R.md +0 -0
- package/templates/languages/RUBY.md +0 -0
- package/templates/languages/RUST.md +0 -0
- package/templates/languages/SAS.md +0 -0
- package/templates/languages/SCALA.md +0 -0
- package/templates/languages/SOLIDITY.md +0 -0
- package/templates/languages/SQL.md +0 -0
- package/templates/languages/SWIFT.md +0 -0
- package/templates/languages/TYPESCRIPT.md +0 -0
- package/templates/languages/ZIG.md +0 -0
- package/templates/modules/ATLASSIAN.md +0 -0
- package/templates/modules/CONTEXT7.md +0 -0
- package/templates/modules/FIGMA.md +0 -0
- package/templates/modules/GITHUB_MCP.md +0 -0
- package/templates/modules/GRAFANA.md +0 -0
- package/templates/modules/MEMORY.md +74 -11
- package/templates/modules/NOTION.md +0 -0
- package/templates/modules/PLAYWRIGHT.md +0 -0
- package/templates/modules/RULEBOOK_MCP.md +0 -0
- package/templates/modules/SERENA.md +0 -0
- package/templates/modules/SUPABASE.md +0 -0
- package/templates/modules/SYNAP.md +0 -0
- package/templates/modules/VECTORIZER.md +0 -0
- package/templates/services/AZURE_BLOB.md +0 -0
- package/templates/services/CASSANDRA.md +0 -0
- package/templates/services/DYNAMODB.md +0 -0
- package/templates/services/ELASTICSEARCH.md +0 -0
- package/templates/services/GCS.md +0 -0
- package/templates/services/INFLUXDB.md +0 -0
- package/templates/services/KAFKA.md +0 -0
- package/templates/services/MARIADB.md +0 -0
- package/templates/services/MEMCACHED.md +0 -0
- package/templates/services/MINIO.md +0 -0
- package/templates/services/MONGODB.md +0 -0
- package/templates/services/MYSQL.md +0 -0
- package/templates/services/NEO4J.md +0 -0
- package/templates/services/ORACLE.md +0 -0
- package/templates/services/POSTGRESQL.md +0 -0
- package/templates/services/RABBITMQ.md +0 -0
- package/templates/services/REDIS.md +0 -0
- package/templates/services/S3.md +0 -0
- package/templates/services/SQLITE.md +0 -0
- package/templates/services/SQLSERVER.md +0 -0
- package/templates/skills/cli/aider/SKILL.md +0 -0
- package/templates/skills/cli/amazon-q/SKILL.md +0 -0
- package/templates/skills/cli/auggie/SKILL.md +0 -0
- package/templates/skills/cli/claude/SKILL.md +0 -0
- package/templates/skills/cli/claude-code/SKILL.md +0 -0
- package/templates/skills/cli/cline/SKILL.md +0 -0
- package/templates/skills/cli/codebuddy/SKILL.md +0 -0
- package/templates/skills/cli/codeium/SKILL.md +0 -0
- package/templates/skills/cli/codex/SKILL.md +0 -0
- package/templates/skills/cli/continue/SKILL.md +0 -0
- package/templates/skills/cli/cursor-cli/SKILL.md +0 -0
- package/templates/skills/cli/factory/SKILL.md +0 -0
- package/templates/skills/cli/gemini/SKILL.md +0 -0
- package/templates/skills/cli/kilocode/SKILL.md +0 -0
- package/templates/skills/cli/opencode/SKILL.md +0 -0
- package/templates/skills/core/agent-automation/SKILL.md +0 -0
- package/templates/skills/core/dag/SKILL.md +0 -0
- package/templates/skills/core/documentation-rules/SKILL.md +0 -0
- package/templates/skills/core/quality-enforcement/SKILL.md +0 -0
- package/templates/skills/core/rulebook/SKILL.md +0 -0
- package/templates/skills/frameworks/angular/SKILL.md +0 -0
- package/templates/skills/frameworks/django/SKILL.md +0 -0
- package/templates/skills/frameworks/electron/SKILL.md +0 -0
- package/templates/skills/frameworks/flask/SKILL.md +0 -0
- package/templates/skills/frameworks/flutter/SKILL.md +0 -0
- package/templates/skills/frameworks/jquery/SKILL.md +0 -0
- package/templates/skills/frameworks/laravel/SKILL.md +0 -0
- package/templates/skills/frameworks/nestjs/SKILL.md +0 -0
- package/templates/skills/frameworks/nextjs/SKILL.md +0 -0
- package/templates/skills/frameworks/nuxt/SKILL.md +0 -0
- package/templates/skills/frameworks/rails/SKILL.md +0 -0
- package/templates/skills/frameworks/react/SKILL.md +0 -0
- package/templates/skills/frameworks/react-native/SKILL.md +0 -0
- package/templates/skills/frameworks/spring/SKILL.md +0 -0
- package/templates/skills/frameworks/symfony/SKILL.md +0 -0
- package/templates/skills/frameworks/vue/SKILL.md +0 -0
- package/templates/skills/frameworks/zend/SKILL.md +0 -0
- package/templates/skills/ides/copilot/SKILL.md +0 -0
- package/templates/skills/ides/cursor/SKILL.md +0 -0
- package/templates/skills/ides/jetbrains-ai/SKILL.md +0 -0
- package/templates/skills/ides/replit/SKILL.md +0 -0
- package/templates/skills/ides/tabnine/SKILL.md +0 -0
- package/templates/skills/ides/vscode/SKILL.md +0 -0
- package/templates/skills/ides/windsurf/SKILL.md +0 -0
- package/templates/skills/ides/zed/SKILL.md +0 -0
- package/templates/skills/languages/ada/SKILL.md +0 -0
- package/templates/skills/languages/c/SKILL.md +0 -0
- package/templates/skills/languages/cpp/SKILL.md +0 -0
- package/templates/skills/languages/csharp/SKILL.md +0 -0
- package/templates/skills/languages/dart/SKILL.md +0 -0
- package/templates/skills/languages/elixir/SKILL.md +0 -0
- package/templates/skills/languages/erlang/SKILL.md +0 -0
- package/templates/skills/languages/go/SKILL.md +0 -0
- package/templates/skills/languages/haskell/SKILL.md +0 -0
- package/templates/skills/languages/java/SKILL.md +0 -0
- package/templates/skills/languages/javascript/SKILL.md +0 -0
- package/templates/skills/languages/julia/SKILL.md +0 -0
- package/templates/skills/languages/kotlin/SKILL.md +0 -0
- package/templates/skills/languages/lisp/SKILL.md +0 -0
- package/templates/skills/languages/lua/SKILL.md +0 -0
- package/templates/skills/languages/objectivec/SKILL.md +0 -0
- package/templates/skills/languages/php/SKILL.md +0 -0
- package/templates/skills/languages/python/SKILL.md +0 -0
- package/templates/skills/languages/r/SKILL.md +0 -0
- package/templates/skills/languages/ruby/SKILL.md +0 -0
- package/templates/skills/languages/rust/SKILL.md +0 -0
- package/templates/skills/languages/sas/SKILL.md +0 -0
- package/templates/skills/languages/scala/SKILL.md +0 -0
- package/templates/skills/languages/solidity/SKILL.md +0 -0
- package/templates/skills/languages/sql/SKILL.md +0 -0
- package/templates/skills/languages/swift/SKILL.md +0 -0
- package/templates/skills/languages/typescript/SKILL.md +0 -0
- package/templates/skills/languages/zig/SKILL.md +0 -0
- package/templates/skills/modules/atlassian/SKILL.md +0 -0
- package/templates/skills/modules/context7/SKILL.md +0 -0
- package/templates/skills/modules/figma/SKILL.md +0 -0
- package/templates/skills/modules/github-mcp/SKILL.md +0 -0
- package/templates/skills/modules/grafana/SKILL.md +0 -0
- package/templates/skills/modules/memory/SKILL.md +0 -0
- package/templates/skills/modules/notion/SKILL.md +0 -0
- package/templates/skills/modules/playwright/SKILL.md +0 -0
- package/templates/skills/modules/rulebook-mcp/SKILL.md +0 -0
- package/templates/skills/modules/serena/SKILL.md +0 -0
- package/templates/skills/modules/supabase/SKILL.md +0 -0
- package/templates/skills/modules/synap/SKILL.md +0 -0
- package/templates/skills/modules/vectorizer/SKILL.md +0 -0
- package/templates/skills/services/azure-blob/SKILL.md +0 -0
- package/templates/skills/services/cassandra/SKILL.md +0 -0
- package/templates/skills/services/dynamodb/SKILL.md +0 -0
- package/templates/skills/services/elasticsearch/SKILL.md +0 -0
- package/templates/skills/services/gcs/SKILL.md +0 -0
- package/templates/skills/services/influxdb/SKILL.md +0 -0
- package/templates/skills/services/kafka/SKILL.md +0 -0
- package/templates/skills/services/mariadb/SKILL.md +0 -0
- package/templates/skills/services/memcached/SKILL.md +0 -0
- package/templates/skills/services/minio/SKILL.md +0 -0
- package/templates/skills/services/mongodb/SKILL.md +0 -0
- package/templates/skills/services/mysql/SKILL.md +0 -0
- package/templates/skills/services/neo4j/SKILL.md +0 -0
- package/templates/skills/services/oracle/SKILL.md +0 -0
- package/templates/skills/services/postgresql/SKILL.md +0 -0
- package/templates/skills/services/rabbitmq/SKILL.md +0 -0
- package/templates/skills/services/redis/SKILL.md +0 -0
- package/templates/skills/services/s3/SKILL.md +0 -0
- package/templates/skills/services/sqlite/SKILL.md +0 -0
- package/templates/skills/services/sqlserver/SKILL.md +0 -0
- package/templates/skills/workflows/ralph/SETUP.md +228 -0
- package/templates/skills/workflows/ralph/SKILL.md +309 -0
- package/templates/skills/workflows/ralph/install.sh +87 -0
- package/templates/skills/workflows/ralph/manifest.json +158 -0
- package/templates/workflows/codespell.yml +0 -0
- package/templates/workflows/cpp-lint.yml +0 -0
- package/templates/workflows/cpp-publish.yml +0 -0
- package/templates/workflows/cpp-test.yml +0 -0
- package/templates/workflows/dotnet-lint.yml +0 -0
- package/templates/workflows/dotnet-publish.yml +0 -0
- package/templates/workflows/dotnet-test.yml +0 -0
- package/templates/workflows/elixir-lint.yml +0 -0
- package/templates/workflows/elixir-publish.yml +0 -0
- package/templates/workflows/elixir-test.yml +0 -0
- package/templates/workflows/erlang-lint.yml +0 -0
- package/templates/workflows/erlang-test.yml +0 -0
- package/templates/workflows/go-lint.yml +0 -0
- package/templates/workflows/go-publish.yml +0 -0
- package/templates/workflows/go-test.yml +0 -0
- package/templates/workflows/java-lint.yml +0 -0
- package/templates/workflows/java-publish.yml +0 -0
- package/templates/workflows/java-test.yml +0 -0
- package/templates/workflows/kotlin-lint.yml +0 -0
- package/templates/workflows/kotlin-publish.yml +0 -0
- package/templates/workflows/kotlin-test.yml +0 -0
- package/templates/workflows/php-lint.yml +0 -0
- package/templates/workflows/php-publish.yml +0 -0
- package/templates/workflows/php-test.yml +0 -0
- package/templates/workflows/python-lint.yml +0 -0
- package/templates/workflows/python-publish.yml +0 -0
- package/templates/workflows/python-test.yml +0 -0
- package/templates/workflows/rust-lint.yml +0 -0
- package/templates/workflows/rust-publish.yml +0 -0
- package/templates/workflows/rust-test.yml +0 -0
- package/templates/workflows/solidity-lint.yml +0 -0
- package/templates/workflows/solidity-test.yml +0 -0
- package/templates/workflows/swift-lint.yml +0 -0
- package/templates/workflows/swift-publish.yml +0 -0
- package/templates/workflows/swift-test.yml +0 -0
- package/templates/workflows/typescript-lint.yml +0 -0
- package/templates/workflows/typescript-publish.yml +0 -0
- package/templates/workflows/typescript-test.yml +0 -0
- package/templates/workflows/zig-lint.yml +0 -0
- package/templates/workflows/zig-test.yml +0 -0
- package/dist/core/modern-console-new.d.ts +0 -81
- package/dist/core/modern-console-new.d.ts.map +0 -1
- package/dist/core/modern-console-new.js +0 -340
- package/dist/core/modern-console-new.js.map +0 -1
- package/dist/mcp/handlers/archive-task.d.ts +0 -17
- package/dist/mcp/handlers/archive-task.d.ts.map +0 -1
- package/dist/mcp/handlers/archive-task.js +0 -36
- package/dist/mcp/handlers/archive-task.js.map +0 -1
- package/dist/mcp/handlers/create-task.d.ts +0 -17
- package/dist/mcp/handlers/create-task.d.ts.map +0 -1
- package/dist/mcp/handlers/create-task.js +0 -56
- package/dist/mcp/handlers/create-task.js.map +0 -1
- package/dist/mcp/handlers/list-tasks.d.ts +0 -22
- package/dist/mcp/handlers/list-tasks.d.ts.map +0 -1
- package/dist/mcp/handlers/list-tasks.js +0 -42
- package/dist/mcp/handlers/list-tasks.js.map +0 -1
- package/dist/mcp/handlers/show-task.d.ts +0 -25
- package/dist/mcp/handlers/show-task.d.ts.map +0 -1
- package/dist/mcp/handlers/show-task.js +0 -43
- package/dist/mcp/handlers/show-task.js.map +0 -1
- package/dist/mcp/handlers/update-task.d.ts +0 -17
- package/dist/mcp/handlers/update-task.d.ts.map +0 -1
- package/dist/mcp/handlers/update-task.js +0 -35
- package/dist/mcp/handlers/update-task.js.map +0 -1
- package/dist/mcp/handlers/validate-task.d.ts +0 -15
- package/dist/mcp/handlers/validate-task.d.ts.map +0 -1
- package/dist/mcp/handlers/validate-task.js +0 -27
- package/dist/mcp/handlers/validate-task.js.map +0 -1
- package/dist/mcp/rulebook-config.d.ts +0 -22
- package/dist/mcp/rulebook-config.d.ts.map +0 -1
- package/dist/mcp/rulebook-config.js +0 -65
- 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.
|
|
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
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
},
|
|
56
|
-
"
|
|
57
|
-
"@
|
|
58
|
-
"@types/
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
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
|
+
}
|
package/templates/cli/AIDER.md
CHANGED
|
File without changes
|
|
File without changes
|
package/templates/cli/AUGGIE.md
CHANGED
|
File without changes
|
package/templates/cli/CLAUDE.md
CHANGED
|
@@ -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
|
package/templates/cli/CLINE.md
CHANGED
|
@@ -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.
|
|
28
|
-
4.
|
|
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
|
package/templates/cli/CODEIUM.md
CHANGED
|
File without changes
|
package/templates/cli/CODEX.md
CHANGED
|
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.
|
|
23
|
-
3.
|
|
24
|
-
4.
|
|
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 -->
|
package/templates/cli/FACTORY.md
CHANGED
|
File without changes
|
package/templates/cli/GEMINI.md
CHANGED
|
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
|