wayfinder
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Migrates a Sonarr and/or Radarr setup into Scryer. Runs the setup wizard's own Sonarr/Radarr import through Scryer's GraphQL API (same calls, same order as the web wizard), verifies the result and carries over what the import leaves out, keeping bulk data in files. Use when an operator wants to "move from Sonarr", "switch from Radarr", "import my arr library", bring over custom formats, quality profiles, delay profiles, naming, tags or notifications, compare Scryer scoring with arr history, or plan the cutover from arr to Scryer.
Set arr variables (URLs without trailing slash, including any base path; keys
from arr's Settings → General). Steps a and b need only these; scryer-connect
comes in step c.
export SONARR_URL=http://sonarr.example.lan:8989 SONARR_API_KEY=... # and/or
export RADARR_URL=http://radarr.example.lan:7878 RADARR_API_KEY=...
C=path/to/skills/scryer-connect; M=path/to/skills/scryer-migrate-from-arr; O=$M/operations
gql() { "$C/scripts/gql.sh" "$@"; }
poll() { "$M/scripts/poll.sh" "$@"; }
Operator sets the keys in their shell. Never print, echo or paste a key. Work in a directory the operator chooses; snapshot files hold arr config and are written mode 600.
removedRootIds.references/token-budget.md).extensions.code and extensions.reason, never on message text."$M/scripts/snapshot.sh" snap
jq . snap/summary.json
failedEndpoints above 0: the missing file under snap/<app>/ has _error.
Older arr may lack an endpoint; carry on, mark that area manual.
HISTORY_LIMIT=1000 widens the history sample.
Present references/what-migrates.md filled with the summary's counts; ask
which areas the operator wants. Then settle:
localhost is the container. Agree the URL Scryer must use per
app, and for Prowlarr if used.rootFolders from the summary.
For each: where Scryer sees it, which library it belongs to (anime is its
own library facet).built-in-import.md, step 4). Operator keeps download client passwords and
indexer API keys at hand, to put in env variables or files when that step
asks.Only a signed-in browser session can create an API key, and until first-run setup is complete the web UI sends every page to the setup wizard. If Scryer still opens its wizard, operator chooses Skip setup entirely on its first screen, then creates the key. Only browser step; agent then re-enters setup through the API (step d), as Settings → General → Run setup wizard does in the web UI.
Then complete scryer-connect and read state:
gql "$O/SetupStatus.graphql" | jq -c .data.setupStatus
setupComplete is true once a key works. hasDownloadClients or
hasIndexers true: some exist already; name them before importing.
Follow references/built-in-import.md: wizard's Connect, Libraries, Quality,
Sources, Summary steps in wizard order, ending with completeSetup for the
import run and the hinted scans. The import itself creates download clients,
indexers and library roots.
Run first seven rows of references/verification.md (libraries and roots,
titles, scan results, monitored state, download clients, indexers) against the
snapshot. Report gaps before going on.
Follow references/custom-formats.md. Primary path, once per arr app
(job key EXTERNAL_RULE_IMPORT, needs MANAGE_CATALOG_SETTINGS):
StartExternalRuleImport.graphql (source SONARR or
RADARR, baseUrl, apiKey, a requestKey you keep). Scryer reads the
custom formats and quality-profile scores itself and saves one disabled
rule per format, named (Sonarr) <format name> / (Radarr) <format name>.ExternalRuleImportStatus.graphql until active is false.state: SAVED; SAVED_NEEDS_REVIEW (named
(Radarr) REVIEW - <format name>, scores 0, per-profile table commented
out); SKIPPED_EXISTS (name already exists, as on a re-run); FAILED
(untranslatable, nothing saved)."$M/scripts/replay-history.sh" snap/sonarr rule.rego series,anime <arr-profile-id> > replay.tsv
Only when Scryer cannot reach arr: the paste-JSON fallback in the same reference, which builds one rule set from the snapshot.
references/manual-areas.md: one section per area with arr → Scryer field
maps and exact operations: titles with no files, quality profiles, delay
profiles, naming, remote path mappings, tags, notifications, Sonarr release
profiles. Import lists, list exclusions, auto-tagging and history are manual or
unsupported; that file says what to tell the operator.
Rest of references/verification.md; one line per check with the gap.
Follow references/cutover.md: run side by side with Scryer's automatic
search off; operator turns off arr's RSS, automatic search and Completed
Download Handling first, then Scryer goes on. Keep all arr data until operator
has verified Scryer. Rollback is the reverse.
scripts/snapshot.sh <dir>: GETs arr config and history into files, counts to summary.json.scripts/poll.sh <op> <vars> '<jq cond>' [interval] [max]: polls an operation until condition holds (exit 0), times out (3) or fails.scripts/replay-history.sh <snap/app> <rule.rego> <facets> [arr-profile-id]: scores arr's grabbed releases with a draft rule set; TSV of match, mismatch, skipped.All need curl and jq, and find gql.sh in sibling scryer-connect skill
(override with GQL=).
gql.sh exit 1 prints code [reason]. Look the reason up in
scryer-connect/references/errors.md or the reference for that phase.MFA_STEP_UP_REQUIRED: config writes need the security setting described in
scryer-connect. Ask the operator; do not work around it.MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star