@hivehub/rulebook 5.3.0 → 5.3.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/dist/core/rules-generator.d.ts +1 -1
- package/dist/core/rules-generator.d.ts.map +1 -1
- package/dist/core/rules-generator.js +1 -0
- package/dist/core/rules-generator.js.map +1 -1
- package/package.json +1 -1
- package/templates/rules/full-task-no-questions.md +37 -0
- package/templates/rules/incremental-implementation.md +56 -56
|
@@ -25,7 +25,7 @@ export declare const SUPPORTED_RULE_LANGUAGES: readonly ["typescript", "javascri
|
|
|
25
25
|
* Generic (non-language) rules shipped by rulebook v5.3.0.
|
|
26
26
|
* These are always emitted regardless of detection result.
|
|
27
27
|
*/
|
|
28
|
-
export declare const ALWAYS_ON_RULES: readonly ["multi-agent-teams", "consult-analysis-before-implementing", "respect-handoff-trigger", "diagnostic-first", "fail-twice-escalate"];
|
|
28
|
+
export declare const ALWAYS_ON_RULES: readonly ["full-task-no-questions", "multi-agent-teams", "consult-analysis-before-implementing", "respect-handoff-trigger", "diagnostic-first", "fail-twice-escalate"];
|
|
29
29
|
export type SupportedRuleLanguage = (typeof SUPPORTED_RULE_LANGUAGES)[number];
|
|
30
30
|
export interface RulesGenerationResult {
|
|
31
31
|
/** Paths of rule files written (new or overwritten). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-generator.d.ts","sourceRoot":"","sources":["../../src/core/rules-generator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS,kBAAkB,CAAC;AACzC,eAAO,MAAM,kBAAkB,0CAA0C,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,wBAAwB,wFAS3B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"rules-generator.d.ts","sourceRoot":"","sources":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AAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC;IAC7B,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACxB;AAED,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAuBpF"}
|
|
@@ -37,6 +37,7 @@ export const SUPPORTED_RULE_LANGUAGES = [
|
|
|
37
37
|
* These are always emitted regardless of detection result.
|
|
38
38
|
*/
|
|
39
39
|
export const ALWAYS_ON_RULES = [
|
|
40
|
+
'full-task-no-questions',
|
|
40
41
|
'multi-agent-teams',
|
|
41
42
|
'consult-analysis-before-implementing',
|
|
42
43
|
'respect-handoff-trigger',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-generator.js","sourceRoot":"","sources":["../../src/core/rules-generator.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,uCAAuC,CAAC;AAE1E;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,IAAI;IACJ,KAAK;IACL,MAAM;IACN,QAAQ;CACA,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,mBAAmB;IACnB,sCAAsC;IACtC,yBAAyB;IACzB,kBAAkB;IAClB,qBAAqB;CACb,CAAC;AAIX;;;;GAIG;AACH,MAAM,gBAAgB,GAA0C;IAC9D,CAAC,EAAE,KAAK;IACR,KAAK,EAAE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AAO,IAAI,CAAC;IACxB,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACzE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAChF,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACrB,CAAC;SACE,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,IAAI,EAAE,CACV,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivehub/rulebook",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.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",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!-- Generated by @hivehub/rulebook v5.3.0 — delete this comment to prevent regeneration on `rulebook update` -->
|
|
2
|
+
|
|
3
|
+
# Execute the full task — never stop to ask permission mid-way
|
|
4
|
+
|
|
5
|
+
**HIGHEST PRECEDENCE.** When the user gives you a task, execute it COMPLETELY in one turn. No "step 1, await confirmation, step 2". No mid-task check-ins.
|
|
6
|
+
|
|
7
|
+
## Required
|
|
8
|
+
|
|
9
|
+
- Read the full request, plan internally, execute end-to-end (read → edit → test → commit if asked) in **one turn**
|
|
10
|
+
- Make decisions autonomously for anything within the scope of what was requested
|
|
11
|
+
- When 3+ files need editing, edit them all in sequence in the same turn
|
|
12
|
+
- Run the full quality pipeline (lint + type-check + test + commit if part of the request) without stopping
|
|
13
|
+
- Report ONCE at the end with what was done
|
|
14
|
+
|
|
15
|
+
## Forbidden
|
|
16
|
+
|
|
17
|
+
- ❌ "I've done step 1. Should I proceed with step 2?"
|
|
18
|
+
- ❌ "Want me to also update X?"
|
|
19
|
+
- ❌ "Should I commit this now?" (unless commit was not part of the original request)
|
|
20
|
+
- ❌ "Let me know if you'd like me to continue"
|
|
21
|
+
- ❌ Doing one file edit then stopping to confirm before the next related file
|
|
22
|
+
- ❌ Breaking a multi-file refactor into one-file-per-turn
|
|
23
|
+
- ❌ Mid-task summaries asking for approval
|
|
24
|
+
|
|
25
|
+
## When asking IS appropriate
|
|
26
|
+
|
|
27
|
+
Only these three cases:
|
|
28
|
+
|
|
29
|
+
1. **Genuine ambiguity that changes the result** — not "should I proceed?" but "you said 'fix the bug', there are 2 bugs in this file, which one?"
|
|
30
|
+
2. **Destructive operations not explicitly authorized** — deletes, force pushes, dropping tables, etc.
|
|
31
|
+
3. **Task as stated is impossible** — and you need a different approach to even attempt it
|
|
32
|
+
|
|
33
|
+
Anything else: just keep going until done.
|
|
34
|
+
|
|
35
|
+
## Why
|
|
36
|
+
|
|
37
|
+
The user is busy. They asked once. Stop interrupting them with confirmations for work they already requested. A confirmation prompt mid-task wastes a full round-trip and breaks their flow. Trust the request, execute it, report at the end.
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: incremental-implementation
|
|
3
|
-
tier: 1
|
|
4
|
-
description: "Implement step by step, test each step, restart from scratch if stuck"
|
|
5
|
-
alwaysApply: true
|
|
6
|
-
filePatterns: ["*"]
|
|
7
|
-
tools: ["all"]
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Incremental Implementation — Step by Step, Test Each Step
|
|
11
|
-
|
|
12
|
-
NEVER implement everything at once. Build incrementally, verify at every step, and restart from scratch when stuck.
|
|
13
|
-
|
|
14
|
-
## Required Process
|
|
15
|
-
|
|
16
|
-
1. **Understand** the full scope before writing any code
|
|
17
|
-
2. **Decompose** into the smallest possible steps
|
|
18
|
-
3. **Implement ONE step** at a time
|
|
19
|
-
4. **Test/verify** that step immediately (compile, run, test)
|
|
20
|
-
5. **Fix any errors** before moving to the next step
|
|
21
|
-
6. **Record learnings** in the knowledge base after each significant discovery
|
|
22
|
-
7. **Repeat** until complete
|
|
23
|
-
|
|
24
|
-
## The Restart Rule
|
|
25
|
-
|
|
26
|
-
If you have spent more than 3 failed attempts fixing the same error:
|
|
27
|
-
|
|
28
|
-
1. **STOP** — do not try a 4th variation of the same approach
|
|
29
|
-
2. **Analyze** what went wrong — write down root causes, not symptoms
|
|
30
|
-
3. **Record** the failed approach as an anti-pattern in the knowledge base
|
|
31
|
-
4. **Remove** the broken code completely — do not patch on top of patches
|
|
32
|
-
5. **Reimplementation from scratch** using a different approach informed by what you learned
|
|
33
|
-
6. **Test each step** of the new approach before proceeding
|
|
34
|
-
|
|
35
|
-
## Knowledge Base Integration
|
|
36
|
-
|
|
37
|
-
After every significant implementation:
|
|
38
|
-
|
|
39
|
-
1. **Check existing knowledge** before starting: `rulebook knowledge list` or search `.rulebook/knowledge/`
|
|
40
|
-
2. **Record patterns** that worked: `rulebook knowledge add pattern "<title>" --category <cat>`
|
|
41
|
-
3. **Record anti-patterns** that failed: `rulebook knowledge add anti-pattern "<title>" --category <cat>`
|
|
42
|
-
4. **Capture learnings** from debugging: `rulebook learn capture --title "<title>" --content "<content>"`
|
|
43
|
-
|
|
44
|
-
## Forbidden
|
|
45
|
-
|
|
46
|
-
- Implementing an entire feature in one pass without intermediate verification
|
|
47
|
-
- Spending more than 3 attempts fixing the same error with the same approach
|
|
48
|
-
- Patching broken code on top of broken code instead of restarting clean
|
|
49
|
-
- Ignoring the knowledge base — check it BEFORE implementing, update it AFTER
|
|
50
|
-
- Batching all tests to the end instead of testing each step
|
|
51
|
-
|
|
52
|
-
## Why
|
|
53
|
-
|
|
54
|
-
AI agents that implement everything at once produce cascading errors. One early mistake propagates through the entire implementation, and debugging becomes exponentially harder. Step-by-step with immediate verification catches errors at the source. When stuck, restarting from scratch with new knowledge is always faster than patching endlessly. The line between persistence and stubbornness is thin.
|
|
55
|
-
|
|
56
|
-
**"Slow is smooth, smooth is fast."**
|
|
1
|
+
---
|
|
2
|
+
name: incremental-implementation
|
|
3
|
+
tier: 1
|
|
4
|
+
description: "Implement step by step, test each step, restart from scratch if stuck"
|
|
5
|
+
alwaysApply: true
|
|
6
|
+
filePatterns: ["*"]
|
|
7
|
+
tools: ["all"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Incremental Implementation — Step by Step, Test Each Step
|
|
11
|
+
|
|
12
|
+
NEVER implement everything at once. Build incrementally, verify at every step, and restart from scratch when stuck.
|
|
13
|
+
|
|
14
|
+
## Required Process
|
|
15
|
+
|
|
16
|
+
1. **Understand** the full scope before writing any code
|
|
17
|
+
2. **Decompose** into the smallest possible steps
|
|
18
|
+
3. **Implement ONE step** at a time
|
|
19
|
+
4. **Test/verify** that step immediately (compile, run, test)
|
|
20
|
+
5. **Fix any errors** before moving to the next step
|
|
21
|
+
6. **Record learnings** in the knowledge base after each significant discovery
|
|
22
|
+
7. **Repeat** until complete
|
|
23
|
+
|
|
24
|
+
## The Restart Rule
|
|
25
|
+
|
|
26
|
+
If you have spent more than 3 failed attempts fixing the same error:
|
|
27
|
+
|
|
28
|
+
1. **STOP** — do not try a 4th variation of the same approach
|
|
29
|
+
2. **Analyze** what went wrong — write down root causes, not symptoms
|
|
30
|
+
3. **Record** the failed approach as an anti-pattern in the knowledge base
|
|
31
|
+
4. **Remove** the broken code completely — do not patch on top of patches
|
|
32
|
+
5. **Reimplementation from scratch** using a different approach informed by what you learned
|
|
33
|
+
6. **Test each step** of the new approach before proceeding
|
|
34
|
+
|
|
35
|
+
## Knowledge Base Integration
|
|
36
|
+
|
|
37
|
+
After every significant implementation:
|
|
38
|
+
|
|
39
|
+
1. **Check existing knowledge** before starting: `rulebook knowledge list` or search `.rulebook/knowledge/`
|
|
40
|
+
2. **Record patterns** that worked: `rulebook knowledge add pattern "<title>" --category <cat>`
|
|
41
|
+
3. **Record anti-patterns** that failed: `rulebook knowledge add anti-pattern "<title>" --category <cat>`
|
|
42
|
+
4. **Capture learnings** from debugging: `rulebook learn capture --title "<title>" --content "<content>"`
|
|
43
|
+
|
|
44
|
+
## Forbidden
|
|
45
|
+
|
|
46
|
+
- Implementing an entire feature in one pass without intermediate verification
|
|
47
|
+
- Spending more than 3 attempts fixing the same error with the same approach
|
|
48
|
+
- Patching broken code on top of broken code instead of restarting clean
|
|
49
|
+
- Ignoring the knowledge base — check it BEFORE implementing, update it AFTER
|
|
50
|
+
- Batching all tests to the end instead of testing each step
|
|
51
|
+
|
|
52
|
+
## Why
|
|
53
|
+
|
|
54
|
+
AI agents that implement everything at once produce cascading errors. One early mistake propagates through the entire implementation, and debugging becomes exponentially harder. Step-by-step with immediate verification catches errors at the source. When stuck, restarting from scratch with new knowledge is always faster than patching endlessly. The line between persistence and stubbornness is thin.
|
|
55
|
+
|
|
56
|
+
**"Slow is smooth, smooth is fast."**
|