@hivehub/rulebook 5.8.2 → 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/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
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<!-- OPENCODE:START -->
|
|
2
|
-
# OpenCode Rules
|
|
3
|
-
|
|
4
|
-
**Tool**: [OpenCode](https://opencode.ai) — open-source terminal coding agent (SST).
|
|
5
|
-
|
|
6
|
-
OpenCode reads `AGENTS.md` natively (with `CLAUDE.md` as fallback). When
|
|
7
|
-
Rulebook is initialized in this project, OpenCode also gets:
|
|
8
|
-
|
|
9
|
-
- `opencode.json` — declares the rulebook MCP server and lazy-loads the
|
|
10
|
-
project rule files via the `instructions` array.
|
|
11
|
-
- `.opencode/commands/` — mirrors Rulebook's user-invocable slash commands
|
|
12
|
-
(`/handoff`, `/rulebook-task-*`, `/rulebook-decision-*`,
|
|
13
|
-
`/rulebook-knowledge-*`, `/rulebook-memory-*`, `/rulebook-learn-*`).
|
|
14
|
-
- `.opencode/agents/` — mirrors role agents (`researcher`, `implementer`,
|
|
15
|
-
`tester`, `code-reviewer`, `architect`, etc.) translated to OpenCode's
|
|
16
|
-
frontmatter schema (`mode`, `model`, `permission`).
|
|
17
|
-
- `.opencode/skills/` — mirrors the dev skill library normalized to
|
|
18
|
-
OpenCode's strict skill-name regex.
|
|
19
|
-
|
|
20
|
-
## Quick Start
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# Install OpenCode
|
|
24
|
-
curl -fsSL https://opencode.ai/install | bash
|
|
25
|
-
|
|
26
|
-
# In a Rulebook-managed project, OpenCode picks up everything automatically:
|
|
27
|
-
opencode
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Workflow
|
|
31
|
-
|
|
32
|
-
1. **Reference rules** — `AGENTS.md`, `AGENTS.override.md`, and
|
|
33
|
-
`.rulebook/specs/*.md` are wired into `instructions` so the model
|
|
34
|
-
has them on demand without burning context.
|
|
35
|
-
2. **Use slash commands** — type `/rulebook-task-create`,
|
|
36
|
-
`/rulebook-task-list`, `/handoff`, etc. They're real OpenCode
|
|
37
|
-
commands, not just prompt text.
|
|
38
|
-
3. **Delegate to role agents** — `@researcher analyze X`,
|
|
39
|
-
`@implementer add Y`, `@tester cover Z`. Each role has its own
|
|
40
|
-
`model`, `permission`, and `description` matching the Rulebook
|
|
41
|
-
delegation table.
|
|
42
|
-
4. **Quality checks** — type-check / lint / test before committing,
|
|
43
|
-
per `AGENTS.md` quality-gate rules.
|
|
44
|
-
5. **Save learnings** — `rulebook memory save`, `rulebook knowledge add`,
|
|
45
|
-
`rulebook learn capture`, or invoke the corresponding slash commands.
|
|
46
|
-
|
|
47
|
-
## Sequential editing
|
|
48
|
-
|
|
49
|
-
OpenCode is held to the same Rulebook discipline as Claude Code:
|
|
50
|
-
|
|
51
|
-
- Edit files **one at a time** (Read → Edit → Read → Edit), not in batch.
|
|
52
|
-
- For 3+ files across subsystems, decompose into 1–2 file sub-tasks.
|
|
53
|
-
- Run diagnostics (type-check / lint) **before** the test suite.
|
|
54
|
-
|
|
55
|
-
## MCP & token usage
|
|
56
|
-
|
|
57
|
-
The `mcp.rulebook` entry in `opencode.json` exposes the full Rulebook
|
|
58
|
-
MCP toolset (`rulebook_task_*`, `rulebook_memory_*`, `rulebook_decision_*`,
|
|
59
|
-
`rulebook_knowledge_*`, etc.). Prefer MCP tools over shell commands when
|
|
60
|
-
both exist — they're faster, structured, and don't pollute context.
|
|
61
|
-
|
|
62
|
-
Output discipline: prefer concise output. Don't generate "Quality Checks"
|
|
63
|
-
status tables, "Next Steps" sections, or restate the question. Put
|
|
64
|
-
implementation details in code comments, not markdown.
|
|
65
|
-
|
|
66
|
-
## Isolation from Claude Code
|
|
67
|
-
|
|
68
|
-
OpenCode falls back to `CLAUDE.md` if `AGENTS.md` is absent. To force
|
|
69
|
-
OpenCode to ignore a `CLAUDE.md` shared with Claude Code, set:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
export OPENCODE_DISABLE_CLAUDE_CODE=*
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Documentation
|
|
76
|
-
|
|
77
|
-
- [opencode.ai/docs/rules](https://opencode.ai/docs/rules/)
|
|
78
|
-
- [opencode.ai/docs/config](https://opencode.ai/docs/config/)
|
|
79
|
-
- [opencode.ai/docs/mcp-servers](https://opencode.ai/docs/mcp-servers/)
|
|
80
|
-
- [opencode.ai/docs/commands](https://opencode.ai/docs/commands/)
|
|
81
|
-
- [opencode.ai/docs/agents](https://opencode.ai/docs/agents/)
|
|
82
|
-
- [opencode.ai/docs/skills](https://opencode.ai/docs/skills/)
|
|
83
|
-
- [opencode.ai/docs/permissions](https://opencode.ai/docs/permissions/)
|
|
84
|
-
|
|
85
|
-
<!-- OPENCODE:END -->
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ai.google.dev/schemas/gemini-extension.json",
|
|
3
|
-
"name": "rulebook",
|
|
4
|
-
"displayName": "Rulebook Project Standards",
|
|
5
|
-
"version": "2.0.0",
|
|
6
|
-
"description": "Standardize AI-generated projects with skills, templates, and quality gates",
|
|
7
|
-
"author": "HiveLLM",
|
|
8
|
-
"license": "Apache-2.0",
|
|
9
|
-
"capabilities": {
|
|
10
|
-
"codeGeneration": true,
|
|
11
|
-
"taskManagement": true,
|
|
12
|
-
"projectValidation": true,
|
|
13
|
-
"skillsSystem": true
|
|
14
|
-
},
|
|
15
|
-
"commands": {
|
|
16
|
-
"init": {
|
|
17
|
-
"description": "Initialize rulebook for current project",
|
|
18
|
-
"command": "rulebook init --yes"
|
|
19
|
-
},
|
|
20
|
-
"update": {
|
|
21
|
-
"description": "Update project rules to latest version",
|
|
22
|
-
"command": "rulebook update --yes"
|
|
23
|
-
},
|
|
24
|
-
"validate": {
|
|
25
|
-
"description": "Validate project structure",
|
|
26
|
-
"command": "rulebook validate"
|
|
27
|
-
},
|
|
28
|
-
"health": {
|
|
29
|
-
"description": "Check project health score",
|
|
30
|
-
"command": "rulebook health"
|
|
31
|
-
},
|
|
32
|
-
"fix": {
|
|
33
|
-
"description": "Auto-fix common issues",
|
|
34
|
-
"command": "rulebook fix"
|
|
35
|
-
},
|
|
36
|
-
"skill-list": {
|
|
37
|
-
"description": "List available skills",
|
|
38
|
-
"command": "rulebook skill list"
|
|
39
|
-
},
|
|
40
|
-
"skill-add": {
|
|
41
|
-
"description": "Add a skill",
|
|
42
|
-
"command": "rulebook skill add"
|
|
43
|
-
},
|
|
44
|
-
"task-create": {
|
|
45
|
-
"description": "Create a new task",
|
|
46
|
-
"command": "rulebook task create"
|
|
47
|
-
},
|
|
48
|
-
"task-list": {
|
|
49
|
-
"description": "List all tasks",
|
|
50
|
-
"command": "rulebook task list"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"files": {
|
|
54
|
-
"instructions": "GEMINI.md",
|
|
55
|
-
"agents": "AGENTS.md",
|
|
56
|
-
"config": ".rulebook",
|
|
57
|
-
"rules": "rulebook/"
|
|
58
|
-
},
|
|
59
|
-
"integration": {
|
|
60
|
-
"type": "cli",
|
|
61
|
-
"install": "npm install -g @hivehub/rulebook",
|
|
62
|
-
"mcp": {
|
|
63
|
-
"enabled": true,
|
|
64
|
-
"server": "rulebook-mcp"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"skills": {
|
|
68
|
-
"enabled": true,
|
|
69
|
-
"categories": [
|
|
70
|
-
"languages",
|
|
71
|
-
"frameworks",
|
|
72
|
-
"modules",
|
|
73
|
-
"services",
|
|
74
|
-
"core"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /rulebook-memory-save
|
|
3
|
-
id: rulebook-memory-save
|
|
4
|
-
category: Rulebook
|
|
5
|
-
description: Save a new persistent memory for context across AI sessions.
|
|
6
|
-
---
|
|
7
|
-
<!-- RULEBOOK:START -->
|
|
8
|
-
**Guardrails**
|
|
9
|
-
- Use the MCP memory tools when available (preferred over CLI commands).
|
|
10
|
-
- Choose the correct memory type for accurate classification and search.
|
|
11
|
-
- Keep titles concise and content descriptive.
|
|
12
|
-
- Use tags for better discoverability.
|
|
13
|
-
|
|
14
|
-
**Steps**
|
|
15
|
-
1. **Save a memory** using the MCP tool or CLI:
|
|
16
|
-
```
|
|
17
|
-
# Via MCP (preferred)
|
|
18
|
-
rulebook_memory_save({
|
|
19
|
-
type: "feature",
|
|
20
|
-
title: "Short descriptive title",
|
|
21
|
-
content: "Detailed description of what happened, why, and context",
|
|
22
|
-
tags: ["relevant", "tags"]
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
# Via CLI
|
|
26
|
-
rulebook memory save "content text" --type feature --title "Title" --tags tag1,tag2
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
2. **Choose the right type**:
|
|
30
|
-
- `bugfix` - Fixed a bug or resolved an error
|
|
31
|
-
- `feature` - Added new functionality
|
|
32
|
-
- `refactor` - Restructured code without changing behavior
|
|
33
|
-
- `decision` - Made an architecture or design choice (protected from eviction)
|
|
34
|
-
- `discovery` - Found something important about the codebase
|
|
35
|
-
- `change` - General code modification
|
|
36
|
-
- `observation` - Noted something worth remembering
|
|
37
|
-
|
|
38
|
-
3. **Verify** the memory was saved:
|
|
39
|
-
```
|
|
40
|
-
rulebook_memory_search({ query: "your title keywords" })
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
**Best Practices**
|
|
44
|
-
- Save decisions early - they are protected from cache eviction
|
|
45
|
-
- Include "why" in content, not just "what"
|
|
46
|
-
- Use consistent tags across related memories
|
|
47
|
-
- Content within `<private>...</private>` tags will be automatically redacted
|
|
48
|
-
<!-- RULEBOOK:END -->
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /rulebook-memory-search
|
|
3
|
-
id: rulebook-memory-search
|
|
4
|
-
category: Rulebook
|
|
5
|
-
description: Search persistent memories using hybrid BM25+vector search for context across sessions.
|
|
6
|
-
---
|
|
7
|
-
<!-- RULEBOOK:START -->
|
|
8
|
-
**Guardrails**
|
|
9
|
-
- Use the MCP memory tools when available (preferred over CLI commands).
|
|
10
|
-
- The memory system uses 3-layer search: Layer 1 (compact search), Layer 2 (timeline), Layer 3 (full details).
|
|
11
|
-
- Always start with a broad search, then narrow down with timeline and full details.
|
|
12
|
-
|
|
13
|
-
**Steps**
|
|
14
|
-
1. **Search memories** using the MCP tool or CLI:
|
|
15
|
-
```
|
|
16
|
-
# Via MCP (preferred)
|
|
17
|
-
rulebook_memory_search({ query: "search terms", mode: "hybrid", limit: 20 })
|
|
18
|
-
|
|
19
|
-
# Via CLI
|
|
20
|
-
rulebook memory search "search terms" --mode hybrid --limit 20
|
|
21
|
-
```
|
|
22
|
-
Modes: `hybrid` (default, best results), `bm25` (keyword only), `vector` (semantic only).
|
|
23
|
-
|
|
24
|
-
2. **Get timeline context** around a relevant result:
|
|
25
|
-
```
|
|
26
|
-
rulebook_memory_timeline({ memoryId: "<id>", window: 5 })
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
3. **Get full details** for specific memories:
|
|
30
|
-
```
|
|
31
|
-
rulebook_memory_get({ ids: ["<id1>", "<id2>"] })
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Memory Types**
|
|
35
|
-
- `bugfix` - Bug fixes and error resolutions
|
|
36
|
-
- `feature` - New features and capabilities
|
|
37
|
-
- `refactor` - Code restructuring
|
|
38
|
-
- `decision` - Architecture/design decisions (protected from eviction)
|
|
39
|
-
- `discovery` - Findings about codebase or tools
|
|
40
|
-
- `change` - General code changes
|
|
41
|
-
- `observation` - General observations
|
|
42
|
-
|
|
43
|
-
**Reference**
|
|
44
|
-
- Use `rulebook memory stats` to check database health
|
|
45
|
-
- Decisions are never evicted during cleanup
|
|
46
|
-
- Privacy: content within `<private>...</private>` tags is automatically redacted
|
|
47
|
-
<!-- RULEBOOK:END -->
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- RULEBOOK:START -->
|
|
2
|
-
# Continue.dev — Code Assistant Rules
|
|
3
|
-
|
|
4
|
-
## Context Loading
|
|
5
|
-
- Always read AGENTS.md before making changes
|
|
6
|
-
- Check `.rulebook/specs/` for relevant spec files
|
|
7
|
-
|
|
8
|
-
## Code Standards
|
|
9
|
-
- Match existing code style and conventions
|
|
10
|
-
- Prefer editing existing files over creating new ones
|
|
11
|
-
- Add types for all new parameters and return values
|
|
12
|
-
|
|
13
|
-
## Testing
|
|
14
|
-
- Write tests for every new function
|
|
15
|
-
- Run existing tests after changes to verify no regressions
|
|
16
|
-
<!-- RULEBOOK:END -->
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!-- RULEBOOK:START -->
|
|
2
|
-
# GitHub Copilot — Project Instructions
|
|
3
|
-
|
|
4
|
-
## Code Style
|
|
5
|
-
- Use TypeScript with strict mode
|
|
6
|
-
- Follow existing naming conventions (camelCase functions, PascalCase classes)
|
|
7
|
-
- Prefer `async/await` over callbacks or raw Promises
|
|
8
|
-
|
|
9
|
-
## Architecture
|
|
10
|
-
- Follow the module structure described in AGENTS.md
|
|
11
|
-
- Keep functions small and focused (single responsibility)
|
|
12
|
-
- Use dependency injection over direct imports where possible
|
|
13
|
-
|
|
14
|
-
## Testing
|
|
15
|
-
- Write Vitest tests for all new functions
|
|
16
|
-
- Place tests in `tests/` directory, not alongside source files
|
|
17
|
-
- Mock external dependencies in unit tests
|
|
18
|
-
|
|
19
|
-
## Security
|
|
20
|
-
- Never commit credentials or API keys
|
|
21
|
-
- Validate all external input at system boundaries
|
|
22
|
-
- Follow OWASP top 10 guidelines
|
|
23
|
-
<!-- RULEBOOK:END -->
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- RULEBOOK:START -->
|
|
2
|
-
# Gemini CLI — Project Directives
|
|
3
|
-
|
|
4
|
-
## Code Generation Rules
|
|
5
|
-
- Generate TypeScript with strict mode enabled
|
|
6
|
-
- Follow existing file and function naming conventions
|
|
7
|
-
- Always add error handling for async operations
|
|
8
|
-
- Generate tests alongside implementation code
|
|
9
|
-
|
|
10
|
-
## Quality Standards
|
|
11
|
-
- All code must pass TypeScript type-check
|
|
12
|
-
- All code must pass ESLint without warnings
|
|
13
|
-
- Test coverage must meet project thresholds
|
|
14
|
-
|
|
15
|
-
## Project Context
|
|
16
|
-
See AGENTS.md for full project architecture and team conventions.
|
|
17
|
-
<!-- RULEBOOK:END -->
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<!-- OPENCODE:START -->
|
|
2
|
-
# OpenCode Integration
|
|
3
|
-
|
|
4
|
-
This project is managed by [@hivellm/rulebook](https://github.com/hivellm/rulebook).
|
|
5
|
-
The OpenCode integration mirrors the Claude Code experience inside the
|
|
6
|
-
[OpenCode](https://opencode.ai) terminal coding agent.
|
|
7
|
-
|
|
8
|
-
## What Rulebook generates for OpenCode
|
|
9
|
-
|
|
10
|
-
| File / Path | Purpose |
|
|
11
|
-
|---|---|
|
|
12
|
-
| `opencode.json` | Adds `$schema`, `mcp.rulebook`, and `instructions` (lazy-loads `AGENTS.md`, `AGENTS.override.md`, `.rulebook/specs/*.md`). Preserves all user-defined keys. |
|
|
13
|
-
| `.opencode/commands/<name>.md` | One file per user-invocable Rulebook slash command. |
|
|
14
|
-
| `.opencode/agents/<role>.md` | One file per Rulebook role agent, frontmatter translated. |
|
|
15
|
-
| `.opencode/skills/<name>/SKILL.md` | One directory per Rulebook dev skill, name-normalized to OpenCode's regex. |
|
|
16
|
-
| `.opencode/.rulebook-managed.json` | Sidecar so `rulebook update` knows which keys to refresh. |
|
|
17
|
-
|
|
18
|
-
## Critical rules
|
|
19
|
-
|
|
20
|
-
These mirror the rules every other Rulebook-supported tool follows:
|
|
21
|
-
|
|
22
|
-
1. **Read `AGENTS.md` and `AGENTS.override.md`** before making changes.
|
|
23
|
-
2. **Never revert or discard uncommitted work** — fix forward.
|
|
24
|
-
3. **Edit files sequentially**, not in parallel. For 3+ files, decompose
|
|
25
|
-
into 1–2 file sub-tasks.
|
|
26
|
-
4. **Run type-check / lint before tests** — diagnostic-first.
|
|
27
|
-
5. **If a fix fails twice, escalate** — research, ask, or open a team.
|
|
28
|
-
6. **Prefer MCP tools** (`mcp__rulebook__*`) over shell commands.
|
|
29
|
-
7. **Capture learnings** at the end of significant work.
|
|
30
|
-
8. **Never archive a task** without docs updated, tests written, and
|
|
31
|
-
tests passing.
|
|
32
|
-
|
|
33
|
-
## Model tier mapping
|
|
34
|
-
|
|
35
|
-
| Rulebook tier | OpenCode model |
|
|
36
|
-
|---|---|
|
|
37
|
-
| `haiku` | `anthropic/claude-haiku-4-5` |
|
|
38
|
-
| `sonnet` | `anthropic/claude-sonnet-4-6` |
|
|
39
|
-
| `opus` | `anthropic/claude-opus-4-7` |
|
|
40
|
-
|
|
41
|
-
## Permission synthesis
|
|
42
|
-
|
|
43
|
-
| Role type | `permission.edit` | `permission.bash` |
|
|
44
|
-
|---|---|---|
|
|
45
|
-
| Read-only (researcher, code-reviewer, security-reviewer, accessibility-reviewer, ux-reviewer, performance-engineer) | `deny` | `ask` |
|
|
46
|
-
| All other roles | `allow` | `allow` |
|
|
47
|
-
|
|
48
|
-
## Isolation
|
|
49
|
-
|
|
50
|
-
Set `OPENCODE_DISABLE_CLAUDE_CODE=*` if you want OpenCode to ignore a
|
|
51
|
-
`CLAUDE.md` shared with Claude Code, so only `AGENTS.md` is consulted.
|
|
52
|
-
|
|
53
|
-
## Documentation
|
|
54
|
-
|
|
55
|
-
- [opencode.ai/docs/rules](https://opencode.ai/docs/rules/)
|
|
56
|
-
- [opencode.ai/docs/config](https://opencode.ai/docs/config/)
|
|
57
|
-
- [opencode.ai/docs/mcp-servers](https://opencode.ai/docs/mcp-servers/)
|
|
58
|
-
- [opencode.ai/docs/commands](https://opencode.ai/docs/commands/)
|
|
59
|
-
- [opencode.ai/docs/agents](https://opencode.ai/docs/agents/)
|
|
60
|
-
- [opencode.ai/docs/skills](https://opencode.ai/docs/skills/)
|
|
61
|
-
- [opencode.ai/docs/permissions](https://opencode.ai/docs/permissions/)
|
|
62
|
-
|
|
63
|
-
<!-- OPENCODE:END -->
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!-- RULEBOOK:START -->
|
|
2
|
-
# Windsurf — Project Rules
|
|
3
|
-
|
|
4
|
-
You are an AI assistant for this project. Follow these rules:
|
|
5
|
-
|
|
6
|
-
1. Read AGENTS.md for full project context before starting any task
|
|
7
|
-
2. Never create files in the root unless explicitly asked
|
|
8
|
-
3. All TypeScript must be strict-mode compatible
|
|
9
|
-
4. Write tests for new functionality
|
|
10
|
-
5. Run quality checks before marking work complete
|
|
11
|
-
|
|
12
|
-
## Project Structure
|
|
13
|
-
Follow the existing directory structure. See AGENTS.md for details.
|
|
14
|
-
<!-- RULEBOOK:END -->
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
<!-- ATLASSIAN:START -->
|
|
2
|
-
# Atlassian MCP Instructions
|
|
3
|
-
|
|
4
|
-
**CRITICAL**: Use MCP Atlassian for Jira issues, Confluence documentation, and Bitbucket repositories.
|
|
5
|
-
|
|
6
|
-
## Jira Operations
|
|
7
|
-
|
|
8
|
-
### Issue Management
|
|
9
|
-
```typescript
|
|
10
|
-
// Create issue
|
|
11
|
-
jira.issues.createIssue({
|
|
12
|
-
fields: {
|
|
13
|
-
project: { key: 'PROJ' },
|
|
14
|
-
summary: 'Bug in authentication',
|
|
15
|
-
description: 'Users cannot login with valid credentials',
|
|
16
|
-
issuetype: { name: 'Bug' },
|
|
17
|
-
priority: { name: 'High' }
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
// Update issue
|
|
22
|
-
jira.issues.updateIssue({
|
|
23
|
-
issueIdOrKey: 'PROJ-123',
|
|
24
|
-
fields: {
|
|
25
|
-
status: { name: 'In Progress' },
|
|
26
|
-
assignee: { accountId: 'user-id' }
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
// Get issue
|
|
31
|
-
jira.issues.getIssue({ issueIdOrKey: 'PROJ-123' })
|
|
32
|
-
|
|
33
|
-
// Search issues
|
|
34
|
-
jira.issueSearch.searchForIssuesUsingJql({
|
|
35
|
-
jql: 'project = PROJ AND status = "To Do" ORDER BY priority DESC'
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
// Add comment
|
|
39
|
-
jira.issueComments.addComment({
|
|
40
|
-
issueIdOrKey: 'PROJ-123',
|
|
41
|
-
body: 'Working on this issue'
|
|
42
|
-
})
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Transitions
|
|
46
|
-
```typescript
|
|
47
|
-
// Get transitions
|
|
48
|
-
const transitions = await jira.issues.getTransitions({ issueIdOrKey: 'PROJ-123' })
|
|
49
|
-
|
|
50
|
-
// Transition issue
|
|
51
|
-
jira.issues.doTransition({
|
|
52
|
-
issueIdOrKey: 'PROJ-123',
|
|
53
|
-
transition: { id: transitionId }
|
|
54
|
-
})
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Confluence Operations
|
|
58
|
-
|
|
59
|
-
### Page Management
|
|
60
|
-
```typescript
|
|
61
|
-
// Create page
|
|
62
|
-
confluence.content.createContent({
|
|
63
|
-
type: 'page',
|
|
64
|
-
title: 'API Documentation',
|
|
65
|
-
space: { key: 'DOCS' },
|
|
66
|
-
body: {
|
|
67
|
-
storage: {
|
|
68
|
-
value: '<h1>Introduction</h1><p>Content here</p>',
|
|
69
|
-
representation: 'storage'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
// Update page
|
|
75
|
-
confluence.content.updateContent({
|
|
76
|
-
id: 'page-id',
|
|
77
|
-
type: 'page',
|
|
78
|
-
title: 'Updated Title',
|
|
79
|
-
version: { number: currentVersion + 1 },
|
|
80
|
-
body: {
|
|
81
|
-
storage: {
|
|
82
|
-
value: '<p>Updated content</p>',
|
|
83
|
-
representation: 'storage'
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
// Get page
|
|
89
|
-
confluence.content.getContentById({ id: 'page-id' })
|
|
90
|
-
|
|
91
|
-
// Search
|
|
92
|
-
confluence.search.search({
|
|
93
|
-
cql: 'type=page AND space=DOCS AND title~"API"'
|
|
94
|
-
})
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Attachments
|
|
98
|
-
```typescript
|
|
99
|
-
// Add attachment
|
|
100
|
-
confluence.content.createAttachment({
|
|
101
|
-
id: 'page-id',
|
|
102
|
-
file: fileBuffer,
|
|
103
|
-
filename: 'document.pdf'
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
// Get attachments
|
|
107
|
-
confluence.content.getAttachments({ id: 'page-id' })
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Bitbucket Operations
|
|
111
|
-
|
|
112
|
-
### Repository Management
|
|
113
|
-
```typescript
|
|
114
|
-
// Get repositories
|
|
115
|
-
bitbucket.repositories.list({ workspace: 'my-workspace' })
|
|
116
|
-
|
|
117
|
-
// Get repository
|
|
118
|
-
bitbucket.repositories.get({
|
|
119
|
-
workspace: 'my-workspace',
|
|
120
|
-
repo_slug: 'my-repo'
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
// Get branches
|
|
124
|
-
bitbucket.refs.listBranches({
|
|
125
|
-
workspace: 'my-workspace',
|
|
126
|
-
repo_slug: 'my-repo'
|
|
127
|
-
})
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Pull Requests
|
|
131
|
-
```typescript
|
|
132
|
-
// Create PR
|
|
133
|
-
bitbucket.pullrequests.create({
|
|
134
|
-
workspace: 'my-workspace',
|
|
135
|
-
repo_slug: 'my-repo',
|
|
136
|
-
title: 'Add new feature',
|
|
137
|
-
source: { branch: { name: 'feature/new-feature' } },
|
|
138
|
-
destination: { branch: { name: 'main' } },
|
|
139
|
-
description: 'Implements feature X'
|
|
140
|
-
})
|
|
141
|
-
|
|
142
|
-
// List PRs
|
|
143
|
-
bitbucket.pullrequests.list({
|
|
144
|
-
workspace: 'my-workspace',
|
|
145
|
-
repo_slug: 'my-repo',
|
|
146
|
-
state: 'OPEN'
|
|
147
|
-
})
|
|
148
|
-
|
|
149
|
-
// Approve PR
|
|
150
|
-
bitbucket.pullrequests.approve({
|
|
151
|
-
workspace: 'my-workspace',
|
|
152
|
-
repo_slug: 'my-repo',
|
|
153
|
-
pull_request_id: 123
|
|
154
|
-
})
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
## Common Patterns
|
|
158
|
-
|
|
159
|
-
### CI/CD Integration
|
|
160
|
-
```typescript
|
|
161
|
-
// Create issue on test failure
|
|
162
|
-
if (testsFailed) {
|
|
163
|
-
await jira.issues.createIssue({
|
|
164
|
-
fields: {
|
|
165
|
-
project: { key: 'PROJ' },
|
|
166
|
-
summary: `Test failure in ${testSuite}`,
|
|
167
|
-
description: `Tests failed with errors:\n${errors.join('\n')}`,
|
|
168
|
-
issuetype: { name: 'Bug' },
|
|
169
|
-
labels: ['ci-failure', 'automated']
|
|
170
|
-
}
|
|
171
|
-
})
|
|
172
|
-
}
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### Documentation Sync
|
|
176
|
-
```typescript
|
|
177
|
-
// Sync CHANGELOG to Confluence
|
|
178
|
-
const changelog = fs.readFileSync('CHANGELOG.md', 'utf-8')
|
|
179
|
-
const html = markdownToConfluenceHtml(changelog)
|
|
180
|
-
|
|
181
|
-
await confluence.content.updateContent({
|
|
182
|
-
id: changelogPageId,
|
|
183
|
-
type: 'page',
|
|
184
|
-
title: 'Changelog',
|
|
185
|
-
version: { number: version + 1 },
|
|
186
|
-
body: { storage: { value: html, representation: 'storage' } }
|
|
187
|
-
})
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### Sprint Planning
|
|
191
|
-
```typescript
|
|
192
|
-
// Get sprint tasks
|
|
193
|
-
const issues = await jira.issueSearch.searchForIssuesUsingJql({
|
|
194
|
-
jql: 'sprint = ACTIVE AND project = PROJ',
|
|
195
|
-
fields: ['summary', 'status', 'assignee', 'priority']
|
|
196
|
-
})
|
|
197
|
-
|
|
198
|
-
// Generate sprint report
|
|
199
|
-
const report = issues.issues.map(issue => ({
|
|
200
|
-
key: issue.key,
|
|
201
|
-
summary: issue.fields.summary,
|
|
202
|
-
status: issue.fields.status.name,
|
|
203
|
-
assignee: issue.fields.assignee?.displayName
|
|
204
|
-
}))
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
## Best Practices
|
|
208
|
-
|
|
209
|
-
✅ **DO:**
|
|
210
|
-
- Use JQL for complex Jira queries
|
|
211
|
-
- Cache project/user data
|
|
212
|
-
- Handle rate limits
|
|
213
|
-
- Use issue transitions properly
|
|
214
|
-
- Version Confluence pages correctly
|
|
215
|
-
- Link issues to commits/PRs
|
|
216
|
-
|
|
217
|
-
❌ **DON'T:**
|
|
218
|
-
- Create duplicate issues
|
|
219
|
-
- Skip issue validation
|
|
220
|
-
- Ignore rate limiting
|
|
221
|
-
- Hardcode issue keys
|
|
222
|
-
- Update without version check
|
|
223
|
-
- Store credentials in code
|
|
224
|
-
|
|
225
|
-
## Configuration
|
|
226
|
-
|
|
227
|
-
```json
|
|
228
|
-
{
|
|
229
|
-
"mcpServers": {
|
|
230
|
-
"atlassian": {
|
|
231
|
-
"command": "npx",
|
|
232
|
-
"args": ["-y", "@modelcontextprotocol/server-atlassian"],
|
|
233
|
-
"env": {
|
|
234
|
-
"JIRA_HOST": "your-domain.atlassian.net",
|
|
235
|
-
"JIRA_EMAIL": "your-email@example.com",
|
|
236
|
-
"JIRA_API_TOKEN": "your-api-token",
|
|
237
|
-
"CONFLUENCE_HOST": "your-domain.atlassian.net",
|
|
238
|
-
"CONFLUENCE_EMAIL": "your-email@example.com",
|
|
239
|
-
"CONFLUENCE_API_TOKEN": "your-api-token",
|
|
240
|
-
"BITBUCKET_WORKSPACE": "your-workspace",
|
|
241
|
-
"BITBUCKET_USERNAME": "your-username",
|
|
242
|
-
"BITBUCKET_APP_PASSWORD": "your-app-password"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**Setup:**
|
|
250
|
-
1. Generate API token at https://id.atlassian.com/manage-profile/security/api-tokens
|
|
251
|
-
2. For Bitbucket, create app password in account settings
|
|
252
|
-
3. Never commit credentials
|
|
253
|
-
|
|
254
|
-
<!-- ATLASSIAN:END -->
|
|
255
|
-
|