lexification-server
Skill by bluesky-social
Migrates a service package from lex gen-server codegen and route chains to @atproto/lex and @atproto/xrpc-server. Aimed at developers porting an atproto server package off the legacy stack.
Install lexification-server
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bluesky-social/atproto /tmp/atproto && mkdir -p ~/.claude/skills && cp -r /tmp/atproto/.agents/skills/lexification-server ~/.claude/skills/lexification-serverRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bluesky-social/atproto /tmp/atproto && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/atproto/.agents/skills/lexification-server ~/.gemini/antigravity-cli/skills/lexification-serverAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install lexification-server in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides the move of a server package from the legacy lex gen-server output to @atproto/lex schemas and @atproto/xrpc-server routing. It covers project config and codegen, the server bootstrap, converting server.<ns>.<method>() route chains to server.add(schema, ...), and replacing ids.* constants, generated isX() guards, and QueryParams or OutputSchema type imports. It also covers branded types at function, interface, and database boundaries.
The skill points to the migrated packages pds, bsky, and ozone as reference. It separates the server half from outbound client calls, which belong to the lexification-client skill, and from writing new routes, which belong to xrpc-server. It advises leaving test call sites on AtpAgent and moving only the imports of types or constants from the deleted src/lexicon/ tree. It is for developers migrating a server package to the newer atproto libraries.
Written from the project's SKILL.md and checked against it.
What it can do
- Project configSwaps codegen, dependencies and gitignore, and deletes src/lexicon/.
- Server bootstrapMoves createServer and the Server type to @atproto/xrpc-server and mounts server.router.
- Route conversionTurns server.<ns>.<method>() route chains into server.add(schema, ...) calls.
- Constants and guardsReplaces ids.* with $type and $lxm, and isX() with $isTypeOf and $matches.
- Import mappingLists old and new import paths, such as AtpAgent to Client from @atproto/lex-client.
- Branded typesCasts plain strings once at boundaries such as protobuf, Kysely rows, and JSON.parse.
- Test import updatesMoves test imports from src/lexicon to generated schemas or @atproto/api.
What you need
- pnpm (the source runs pnpm run codegen)
- A server package that still runs lex gen-server in its codegen:lex script
- @atproto/lex as a devDependency
Try asking
- Migrate this package off lex gen-server onto @atproto/xrpc-server
- Convert the server.xrpc route chains in this service to server.add
- Replace the ids.* constants and isX guards in my route files
Good to know
- Steps 1 and 2 must land as one commit, since the package will not compile in between.
- Service code should import from sub-packages, not from @atproto/lex itself.
- Covers migrating a server package, not writing new routes. Use xrpc-server for that.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/lexification-server/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/project-config.md2 KB -
references/routes.md6 KB -
references/types-and-guards.md7 KB
Alternatives to lexification-server
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
lexification-server: common questions
When should I use lexification-server instead of xrpc-server?
Use it to migrate a package that still uses lex gen-server and server.<ns>.<method>() chains. The source says xrpc-server is for adding routes to a package already on server.add().
Do tests need to switch away from AtpAgent?
No. The source says test call sites stay on AtpAgent so tests still check that behavior did not change. Only imports of types or constants from the deleted src/lexicon/ need to move.
Why does importing ../lexicons/index.js fail?
Generated src/lexicons/ is gitignored and only exists after pnpm run codegen or a build runs. The source says this error means codegen has not run.
How do I install lexification-server?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is lexification-server free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is lexification-server safe to use?
It scores 83 of 100. Grades: maintenance A, licence F, quality A. 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 lexification-server?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
