@hivehub/rulebook 5.8.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -216
- package/dist/cli/commands/claude.d.ts.map +1 -1
- package/dist/cli/commands/claude.js +10 -4
- package/dist/cli/commands/claude.js.map +1 -1
- package/dist/cli/commands/context-intelligence.d.ts.map +1 -1
- package/dist/cli/commands/context-intelligence.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -2
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +1 -2
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +16 -91
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/misc.d.ts +0 -1
- package/dist/cli/commands/misc.d.ts.map +1 -1
- package/dist/cli/commands/misc.js +0 -76
- package/dist/cli/commands/misc.js.map +1 -1
- package/dist/cli/commands/plans.d.ts.map +1 -1
- package/dist/cli/commands/plans.js.map +1 -1
- package/dist/cli/commands/skills.d.ts.map +1 -1
- package/dist/cli/commands/skills.js +6 -2
- package/dist/cli/commands/skills.js.map +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js +3 -1
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/update.d.ts +7 -0
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +61 -165
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/workspace.d.ts.map +1 -1
- package/dist/cli/commands/workspace.js +4 -3
- package/dist/cli/commands/workspace.js.map +1 -1
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +0 -40
- package/dist/cli/prompts.js.map +1 -1
- package/dist/core/claude/claude-mcp.d.ts.map +1 -1
- package/dist/core/claude/claude-mcp.js +1 -1
- package/dist/core/claude/claude-mcp.js.map +1 -1
- package/dist/core/claude/claude-md-generator.d.ts.map +1 -1
- package/dist/core/claude/claude-md-generator.js.map +1 -1
- package/dist/core/claude/claude-settings-manager.d.ts.map +1 -1
- package/dist/core/claude/claude-settings-manager.js +9 -6
- package/dist/core/claude/claude-settings-manager.js.map +1 -1
- package/dist/core/custom-templates.d.ts.map +1 -1
- package/dist/core/custom-templates.js.map +1 -1
- package/dist/core/detect/detector.d.ts +0 -28
- package/dist/core/detect/detector.d.ts.map +1 -1
- package/dist/core/detect/detector.js +5 -84
- package/dist/core/detect/detector.js.map +1 -1
- package/dist/core/detect/library-registry.d.ts.map +1 -1
- package/dist/core/detect/library-registry.js.map +1 -1
- package/dist/core/docs/docs-generator.d.ts.map +1 -1
- package/dist/core/docs/docs-generator.js.map +1 -1
- package/dist/core/docs/mcp-reference-generator.d.ts.map +1 -1
- package/dist/core/docs/mcp-reference-generator.js.map +1 -1
- package/dist/core/generators/generator.d.ts.map +1 -1
- package/dist/core/generators/generator.js +0 -72
- package/dist/core/generators/generator.js.map +1 -1
- package/dist/core/generators/gitignore-generator.d.ts.map +1 -1
- package/dist/core/generators/gitignore-generator.js +12 -1
- package/dist/core/generators/gitignore-generator.js.map +1 -1
- package/dist/core/generators/minimal-scaffolder.d.ts.map +1 -1
- package/dist/core/generators/minimal-scaffolder.js.map +1 -1
- package/dist/core/generators/rules-generator.d.ts.map +1 -1
- package/dist/core/generators/rules-generator.js.map +1 -1
- package/dist/core/generators/workflow-generator.d.ts +0 -10
- package/dist/core/generators/workflow-generator.d.ts.map +1 -1
- package/dist/core/generators/workflow-generator.js +0 -307
- package/dist/core/generators/workflow-generator.js.map +1 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js.map +1 -1
- package/dist/core/merger.d.ts.map +1 -1
- package/dist/core/merger.js.map +1 -1
- package/dist/core/migrator.d.ts.map +1 -1
- package/dist/core/migrator.js +2 -1
- package/dist/core/migrator.js.map +1 -1
- package/dist/core/quality/coverage-checker.d.ts.map +1 -1
- package/dist/core/quality/coverage-checker.js.map +1 -1
- package/dist/core/quality/dependency-checker.d.ts.map +1 -1
- package/dist/core/quality/dependency-checker.js +3 -1
- package/dist/core/quality/dependency-checker.js.map +1 -1
- package/dist/core/quality/doctor.d.ts.map +1 -1
- package/dist/core/quality/doctor.js.map +1 -1
- package/dist/core/quality/validator.d.ts.map +1 -1
- package/dist/core/quality/validator.js.map +1 -1
- package/dist/core/rule-engine.d.ts +5 -21
- package/dist/core/rule-engine.d.ts.map +1 -1
- package/dist/core/rule-engine.js +9 -191
- package/dist/core/rule-engine.js.map +1 -1
- package/dist/core/skills/skills-manager.d.ts.map +1 -1
- package/dist/core/skills/skills-manager.js.map +1 -1
- package/dist/core/state/config-manager.d.ts.map +1 -1
- package/dist/core/state/config-manager.js +6 -50
- package/dist/core/state/config-manager.js.map +1 -1
- package/dist/core/state/override-manager.js.map +1 -1
- package/dist/core/state/state-writer.d.ts.map +1 -1
- package/dist/core/state/state-writer.js.map +1 -1
- package/dist/core/state/version-bumper.d.ts.map +1 -1
- package/dist/core/state/version-bumper.js.map +1 -1
- package/dist/core/tasks/decision-manager.d.ts.map +1 -1
- package/dist/core/tasks/decision-manager.js +6 -1
- package/dist/core/tasks/decision-manager.js.map +1 -1
- package/dist/core/tasks/knowledge-manager.d.ts.map +1 -1
- package/dist/core/tasks/knowledge-manager.js.map +1 -1
- package/dist/core/tasks/learn-manager.d.ts.map +1 -1
- package/dist/core/tasks/learn-manager.js.map +1 -1
- package/dist/core/tasks/plans-manager.d.ts.map +1 -1
- package/dist/core/tasks/plans-manager.js.map +1 -1
- package/dist/core/tasks/task-manager.d.ts.map +1 -1
- package/dist/core/tasks/task-manager.js.map +1 -1
- package/dist/core/workspace/legacy-migrator.d.ts.map +1 -1
- package/dist/core/workspace/legacy-migrator.js.map +1 -1
- package/dist/core/workspace/project-worker.d.ts +0 -4
- package/dist/core/workspace/project-worker.d.ts.map +1 -1
- package/dist/core/workspace/project-worker.js +0 -28
- package/dist/core/workspace/project-worker.js.map +1 -1
- package/dist/core/workspace/workspace-manager.d.ts +0 -11
- package/dist/core/workspace/workspace-manager.d.ts.map +1 -1
- package/dist/core/workspace/workspace-manager.js +6 -30
- package/dist/core/workspace/workspace-manager.js.map +1 -1
- package/dist/core/workspace/workspace-types.d.ts +0 -1
- package/dist/core/workspace/workspace-types.d.ts.map +1 -1
- package/dist/hooks/safe-flag-io.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -82
- package/dist/index.js.map +1 -1
- package/dist/mcp/rulebook-server.d.ts.map +1 -1
- package/dist/mcp/rulebook-server.js +55 -1634
- package/dist/mcp/rulebook-server.js.map +1 -1
- package/dist/mcp/tools/context.d.ts +23 -0
- package/dist/mcp/tools/context.d.ts.map +1 -0
- package/dist/mcp/tools/context.js +2 -0
- package/dist/mcp/tools/context.js.map +1 -0
- package/dist/mcp/tools/decision-tools.d.ts +5 -0
- package/dist/mcp/tools/decision-tools.d.ts.map +1 -0
- package/dist/mcp/tools/decision-tools.js +220 -0
- package/dist/mcp/tools/decision-tools.js.map +1 -0
- package/dist/mcp/tools/knowledge-tools.d.ts +5 -0
- package/dist/mcp/tools/knowledge-tools.d.ts.map +1 -0
- package/dist/mcp/tools/knowledge-tools.js +157 -0
- package/dist/mcp/tools/knowledge-tools.js.map +1 -0
- package/dist/mcp/tools/learn-tools.d.ts +5 -0
- package/dist/mcp/tools/learn-tools.d.ts.map +1 -0
- package/dist/mcp/tools/learn-tools.js +150 -0
- package/dist/mcp/tools/learn-tools.js.map +1 -0
- package/dist/mcp/tools/rules-tools.d.ts +4 -0
- package/dist/mcp/tools/rules-tools.d.ts.map +1 -0
- package/dist/mcp/tools/rules-tools.js +47 -0
- package/dist/mcp/tools/rules-tools.js.map +1 -0
- package/dist/mcp/tools/skill-tools.d.ts +5 -0
- package/dist/mcp/tools/skill-tools.d.ts.map +1 -0
- package/dist/mcp/tools/skill-tools.js +330 -0
- package/dist/mcp/tools/skill-tools.js.map +1 -0
- package/dist/mcp/tools/task-tools.d.ts +5 -0
- package/dist/mcp/tools/task-tools.d.ts.map +1 -0
- package/dist/mcp/tools/task-tools.js +185 -0
- package/dist/mcp/tools/task-tools.js.map +1 -0
- package/dist/mcp/tools/workspace-tools.d.ts +6 -0
- package/dist/mcp/tools/workspace-tools.d.ts.map +1 -0
- package/dist/mcp/tools/workspace-tools.js +118 -0
- package/dist/mcp/tools/workspace-tools.js.map +1 -0
- package/dist/types.d.ts +1 -46
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/file-system.d.ts.map +1 -1
- package/dist/utils/file-system.js.map +1 -1
- package/dist/utils/git-hooks.d.ts.map +1 -1
- package/dist/utils/git-hooks.js.map +1 -1
- package/dist/utils/gitignore.d.ts.map +1 -1
- package/dist/utils/gitignore.js.map +1 -1
- package/dist/utils/rulesignore.d.ts.map +1 -1
- package/dist/utils/rulesignore.js.map +1 -1
- package/package.json +25 -27
- package/templates/agents/architect.md +51 -51
- package/templates/agents/build-engineer.md +36 -36
- package/templates/agents/code-reviewer.md +47 -47
- package/templates/agents/docs-writer.md +38 -38
- package/templates/agents/implementer.md +42 -42
- package/templates/agents/performance-engineer.md +49 -49
- package/templates/agents/researcher.md +38 -38
- package/templates/agents/security-reviewer.md +40 -40
- package/templates/agents/team-lead.md +37 -37
- package/templates/agents/tester.md +48 -48
- package/templates/ci/rulebook-review.yml +26 -26
- package/templates/claude-workflows/review-fanout.js +2 -2
- package/templates/claude-workflows/rulebook-driver.js +16 -4
- package/templates/cli/CLAUDE.md +102 -117
- package/templates/cli/_GENERIC_TEMPLATE.md +29 -29
- package/templates/commands/rulebook-decision-create.md +55 -55
- package/templates/commands/rulebook-decision-list.md +15 -15
- package/templates/commands/rulebook-knowledge-add.md +41 -41
- package/templates/commands/rulebook-knowledge-list.md +15 -15
- package/templates/commands/rulebook-learn-capture.md +1 -2
- package/templates/commands/rulebook-task-apply.md +67 -67
- package/templates/commands/rulebook-task-archive.md +94 -94
- package/templates/commands/rulebook-task-create.md +93 -93
- package/templates/commands/rulebook-task-list.md +42 -42
- package/templates/commands/rulebook-task-show.md +52 -52
- package/templates/commands/rulebook-task-validate.md +53 -53
- package/templates/compact-context/_default.md +23 -23
- package/templates/compact-context/cpp.md +26 -26
- package/templates/compact-context/go.md +26 -26
- package/templates/compact-context/python.md +26 -26
- package/templates/compact-context/rust.md +28 -28
- package/templates/compact-context/typescript.md +29 -29
- package/templates/core/AGENTS_LEAN.md +4 -9
- package/templates/core/AGENTS_OVERRIDE.md +16 -16
- package/templates/core/AGENT_AUTOMATION.md +273 -296
- package/templates/core/CLAUDE_MD_v2.md +85 -90
- package/templates/core/DAG.md +304 -304
- package/templates/core/DECISIONS.md +38 -38
- package/templates/core/DOCUMENTATION_RULES.md +36 -36
- package/templates/core/KNOWLEDGE.md +49 -49
- package/templates/core/MULTI_AGENT.md +74 -74
- package/templates/core/PLANS.md +28 -28
- package/templates/core/QUALITY_ENFORCEMENT.md +68 -68
- package/templates/core/RULEBOOK.md +1936 -1947
- package/templates/core/TIER1_PROHIBITIONS.md +154 -154
- package/templates/core/TOKEN_OPTIMIZATION.md +49 -49
- package/templates/core/WORKSPACE.md +4 -8
- package/templates/git/CI_CD_PATTERNS.md +661 -661
- package/templates/git/GITHUB_ACTIONS.md +728 -728
- package/templates/git/GITLAB_CI.md +730 -730
- package/templates/git/GIT_WORKFLOW.md +1192 -1192
- package/templates/git/SECRETS_MANAGEMENT.md +585 -585
- package/templates/hooks/COMMIT_MSG.md +530 -530
- package/templates/hooks/POST_CHECKOUT.md +546 -546
- package/templates/hooks/PREPARE_COMMIT_MSG.md +619 -619
- package/templates/hooks/PRE_COMMIT.md +414 -414
- package/templates/hooks/PRE_PUSH.md +601 -601
- package/templates/hooks/enforce-pre-tool.sh +26 -9
- package/templates/hooks/update-check.ps1 +84 -84
- package/templates/hooks/update-check.sh +45 -21
- package/templates/languages/C.md +333 -333
- package/templates/languages/CPP.md +743 -743
- package/templates/languages/CSHARP.md +417 -417
- package/templates/languages/ELIXIR.md +454 -454
- package/templates/languages/ERLANG.md +361 -361
- package/templates/languages/GO.md +645 -645
- package/templates/languages/HASKELL.md +177 -177
- package/templates/languages/JAVA.md +607 -607
- package/templates/languages/JAVASCRIPT.md +631 -631
- package/templates/languages/JULIA.md +97 -97
- package/templates/languages/KOTLIN.md +511 -511
- package/templates/languages/LISP.md +100 -100
- package/templates/languages/LUA.md +74 -74
- package/templates/languages/OBJECTIVEC.md +90 -90
- package/templates/languages/PHP.md +416 -416
- package/templates/languages/PYTHON.md +682 -682
- package/templates/languages/RUBY.md +421 -421
- package/templates/languages/RUST.md +477 -477
- package/templates/languages/SAS.md +73 -73
- package/templates/languages/SCALA.md +348 -348
- package/templates/languages/SOLIDITY.md +580 -580
- package/templates/languages/SQL.md +137 -137
- package/templates/languages/SWIFT.md +466 -466
- package/templates/languages/TYPESCRIPT.md +591 -591
- package/templates/languages/ZIG.md +265 -265
- package/templates/modules/CONTEXT7.md +54 -54
- package/templates/modules/GITHUB_MCP.md +64 -64
- package/templates/modules/PLAYWRIGHT.md +90 -90
- package/templates/modules/RULEBOOK_MCP.md +208 -208
- package/templates/modules/SERENA.md +337 -337
- package/templates/modules/SUPABASE.md +223 -223
- package/templates/modules/SYNAP.md +69 -69
- package/templates/modules/VECTORIZER.md +63 -63
- package/templates/modules/sequential-thinking.md +42 -42
- package/templates/rules/consult-analysis-before-implementing.md +21 -23
- package/templates/rules/cpp.md +46 -46
- package/templates/rules/csharp.md +44 -44
- package/templates/rules/diagnostic-first.md +39 -39
- package/templates/rules/fail-twice-escalate.md +46 -46
- package/templates/rules/follow-task-sequence.md +36 -36
- package/templates/rules/git-safety.md +29 -29
- package/templates/rules/go.md +40 -40
- package/templates/rules/incremental-implementation.md +56 -56
- package/templates/rules/incremental-tests.md +29 -29
- package/templates/rules/java.md +43 -43
- package/templates/rules/javascript.md +39 -39
- package/templates/rules/knowledge-base-usage.md +41 -41
- package/templates/rules/multi-agent-teams.md +75 -75
- package/templates/rules/no-deferred.md +31 -31
- package/templates/rules/no-shortcuts.md +30 -30
- package/templates/rules/python.md +43 -43
- package/templates/rules/research-first.md +30 -30
- package/templates/rules/respect-handoff-trigger.md +41 -41
- package/templates/rules/rust.md +40 -40
- package/templates/rules/sequential-editing.md +21 -21
- package/templates/rules/session-workflow.md +24 -24
- package/templates/rules/task-decomposition.md +32 -32
- package/templates/rules/typescript.md +40 -40
- package/templates/skills/cli/claude/SKILL.md +42 -42
- package/templates/skills/core/agent-automation/SKILL.md +194 -194
- package/templates/skills/core/dag/SKILL.md +314 -314
- package/templates/skills/core/documentation-rules/SKILL.md +46 -46
- package/templates/skills/core/quality-enforcement/SKILL.md +78 -78
- package/templates/skills/core/rulebook/SKILL.md +176 -176
- package/templates/skills/core/rulebook-terse/SKILL.md +116 -116
- package/templates/skills/core/rulebook-terse-commit/SKILL.md +96 -96
- package/templates/skills/core/rulebook-terse-review/SKILL.md +112 -112
- package/templates/skills/dev/accessibility/SKILL.md +17 -17
- package/templates/skills/dev/analysis/SKILL.md +19 -19
- package/templates/skills/dev/api-design/SKILL.md +15 -15
- package/templates/skills/dev/architect/SKILL.md +17 -17
- package/templates/skills/dev/build-fix/SKILL.md +17 -17
- package/templates/skills/dev/db-design/SKILL.md +15 -15
- package/templates/skills/dev/debug/SKILL.md +16 -16
- package/templates/skills/dev/deploy/SKILL.md +17 -17
- package/templates/skills/dev/docs/SKILL.md +17 -17
- package/templates/skills/dev/handoff/SKILL.md +27 -27
- package/templates/skills/dev/migrate/SKILL.md +15 -15
- package/templates/skills/dev/perf/SKILL.md +17 -17
- package/templates/skills/dev/refactor/SKILL.md +17 -17
- package/templates/skills/dev/research/SKILL.md +14 -14
- package/templates/skills/dev/review/SKILL.md +18 -18
- package/templates/skills/dev/security-audit/SKILL.md +17 -17
- package/templates/skills/languages/c/SKILL.md +343 -343
- package/templates/skills/languages/cpp/SKILL.md +753 -753
- package/templates/skills/languages/csharp/SKILL.md +427 -427
- package/templates/skills/languages/elixir/SKILL.md +464 -464
- package/templates/skills/languages/erlang/SKILL.md +371 -371
- package/templates/skills/languages/go/SKILL.md +655 -655
- package/templates/skills/languages/haskell/SKILL.md +187 -187
- package/templates/skills/languages/java/SKILL.md +617 -617
- package/templates/skills/languages/javascript/SKILL.md +641 -641
- package/templates/skills/languages/julia/SKILL.md +107 -107
- package/templates/skills/languages/kotlin/SKILL.md +521 -521
- package/templates/skills/languages/lisp/SKILL.md +110 -110
- package/templates/skills/languages/lua/SKILL.md +84 -84
- package/templates/skills/languages/objectivec/SKILL.md +100 -100
- package/templates/skills/languages/php/SKILL.md +426 -426
- package/templates/skills/languages/python/SKILL.md +692 -692
- package/templates/skills/languages/ruby/SKILL.md +431 -431
- package/templates/skills/languages/rust/SKILL.md +487 -487
- package/templates/skills/languages/sas/SKILL.md +83 -83
- package/templates/skills/languages/scala/SKILL.md +358 -358
- package/templates/skills/languages/solidity/SKILL.md +590 -590
- package/templates/skills/languages/sql/SKILL.md +147 -147
- package/templates/skills/languages/swift/SKILL.md +476 -476
- package/templates/skills/languages/typescript/SKILL.md +302 -302
- package/templates/skills/languages/zig/SKILL.md +275 -275
- package/templates/skills/modules/context7/SKILL.md +64 -64
- package/templates/skills/modules/github-mcp/SKILL.md +74 -74
- package/templates/skills/modules/playwright/SKILL.md +100 -100
- package/templates/skills/modules/rulebook-mcp/SKILL.md +166 -166
- package/templates/skills/modules/serena/SKILL.md +347 -347
- package/templates/skills/modules/supabase/SKILL.md +233 -233
- package/templates/skills/modules/synap/SKILL.md +79 -79
- package/templates/skills/modules/vectorizer/SKILL.md +73 -73
- package/.claude/commands/analysis.md +0 -35
- package/.claude/commands/continue.md +0 -33
- package/.claude/commands/rulebook-decision-create.md +0 -55
- package/.claude/commands/rulebook-decision-list.md +0 -15
- package/.claude/commands/rulebook-knowledge-add.md +0 -41
- package/.claude/commands/rulebook-knowledge-list.md +0 -15
- package/.claude/commands/rulebook-learn-capture.md +0 -41
- package/.claude/commands/rulebook-learn-list.md +0 -13
- package/.claude/commands/rulebook-memory-save.md +0 -48
- package/.claude/commands/rulebook-memory-search.md +0 -47
- package/.claude/commands/rulebook-task-apply.md +0 -67
- package/.claude/commands/rulebook-task-archive.md +0 -94
- package/.claude/commands/rulebook-task-create.md +0 -93
- package/.claude/commands/rulebook-task-list.md +0 -42
- package/.claude/commands/rulebook-task-show.md +0 -52
- package/.claude/commands/rulebook-task-validate.md +0 -53
- package/.claude-plugin/marketplace.json +0 -28
- package/.claude-plugin/plugin.json +0 -8
- package/dist/agents/claude-code.d.ts +0 -69
- package/dist/agents/claude-code.d.ts.map +0 -1
- package/dist/agents/claude-code.js +0 -180
- package/dist/agents/claude-code.js.map +0 -1
- package/dist/agents/cursor-agent.d.ts +0 -184
- package/dist/agents/cursor-agent.d.ts.map +0 -1
- package/dist/agents/cursor-agent.js +0 -299
- package/dist/agents/cursor-agent.js.map +0 -1
- package/dist/agents/gemini-cli.d.ts +0 -69
- package/dist/agents/gemini-cli.d.ts.map +0 -1
- package/dist/agents/gemini-cli.js +0 -180
- package/dist/agents/gemini-cli.js.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -30
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/memory.js +0 -259
- package/dist/cli/commands/memory.js.map +0 -1
- package/dist/core/console/cli-bridge.d.ts +0 -113
- package/dist/core/console/cli-bridge.d.ts.map +0 -1
- package/dist/core/console/cli-bridge.js +0 -1094
- package/dist/core/console/cli-bridge.js.map +0 -1
- package/dist/core/ide/multi-tool-generator.d.ts +0 -59
- package/dist/core/ide/multi-tool-generator.d.ts.map +0 -1
- package/dist/core/ide/multi-tool-generator.js +0 -157
- package/dist/core/ide/multi-tool-generator.js.map +0 -1
- package/dist/core/ide/opencode-generator.d.ts +0 -72
- package/dist/core/ide/opencode-generator.d.ts.map +0 -1
- package/dist/core/ide/opencode-generator.js +0 -450
- package/dist/core/ide/opencode-generator.js.map +0 -1
- package/dist/core/indexer/background-indexer.d.ts +0 -35
- package/dist/core/indexer/background-indexer.d.ts.map +0 -1
- package/dist/core/indexer/background-indexer.js +0 -267
- package/dist/core/indexer/background-indexer.js.map +0 -1
- package/dist/core/indexer/file-parser.d.ts +0 -28
- package/dist/core/indexer/file-parser.d.ts.map +0 -1
- package/dist/core/indexer/file-parser.js +0 -171
- package/dist/core/indexer/file-parser.js.map +0 -1
- package/dist/core/indexer/indexer-types.d.ts +0 -37
- package/dist/core/indexer/indexer-types.d.ts.map +0 -1
- package/dist/core/indexer/indexer-types.js +0 -8
- package/dist/core/indexer/indexer-types.js.map +0 -1
- package/dist/memory/file-search.d.ts +0 -43
- package/dist/memory/file-search.d.ts.map +0 -1
- package/dist/memory/file-search.js +0 -228
- package/dist/memory/file-search.js.map +0 -1
- package/dist/memory/file-store.d.ts +0 -99
- package/dist/memory/file-store.d.ts.map +0 -1
- package/dist/memory/file-store.js +0 -615
- package/dist/memory/file-store.js.map +0 -1
- package/dist/memory/legacy-migrator.d.ts +0 -27
- package/dist/memory/legacy-migrator.d.ts.map +0 -1
- package/dist/memory/legacy-migrator.js +0 -185
- package/dist/memory/legacy-migrator.js.map +0 -1
- package/dist/memory/memory-hooks.d.ts +0 -48
- package/dist/memory/memory-hooks.d.ts.map +0 -1
- package/dist/memory/memory-hooks.js +0 -248
- package/dist/memory/memory-hooks.js.map +0 -1
- package/dist/memory/memory-manager.d.ts +0 -65
- package/dist/memory/memory-manager.d.ts.map +0 -1
- package/dist/memory/memory-manager.js +0 -223
- package/dist/memory/memory-manager.js.map +0 -1
- package/dist/memory/memory-types.d.ts +0 -85
- package/dist/memory/memory-types.d.ts.map +0 -1
- package/dist/memory/memory-types.js +0 -7
- package/dist/memory/memory-types.js.map +0 -1
- package/templates/agents/accessibility-reviewer.md +0 -43
- package/templates/agents/api-designer.md +0 -42
- package/templates/agents/compiler/codegen-debugger.md +0 -34
- package/templates/agents/compiler/stdlib-engineer.md +0 -28
- package/templates/agents/compiler/test-coverage-guardian.md +0 -31
- package/templates/agents/context-intelligence.md +0 -50
- package/templates/agents/database-architect.md +0 -41
- package/templates/agents/devops-engineer.md +0 -42
- package/templates/agents/game-engine/cpp-core-expert.md +0 -35
- package/templates/agents/game-engine/render-engineer.md +0 -22
- package/templates/agents/game-engine/shader-engineer.md +0 -38
- package/templates/agents/game-engine/systems-integration.md +0 -43
- package/templates/agents/generic/code-reviewer.md +0 -41
- package/templates/agents/generic/docs-writer.md +0 -25
- package/templates/agents/generic/project-manager.md +0 -36
- package/templates/agents/generic/researcher.md +0 -34
- package/templates/agents/generic/test-engineer.md +0 -41
- package/templates/agents/i18n-engineer.md +0 -42
- package/templates/agents/migration-engineer.md +0 -42
- package/templates/agents/mobile/platform-specialist.md +0 -22
- package/templates/agents/mobile/ui-engineer.md +0 -22
- package/templates/agents/project-manager.md +0 -217
- package/templates/agents/refactoring-agent.md +0 -41
- package/templates/agents/ux-reviewer.md +0 -43
- package/templates/agents/web-app/api-designer.md +0 -22
- package/templates/agents/web-app/backend-engineer.md +0 -30
- package/templates/agents/web-app/database-engineer.md +0 -22
- package/templates/agents/web-app/frontend-engineer.md +0 -29
- package/templates/agents/web-app/security-reviewer.md +0 -32
- package/templates/cli/AIDER.md +0 -49
- package/templates/cli/AMAZON_Q.md +0 -25
- package/templates/cli/AUGGIE.md +0 -32
- package/templates/cli/CLINE.md +0 -99
- package/templates/cli/CODEBUDDY.md +0 -20
- package/templates/cli/CODEIUM.md +0 -20
- package/templates/cli/CODEX.md +0 -21
- package/templates/cli/CONTINUE.md +0 -34
- package/templates/cli/CURSOR_CLI.md +0 -62
- package/templates/cli/FACTORY.md +0 -18
- package/templates/cli/GEMINI.md +0 -35
- package/templates/cli/KILOCODE.md +0 -18
- package/templates/cli/OPENCODE.md +0 -85
- package/templates/cli/gemini-extension.json +0 -77
- package/templates/commands/rulebook-memory-save.md +0 -48
- package/templates/commands/rulebook-memory-search.md +0 -47
- package/templates/ides/CONTINUE_RULES.md +0 -16
- package/templates/ides/COPILOT_INSTRUCTIONS.md +0 -23
- package/templates/ides/GEMINI_RULES.md +0 -17
- package/templates/ides/OPENCODE.md +0 -63
- package/templates/ides/WINDSURF_RULES.md +0 -14
- package/templates/modules/ATLASSIAN.md +0 -255
- package/templates/modules/FIGMA.md +0 -267
- package/templates/modules/GRAFANA.md +0 -328
- package/templates/modules/MEMORY.md +0 -126
- package/templates/modules/NOTION.md +0 -247
- package/templates/skills/cli/aider/SKILL.md +0 -59
- package/templates/skills/cli/amazon-q/SKILL.md +0 -35
- package/templates/skills/cli/auggie/SKILL.md +0 -42
- package/templates/skills/cli/cline/SKILL.md +0 -42
- package/templates/skills/cli/codebuddy/SKILL.md +0 -30
- package/templates/skills/cli/codeium/SKILL.md +0 -30
- package/templates/skills/cli/codex/SKILL.md +0 -31
- package/templates/skills/cli/continue/SKILL.md +0 -44
- package/templates/skills/cli/cursor-cli/SKILL.md +0 -38
- package/templates/skills/cli/factory/SKILL.md +0 -28
- package/templates/skills/cli/gemini/SKILL.md +0 -45
- package/templates/skills/cli/kilocode/SKILL.md +0 -28
- package/templates/skills/cli/opencode/SKILL.md +0 -82
- package/templates/skills/ides/copilot/SKILL.md +0 -47
- package/templates/skills/ides/cursor/SKILL.md +0 -53
- package/templates/skills/ides/jetbrains-ai/SKILL.md +0 -45
- package/templates/skills/ides/replit/SKILL.md +0 -46
- package/templates/skills/ides/tabnine/SKILL.md +0 -39
- package/templates/skills/ides/vscode/SKILL.md +0 -50
- package/templates/skills/ides/windsurf/SKILL.md +0 -46
- package/templates/skills/ides/zed/SKILL.md +0 -42
- package/templates/skills/modules/atlassian/SKILL.md +0 -265
- package/templates/skills/modules/figma/SKILL.md +0 -277
- package/templates/skills/modules/grafana/SKILL.md +0 -338
- package/templates/skills/modules/memory/SKILL.md +0 -73
- package/templates/skills/modules/notion/SKILL.md +0 -257
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivehub/rulebook",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Tool-agnostic AI development framework. Standardize projects across Claude Code, Cursor, Gemini, Codex, Windsurf, Copilot with automated templates, quality gates, persistent memory, and framework detection for 28 languages, 17 frameworks, 13 MCP modules, and 20 services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,26 +8,6 @@
|
|
|
8
8
|
"rulebook": "./dist/index.js",
|
|
9
9
|
"rulebook-mcp": "./dist/mcp/rulebook-server.js"
|
|
10
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
|
-
"check:sh-eol": "node scripts/check-sh-eol.mjs",
|
|
23
|
-
"lint": "npx eslint src/**/*.ts --quiet",
|
|
24
|
-
"lint:fix": "npx eslint src/**/*.ts --fix --quiet",
|
|
25
|
-
"format": "npx prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
26
|
-
"type-check": "tsc --noEmit",
|
|
27
|
-
"prepublishOnly": "npm run build",
|
|
28
|
-
"publish:wsl": "export BROWSER=wslview && npm publish",
|
|
29
|
-
"mcp-server": "node dist/mcp/rulebook-server.js"
|
|
30
|
-
},
|
|
31
11
|
"keywords": [
|
|
32
12
|
"ai",
|
|
33
13
|
"automation",
|
|
@@ -55,7 +35,7 @@
|
|
|
55
35
|
"node": ">=20.0.0"
|
|
56
36
|
},
|
|
57
37
|
"dependencies": {
|
|
58
|
-
"@modelcontextprotocol/sdk": "
|
|
38
|
+
"@modelcontextprotocol/sdk": "1.22.0",
|
|
59
39
|
"@types/blessed": "^0.1.26",
|
|
60
40
|
"ansi-escapes": "^7.2.0",
|
|
61
41
|
"blessed": "^0.1.81",
|
|
@@ -96,9 +76,7 @@
|
|
|
96
76
|
},
|
|
97
77
|
"files": [
|
|
98
78
|
"dist",
|
|
99
|
-
"templates"
|
|
100
|
-
".claude-plugin",
|
|
101
|
-
".claude/commands"
|
|
79
|
+
"templates"
|
|
102
80
|
],
|
|
103
81
|
"repository": {
|
|
104
82
|
"type": "git",
|
|
@@ -107,5 +85,25 @@
|
|
|
107
85
|
"bugs": {
|
|
108
86
|
"url": "https://github.com/hivellm/rulebook/issues"
|
|
109
87
|
},
|
|
110
|
-
"homepage": "https://github.com/hivellm/rulebook#readme"
|
|
111
|
-
|
|
88
|
+
"homepage": "https://github.com/hivellm/rulebook#readme",
|
|
89
|
+
"scripts": {
|
|
90
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
91
|
+
"build": "npm run clean && 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
|
+
"check:sh-eol": "node scripts/check-sh-eol.mjs",
|
|
102
|
+
"lint": "npx eslint src/**/*.ts --quiet",
|
|
103
|
+
"lint:fix": "npx eslint src/**/*.ts --fix --quiet",
|
|
104
|
+
"format": "npx prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
105
|
+
"type-check": "tsc --noEmit",
|
|
106
|
+
"publish:wsl": "export BROWSER=wslview && npm publish",
|
|
107
|
+
"mcp-server": "node dist/mcp/rulebook-server.js"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: architect
|
|
3
|
-
model: opus
|
|
4
|
-
description: Makes system architecture decisions, writes ADRs, and analyzes scalability. Use for architectural design and tech debt analysis.
|
|
5
|
-
tools: Read, Glob, Grep, Bash, Write
|
|
6
|
-
maxTurns: 25
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Responsibilities
|
|
10
|
-
|
|
11
|
-
- Define system boundaries, service decomposition, and integration contracts
|
|
12
|
-
- Select architectural patterns appropriate to scale, team size, and operational constraints
|
|
13
|
-
- Evaluate build-vs-buy decisions with explicit trade-off documentation
|
|
14
|
-
- Identify and quantify technical debt; produce a prioritized remediation roadmap
|
|
15
|
-
- Review proposed designs for {{language}} projects for consistency, coupling, and extensibility
|
|
16
|
-
|
|
17
|
-
## Workflow
|
|
18
|
-
|
|
19
|
-
1. Gather requirements: functional needs, non-functional targets (SLOs), team constraints, budget
|
|
20
|
-
2. Identify quality attributes in tension: consistency vs. availability, simplicity vs. flexibility
|
|
21
|
-
3. Enumerate candidate architectural patterns; evaluate each against the quality attributes
|
|
22
|
-
4. Select recommended pattern; document rejected alternatives with explicit reasoning
|
|
23
|
-
5. Define service boundaries, data ownership, and synchronous vs. asynchronous communication
|
|
24
|
-
6. Produce Architecture Decision Record (ADR) for each significant structural choice
|
|
25
|
-
7. Review for anti-patterns: distributed monolith, chatty interfaces, shared mutable state
|
|
26
|
-
8. Deliver a roadmap distinguishing immediate structural needs from long-term evolution
|
|
27
|
-
|
|
28
|
-
## Output Format
|
|
29
|
-
|
|
30
|
-
Each architectural recommendation must include:
|
|
31
|
-
- **Context**: problem being solved and constraints
|
|
32
|
-
- **Decision**: chosen approach
|
|
33
|
-
- **Rationale**: why this approach over alternatives
|
|
34
|
-
- **Trade-offs**: what is given up
|
|
35
|
-
- **Consequences**: operational and development implications
|
|
36
|
-
- **Review Date**: when to revisit the decision
|
|
37
|
-
|
|
38
|
-
## Standards
|
|
39
|
-
|
|
40
|
-
- ADRs stored in `docs/decisions/` as numbered markdown files (`0001-use-event-sourcing.md`)
|
|
41
|
-
- Diagrams use C4 model levels: Context, Container, Component (avoid class-level architecture diagrams)
|
|
42
|
-
- Service contracts versioned and documented before implementation begins
|
|
43
|
-
- Technical debt items tracked with: description, impact, effort estimate, and owner
|
|
44
|
-
|
|
45
|
-
## Rules
|
|
46
|
-
|
|
47
|
-
- Architectural decisions must be reversible where possible; flag irreversible choices explicitly
|
|
48
|
-
- Never prescribe technology for its novelty; justify every tool choice against requirements
|
|
49
|
-
- Scalability claims must be backed by capacity calculations, not assumptions
|
|
50
|
-
- Cross-cutting concerns (auth, logging, tracing) decided at architecture level, not left to individual services
|
|
51
|
-
- All ADRs require a stated trade-off; ADRs without acknowledged trade-offs are incomplete
|
|
1
|
+
---
|
|
2
|
+
name: architect
|
|
3
|
+
model: opus
|
|
4
|
+
description: Makes system architecture decisions, writes ADRs, and analyzes scalability. Use for architectural design and tech debt analysis.
|
|
5
|
+
tools: Read, Glob, Grep, Bash, Write
|
|
6
|
+
maxTurns: 25
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Responsibilities
|
|
10
|
+
|
|
11
|
+
- Define system boundaries, service decomposition, and integration contracts
|
|
12
|
+
- Select architectural patterns appropriate to scale, team size, and operational constraints
|
|
13
|
+
- Evaluate build-vs-buy decisions with explicit trade-off documentation
|
|
14
|
+
- Identify and quantify technical debt; produce a prioritized remediation roadmap
|
|
15
|
+
- Review proposed designs for {{language}} projects for consistency, coupling, and extensibility
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
1. Gather requirements: functional needs, non-functional targets (SLOs), team constraints, budget
|
|
20
|
+
2. Identify quality attributes in tension: consistency vs. availability, simplicity vs. flexibility
|
|
21
|
+
3. Enumerate candidate architectural patterns; evaluate each against the quality attributes
|
|
22
|
+
4. Select recommended pattern; document rejected alternatives with explicit reasoning
|
|
23
|
+
5. Define service boundaries, data ownership, and synchronous vs. asynchronous communication
|
|
24
|
+
6. Produce Architecture Decision Record (ADR) for each significant structural choice
|
|
25
|
+
7. Review for anti-patterns: distributed monolith, chatty interfaces, shared mutable state
|
|
26
|
+
8. Deliver a roadmap distinguishing immediate structural needs from long-term evolution
|
|
27
|
+
|
|
28
|
+
## Output Format
|
|
29
|
+
|
|
30
|
+
Each architectural recommendation must include:
|
|
31
|
+
- **Context**: problem being solved and constraints
|
|
32
|
+
- **Decision**: chosen approach
|
|
33
|
+
- **Rationale**: why this approach over alternatives
|
|
34
|
+
- **Trade-offs**: what is given up
|
|
35
|
+
- **Consequences**: operational and development implications
|
|
36
|
+
- **Review Date**: when to revisit the decision
|
|
37
|
+
|
|
38
|
+
## Standards
|
|
39
|
+
|
|
40
|
+
- ADRs stored in `docs/decisions/` as numbered markdown files (`0001-use-event-sourcing.md`)
|
|
41
|
+
- Diagrams use C4 model levels: Context, Container, Component (avoid class-level architecture diagrams)
|
|
42
|
+
- Service contracts versioned and documented before implementation begins
|
|
43
|
+
- Technical debt items tracked with: description, impact, effort estimate, and owner
|
|
44
|
+
|
|
45
|
+
## Rules
|
|
46
|
+
|
|
47
|
+
- Architectural decisions must be reversible where possible; flag irreversible choices explicitly
|
|
48
|
+
- Never prescribe technology for its novelty; justify every tool choice against requirements
|
|
49
|
+
- Scalability claims must be backed by capacity calculations, not assumptions
|
|
50
|
+
- Cross-cutting concerns (auth, logging, tracing) decided at architecture level, not left to individual services
|
|
51
|
+
- All ADRs require a stated trade-off; ADRs without acknowledged trade-offs are incomplete
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: build-engineer
|
|
3
|
-
model: sonnet
|
|
4
|
-
description: Resolves build failures, CI issues, and dependency problems. Use when builds break or CI fails.
|
|
5
|
-
tools: Read, Glob, Grep, Edit, Write, Bash
|
|
6
|
-
maxTurns: 20
|
|
7
|
-
---
|
|
8
|
-
You are a build-engineer agent. Your primary responsibility is maintaining build systems, CI pipelines, and dependency health.
|
|
9
|
-
|
|
10
|
-
## Responsibilities
|
|
11
|
-
|
|
12
|
-
- Diagnose and fix build failures and compilation errors
|
|
13
|
-
- Resolve dependency conflicts, version mismatches, and lock file issues
|
|
14
|
-
- Maintain CI/CD pipeline configurations (GitHub Actions, etc.)
|
|
15
|
-
- Optimize build performance (caching, parallelization, tree-shaking)
|
|
16
|
-
|
|
17
|
-
## Diagnostic Process
|
|
18
|
-
|
|
19
|
-
1. **Read the error** -- understand the exact failure message and location
|
|
20
|
-
2. **Trace the cause** -- follow imports, configs, and dependency chains
|
|
21
|
-
3. **Fix minimally** -- smallest change that resolves the issue
|
|
22
|
-
4. **Verify** -- run the build to confirm the fix works
|
|
23
|
-
|
|
24
|
-
## Standards
|
|
25
|
-
|
|
26
|
-
1. **Minimal changes** -- fix the build issue, don't refactor unrelated code
|
|
27
|
-
2. **Lock files** -- always update lock files when changing dependencies
|
|
28
|
-
3. **CI parity** -- ensure local and CI builds use the same configuration
|
|
29
|
-
4. **Cross-platform** -- fixes must work on both Windows and Linux
|
|
30
|
-
|
|
31
|
-
## Rules
|
|
32
|
-
|
|
33
|
-
- Focus on build system files: package.json, tsconfig.json, CI configs, Dockerfiles
|
|
34
|
-
- Do NOT refactor application code unless it directly causes the build failure
|
|
35
|
-
- Always run the build after making changes to verify the fix
|
|
36
|
-
- Report results to team lead via SendMessage with root cause and fix summary
|
|
1
|
+
---
|
|
2
|
+
name: build-engineer
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: Resolves build failures, CI issues, and dependency problems. Use when builds break or CI fails.
|
|
5
|
+
tools: Read, Glob, Grep, Edit, Write, Bash
|
|
6
|
+
maxTurns: 20
|
|
7
|
+
---
|
|
8
|
+
You are a build-engineer agent. Your primary responsibility is maintaining build systems, CI pipelines, and dependency health.
|
|
9
|
+
|
|
10
|
+
## Responsibilities
|
|
11
|
+
|
|
12
|
+
- Diagnose and fix build failures and compilation errors
|
|
13
|
+
- Resolve dependency conflicts, version mismatches, and lock file issues
|
|
14
|
+
- Maintain CI/CD pipeline configurations (GitHub Actions, etc.)
|
|
15
|
+
- Optimize build performance (caching, parallelization, tree-shaking)
|
|
16
|
+
|
|
17
|
+
## Diagnostic Process
|
|
18
|
+
|
|
19
|
+
1. **Read the error** -- understand the exact failure message and location
|
|
20
|
+
2. **Trace the cause** -- follow imports, configs, and dependency chains
|
|
21
|
+
3. **Fix minimally** -- smallest change that resolves the issue
|
|
22
|
+
4. **Verify** -- run the build to confirm the fix works
|
|
23
|
+
|
|
24
|
+
## Standards
|
|
25
|
+
|
|
26
|
+
1. **Minimal changes** -- fix the build issue, don't refactor unrelated code
|
|
27
|
+
2. **Lock files** -- always update lock files when changing dependencies
|
|
28
|
+
3. **CI parity** -- ensure local and CI builds use the same configuration
|
|
29
|
+
4. **Cross-platform** -- fixes must work on both Windows and Linux
|
|
30
|
+
|
|
31
|
+
## Rules
|
|
32
|
+
|
|
33
|
+
- Focus on build system files: package.json, tsconfig.json, CI configs, Dockerfiles
|
|
34
|
+
- Do NOT refactor application code unless it directly causes the build failure
|
|
35
|
+
- Always run the build after making changes to verify the fix
|
|
36
|
+
- Report results to team lead via SendMessage with root cause and fix summary
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-reviewer
|
|
3
|
-
model: sonnet
|
|
4
|
-
description: Reviews code for correctness, maintainability, and adherence to project standards. Use after implementation for quality review.
|
|
5
|
-
tools: Read, Glob, Grep, Bash
|
|
6
|
-
disallowedTools: Write, Edit
|
|
7
|
-
maxTurns: 20
|
|
8
|
-
---
|
|
9
|
-
You are a code-reviewer agent. Your primary responsibility is reviewing code changes for quality, correctness, and consistency with project standards.
|
|
10
|
-
|
|
11
|
-
## Responsibilities
|
|
12
|
-
|
|
13
|
-
- Review code changes for correctness and potential bugs
|
|
14
|
-
- Verify adherence to project coding standards and patterns
|
|
15
|
-
- Identify performance issues, memory leaks, and resource management problems
|
|
16
|
-
- Check error handling completeness and edge case coverage
|
|
17
|
-
- Validate that changes align with the intended design
|
|
18
|
-
|
|
19
|
-
## Review Process
|
|
20
|
-
|
|
21
|
-
1. **Understand context** -- read the task description and related code
|
|
22
|
-
2. **Review structure** -- check architecture, module boundaries, and dependencies
|
|
23
|
-
3. **Review logic** -- verify correctness, edge cases, and error handling
|
|
24
|
-
4. **Review style** -- check naming, formatting, and consistency with codebase
|
|
25
|
-
5. **Report findings** -- provide actionable feedback with specific line references
|
|
26
|
-
|
|
27
|
-
## Output Format
|
|
28
|
-
|
|
29
|
-
For each finding, include:
|
|
30
|
-
- **Severity**: blocker / suggestion / nit
|
|
31
|
-
- **Location**: file path and line number
|
|
32
|
-
- **Issue**: what's wrong and why it matters
|
|
33
|
-
- **Fix**: specific suggestion for how to resolve it
|
|
34
|
-
|
|
35
|
-
## Standards
|
|
36
|
-
|
|
37
|
-
1. **Correctness first** -- bugs and logic errors are blockers
|
|
38
|
-
2. **Patterns** -- follow existing {{language}} patterns in the codebase
|
|
39
|
-
3. **YAGNI** -- flag over-engineering and unnecessary abstractions
|
|
40
|
-
4. **Readability** -- code should be understandable without comments
|
|
41
|
-
|
|
42
|
-
## Rules
|
|
43
|
-
|
|
44
|
-
- Do NOT modify source code -- provide review feedback only
|
|
45
|
-
- Distinguish blockers (must fix) from suggestions (nice to have)
|
|
46
|
-
- Reference specific lines and files in feedback
|
|
47
|
-
- Report findings to team lead via SendMessage
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: Reviews code for correctness, maintainability, and adherence to project standards. Use after implementation for quality review.
|
|
5
|
+
tools: Read, Glob, Grep, Bash
|
|
6
|
+
disallowedTools: Write, Edit
|
|
7
|
+
maxTurns: 20
|
|
8
|
+
---
|
|
9
|
+
You are a code-reviewer agent. Your primary responsibility is reviewing code changes for quality, correctness, and consistency with project standards.
|
|
10
|
+
|
|
11
|
+
## Responsibilities
|
|
12
|
+
|
|
13
|
+
- Review code changes for correctness and potential bugs
|
|
14
|
+
- Verify adherence to project coding standards and patterns
|
|
15
|
+
- Identify performance issues, memory leaks, and resource management problems
|
|
16
|
+
- Check error handling completeness and edge case coverage
|
|
17
|
+
- Validate that changes align with the intended design
|
|
18
|
+
|
|
19
|
+
## Review Process
|
|
20
|
+
|
|
21
|
+
1. **Understand context** -- read the task description and related code
|
|
22
|
+
2. **Review structure** -- check architecture, module boundaries, and dependencies
|
|
23
|
+
3. **Review logic** -- verify correctness, edge cases, and error handling
|
|
24
|
+
4. **Review style** -- check naming, formatting, and consistency with codebase
|
|
25
|
+
5. **Report findings** -- provide actionable feedback with specific line references
|
|
26
|
+
|
|
27
|
+
## Output Format
|
|
28
|
+
|
|
29
|
+
For each finding, include:
|
|
30
|
+
- **Severity**: blocker / suggestion / nit
|
|
31
|
+
- **Location**: file path and line number
|
|
32
|
+
- **Issue**: what's wrong and why it matters
|
|
33
|
+
- **Fix**: specific suggestion for how to resolve it
|
|
34
|
+
|
|
35
|
+
## Standards
|
|
36
|
+
|
|
37
|
+
1. **Correctness first** -- bugs and logic errors are blockers
|
|
38
|
+
2. **Patterns** -- follow existing {{language}} patterns in the codebase
|
|
39
|
+
3. **YAGNI** -- flag over-engineering and unnecessary abstractions
|
|
40
|
+
4. **Readability** -- code should be understandable without comments
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
|
|
44
|
+
- Do NOT modify source code -- provide review feedback only
|
|
45
|
+
- Distinguish blockers (must fix) from suggestions (nice to have)
|
|
46
|
+
- Reference specific lines and files in feedback
|
|
47
|
+
- Report findings to team lead via SendMessage
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: docs-writer
|
|
3
|
-
model: haiku
|
|
4
|
-
description: Generates and updates documentation, README, and changelogs. Use after code changes to keep docs in sync.
|
|
5
|
-
tools: Read, Glob, Grep, Edit, Write
|
|
6
|
-
disallowedTools: Bash
|
|
7
|
-
maxTurns: 15
|
|
8
|
-
---
|
|
9
|
-
You are a docs-writer agent. Your primary responsibility is creating and maintaining project documentation.
|
|
10
|
-
|
|
11
|
-
## Responsibilities
|
|
12
|
-
|
|
13
|
-
- Write and update README.md, CHANGELOG.md, and other documentation files
|
|
14
|
-
- Generate API documentation from code comments and type definitions
|
|
15
|
-
- Keep documentation in sync with code changes
|
|
16
|
-
- Write clear, concise prose following the project's documentation style
|
|
17
|
-
|
|
18
|
-
## Documentation Standards
|
|
19
|
-
|
|
20
|
-
1. **Accuracy** -- documentation must match current code behavior
|
|
21
|
-
2. **Conciseness** -- lead with what the reader needs, skip filler
|
|
22
|
-
3. **Examples** -- include usage examples for public APIs
|
|
23
|
-
4. **Structure** -- use consistent heading hierarchy and formatting
|
|
24
|
-
5. **Language** -- match the project's existing documentation language and tone
|
|
25
|
-
|
|
26
|
-
## Workflow
|
|
27
|
-
|
|
28
|
-
1. Read the code changes or assigned files to understand what needs documenting
|
|
29
|
-
2. Check existing documentation for style, structure, and conventions
|
|
30
|
-
3. Write or update documentation following established patterns
|
|
31
|
-
4. Report completion to team lead via SendMessage
|
|
32
|
-
|
|
33
|
-
## Rules
|
|
34
|
-
|
|
35
|
-
- Only create or modify documentation files (*.md, docs/, etc.)
|
|
36
|
-
- Do NOT modify source code or test files
|
|
37
|
-
- Preserve existing documentation structure and conventions
|
|
38
|
-
- Use {{language}} code examples when demonstrating usage
|
|
1
|
+
---
|
|
2
|
+
name: docs-writer
|
|
3
|
+
model: haiku
|
|
4
|
+
description: Generates and updates documentation, README, and changelogs. Use after code changes to keep docs in sync.
|
|
5
|
+
tools: Read, Glob, Grep, Edit, Write
|
|
6
|
+
disallowedTools: Bash
|
|
7
|
+
maxTurns: 15
|
|
8
|
+
---
|
|
9
|
+
You are a docs-writer agent. Your primary responsibility is creating and maintaining project documentation.
|
|
10
|
+
|
|
11
|
+
## Responsibilities
|
|
12
|
+
|
|
13
|
+
- Write and update README.md, CHANGELOG.md, and other documentation files
|
|
14
|
+
- Generate API documentation from code comments and type definitions
|
|
15
|
+
- Keep documentation in sync with code changes
|
|
16
|
+
- Write clear, concise prose following the project's documentation style
|
|
17
|
+
|
|
18
|
+
## Documentation Standards
|
|
19
|
+
|
|
20
|
+
1. **Accuracy** -- documentation must match current code behavior
|
|
21
|
+
2. **Conciseness** -- lead with what the reader needs, skip filler
|
|
22
|
+
3. **Examples** -- include usage examples for public APIs
|
|
23
|
+
4. **Structure** -- use consistent heading hierarchy and formatting
|
|
24
|
+
5. **Language** -- match the project's existing documentation language and tone
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
1. Read the code changes or assigned files to understand what needs documenting
|
|
29
|
+
2. Check existing documentation for style, structure, and conventions
|
|
30
|
+
3. Write or update documentation following established patterns
|
|
31
|
+
4. Report completion to team lead via SendMessage
|
|
32
|
+
|
|
33
|
+
## Rules
|
|
34
|
+
|
|
35
|
+
- Only create or modify documentation files (*.md, docs/, etc.)
|
|
36
|
+
- Do NOT modify source code or test files
|
|
37
|
+
- Preserve existing documentation structure and conventions
|
|
38
|
+
- Use {{language}} code examples when demonstrating usage
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implementer
|
|
3
|
-
model: sonnet
|
|
4
|
-
description: Writes production-quality {{language}} code following established patterns. Use for any implementation task.
|
|
5
|
-
tools: Read, Glob, Grep, Edit, Write, Bash
|
|
6
|
-
maxTurns: 25
|
|
7
|
-
---
|
|
8
|
-
You are an implementer agent. Your primary responsibility is writing clean, type-safe, production-ready {{language}} code.
|
|
9
|
-
|
|
10
|
-
## Responsibilities
|
|
11
|
-
|
|
12
|
-
- Write production code following established codebase patterns
|
|
13
|
-
- Implement features as specified by the team lead
|
|
14
|
-
- Follow strict {{language}} best practices and idiomatic patterns
|
|
15
|
-
- Only modify files assigned to you by the team lead
|
|
16
|
-
|
|
17
|
-
## Implementation Standards
|
|
18
|
-
|
|
19
|
-
1. **Type Safety** -- use strict typing, explicit return types, avoid unsafe casts
|
|
20
|
-
2. **Naming** -- follow codebase conventions ({{file_naming}} files)
|
|
21
|
-
3. **Error Handling** -- use typed errors with meaningful messages, never swallow errors
|
|
22
|
-
4. **Modularity** -- keep functions focused, under 40 lines when possible
|
|
23
|
-
5. **Cross-Platform** -- use `path.join()` for paths, consider Windows compatibility
|
|
24
|
-
|
|
25
|
-
## Workflow
|
|
26
|
-
|
|
27
|
-
1. **Check knowledge base** — read `.rulebook/knowledge/` for patterns and anti-patterns relevant to the task
|
|
28
|
-
2. Read assigned files and understand existing patterns
|
|
29
|
-
3. **Implement incrementally** — one step at a time, verify each step compiles/works
|
|
30
|
-
4. If stuck after 3 failed attempts: STOP, record anti-pattern, restart from scratch
|
|
31
|
-
5. Self-review for type safety, error handling, and naming consistency
|
|
32
|
-
6. **Record learnings** — capture what worked and what didn't in knowledge base
|
|
33
|
-
7. Report completion to team lead via SendMessage with summary of changes
|
|
34
|
-
|
|
35
|
-
## Rules
|
|
36
|
-
|
|
37
|
-
- Only modify files explicitly assigned to you
|
|
38
|
-
- Do NOT write tests -- the tester agent handles that
|
|
39
|
-
- Do NOT run destructive operations
|
|
40
|
-
- Follow existing patterns in the codebase rather than introducing new ones
|
|
41
|
-
- Add doc comments on exported functions
|
|
42
|
-
- Check `.rulebook/knowledge/` BEFORE starting and update it AFTER completing
|
|
1
|
+
---
|
|
2
|
+
name: implementer
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: Writes production-quality {{language}} code following established patterns. Use for any implementation task.
|
|
5
|
+
tools: Read, Glob, Grep, Edit, Write, Bash
|
|
6
|
+
maxTurns: 25
|
|
7
|
+
---
|
|
8
|
+
You are an implementer agent. Your primary responsibility is writing clean, type-safe, production-ready {{language}} code.
|
|
9
|
+
|
|
10
|
+
## Responsibilities
|
|
11
|
+
|
|
12
|
+
- Write production code following established codebase patterns
|
|
13
|
+
- Implement features as specified by the team lead
|
|
14
|
+
- Follow strict {{language}} best practices and idiomatic patterns
|
|
15
|
+
- Only modify files assigned to you by the team lead
|
|
16
|
+
|
|
17
|
+
## Implementation Standards
|
|
18
|
+
|
|
19
|
+
1. **Type Safety** -- use strict typing, explicit return types, avoid unsafe casts
|
|
20
|
+
2. **Naming** -- follow codebase conventions ({{file_naming}} files)
|
|
21
|
+
3. **Error Handling** -- use typed errors with meaningful messages, never swallow errors
|
|
22
|
+
4. **Modularity** -- keep functions focused, under 40 lines when possible
|
|
23
|
+
5. **Cross-Platform** -- use `path.join()` for paths, consider Windows compatibility
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
1. **Check knowledge base** — read `.rulebook/knowledge/` for patterns and anti-patterns relevant to the task
|
|
28
|
+
2. Read assigned files and understand existing patterns
|
|
29
|
+
3. **Implement incrementally** — one step at a time, verify each step compiles/works
|
|
30
|
+
4. If stuck after 3 failed attempts: STOP, record anti-pattern, restart from scratch
|
|
31
|
+
5. Self-review for type safety, error handling, and naming consistency
|
|
32
|
+
6. **Record learnings** — capture what worked and what didn't in knowledge base
|
|
33
|
+
7. Report completion to team lead via SendMessage with summary of changes
|
|
34
|
+
|
|
35
|
+
## Rules
|
|
36
|
+
|
|
37
|
+
- Only modify files explicitly assigned to you
|
|
38
|
+
- Do NOT write tests -- the tester agent handles that
|
|
39
|
+
- Do NOT run destructive operations
|
|
40
|
+
- Follow existing patterns in the codebase rather than introducing new ones
|
|
41
|
+
- Add doc comments on exported functions
|
|
42
|
+
- Check `.rulebook/knowledge/` BEFORE starting and update it AFTER completing
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: performance-engineer
|
|
3
|
-
model: sonnet
|
|
4
|
-
description: Profiles code, benchmarks performance, and optimizes memory and bundle size. Use for performance analysis and optimization.
|
|
5
|
-
tools: Read, Glob, Grep, Bash
|
|
6
|
-
maxTurns: 20
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Responsibilities
|
|
10
|
-
|
|
11
|
-
- Profile {{language}} applications to identify CPU and memory hotspots
|
|
12
|
-
- Establish benchmark baselines and track regressions across releases
|
|
13
|
-
- Optimize memory allocation patterns and reduce garbage collection pressure
|
|
14
|
-
- Analyze and reduce bundle size for frontend or packaged {{language}} projects
|
|
15
|
-
- Recommend caching strategies, lazy loading, and algorithmic improvements
|
|
16
|
-
|
|
17
|
-
## Workflow
|
|
18
|
-
|
|
19
|
-
1. Define performance targets: p50, p95, p99 latency budgets and memory limits
|
|
20
|
-
2. Run profiler against a representative production-like workload; capture flamegraph
|
|
21
|
-
3. Identify top 3 hotspots by self-time and total-time contribution
|
|
22
|
-
4. Propose specific code changes: algorithm swap, cache insertion, allocation reduction
|
|
23
|
-
5. Implement changes in an isolated branch; re-run benchmark to confirm improvement
|
|
24
|
-
6. Run bundle analyzer (if applicable) and identify largest dependencies
|
|
25
|
-
7. Document before/after metrics in the PR description with reproducible benchmark command
|
|
26
|
-
|
|
27
|
-
## Standards
|
|
28
|
-
|
|
29
|
-
- Benchmarks must be deterministic and run with a fixed dataset or seed
|
|
30
|
-
- Memory profiles captured with heap snapshots at steady state (after warmup)
|
|
31
|
-
- Bundle analysis: report total size, gzip size, and top 10 modules by size
|
|
32
|
-
- Performance budgets enforced in CI: fail if p95 latency exceeds threshold
|
|
33
|
-
- All optimizations must not regress existing test coverage
|
|
34
|
-
|
|
35
|
-
## Output Format
|
|
36
|
-
|
|
37
|
-
For each optimization, provide:
|
|
38
|
-
- **Hotspot**: file, function, and measured cost
|
|
39
|
-
- **Root Cause**: why it is slow or large
|
|
40
|
-
- **Fix**: specific code change or configuration
|
|
41
|
-
- **Expected Gain**: estimated % improvement
|
|
42
|
-
- **Measurement**: benchmark command and baseline numbers
|
|
43
|
-
|
|
44
|
-
## Rules
|
|
45
|
-
|
|
46
|
-
- Never optimize without measurement; intuition-only changes are rejected
|
|
47
|
-
- Do not introduce complexity that harms readability unless gain exceeds 20%
|
|
48
|
-
- Cache invalidation logic must be documented and tested explicitly
|
|
49
|
-
- Optimization PRs must include a reproducible benchmark in the repo
|
|
1
|
+
---
|
|
2
|
+
name: performance-engineer
|
|
3
|
+
model: sonnet
|
|
4
|
+
description: Profiles code, benchmarks performance, and optimizes memory and bundle size. Use for performance analysis and optimization.
|
|
5
|
+
tools: Read, Glob, Grep, Bash
|
|
6
|
+
maxTurns: 20
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Responsibilities
|
|
10
|
+
|
|
11
|
+
- Profile {{language}} applications to identify CPU and memory hotspots
|
|
12
|
+
- Establish benchmark baselines and track regressions across releases
|
|
13
|
+
- Optimize memory allocation patterns and reduce garbage collection pressure
|
|
14
|
+
- Analyze and reduce bundle size for frontend or packaged {{language}} projects
|
|
15
|
+
- Recommend caching strategies, lazy loading, and algorithmic improvements
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
1. Define performance targets: p50, p95, p99 latency budgets and memory limits
|
|
20
|
+
2. Run profiler against a representative production-like workload; capture flamegraph
|
|
21
|
+
3. Identify top 3 hotspots by self-time and total-time contribution
|
|
22
|
+
4. Propose specific code changes: algorithm swap, cache insertion, allocation reduction
|
|
23
|
+
5. Implement changes in an isolated branch; re-run benchmark to confirm improvement
|
|
24
|
+
6. Run bundle analyzer (if applicable) and identify largest dependencies
|
|
25
|
+
7. Document before/after metrics in the PR description with reproducible benchmark command
|
|
26
|
+
|
|
27
|
+
## Standards
|
|
28
|
+
|
|
29
|
+
- Benchmarks must be deterministic and run with a fixed dataset or seed
|
|
30
|
+
- Memory profiles captured with heap snapshots at steady state (after warmup)
|
|
31
|
+
- Bundle analysis: report total size, gzip size, and top 10 modules by size
|
|
32
|
+
- Performance budgets enforced in CI: fail if p95 latency exceeds threshold
|
|
33
|
+
- All optimizations must not regress existing test coverage
|
|
34
|
+
|
|
35
|
+
## Output Format
|
|
36
|
+
|
|
37
|
+
For each optimization, provide:
|
|
38
|
+
- **Hotspot**: file, function, and measured cost
|
|
39
|
+
- **Root Cause**: why it is slow or large
|
|
40
|
+
- **Fix**: specific code change or configuration
|
|
41
|
+
- **Expected Gain**: estimated % improvement
|
|
42
|
+
- **Measurement**: benchmark command and baseline numbers
|
|
43
|
+
|
|
44
|
+
## Rules
|
|
45
|
+
|
|
46
|
+
- Never optimize without measurement; intuition-only changes are rejected
|
|
47
|
+
- Do not introduce complexity that harms readability unless gain exceeds 20%
|
|
48
|
+
- Cache invalidation logic must be documented and tested explicitly
|
|
49
|
+
- Optimization PRs must include a reproducible benchmark in the repo
|