@hivehub/rulebook 5.5.0 → 5.5.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivehub/rulebook",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
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",
|
|
@@ -194,7 +194,23 @@ If this is part of a multi-project workspace, every Rulebook MCP call MUST pass
|
|
|
194
194
|
| Build/CI | build-engineer | sonnet |
|
|
195
195
|
| Security | security-reviewer | haiku |
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
### Mandatory delegation rules
|
|
198
|
+
|
|
199
|
+
- **Never implement directly in the main conversation when an agent fits.** The main thread orchestrates; agents do the work.
|
|
200
|
+
- **Read-only work → haiku researcher.** Cheap, isolates context.
|
|
201
|
+
- **Independent work runs in parallel.** Multiple `Agent` tool-use blocks in a single message. Sequential dispatching of independent units is wrong by default.
|
|
202
|
+
- **Multi-specialist work uses Teams.** Background `Agent` calls without `team_name` are blocked by the enforcement hook (see Multi-Agent Teams above).
|
|
203
|
+
- **Foreground agents** when the result blocks your next step. **Background agents** only inside Teams so `SendMessage` works.
|
|
204
|
+
|
|
205
|
+
### When to create a new skill or agent
|
|
206
|
+
|
|
207
|
+
Lift to a skill / agent instead of repeating instructions:
|
|
208
|
+
|
|
209
|
+
- **Same multi-step prompt twice in one session** → make a skill (`templates/skills/<category>/<name>/SKILL.md`).
|
|
210
|
+
- **Recurring class of work across projects** → make an agent definition (`.claude/agents/<role>.md`) and add a row to the delegation table above.
|
|
211
|
+
- **A workflow needs a specific persona / tool set** → agent. **A behavior modifier the user invokes on demand** → skill.
|
|
212
|
+
|
|
213
|
+
Default to creating, not improvising. The template scaffolding is cheap; ad-hoc context-window churn is expensive.
|
|
198
214
|
|
|
199
215
|
## Plans & Session Continuity
|
|
200
216
|
|
|
@@ -31,6 +31,16 @@ automatically at session start (see [Anthropic memory docs](https://code.claude.
|
|
|
31
31
|
7. **Capture learnings**: at the end of significant work, save patterns and anti-patterns to `.rulebook/knowledge/` and insights to `.rulebook/learnings/`.
|
|
32
32
|
8. **Never archive a task** without docs updated, tests written, and tests passing — the task tail enforces this structurally.
|
|
33
33
|
|
|
34
|
+
## Delegation & parallelism (highest precedence — apply on every turn)
|
|
35
|
+
|
|
36
|
+
**Default behavior: delegate, don't do it yourself. Parallelize, don't serialize. Create new agents/skills when the gap is real.**
|
|
37
|
+
|
|
38
|
+
1. **Delegate by default.** If a step matches an agent in the delegation table, dispatch it via `Agent` instead of doing it inline. Implementation → `implementer` (sonnet). Research / read-only exploration → `researcher` (haiku). Tests → `tester`. Docs → `docs-writer` (haiku). Architecture / cross-cutting → `architect` (opus). Reserve the main conversation for orchestration + decisions.
|
|
39
|
+
2. **Parallelize independent work.** When a turn requires multiple independent investigations or edits, dispatch every independent piece in **a single message with multiple `Agent` tool-use blocks**. Sequential `Agent` calls are a smell — every time you catch yourself writing "first X, then Y", check whether the two halves are independent.
|
|
40
|
+
3. **Use Teams for multi-specialist work.** Anything that needs ≥2 background agents to coordinate MUST go through a Team (`TeamCreate` + `team_name` on dispatch). Standalone background `Agent` calls without `team_name` are blocked by the enforcement hook.
|
|
41
|
+
4. **Create skills + agents when the gap is real.** If you write the same multi-step instructions twice in one session, lift it into a skill (`templates/skills/<category>/<name>/SKILL.md`). If a class of work repeats across projects, create an agent definition under `.claude/agents/`. Default to creating, not improvising.
|
|
42
|
+
5. **Foreground vs background.** Use foreground `Agent` when you need the result to inform your next step. Use background only with `team_name` so messages can flow.
|
|
43
|
+
|
|
34
44
|
## Editing discipline (Karpathy-inspired)
|
|
35
45
|
|
|
36
46
|
Behavioral guidelines that reduce common LLM coding mistakes. Adapted from [forrestchang/andrej-karpathy-skills](https://github.com/forrestchang/andrej-karpathy-skills), grounded in [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876).
|