figwright
CLAUDE.md971 starsChanged 6 months agoMITView on GitHub
Read AGENTS.md first — it's the single source of guidance for this repo: architecture, layout, tech stack, commands, conventions, release flow, and gotchas. Claude Code specifics:
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- figma-typings-auditSkill
- mcp-sdk-auditSkill
- figma-buildSkill
- figma-codegenSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Read AGENTS.md first — it's the single source of guidance for this repo: architecture, layout, tech stack, commands, conventions, release …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Read AGENTS.md first — it's the single source of guidance for this repo: architecture, layout, tech stack, commands, conventions, release flow, and gotchas.
Claude Code specifics:
- This repo is a Figma MCP server. The project-scoped
.mcp.jsonlaunches the local build (packages/mcp/dist/index.mjs), so after changingpackages/mcporpackages/sharedyou mustpnpm buildand restart the MCP connection before thefigwrighttools reflect your change. - There are no git hooks; CI is the gate. When you edit through Claude Code, the PostToolUse hook (
.claude/hooks/format-on-edit.mjs) auto-formats and lints the file — don't hand-format. - The canonical checks before pushing are
pnpm typecheck && pnpm lint && pnpm format:check && pnpm knip && pnpm build && pnpm test(the same gates CI runs). - The MCP SDK is v2 —
@modelcontextprotocol/server(plus its transitive@modelcontextprotocol/core), not the v1@modelcontextprotocol/sdk.src/index.tsbuilds the server in a factory and hands it toserveStdio, which owns the transport and the protocol-era decision. - The SDK is a runtime dependency — it generates every tool's JSON Schema and negotiates the protocol version — so a release can move what clients see while
tscstays green.packages/mcp/test/e2e/mcp-wire.test.tsis the gate for exactly that: it spawns the builtdistover real stdio, speaks raw JSON-RPC (never the SDK's ownClient, which would move in lockstep and hide the regression), and asserts the advertised tool set, each schema against an SDK-independent derivation, the dialect, annotations, prompts, a livetools/call, that a 2024-11-05 client is still served, that a 2026-07-28 client gets the modern era and is refused thepingthat revision deleted, and that the process still exits cleanly when the client goes away mid-session. It runs inpnpm testbut needspnpm buildfirst, and skips whendistis missing. - The
mcp-sdk-auditskill (.claude/skills/) owns SDK upgrades. The gate answers did anything break; the skill'sprobe.mjsanswers what moved, by snapshotting the live wire contract before and after a bump and diffing. Reach for it on any@modelcontextprotocol/*bump. - The
figma-typings-auditskill (.claude/skills/) owns@figma/plugin-typingsupgrades end to end: it diffs the.d.tsbetween the installed and target version (that package ships no changelog), maps the result onto the sandbox handlers, the hand-written Zod mirrors inshared, and the tool registry, then bumps and implements what's worth having. It diffs before upgrading — the installed version is the baseline. Reach for it on a Renovate bump PR for that package: a green pipeline does not mean the update was absorbed, sincesharedmirrors Figma's shapes with no compile-time coupling to the typings.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

