/pdsx:reading-recordsfrom pdsx
Reads AT Protocol records and blobs from any repo using pdsx, with support for pagination, identity resolution, and blob content fetching. Useful for inspecting published account data or exploring unfamiliar lexicons.
Ships in pdsx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every read targets a repo. Public repo data needs no credentials — -r is
enough, and works against self-hosted servers because pdsx resolves each
repo's own PDS from its DID document.
uvx pdsx -r zzstoatzz.io ls app.bsky.feed.post
-r is required for reads, alwaysThis is the most common surprise: being authenticated does not imply a
target. A read with credentials but no -r fails rather than defaulting to
your own repo.
$ pdsx ls app.bsky.feed.post # even with ATPROTO_HANDLE set
error: -r/--repo is required for read operations
Pass your own handle to read your own repo: pdsx -r you.bsky.social ls …
Credentials only change what you can see (your own non-public data), never where the read goes.
Omit the collection to list the repo's collections. Do this before guessing at lexicon names — most repos carry records from apps you haven't heard of.
uvx pdsx -r zzstoatzz.io ls
ls returns one page, default limit 50. It does not follow cursors.
A repo with 144 records answers a default ls with 50 and a cursor. If you
treat that page as the whole collection you will draw confident, wrong
conclusions — "their newest post is from January" when the newest is from
last week and simply sits on page two.
The cursor goes to stderr, so -o json on stdout stays pipeable:
uvx pdsx -r zzstoatzz.io ls app.bsky.feed.post -o json | jq '.[].uri'
# stderr: next page cursor: 3mrgybvq4w22y
Follow it explicitly:
uvx pdsx -r zzstoatzz.io ls app.bsky.feed.post --limit 100 --cursor 3mrgybvq4w22y
When you need a whole collection, loop until no cursor comes back, or go straight to the XRPC endpoint:
curl -s "$PDS/xrpc/com.atproto.repo.listRecords?repo=$DID&collection=$NSID&limit=100&cursor=$CURSOR"
Before claiming anything about "all" or "the latest" of something, confirm you actually reached the end. Sorting one page tells you about that page.
# full AT-URI
uvx pdsx get at://did:plc:xbtmt2zjwlrfegqvch7fboei/app.bsky.feed.post/abc123
# shorthand, with -r supplying the repo
uvx pdsx -r zzstoatzz.io get app.bsky.actor.profile/self
Shorthand is collection/rkey. Profile records always use rkey self.
-o takes compact (default), json, yaml, table. Use json for
anything programmatic — it is clean on stdout, so | jq is safe.
Blobs are not records and pdsx has no download command. Records carry a blob
reference; the bytes live behind com.atproto.sync.getBlob on the repo's
own PDS.
# 1. pull the ref out of the record
CID=$(uvx pdsx -r zzstoatzz.io get app.bsky.actor.profile/self -o json \
| jq -r '.value.avatar.ref."$link"')
# 2. resolve the repo's DID and its PDS
DID=$(curl -s "https://public.api.bsky.app/xrpc/com.atproto.identity.resolveHandle?handle=zzstoatzz.io" | jq -r .did)
PDS=$(curl -s "https://plc.directory/$DID" | jq -r '.service[] | select(.id=="#atproto_pds") | .serviceEndpoint')
# 3. fetch the bytes from that PDS, not from bsky.social
curl -s "$PDS/xrpc/com.atproto.sync.getBlob?did=$DID&cid=$CID" -o avatar.jpg
The blob lives on the repo owner's PDS. Asking a different host for it will 404 even though the CID is valid.
curl does not.$type rather than assuming a schema.A PDS hosts a repo; it doesn't vouch for it. The account's DID document is the authority, and the MCP tools can check against it for you. Reach for these when the answer matters, not on every read:
describe_repo's
handle_verified. It's true only if the handle resolves to the DID and
the DID document claims the handle back. handleIsCorrect is the PDS's
own claim, and anyone can write any handle into their DID document, so
neither half alone proves anything.get_record(..., verify=True). It
fetches the repo's signed proof and checks the commit signature against
the DID document's signing key, the MST path to the record, and every
block hash. If verification.verified is false, read the reason and don't
present the record as theirs.identity_history. For did:plc it lists every handle, PDS and signing key
the DID has had, and chain_verified says each change was signed by a
rotation key the account already held. That's what lets an account leave
a PDS without the PDS's permission. Nullified ops were overridden by a
higher-priority rotation key during the recovery window. did:web has no
history; whoever controls the domain controls the identity.When the pdsx MCP server is available, list_records, get_record,
describe_repo and query cover the same reads with structured output.
query issues arbitrary read-only XRPC calls, which is the escape hatch for
endpoints without a dedicated tool.
The MCP surface has no pagination helper either — the same cursor discipline applies.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub zzstoatzz/pdsx --plugin pdsx3 skills in this plugin
/experimental-spacesRead permissioned data (com.atproto.space.*) with pdsx. Experimental and served by almost no PDS — use when working with private records in a space, or when you need to know whether a given PDS supports permissioned data at all./writing-recordsCreate, update and delete AT Protocol records with pdsx, including blob upload and batch operations over JSONL. Covers what the server fills in for you, how updates merge rather than replace, and how to verify a write actually did what you meant.