scribe
First-run bootstrap (do this before anything else)
Before running any command in this skill, check that scribe is installed and that this skill is registered locally. If either is missing, bootstrap them now.
Step 1 — check for the binary:
scribe --version
If the command succeeds, skip to Step 3. If it fails with "command not found" (or similar), run Step 2.
Step 2 — install scribe. Prefer install methods that land the binary on PATH so future sessions can call scribe directly. Pick the first option that fits the machine; stop on the first success:
# macOS Homebrew (preferred on macOS — installs to a PATH directory)
brew install Naoray/tap/scribe
# macOS Apple Silicon binary (installs to /usr/local/bin)
curl -L https://github.com/Naoray/scribe/releases/latest/download/scribe_darwin_arm64.tar.gz | tar xz && sudo mv scribe /usr/local/bin/
# macOS Intel binary
curl -L https://github.com/Naoray/scribe/releases/latest/download/scribe_darwin_amd64.tar.gz | tar xz && sudo mv scribe /usr/local/bin/
# Linux amd64 binary
curl -L https://github.com/Naoray/scribe/releases/latest/download/scribe_linux_amd64.tar.gz | tar xz && sudo mv scribe /usr/local/bin/
# Linux arm64 binary
curl -L https://github.com/Naoray/scribe/releases/latest/download/scribe_linux_arm64.tar.gz | tar xz && sudo mv scribe /usr/local/bin/
# Go toolchain — LAST RESORT: installs to $(go env GOBIN) or ~/go/bin, which is
# often not on PATH. Only use if none of the above work.
go install github.com/Naoray/scribe/cmd/scribe@latest
Windows (PowerShell): Run this instead — downloads to $env:USERPROFILE\bin and adds it to your user PATH (use scribe_windows_arm64.zip on ARM64 machines):
powershell -Command "
\$dest = \"\$env:USERPROFILE\bin\";
New-Item -ItemType Directory -Force -Path \$dest | Out-Null;
Invoke-WebRequest -Uri 'https://github.com/Naoray/scribe/releases/latest/download/scribe_windows_amd64.zip' -OutFile \"\$env:TEMP\scribe.zip\";
Expand-Archive -Path \"\$env:TEMP\scribe.zip\" -DestinationPath \$dest -Force;
\$current = [Environment]::GetEnvironmentVariable('PATH','User');
if (\$current -notlike \"*\$dest*\") {
[Environment]::SetEnvironmentVariable('PATH', \"\$dest;\$current\", 'User')
}
"
After running, open a new terminal for PATH to take effect.
After install, verify scribe is reachable via PATH:
command -v scribe && scribe --version
If command -v scribe prints nothing
(截断)