Skills byr-cli
Use BYR CLI for auth, search, detail inspection, and safe torrent download planning with JSON envelopes.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/1morebuild/byr-cli" ~/.claude/skills/clawdbot-skills-byr-cli && rm -rf "$T"
manifest:
skills/1morebuild/byr-cli/SKILL.mdsource content
BYR CLI Skill
When To Use
Use this skill when a task needs any BYR operation via CLI:
- authenticate/check auth state
- search torrents with filters
- browse latest torrents with filters
- inspect torrent details
- plan or execute torrent downloads
- fetch BYR metadata and user info
- run local diagnostics before live calls
Boundaries
- Work only through the
binary.byr - Prefer
for machine-readable output.--json - Do not infer missing IDs/paths or silently mutate files.
- Keep read-only commands non-destructive.
Auth Notes
- Support both cookie formats in
:auth import-cookieuid=...; pass=...
(optionalsession_id=...; auth_token=...
)refresh_token=...
- Browser import:
(macOS path/decrypt flow)chrome
best effort with manual fallbacksafari
- Always check status before live operations:
byr auth status --verify --json
Commands (JSON First)
Read-only:
byr check --jsonbyr whoami --jsonbyr doctor [--verify] --jsonbyr browse [--limit <n>] [--category <alias|id>] [--incldead <alias|id>] [--spstate <alias|id>] [--bookmarked <alias|id>] [--page <n>] --jsonbyr search --query "<text>" --limit <n> --jsonbyr search --imdb <tt-id> [--category <alias|id>] [--spstate <alias|id>] --jsonbyr get --id <torrent-id> --jsonbyr user info --jsonbyr meta categories --jsonbyr meta levels --jsonbyr auth status [--verify] --jsonbyr auth import-cookie --cookie "<cookie-header>" --jsonbyr auth import-cookie --from-browser <chrome|safari> [--profile <name>] --jsonbyr auth logout --json
Write side effect:
- Dry run first:
byr download --id <torrent-id> --output <path> --dry-run --json - Actual write:
byr download --id <torrent-id> --output <path> --json
Search/Browse Semantics
andsearch
return paged list data.browse- JSON fields:
: estimated total hits inferred from BYR pagination range blocks.matchedTotal
: number of items returned in current payload.returned
: backward-compatible alias oftotal
.returned
- If
is omitted, list commands auto-fetch subsequent pages until--page
is reached.--limit - If
is provided, only that page is fetched.--page
Side-Effect Policy
Before non-dry-run
download:
- verify
and--id
are explicit--output - run dry-run and inspect
sourceUrl/fileName - confirm intent for the output path
If parameters are missing, ask for explicit values.
Error handling
- Surface
anderror.code
.error.message - For
: request corrected flags/arguments.E_ARG_* - For
: re-auth guidance (E_AUTH_*
or credential refresh).auth import-cookie - For
: request different query/torrent ID.E_NOT_FOUND_* - For
: suggest retry and capture command/context.E_UPSTREAM_*
Response Style
- Keep result summaries short.
- Include key fields for search/get:
,id
,title
,size
,seeders
.leechers - For list commands include both
andmatchedTotal
when present.returned - Include key fields for download:
,outputPath
,sourceUrl
,dryRun
.bytesWritten