Why
A Bash# example ships in Bashy’s source as ONE .bsh file that is both the executable command and its skill guide: the guide sits in a ~~~skill as guide fence inside the script (see examples/outpost-profile/outpost-profile.bsh). Registering it gives a normal command, and the agent-facing guide travels with it. Before writing a runbook in prose, check whether such a script already covers the steps.
Find what exists
bashy commands --view registered # commands registered on this host
bashy skill list # skills, including registered .bsh guides
ls "${BASHY_HOME:-$HOME/.bashy}/src/bashy/examples" # after a fetch (below)
Register an example from the release source pin
bashy src fetch fetches a repo at the running binary’s release commit, so the script matches the installed bashy:
bashy src fetch bashy
NAME=outpost-profile
bashy commands add "$NAME" \
--set exec.0=bashy --set exec.1=--bashsharp \
--set "exec.2=${BASHY_HOME:-$HOME/.bashy}/src/bashy/examples/$NAME/$NAME.bsh" \
--set effects.0=read --set effects.1=write --set effects.2=exec
"$NAME" --help
- Declare the effects the script really has (read / write / exec / net …).
- A name that already belongs to a shipped command is refused (no override);
--forceonly takes over another registered command. - After
bashy src upgrade bashythe registration keeps pointing at the same path, now with the newer script. - To change a script:
bashy src branch bashy <topic>, edit, run its Go test (e.g.go test ./examples/outpost-profile/), and register that path.