Skip to content

v4.0.0 — Skill v2 major release

Choose a tag to compare

@fockus fockus released this 25 Apr 08:41
· 496 commits to main since this release

Skill v2 — major architectural refactor

Phases 3 + 4 + I-033 ship the executable engine. Tests grew 335 → 615 (+280) across the v2 work.

Highlights

/mb config + pipeline.yaml — declarative engine config (references/pipeline.default.yaml). 11 roles, 3-step stage_pipeline (implement → review → verify), severity gates, budget thresholds, 6 default protected_paths, sprint context guard at 150k/190k, 5-section review rubric, SDD knobs.

/mb work execution engine — 5-form target resolution, range parsing (plan stages or phase sprints), JSON-Lines stage emission with role auto-detection (ios → android → frontend → backend → devops → qa → architect → analyst → developer fallback), per-stage implement → review → fix-cycle → verify loop, --auto autopilot with hard stops on max-cycles / verify-FAIL / protected-paths / budget / context guard.

9 role-agents + reviewer + verifiermb-developer, mb-backend, mb-frontend, mb-ios, mb-android, mb-architect, mb-devops, mb-qa, mb-analyst, plus production-grade mb-reviewer (rubric walk + JSON schema + fix-cycle behavior) and plan-verifier (7 checks).

5 critical Claude Code hooks — protected-paths-guard (PreToolUse Write/Edit), plan-sync-post-write (PostToolUse Write chain to roadmap-sync + traceability-gen), ears-pre-write (requirements/context EARS validation), context-slim-pre-agent (PreToolUse Task; emits trimmed prompt as additionalContext), sprint-context-guard (PreToolUse Task; cumulative session token spend with soft/hard thresholds).

--slim/--full end-to-endmb-context-slim.py extracts active stage block + DoD bullets + covers_requirements + optional git diff --staged. mb-session-spend.sh companion CLI tracks chars→tokens via /4 estimate.

Installer auto-registrationsettings/hooks.json carries 5 v2 entries with [memory-bank-skill] markers; merge-hooks.py strips/re-appends idempotently. install.sh step 6.5 probes ~/.claude/skills/superpowers/. scripts/mb-reviewer-resolve.sh honours pipeline.yaml:roles.reviewer.override_if_skill_present so /mb work review step routes to superpowers:requesting-code-review when present.

I-033 — checklist hard-cap enforcementscripts/mb-checklist-prune.sh collapses fully-✅+plans/done sections to one-liners with pre-write backup. ≤120-line hard cap enforced in CI (tests/pytest/test_checklist_cap.py). Wired into commands/done.md, mb-plan-done.sh, mb-compact.sh. Closes the spec §3 / §13 rotating-artifact gap.

Breaking change

~/.claude/settings.json now includes 5 new mb--prefixed hook commands. Existing installs auto-merge via merge-hooks.py. Re-run bash install.sh to apply.

Full scope

See CHANGELOG.md [4.0.0] section.