Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bett3r-devv0.3.0In 1 marketplace
Experience-layer capture overlay for the bett3r-ai-workflow flow. Two hooks attach to the two moments worth recording: artifacts are captured synchronously right before `git worktree remove` destroys them, and a freshly-opened PR is captured and queued for extraction, detached. Ships no command and no skill — the base flow plugin stays store-agnostic, and a repo with no executable `.xp-layer/capture` is byte-for-byte unaffected.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
experience-layer, hooks, capture, overlay, worktree, bett3r-xp-layer
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A capture overlay for the bett3r-ai-workflow flow. It ships two hooks, no
commands and no skills, and in a repo that has not opted in it does nothing at
all.
The base flow plugin stays store-agnostic. The store adapts to the flow, never the reverse.
Three tickets (XL-30 capture, XL-21 extraction, XL-14 export freshness)
each needed an invocation point inside the development flow, and all three
attach to the same two events. The obvious implementation — editing
/verify-build and /start-multi to call a store — was rejected: it would make
every repo using the flow carry store logic it has no use for. Hooks are
per-plugin and additive, so this plugin adds its two events with zero edits to
any existing command.
Everything below the first line of each hook is gated on a single test:
[ -x "${CLAUDE_PROJECT_DIR:-.}/.xp-layer/capture" ] || exit 0
.xp-layer/capture is a repo-local adapter you install. Make it
executable and the repo is configured; delete it and the repo is not. There is
no config file, no environment variable and no registry — the sentinel is the
seam. That is deliberate on both counts:
PreToolUse hook on Bash runs before every Bash call in
every repo where the plugin is enabled. One stat against a path that does
not exist is the entire cost in all of them. A config parse at hook start was
considered and rejected for exactly this reason.The experience layer lives in
bett3r-dev/bett3r-xp-layer.
It moved there from bett3r-dev/blueprint on 2026-09-11, and its Jira keys moved
from BLUEPRINT to XL. The reference adapter is
bett3r-xp-layer/.xp-layer/capture.
That adapter only works inside a repo that contains the xp-layer
packages. It runs yarn xp:capture and loads
packages/xp-capture/build from its own repo root. blueprint no longer ships
an adapter (blueprint PR #82 removed it along with the store), and neither do the
consumer repos (blueprint, teselly, pv3). So the hooks are inert in those repos
today. Re-enabling capture for consumers is tracked by XL-11.
capture must satisfyIt is invoked in exactly two shapes:
.xp-layer/capture worktree-remove <worktree-path> <cwd>
.xp-layer/capture pr-create <pr-url> <cwd>
and it must be idempotent on its second argument. That argument is the
natural key, and it is a pure function of the invocation — a worktree path as
the user wrote it, or the PR URL gh pr create printed. Nothing time-, run- or
session-derived enters it, which is what makes a double capture free. A key
carrying a timestamp would make every re-run a new record and the idempotence
claim false.
Exit non-zero to report failure. You will never be able to block the flow by doing so.
| event | fires on | capture is |
|---|---|---|
PreToolUse on Bash | tokens worktree remove adjacent in the runtime command | synchronous |
PostToolUse on Bash | tokens gh pr create adjacent in the runtime command | detached |
Blocking at teardown, non-blocking at PR create. Teardown is the
irreversible moment — once git worktree remove returns there is nothing left
to read, so a capture racing it is a capture that sometimes loses. PR creation
is neither irreversible nor racing anything: PostToolUse fires after the PR
already exists, so waiting would buy nothing but a stall in front of the user.
The originating ticket named "the command that closes the PR". No such command
exists. /verify-build opens PRs, and gh pr merge, --delete-branch,
git branch -d and git push --delete return zero matches across the entire
base plugin. The destruction point is /start-multi step 7, "Teardown."
Key on artifacts are about to be destroyed, never on merged.
This threat model fired during the design run that produced the plugin: the
.work/ census measured 893 files across 6 repos and 101 nine hours later,
because one fleet worktree holding 818 files was torn down mid-run — destroying
around 30 *.design-draft.md and *.open-forks.md files with nothing capturing
them.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub bett3r-dev/bett3r-ai-workflow --plugin bett3r-xp-layerPlugins from other owners that cover similar ground