Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

lex-sdk

Skill by blacksky-algorithms

Guides AI assistants through the @atproto/lex TypeScript SDK for AT Protocol. It covers lexicon schemas, XRPC clients and server routes, data conversion, and migration from the legacy stack.

  • Score 64
  • 95 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install lex-sdk

Built from the published package, never by AI.

git clone --depth 1 https://github.com/blacksky-algorithms/atproto /tmp/atproto && mkdir -p ~/.claude/skills && cp -r /tmp/atproto/.agents/skills/lex-sdk ~/.claude/skills/lex-sdk

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install lex-sdk in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The lex-sdk skill covers the @atproto/lex SDK for AT Protocol. It generates TypeScript schemas from Lexicon JSON, validates and builds data at runtime, and provides an XRPC client and helpers for building services. The skill is split into reference files for setup, schemas, data model, XRPC calls, the Client class, server routes, and migration from the legacy stack.

It applies when code uses XRPC calls, server routes, lexicon validation, JSON or CBOR conversion, lexicon builds, branded strings, blobs, or migration from @atproto/api, @atproto/lexicon, @atproto/xrpc, or @atproto/lex-cli. It is aimed at developers working with AT Protocol services and clients. Companion packages such as @atproto/lex-cbor and @atproto/xrpc-server must be imported directly.

Written from the project's SKILL.md and checked against it.

What it can do

  • Lexicon setupInstall lexicons, configure lex build, and set up scripts and gitignore.
  • Generated schemasUse $build, $matches, $isTypeOf, $parse, $safeParse and $validate, and create custom schemas with the l builder.
  • AT Protocol data modelWork with LexValue, Cid, BlobRef, branded strings, JSON to Lex conversion and CBOR.
  • Low-level XRPC callsMake XRPC calls with xrpc() and xrpcSafe() and handle XRPC error classes.
  • Client classUse the Client class for auth, record methods, labelers, Actions and service proxy.
  • XRPC server routesDefine server routes with @atproto/xrpc-server using createServer and server.add.
  • Service migrationMigrate server code from the legacy stack to @atproto/lex.
  • Client migrationMigrate client code from AtpAgent and other legacy APIs to the Client class.

Try asking

  • Write an XRPC call to com.atproto.repo.getRecord using the Client class
  • Define an XRPC server route with createServer and server.add
  • Migrate my AtpAgent client code to the @atproto/lex Client class

Good to know

  • Companion packages @atproto/lex-cbor and @atproto/xrpc-server are not re-exported by @atproto/lex and must be imported directly.
  • Generated code in src/lexicons is gitignored and regenerated by lex build.
  • If a referenced reference file cannot be read, the skill falls back to its own summary and general knowledge.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/lex-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to lex-sdk

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

lex-sdk: common questions

What is the @atproto/lex SDK used for?

The source describes it as a type-safe Lexicon SDK for AT Protocol. It generates TypeScript schemas from Lexicon JSON, validates and builds data, and provides an XRPC client and helpers for building services.

Can this skill help migrate from @atproto/api?

Yes. The skill covers migrating from the legacy @atproto/api, @atproto/lexicon, @atproto/xrpc and @atproto/lex-cli stack to @atproto/lex, for both server and client code.

Is CBOR included in @atproto/lex?

No. CBOR encode and decode come from the separate @atproto/lex-cbor package, which is not re-exported by @atproto/lex.

How do I install lex-sdk?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is lex-sdk free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is lex-sdk safe to use?

It scores 64 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to lex-sdk?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

lex-sdk Install

Add to stack

Loading.