Agent skill
build-bd
Install this agent skill to your Project
npx add-skill https://github.com/idvorkin/chop-conventions/tree/main/skills/build-bd
SKILL.md
Build bd (Beads CLI)
Install or upgrade the bd CLI tool with a fully static build to avoid shared library issues (e.g., ICU version mismatches across machines).
Usage
/build-bd
Steps
-
Check current version:
bashbd --version 2>/dev/null || echo "bd not installed" -
Find the latest available version:
bashgo list -m -json github.com/steveyegge/beads@latest 2>&1 | grep '"Version"' -
If already on the latest version, report that and stop. Otherwise, proceed to build.
-
Build the latest version statically with CGO disabled (use the version from step 2):
bashCGO_ENABLED=0 go install github.com/steveyegge/beads/cmd/bd@latestCGO_ENABLED=0forces pure-Go alternatives for all dependencies (ICU regex, SQLite, etc.), producing a binary with zero shared library dependencies.macOS warning:
CGO_ENABLED=0can cause crashes (e.g., duringbd init) due to CGO/SQLite incompatibilities on macOS. macOS users should useCGO_ENABLED=1instead — see upstreamdocs/INSTALLING.mdfor details. -
Verify:
bashbd --version # Linux: ldd "$(which bd)" 2>&1 # Should say "not a dynamic executable" # macOS: otool -L "$(which bd)" # Should show no external library entries
Why static?
The bd binary uses go-icu-regex (CGo) which links against the system's ICU library. Different machines have different ICU versions (e.g., Homebrew's icu4c@77 vs system libicu76), causing runtime failures:
bd: error while loading shared libraries: libicui18n.so.77: cannot open shared object file
Static compilation eliminates this entirely.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
up-to-date
Sync git repository with upstream. Use at the start of a session, when asked to sync, get up to date, check git status, or when working on a stale branch.
image-explore
Brainstorm multiple visual directions for a blog image, generate them in parallel, build a comparison page, and optionally publish as a shareable link (Surge.sh or gist).
background-usage
Check Claude Code plan usage via a hidden tmux session. Reports weekly usage percentage, time until reset, and pacing status.
ammon
What time is it for Ammon? Looks up the current time in Denmark (Europe/Copenhagen timezone) and reports it.
showboat
Create executable demo documents with screenshots using Showboat + Rodney. Use when the user wants to document an app, create a visual walkthrough, take screenshots of a deployed site, run an accessibility audit, or build self-verifying documentation.
clock
Schedule recurring tasks in your session. Defaults to time check every 15 min.
Didn't find tool you were looking for?