π¦ ClawHub
BYR CLI Skill
by @1morebuild
Use BYR CLI for auth, search, detail inspection, and safe torrent download planning with JSON envelopes.
TERMINAL
clawhub install byr-cliπ About This Skill
name: byr-cli description: Use BYR CLI for auth, search, detail inspection, and safe torrent download planning with JSON envelopes. metadata: { "openclaw": { "skillKey": "byr-cli", "homepage": "https://clawhub.ai", "requires": { "bins": ["byr"] }, "install": [ { "id": "brew", "kind": "brew", "formula": "byr-pt-cli", "tap": "1MoreBuild/tap", "bins": ["byr"], "label": "Install byr CLI (Homebrew)", }, { "id": "node", "kind": "node", "package": "byr-pt-cli", "bins": ["byr"], "label": "Install byr CLI (npm fallback)", }, ], }, }
BYR CLI Skill
When To Use
Use this skill when a task needs any BYR operation via CLI:
Boundaries
byr binary.--json for machine-readable output.Auth Notes
auth import-cookie:uid=...; pass=...
- session_id=...; auth_token=... (optional refresh_token=...)
chrome (macOS path/decrypt flow)
- safari best effort with manual fallback
byr auth status --verify --jsonCommands (JSON First)
Read-only:
byr check --jsonbyr whoami --jsonbyr doctor [--verify] --jsonbyr browse [--limit ] [--category ] [--incldead ] [--spstate ] [--bookmarked ] [--page ] --json byr search --query "" --limit --json byr search --imdb [--category ] [--spstate ] --json byr get --id --json byr user info --jsonbyr meta categories --jsonbyr meta levels --jsonbyr auth status [--verify] --jsonbyr auth import-cookie --cookie "" --json byr auth import-cookie --from-browser [--profile ] --json byr auth logout --jsonWrite side effect:
byr download --id --output --dry-run --json byr download --id --output --json Search/Browse Semantics
search and browse return paged list data.matchedTotal: estimated total hits inferred from BYR pagination range blocks.
- returned: number of items returned in current payload.
- total: backward-compatible alias of returned.
--page is omitted, list commands auto-fetch subsequent pages until --limit is reached.--page is provided, only that page is fetched.Side-Effect Policy
Before non-dry-run download:
1. verify --id and --output are explicit
2. run dry-run and inspect sourceUrl/fileName
3. confirm intent for the output path
If parameters are missing, ask for explicit values.
Error handling
error.code and error.message.E_ARG_*: request corrected flags/arguments.E_AUTH_*: re-auth guidance (auth import-cookie or credential refresh).E_NOT_FOUND_*: request different query/torrent ID.E_UPSTREAM_*: suggest retry and capture command/context.Response Style
id, title, size, seeders, leechers.matchedTotal and returned when present.outputPath, sourceUrl, dryRun, bytesWritten.