agent-bober 0.3.0 → 0.4.2

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.
@@ -2,7 +2,7 @@
2
2
  "name": "bober",
3
3
  "description": "Generator-Evaluator multi-agent harness for building applications autonomously with Claude",
4
4
  "version": "0.1.0",
5
- "author": { "name": "bober4ik" },
5
+ "author": { "name": "BOBER3r" },
6
6
  "homepage": "https://github.com/BOBER3r/agent-bober",
7
7
  "repository": "https://github.com/BOBER3r/agent-bober",
8
8
  "license": "MIT"
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 bober4ik
3
+ Copyright (c) 2026 BOBER3r
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -65,18 +65,19 @@ npx agent-bober init brownfield
65
65
 
66
66
  Then in Claude Code:
67
67
  ```
68
- /bober:plan # Describe your feature, get a structured plan
69
- /bober:sprint # Execute the next sprint
70
- /bober:eval # Evaluate the sprint output
71
- /bober:run # Full autonomous pipeline
68
+ /bober-principles # Define project standards (optional but recommended)
69
+ /bober-plan # Describe your feature, get a structured plan
70
+ /bober-sprint # Execute the next sprint
71
+ /bober-eval # Evaluate the sprint output
72
+ /bober-run # Full autonomous pipeline
72
73
  ```
73
74
 
74
75
  Specialized workflows:
75
76
  ```
76
- /bober:react # React web app workflow
77
- /bober:solidity # EVM smart contract workflow
78
- /bober:anchor # Solana program workflow
79
- /bober:brownfield # Existing codebase workflow
77
+ /bober-react # React web app workflow
78
+ /bober-solidity # EVM smart contract workflow
79
+ /bober-anchor # Solana program workflow
80
+ /bober-brownfield # Existing codebase workflow
80
81
  ```
81
82
 
82
83
  ---
@@ -87,14 +88,15 @@ Specialized workflows:
87
88
 
88
89
  | Command | Description |
89
90
  |---|---|
90
- | `/bober:plan` | Plan any feature -- stack-agnostic |
91
- | `/bober:sprint` | Execute the next sprint contract |
92
- | `/bober:eval` | Evaluate current sprint output |
93
- | `/bober:run` | Full autonomous pipeline |
94
- | `/bober:react` | React web application workflow |
95
- | `/bober:solidity` | EVM smart contract workflow |
96
- | `/bober:anchor` | Solana program workflow |
97
- | `/bober:brownfield` | Existing codebase workflow |
91
+ | `/bober-principles` | Define project principles AI expands your rough notes into standards |
92
+ | `/bober-plan` | Plan any feature — stack-agnostic, sprint-decomposed |
93
+ | `/bober-sprint` | Execute the next sprint contract |
94
+ | `/bober-eval` | Evaluate current sprint output |
95
+ | `/bober-run` | Full autonomous pipeline (plan + sprint + eval loop) |
96
+ | `/bober-react` | React web application workflow |
97
+ | `/bober-solidity` | EVM smart contract workflow |
98
+ | `/bober-anchor` | Solana program workflow |
99
+ | `/bober-brownfield` | Existing codebase workflow |
98
100
 
99
101
  ### CLI
100
102
 
@@ -492,4 +494,4 @@ This project is inspired by and implements the patterns from Anthropic's [**"Har
492
494
 
493
495
  ## License
494
496
 
495
- [MIT](LICENSE) -- Copyright (c) 2026 bober4ik
497
+ [MIT](LICENSE) -- Copyright (c) 2026 BOBER3r
@@ -39,7 +39,8 @@ Read these documents in order:
39
39
  2. **SprintContract** at `.bober/contracts/<contractId>.json` -- the source of truth for what should have been built
40
40
  3. **PlanSpec** at `.bober/specs/<specId>.json` -- for broader context on the feature
41
41
  4. **`bober.config.json`** -- for configured commands and evaluator strategies
42
- 5. **Generator's completion report** (from the handoff) -- what the generator claims it did
42
+ 5. **`.bober/principles.md`** if it exists -- the project's non-negotiable principles. During evaluation, you must check that the Generator's output adheres to these principles. If principles define quality standards, verify the code meets them. If principles specify patterns to follow or avoid, verify compliance. Principle violations are evaluation failures.
43
+ 6. **Generator's completion report** (from the handoff) -- what the generator claims it did
43
44
 
44
45
  Build a checklist from the contract's `successCriteria` array. This is your evaluation framework. Every criterion gets tested independently.
45
46
 
@@ -125,7 +126,17 @@ Go through EVERY success criterion in the contract, one by one. For each:
125
126
  - A criterion with `required: false` is recorded but does not block the sprint
126
127
  - If a criterion's `verificationMethod` cannot be executed (e.g., Playwright not set up), mark it as `"skipped"` with a clear reason. If it was `required`, escalate this as a configuration issue.
127
128
 
128
- ### Step 4: Check for Regressions
129
+ ### Step 4: Check Principles Adherence
130
+
131
+ If `.bober/principles.md` exists, verify the Generator's output adheres to the project principles:
132
+
133
+ 1. **Quality Standards:** If principles specify quality bars (performance, accessibility, security, etc.), verify the code meets them. For example, if "accessibility" is a principle, check for ARIA attributes, semantic HTML, and keyboard navigation.
134
+ 2. **Technical Principles:** If principles specify patterns to follow or avoid, spot-check the new code for compliance. For example, if "no default exports" is a principle, verify all new files use named exports.
135
+ 3. **Design Principles:** If principles specify visual/UX standards, verify the UI code reflects them.
136
+
137
+ Principle violations should be reported in the `generatorFeedback` array with `category: "quality"` and a reference to the specific principle that was violated.
138
+
139
+ ### Step 5: Check for Regressions
129
140
 
130
141
  Beyond the contract's criteria, check for regressions:
131
142
 
@@ -133,7 +144,7 @@ Beyond the contract's criteria, check for regressions:
133
144
  2. **Does the build still work?** Even if the contract is about backend code, verify the full build.
134
145
  3. **Were any existing files modified in unexpected ways?** Use `git diff` to review all changes. Flag any changes to files NOT mentioned in the contract's `estimatedFiles`.
135
146
 
136
- ### Step 5: Produce Structured EvalResult
147
+ ### Step 6: Produce Structured EvalResult
137
148
 
138
149
  Generate the following JSON structure:
139
150
 
@@ -195,7 +206,7 @@ Generate the following JSON structure:
195
206
  }
196
207
  ```
197
208
 
198
- ### Step 6: Save and Report
209
+ ### Step 7: Save and Report
199
210
 
200
211
  1. **Save the EvalResult** to `.bober/eval-results/<evalId>.json`
201
212
  - IMPORTANT: You do not have Write tools. Output the EvalResult JSON and the orchestrator will save it.
@@ -41,7 +41,8 @@ You will receive a **ContextHandoff** document. Read it completely. It contains:
41
41
  2. The SprintContract at `.bober/contracts/<contractId>.json`
42
42
  3. The PlanSpec at `.bober/specs/<specId>.json` (for broader context)
43
43
  4. `bober.config.json` for commands and configuration
44
- 5. Any files mentioned in `estimatedFiles` in the contract
44
+ 5. `.bober/principles.md` if it exists -- these are the project's non-negotiable principles. Every implementation decision must be consistent with them. If principles specify quality standards, patterns to follow, or patterns to avoid, you must adhere to them strictly.
45
+ 6. Any files mentioned in `estimatedFiles` in the contract
45
46
 
46
47
  If this is a **retry** (evaluator feedback is present), focus specifically on the failures. Read the feedback line by line. Understand what failed and why before making any changes.
47
48
 
@@ -29,14 +29,16 @@ You are a product planning specialist, not a coder. You think in terms of user v
29
29
 
30
30
  1. **Read `bober.config.json`** from the project root. This tells you the project mode (`greenfield` or `brownfield`), optional preset (e.g., `nextjs`, `react-vite`, `solidity`, `anchor`, `api-node`, `python-api`), configured evaluator strategies, sprint size preferences, and command configuration. If this file does not exist, STOP and tell the user to run the `bober.plan` skill first to initialize the project.
31
31
 
32
- 2. **Analyze existing codebase** (if brownfield or existing project):
32
+ 2. **Read `.bober/principles.md`** if it exists. These are the project's non-negotiable principles that must guide all planning decisions. Every spec, sprint contract, and success criterion must be consistent with these principles. If principles define quality standards, ensure they are reflected in the acceptance criteria. If principles define technical patterns, ensure the generator notes reference them.
33
+
34
+ 3. **Analyze existing codebase** (if brownfield or existing project):
33
35
  - Read `CLAUDE.md`, `README.md`, and the project manifest (`package.json`, `Cargo.toml`, `Anchor.toml`, `hardhat.config.ts`, `foundry.toml`, `pyproject.toml`, etc.) if they exist
34
36
  - Use Glob to survey the file structure with patterns appropriate to the stack (e.g., `src/**/*`, `contracts/**/*.sol`, `programs/**/*.rs`, `app/**/*`, `pages/**/*`)
35
37
  - Use Grep to find key patterns: route definitions, database schemas, API endpoints, component structure, smart contract interfaces, program instructions, etc.
36
38
  - Read any files listed in `planner.contextFiles` from the config
37
39
  - Build a mental model of: tech stack, architecture pattern (MVC, component-based, modular contracts, program accounts, etc.), existing test coverage, deployment setup
38
40
 
39
- 3. **Read existing specs** in `.bober/specs/` to understand what has already been planned. Do not duplicate or conflict with existing plans.
41
+ 4. **Read existing specs** in `.bober/specs/` to understand what has already been planned. Do not duplicate or conflict with existing plans.
40
42
 
41
43
  ### Phase 2: Clarifying Questions
42
44
 
@@ -541,6 +541,7 @@ async function installClaudeCommands(projectRoot) {
541
541
  "bober.brownfield": "bober-brownfield.md",
542
542
  "bober.solidity": "bober-solidity.md",
543
543
  "bober.anchor": "bober-anchor.md",
544
+ "bober.principles": "bober-principles.md",
544
545
  };
545
546
  const skillsRoot = join(packageRoot, "skills");
546
547
  let installed = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAU/C,MAAM,WAAW,GAAiB;IAChC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,wBAAwB,EAAE;IAC1E;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,4BAA4B;KAC1C;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACj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AC,EAAE,CACzE,CAAC;IACF,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC3B,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,EAAE,CAAC,CAAC;IAChI,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,qBAAqB,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;IACzG,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC,EAAE,CAAC,CAAC;IAC5G,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACrH,OAAO,CAAC,GAAG,EAAE,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-bober",
3
- "version": "0.3.0",
3
+ "version": "0.4.2",
4
4
  "description": "Generator-Evaluator multi-agent harness for building applications autonomously with Claude. Implements planner, sprint, and evaluator patterns.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "claude-code",
27
27
  "plugin"
28
28
  ],
29
- "author": "bober4ik",
29
+ "author": "BOBER3r",
30
30
  "license": "MIT",
31
31
  "repository": {
32
32
  "type": "git",
@@ -0,0 +1,138 @@
1
+ #!/usr/bin/env bash
2
+ # ──────────────────────────────────────────────────────────────────────
3
+ # check-prereqs.sh — Validate prerequisites for a bober command
4
+ #
5
+ # Usage:
6
+ # check-prereqs.sh <command> [project-root]
7
+ #
8
+ # Output: JSON with status and missing items
9
+ # ──────────────────────────────────────────────────────────────────────
10
+
11
+ set -euo pipefail
12
+
13
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
14
+
15
+ # Source shared utilities
16
+ # shellcheck source=common.sh
17
+ source "$SCRIPT_DIR/common.sh"
18
+
19
+ COMMAND="${1:-}"
20
+ PROJECT_ROOT="${2:-.}"
21
+ PROJECT_ROOT="$(cd "$PROJECT_ROOT" && pwd)"
22
+
23
+ if [[ -z "$COMMAND" ]]; then
24
+ echo "Usage: check-prereqs.sh <command> [project-root]"
25
+ echo ""
26
+ echo "Commands: plan, sprint, eval, run, principles"
27
+ exit 1
28
+ fi
29
+
30
+ # ── Collect checks ─────────────────────────────────────────────────
31
+
32
+ CHECKS=()
33
+ READY=true
34
+
35
+ # Helper to add a check result and track readiness
36
+ add_check() {
37
+ local json="$1"
38
+ CHECKS+=("$json")
39
+ if echo "$json" | grep -q '"status":"missing"' || echo "$json" | grep -q '"status":"empty"'; then
40
+ READY=false
41
+ fi
42
+ }
43
+
44
+ # ── Common check: bober.config.json ───────────────────────────────
45
+
46
+ config_check=$(check_file "config" "$PROJECT_ROOT/bober.config.json")
47
+ add_check "$config_check"
48
+
49
+ # ── Common check: .bober/ directory ───────────────────────────────
50
+
51
+ if [ -d "$PROJECT_ROOT/.bober" ]; then
52
+ add_check "{\"name\":\"bober_dir\",\"status\":\"ok\",\"path\":\".bober/\"}"
53
+ else
54
+ add_check "{\"name\":\"bober_dir\",\"status\":\"missing\",\"path\":\".bober/\",\"message\":\"No .bober/ directory. Run /bober-plan first.\"}"
55
+ fi
56
+
57
+ # ── Command-specific checks ───────────────────────────────────────
58
+
59
+ case "$COMMAND" in
60
+ plan)
61
+ # plan only needs bober.config.json (already checked above)
62
+ ;;
63
+
64
+ sprint)
65
+ # Needs specs and contracts
66
+ if [ -d "$PROJECT_ROOT/.bober/specs" ]; then
67
+ spec_check=$(check_dir_has_files "specs" "$PROJECT_ROOT/.bober/specs" "*.json")
68
+ add_check "$spec_check"
69
+ else
70
+ add_check "{\"name\":\"specs\",\"status\":\"missing\",\"message\":\"No .bober/specs/ directory. Run /bober-plan first.\"}"
71
+ fi
72
+
73
+ if [ -d "$PROJECT_ROOT/.bober/contracts" ]; then
74
+ contract_check=$(check_dir_has_files "contracts" "$PROJECT_ROOT/.bober/contracts" "*.json")
75
+ add_check "$contract_check"
76
+ else
77
+ add_check "{\"name\":\"contracts\",\"status\":\"missing\",\"message\":\"No .bober/contracts/ directory. Run /bober-plan first.\"}"
78
+ fi
79
+ ;;
80
+
81
+ eval)
82
+ # Needs contracts and code changes
83
+ if [ -d "$PROJECT_ROOT/.bober/contracts" ]; then
84
+ contract_check=$(check_dir_has_files "contracts" "$PROJECT_ROOT/.bober/contracts" "*.json")
85
+ add_check "$contract_check"
86
+ else
87
+ add_check "{\"name\":\"contracts\",\"status\":\"missing\",\"message\":\"No .bober/contracts/ directory. Run /bober-plan first.\"}"
88
+ fi
89
+
90
+ # Check for code changes (git diff)
91
+ if command -v git &>/dev/null && [ -d "$PROJECT_ROOT/.git" ]; then
92
+ changes=$(cd "$PROJECT_ROOT" && git diff --stat 2>/dev/null | wc -l | tr -d ' ')
93
+ if [ "$changes" -gt 0 ]; then
94
+ add_check "{\"name\":\"code_changes\",\"status\":\"ok\",\"count\":$changes}"
95
+ else
96
+ add_check "{\"name\":\"code_changes\",\"status\":\"empty\",\"count\":0,\"message\":\"No code changes detected. Run /bober-sprint first.\"}"
97
+ fi
98
+ fi
99
+ ;;
100
+
101
+ run)
102
+ # run only needs bober.config.json (creates everything else)
103
+ ;;
104
+
105
+ principles)
106
+ # principles only needs bober.config.json (already checked above)
107
+ ;;
108
+
109
+ *)
110
+ json_output "error" "Unknown command: $COMMAND. Valid commands: plan, sprint, eval, run, principles"
111
+ exit 1
112
+ ;;
113
+ esac
114
+
115
+ # ── Build output JSON ──────────────────────────────────────────────
116
+
117
+ CHECKS_JSON="["
118
+ for i in "${!CHECKS[@]}"; do
119
+ [[ $i -gt 0 ]] && CHECKS_JSON+=","
120
+ CHECKS_JSON+="${CHECKS[$i]}"
121
+ done
122
+ CHECKS_JSON+="]"
123
+
124
+ if [[ "$READY" == "true" ]]; then
125
+ MESSAGE="Ready to run"
126
+ else
127
+ MESSAGE="Missing prerequisites"
128
+ fi
129
+
130
+ cat <<EOF
131
+ {
132
+ "ready": $READY,
133
+ "command": "$COMMAND",
134
+ "projectRoot": "$PROJECT_ROOT",
135
+ "checks": $CHECKS_JSON,
136
+ "message": "$MESSAGE"
137
+ }
138
+ EOF
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env bash
2
+ # ──────────────────────────────────────────────────────────────────────
3
+ # common.sh — Shared utilities for bober scripts
4
+ # ──────────────────────────────────────────────────────────────────────
5
+
6
+ # Output JSON helper
7
+ json_output() {
8
+ local status="$1"
9
+ local message="$2"
10
+ echo "{\"status\":\"${status}\",\"message\":\"${message}\"}"
11
+ }
12
+
13
+ # Find project root (walk up looking for bober.config.json)
14
+ find_project_root() {
15
+ local dir="${1:-.}"
16
+ dir="$(cd "$dir" && pwd)"
17
+ while [ "$dir" != "/" ]; do
18
+ if [ -f "$dir/bober.config.json" ]; then
19
+ echo "$dir"
20
+ return 0
21
+ fi
22
+ dir="$(dirname "$dir")"
23
+ done
24
+ return 1
25
+ }
26
+
27
+ # Check if a file exists and report
28
+ check_file() {
29
+ local name="$1"
30
+ local path="$2"
31
+ if [ -f "$path" ]; then
32
+ echo "{\"name\":\"${name}\",\"status\":\"ok\",\"path\":\"${path}\"}"
33
+ else
34
+ echo "{\"name\":\"${name}\",\"status\":\"missing\",\"path\":\"${path}\"}"
35
+ fi
36
+ }
37
+
38
+ # Check if directory has files matching a pattern
39
+ check_dir_has_files() {
40
+ local name="$1"
41
+ local dir="$2"
42
+ local pattern="${3:-*}"
43
+ local count
44
+ count=$(find "$dir" -name "$pattern" -type f 2>/dev/null | wc -l | tr -d ' ')
45
+ if [ "$count" -gt 0 ]; then
46
+ echo "{\"name\":\"${name}\",\"status\":\"ok\",\"count\":${count}}"
47
+ else
48
+ echo "{\"name\":\"${name}\",\"status\":\"empty\",\"count\":0}"
49
+ fi
50
+ }
@@ -204,3 +204,45 @@ fi
204
204
 
205
205
  echo ""
206
206
  echo "Run /bober:plan to start planning your first feature."
207
+
208
+ # ── Structured JSON summary ────────────────────────────────────────
209
+
210
+ CREATED_FILES=()
211
+ [[ -f "$PROJECT_DIR/.bober/progress.md" ]] && CREATED_FILES+=("\".bober/progress.md\"")
212
+ [[ -f "$PROJECT_DIR/.bober/history.jsonl" ]] && CREATED_FILES+=("\".bober/history.jsonl\"")
213
+ [[ -f "$PROJECT_DIR/bober.config.json" ]] && CREATED_FILES+=("\"bober.config.json\"")
214
+ [[ -f "$PROJECT_DIR/CLAUDE.md" ]] && CREATED_FILES+=("\"CLAUDE.md\"")
215
+
216
+ CREATED_JSON="["
217
+ for i in "${!CREATED_FILES[@]}"; do
218
+ [[ $i -gt 0 ]] && CREATED_JSON+=","
219
+ CREATED_JSON+="${CREATED_FILES[$i]}"
220
+ done
221
+ CREATED_JSON+="]"
222
+
223
+ CREATED_DIRS=()
224
+ [[ -d "$PROJECT_DIR/.bober/specs" ]] && CREATED_DIRS+=("\".bober/specs/\"")
225
+ [[ -d "$PROJECT_DIR/.bober/contracts" ]] && CREATED_DIRS+=("\".bober/contracts/\"")
226
+ [[ -d "$PROJECT_DIR/.bober/evaluations" ]] && CREATED_DIRS+=("\".bober/evaluations/\"")
227
+ [[ -d "$PROJECT_DIR/.bober/snapshots" ]] && CREATED_DIRS+=("\".bober/snapshots/\"")
228
+
229
+ DIRS_JSON="["
230
+ for i in "${!CREATED_DIRS[@]}"; do
231
+ [[ $i -gt 0 ]] && DIRS_JSON+=","
232
+ DIRS_JSON+="${CREATED_DIRS[$i]}"
233
+ done
234
+ DIRS_JSON+="]"
235
+
236
+ echo ""
237
+ cat <<INIT_JSON
238
+ {
239
+ "status": "ok",
240
+ "template": "$TEMPLATE",
241
+ "projectDir": "$PROJECT_DIR",
242
+ "projectName": "$(basename "$PROJECT_DIR")",
243
+ "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
244
+ "createdFiles": $CREATED_JSON,
245
+ "createdDirs": $DIRS_JSON,
246
+ "message": "Project initialized successfully with template: $TEMPLATE"
247
+ }
248
+ INIT_JSON
@@ -6,11 +6,20 @@
6
6
  # bash scripts/run-eval.sh [project-dir]
7
7
  #
8
8
  # Reads bober.config.json to determine which strategies to run,
9
- # executes each in order, and outputs a combined JSON result.
9
+ # executes each in order, and outputs a structured JSON result
10
+ # with per-strategy pass/fail status.
10
11
  # ──────────────────────────────────────────────────────────────────────
11
12
 
12
13
  set -euo pipefail
13
14
 
15
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
16
+
17
+ # Source shared utilities if available
18
+ if [[ -f "$SCRIPT_DIR/common.sh" ]]; then
19
+ # shellcheck source=common.sh
20
+ source "$SCRIPT_DIR/common.sh"
21
+ fi
22
+
14
23
  PROJECT_DIR="${1:-.}"
15
24
  PROJECT_DIR="$(cd "$PROJECT_DIR" && pwd)"
16
25
  CONFIG_FILE="$PROJECT_DIR/bober.config.json"
@@ -160,16 +169,20 @@ for i in "${!RESULTS[@]}"; do
160
169
  done
161
170
  RESULTS_JSON+="]"
162
171
 
163
- # Output combined result as JSON
172
+ # Output combined result as structured JSON
164
173
  cat <<EOF
165
174
  {
175
+ "status": "$( [[ "$OVERALL_PASS" == "true" ]] && echo "ok" || echo "error" )",
166
176
  "overall": "$( [[ "$OVERALL_PASS" == "true" ]] && echo "pass" || echo "fail" )",
167
177
  "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
168
178
  "projectDir": "$PROJECT_DIR",
169
- "strategiesRun": $STRATEGY_COUNT,
170
- "passed": $PASS_COUNT,
171
- "failed": $FAIL_COUNT,
172
- "skipped": $SKIP_COUNT,
173
- "results": $RESULTS_JSON
179
+ "summary": {
180
+ "strategiesRun": $STRATEGY_COUNT,
181
+ "passed": $PASS_COUNT,
182
+ "failed": $FAIL_COUNT,
183
+ "skipped": $SKIP_COUNT
184
+ },
185
+ "results": $RESULTS_JSON,
186
+ "message": "$( [[ "$OVERALL_PASS" == "true" ]] && echo "All required strategies passed" || echo "One or more required strategies failed" )"
174
187
  }
175
188
  EOF
@@ -2,6 +2,10 @@
2
2
  name: bober.anchor
3
3
  description: "Solana program development workflow using Anchor. Plans program architecture, implements with proper account validation, and evaluates with build, test, and security checks. Use when building Solana programs, SPL tokens, or on-chain applications."
4
4
  argument-hint: <program-description>
5
+ handoffs:
6
+ - label: "Plan Program"
7
+ command: /bober-plan
8
+ prompt: "Plan the Solana program feature"
5
9
  ---
6
10
 
7
11
  # bober.anchor — Solana Program Workflow
@@ -355,6 +359,11 @@ After all sprints pass, run a final comprehensive check:
355
359
  - Test with the client SDK
356
360
  ```
357
361
 
362
+ ## Next Steps
363
+
364
+ After completing this phase, suggest the following next steps to the user:
365
+ - `/bober-plan` — Plan the Solana program feature
366
+
358
367
  ## Error Handling
359
368
 
360
369
  - **Build failures:** Common issues include Rust version mismatches, missing dependencies in Cargo.toml, and Anchor version incompatibilities. Check `anchor --version` and `rustc --version`.
@@ -2,6 +2,10 @@
2
2
  name: bober.brownfield
3
3
  description: Safely add features to an existing codebase — deep analysis first, conservative sprints, regression-focused evaluation.
4
4
  argument-hint: <feature-description>
5
+ handoffs:
6
+ - label: "Plan Feature"
7
+ command: /bober-plan
8
+ prompt: "Plan a feature for this existing codebase"
5
9
  ---
6
10
 
7
11
  # bober.brownfield — Existing Codebase Workflow
@@ -413,6 +417,11 @@ After all sprints complete:
413
417
  git revert <commit-hash> # Sprint N
414
418
  ```
415
419
 
420
+ ## Next Steps
421
+
422
+ After completing this phase, suggest the following next steps to the user:
423
+ - `/bober-plan` — Plan a feature for this existing codebase
424
+
416
425
  ## Error Handling
417
426
 
418
427
  - **Baseline broken before start:** Do NOT proceed. Tell the user the codebase has pre-existing failures and they should fix them first.
@@ -2,6 +2,13 @@
2
2
  name: bober.eval
3
3
  description: Run an independent evaluation of the current sprint state against its contract, producing structured pass/fail feedback.
4
4
  argument-hint: "[contract-id]"
5
+ handoffs:
6
+ - label: "Rework Sprint"
7
+ command: /bober-sprint
8
+ prompt: "Rework the failed sprint with evaluator feedback"
9
+ - label: "Next Sprint"
10
+ command: /bober-sprint
11
+ prompt: "Move to the next sprint"
5
12
  ---
6
13
 
7
14
  # bober.eval — Standalone Evaluation Skill
@@ -227,6 +234,12 @@ Present results in a clear, human-readable format:
227
234
  <2-3 sentence summary>
228
235
  ```
229
236
 
237
+ ## Next Steps
238
+
239
+ After completing this phase, suggest the following next steps to the user:
240
+ - `/bober-sprint` — Rework the failed sprint with evaluator feedback, or move to the next sprint
241
+ - `/bober-sprint` — Execute the next sprint if evaluation passed
242
+
230
243
  ## Anti-Leniency Reminders
231
244
 
232
245
  - If a criterion says "the form displays an error message" and you can only verify the validation logic exists in code but cannot confirm the message renders, mark it as **fail** with a note about what you could not verify.
@@ -2,6 +2,13 @@
2
2
  name: bober.plan
3
3
  description: Transform a feature idea into a comprehensive plan with sprint contracts, clarifying questions, and acceptance criteria.
4
4
  argument-hint: <feature-description>
5
+ handoffs:
6
+ - label: "Start Building"
7
+ command: /bober-sprint
8
+ prompt: "Execute the first sprint from the plan"
9
+ - label: "Full Autonomous Run"
10
+ command: /bober-run
11
+ prompt: "Run all sprints from the plan autonomously"
5
12
  ---
6
13
 
7
14
  # bober.plan — Feature Planning Skill
@@ -236,6 +243,12 @@ Key criteria: <list 2-3 most important success criteria>
236
243
  Run `/bober.sprint` to begin executing Sprint 1, or `/bober.run` to execute the full pipeline.
237
244
  ```
238
245
 
246
+ ## Next Steps
247
+
248
+ After completing this phase, suggest the following next steps to the user:
249
+ - `/bober-sprint` — Start building by executing the first sprint from the plan
250
+ - `/bober-run` — Run all sprints from the plan autonomously
251
+
239
252
  ## Error Handling
240
253
 
241
254
  - If the project has no manifest file (`package.json`, `Cargo.toml`, `pyproject.toml`, etc.) and no obvious project structure, ask the user if this is a new project and what they want to build
@@ -0,0 +1,175 @@
1
+ ---
2
+ name: bober.principles
3
+ description: "Define and maintain project principles that guide all planning, generation, and evaluation. Establishes the non-negotiable standards for your project."
4
+ argument-hint: "[optional principles to add]"
5
+ handoffs:
6
+ - label: "Plan Feature"
7
+ command: /bober-plan
8
+ prompt: "Plan a feature guided by these principles"
9
+ ---
10
+
11
+ # bober.principles — Project Principles Skill
12
+
13
+ You are running the **bober.principles** skill. Your job is to help the user define or update the project principles that guide all planning, generation, and evaluation in the Bober pipeline.
14
+
15
+ ## Step 1: Check for Existing Principles
16
+
17
+ Check if `.bober/principles.md` exists in the project root.
18
+
19
+ **If `.bober/principles.md` EXISTS:**
20
+
21
+ Read and display the current principles to the user:
22
+
23
+ ```
24
+ Here are your current project principles:
25
+
26
+ <contents of .bober/principles.md>
27
+
28
+ Would you like to:
29
+ A) Keep these as-is
30
+ B) Update specific sections
31
+ C) Start over with new principles
32
+ ```
33
+
34
+ If the user wants to update, proceed to Step 3 with the existing content as a starting point.
35
+
36
+ **If `.bober/principles.md` does NOT exist:**
37
+
38
+ Proceed to Step 2.
39
+
40
+ ## Step 2: Interview the User
41
+
42
+ Ask the user 3-5 targeted questions to understand their project principles. Adapt the questions based on whether `bober.config.json` exists and what it reveals about the project type.
43
+
44
+ ```
45
+ I'll help you define your project principles. These will guide every plan, sprint, and evaluation.
46
+
47
+ **Q1: Mission — What is the primary goal of this project?**
48
+ What problem are you solving, and for whom? (e.g., "A task manager that helps remote teams stay organized" or "An NFT marketplace for digital artists")
49
+
50
+ **Q2: Users — Who are the primary users?**
51
+ A) Developers / technical users
52
+ B) Non-technical end users
53
+ C) Both technical and non-technical users
54
+ D) Internal team / enterprise users
55
+ E) Other (please describe)
56
+
57
+ **Q3: Quality Standards — What quality bars matter most?**
58
+ Pick your top 2-3 priorities:
59
+ A) Performance (fast load times, low latency, efficient gas usage)
60
+ B) Accessibility (WCAG compliance, screen reader support)
61
+ C) Security (audit-ready code, input validation, access control)
62
+ D) Reliability (error handling, graceful degradation, uptime)
63
+ E) Developer experience (clean APIs, good docs, easy onboarding)
64
+ F) Test coverage (comprehensive tests, CI/CD gates)
65
+
66
+ **Q4: Technical Principles — What patterns or technologies should be followed or avoided?**
67
+ Examples:
68
+ - "Always use TypeScript strict mode"
69
+ - "Prefer composition over inheritance"
70
+ - "No external dependencies unless absolutely necessary"
71
+ - "Follow the existing codebase conventions exactly"
72
+ - "Use OpenZeppelin contracts for all standard functionality"
73
+
74
+ **Q5: Design Principles — What is the visual/UX style?** (if applicable)
75
+ A) Minimalist — clean, lots of whitespace, essential elements only
76
+ B) Data-dense — dashboards, tables, power-user focused
77
+ C) Playful — colorful, animated, engaging
78
+ D) Professional — corporate, trustworthy, conservative
79
+ E) Not applicable (no UI in this project)
80
+ F) Other (please describe)
81
+ ```
82
+
83
+ ## Step 2a: Expand Raw Input (if user provides a prompt/argument)
84
+
85
+ If the user provides text with this command — whether a short note like `"performance-first, minimal dependencies"` or a long paste of requirements, a PRD, or rough notes — your job is to **intelligently expand and elevate** that input into a polished principles document:
86
+
87
+ 1. **Extract** all implicit and explicit principles from the user's input
88
+ 2. **Expand** vague statements into specific, actionable standards. Example: "make it fast" → "**Performance:** Target < 3s initial page load. Use code splitting and lazy loading. Optimize images with next/image or equivalent. No blocking API calls on initial render."
89
+ 3. **Infer** principles the user didn't state but clearly imply. If they describe a medical SaaS product, infer security and compliance principles. If they describe a DeFi protocol, infer audit-readiness and gas optimization.
90
+ 4. **Organize** everything into the principles document structure (Mission, Users, Quality Standards, Technical Principles, Design Principles)
91
+ 5. **Fill gaps** by asking 1-2 targeted follow-up questions ONLY for things you truly cannot infer. Don't ask obvious questions.
92
+
93
+ The goal: the user pastes rough notes, you produce a comprehensive, opinionated principles document that makes them say "yes, exactly — and I didn't even think of those."
94
+
95
+ Skip the interview (Step 2) entirely when the user provides substantive input. Go straight to generating the document.
96
+
97
+ ## Step 3: Generate Principles Document
98
+
99
+ Based on the user's answers, generate `.bober/principles.md` with the following structure:
100
+
101
+ ```markdown
102
+ # Project Principles
103
+
104
+ > These principles guide all planning, generation, and evaluation in the Bober pipeline.
105
+ > Updated: <date>
106
+
107
+ ## Mission
108
+
109
+ <One-line project purpose derived from user's answer>
110
+
111
+ ## Users
112
+
113
+ <Who this project is for, their technical level, their primary needs>
114
+
115
+ ## Quality Standards
116
+
117
+ <Non-negotiable quality bars, ordered by priority>
118
+
119
+ - **<Standard 1>:** <Description of what this means in practice>
120
+ - **<Standard 2>:** <Description of what this means in practice>
121
+ - **<Standard 3>:** <Description of what this means in practice>
122
+
123
+ ## Technical Principles
124
+
125
+ <Patterns to follow and patterns to avoid>
126
+
127
+ ### Follow
128
+ - <Pattern to follow with brief rationale>
129
+ - <Pattern to follow with brief rationale>
130
+
131
+ ### Avoid
132
+ - <Pattern to avoid with brief rationale>
133
+ - <Pattern to avoid with brief rationale>
134
+
135
+ ## Design Principles
136
+
137
+ <Visual/UX standards if applicable, or "N/A — no user interface" for backend/library projects>
138
+
139
+ - <Design principle with brief description>
140
+ - <Design principle with brief description>
141
+ ```
142
+
143
+ Save the file to `.bober/principles.md`.
144
+
145
+ ## Step 4: Confirm and Report
146
+
147
+ Present the generated principles to the user for confirmation:
148
+
149
+ ```
150
+ ## Project Principles Created
151
+
152
+ <summary of each section>
153
+
154
+ These principles are saved at `.bober/principles.md` and will be used by:
155
+ - The **Planner** when creating specs and sprint contracts
156
+ - The **Generator** when implementing code
157
+ - The **Evaluator** when checking sprint output
158
+
159
+ You can update these at any time by running `/bober-principles` again.
160
+ ```
161
+
162
+ Append to `.bober/history.jsonl`:
163
+ ```json
164
+ {"event":"principles-created","timestamp":"..."}
165
+ ```
166
+
167
+ Or if updating:
168
+ ```json
169
+ {"event":"principles-updated","timestamp":"..."}
170
+ ```
171
+
172
+ ## Next Steps
173
+
174
+ After completing this phase, suggest the following next steps to the user:
175
+ - `/bober-plan` — Plan a feature guided by these principles
@@ -2,6 +2,10 @@
2
2
  name: bober.react
3
3
  description: React-based web application workflow — scaffold, plan, and build React apps with Vite or Next.js, optional backend, and database. This is one of several specialized workflows; use it specifically for React-based web applications.
4
4
  argument-hint: <app-description>
5
+ handoffs:
6
+ - label: "Plan Feature"
7
+ command: /bober-plan
8
+ prompt: "Plan the feature for this React project"
5
9
  ---
6
10
 
7
11
  # bober.react — React Web Application Workflow
@@ -321,6 +325,11 @@ After all sprints pass, run a final comprehensive check:
321
325
  - When satisfied, merge to main
322
326
  ```
323
327
 
328
+ ## Next Steps
329
+
330
+ After completing this phase, suggest the following next steps to the user:
331
+ - `/bober-plan` — Plan the feature for this React project
332
+
324
333
  ## Error Handling
325
334
 
326
335
  - **Vite/Next.js HMR issues:** If the dev server shows HMR errors during evaluation, restart the dev server before re-evaluating
@@ -2,6 +2,10 @@
2
2
  name: bober.solidity
3
3
  description: "EVM smart contract development workflow. Scaffolds Hardhat or Foundry projects, plans contract architecture, implements with security best practices, and evaluates with compilation, linting, and test coverage. Use when building Solidity smart contracts, DeFi protocols, NFT projects, or DAOs."
4
4
  argument-hint: <contract-description>
5
+ handoffs:
6
+ - label: "Plan Contract"
7
+ command: /bober-plan
8
+ prompt: "Plan the smart contract feature"
5
9
  ---
6
10
 
7
11
  # bober.solidity — EVM Smart Contract Workflow
@@ -407,6 +411,11 @@ The evaluator MUST check for these common vulnerability patterns:
407
411
  9. **Storage collisions:** In upgradeable contracts, storage layout changes between versions. Mitigate with storage gaps, ERC-7201 namespaced storage.
408
412
  10. **Unchecked return values:** Not checking return values of `transfer`, `approve`, or low-level calls. Mitigate with SafeERC20 or explicit checks.
409
413
 
414
+ ## Next Steps
415
+
416
+ After completing this phase, suggest the following next steps to the user:
417
+ - `/bober-plan` — Plan the smart contract feature
418
+
410
419
  ## Error Handling
411
420
 
412
421
  - **Compilation failures:** Read the compiler output carefully. Common issues: import path errors, version mismatches, missing dependencies. Run `forge install` or `npm install` first.
@@ -2,6 +2,13 @@
2
2
  name: bober.sprint
3
3
  description: Execute the next pending sprint — negotiate contracts, run the Generator, evaluate output, and iterate until passing or exhausting retries.
4
4
  argument-hint: "[sprint-number]"
5
+ handoffs:
6
+ - label: "Evaluate Sprint"
7
+ command: /bober-eval
8
+ prompt: "Evaluate the current sprint output"
9
+ - label: "Next Sprint"
10
+ command: /bober-sprint
11
+ prompt: "Execute the next sprint"
5
12
  ---
6
13
 
7
14
  # bober.sprint — Sprint Execution Skill
@@ -271,6 +278,12 @@ Read `pipeline.contextReset` from config:
271
278
  - `on-threshold`: Context resets only if the conversation is getting long. Not applicable in single-sprint skill execution.
272
279
  - `never`: Context carries forward. Not recommended.
273
280
 
281
+ ## Next Steps
282
+
283
+ After completing this phase, suggest the following next steps to the user:
284
+ - `/bober-eval` — Evaluate the current sprint output independently
285
+ - `/bober-sprint` — Execute the next sprint in the plan
286
+
274
287
  ## Error Handling
275
288
 
276
289
  - **Generator fails to produce any output:** Mark sprint as `needs-rework` with note "Generator produced no output"