setuplisted
Install: claude install-skill shiran-yu/baton
Set up this machine from Claude Code. Use the real binary, not a missing-binary plugin launcher.
1. Locate `baton` on PATH or at `${BATON_HOME:-$HOME/.local/share/baton}/bin/baton`.
If missing, explain the bootstrap commands and ask the user before installing it:
- If `cargo` exists, run
`git clone --depth 1 https://github.com/shiran-yu/baton "$HOME/.local/share/baton/src"`
and `cargo build --release --manifest-path "$HOME/.local/share/baton/src/Cargo.toml"`.
Use `$HOME/.local/share/baton/src/target/release/baton` for the next commands.
If the clone directory already exists, inspect it and build the existing baton checkout;
do not delete or overwrite the user's files.
- Otherwise, select the release target using `uname -s` and `uname -m`:
Darwin arm64/aarch64 → `aarch64-apple-darwin`, Darwin x86_64 → `x86_64-apple-darwin`,
Linux x86_64 → `x86_64-unknown-linux-gnu`, Linux arm64/aarch64 → `aarch64-unknown-linux-gnu`.
Stop and explain if the platform is unsupported. Download `baton-<target>.tar.gz` and
`SHA256SUMS` from the **same release tag** at `https://github.com/shiran-yu/baton/releases`
into a temporary directory. Resolve the latest release to a tag once, then use
`https://github.com/shiran-yu/baton/releases/download/<tag>/<asset>` for both files.
Select exactly the checksum line for this asset and run `sha256sum -c` on Linux or
`shasum -a 256 -c` on macOS. Stop if verification fails or the checksu