atproto-repository

atproto-repository is a skill for Claude Code from ngerakines/atproto-skills. It costs 696 tokens per session (3,481 once invoked), scanned A, original, MIT.

A guide for working with AT Protocol repositories, the signed per-account record stores used by services such as Bluesky. It covers their tree structure, binary file format, commits, and signatures in Rust, TypeScript, or Go.

In plain words
What is it for?
Use it when building or checking AT Protocol repository support, including Merkle Search Trees, CAR files, commits, record keys, and cryptographic signatures.
Why use it?
It explains the exact rules needed to read, create, import, export, or validate these repositories. This helps avoid invalid files, broken signatures, and incorrectly encoded data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the atproto-skills plugin — 7 skills shipped together

Good fit Use it when building or checking AT Protocol repository support, including Merkle Search Trees, CAR files, commits, record keys, and cryptographic signatures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ngerakines/atproto-skills/atproto-repository
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ngerakines/atproto-skills --skill atproto-repository
Clone the repo
git clone --depth 1 https://github.com/ngerakines/atproto-skills

Made for: Claude Code.

Or install atproto-skills, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for atproto-repository

README.md
[![agentmods](https://agentmods.dev/badge/skills/ngerakines/atproto-skills/atproto-repository/github.svg)](https://agentmods.dev/skills/ngerakines/atproto-skills/atproto-repository)
Your own site
<a href="https://agentmods.dev/skills/ngerakines/atproto-skills/atproto-repository"><img src="https://agentmods.dev/badge/skills/ngerakines/atproto-skills/atproto-repository/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for atproto-repository

Your own site · 80×15
<a href="https://agentmods.dev/skills/ngerakines/atproto-skills/atproto-repository"><img src="https://agentmods.dev/badge/skills/ngerakines/atproto-skills/atproto-repository.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 696 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,481 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00696 $0.03481
Opus 5 $0.00348 $0.01741
Sonnet 5 $0.00139 $0.00696
Haiku 4.5 $0.00070 $0.00348

Measured 12d ago against content hash 071d3edd66a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

atproto-repository scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/atproto-repository/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AT Protocol Repository

An AT Protocol repository is a single account's entire record store, addressed by its DID. Every record lives at a key in a Merkle Search Tree; the tree's root CID is sealed by a signed commit; the commit plus every block it transitively references are the repository. On the wire, it travels as a CAR v1 file.

This skill routes to per-language guides for Rust, TypeScript, and Go, sitting on top of a language-neutral spec in shared/.

Defaults

  • DRISL — canonical DAG-CBOR: bytewise map keys, shortest-form integers, no indefinite-length framing, CIDs as tag 42 + identity multibase.
  • CAR v1varint ‖ header-cbor ‖ (varint ‖ 36-byte-CID ‖ bytes)*. Roots list declares the commit CID.
  • MST — SHA-256 key height with fanout 4 (count pairs of leading zero bits). Node shape {l?, e:[{p,k,v,t?}]}. Keys are <collection>/<rkey>, max 1024 bytes.
  • Commit{did, version:3, data, rev, prev, sig}. prev is null for genesis (though see §divergence). Signing bytes = DAG-CBOR of the commit minus sig.
  • Signature — raw r ‖ s ECDSA (k-256 or p-256), low-S normalized. Verified against the #atproto Multikey in the signer's DID document.

Full normative rules: shared/drisl.md, shared/car-v1.md, shared/mst.md, shared/commit-and-signing.md, shared/data-model.md. Fixtures: shared/test-vectors.md. Cross-language differences: shared/divergence-matrix.md.

Language detection

Before generating or reviewing any repo code, determine the target language from project files or the file being edited:

  • Cargo.toml, *.rs, any mention of atproto-repo / atproto-dasl / atproto-recordRust — read from rust/.
  • package.json, tsconfig.json, *.ts, *.tsx, imports of @atproto/repo / @atproto/lex-cbor / @atproto/cryptoTypeScript — read from typescript/. Also *.js/*.jsx when there is no .ts present.
  • go.mod, *.go, imports of github.com/bluesky-social/indigo/atproto/repoGo — read from go/.

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 165 lines · 0 tokens per session scan A 071d3edd66a1

Subscribe to this mod's changes

atproto-repository is a skill published in the GitHub repository ngerakines/atproto-skills (50 stars, last pushed 4mo ago), licensed MIT. It adds 696 tokens to every session and 3,481 once invoked, about $0.0035 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

Azure Cosmos Ts

Azure Cosmos DB JavaScript/TypeScript SDK (@azure/cosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: "Cosmos DB", "@azure/cosmos", "CosmosClient", "document CRUD", "NoSQL queries", "bulk operations", "partition key", "container.items".

mayurrathi/awesome-agent-skills · 78 tokens

Azure Cosmos Rust

Azure Cosmos DB SDK for Rust (NoSQL API). Use for document CRUD, queries, containers, and globally distributed data. Triggers: "cosmos db rust", "CosmosClient rust", "container", "document rust", "NoSQL rust", "partition key".

mayurrathi/awesome-agent-skills · 59 tokens

psl-ast-layers

How to use the PSL syntax tree layers (green tree, red tree, strongly-typed AST classes) correctly. Use for any PSL-related work: PSL interpreters (contract-psl), helpers inside the psl-parser package, the language server, formatters, or anything else that consumes parse() output from @internal/psl-parser.

prisma/orm · 78 tokens

ast-visitor-pattern

Use the frozen-class/visitor pattern for discriminated unions that have multiple dispatch sites. Use when creating a new set of variants (commands, IR nodes, factory calls) that will be switched over in 2+ places, or when refactoring an existing union type that has grown multiple switch sites.

prisma/orm · 65 tokens

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

bumping-biome

Bumps biome package versions (e.g. @biomejs/biome) using pnpm, aligns biome.jsonc files with the new version/s across the repository and runs biome-related checks. Use when required to update biome to a newer version - explicitly or implicitly (e.g. after running pnpm up, pnpm update, pnpm upgrade without specific…

prisma/orm · 96 tokens