Agent-driven harmonious development: sync design tokens between Tailwind v4 and a Figma file.
Run the ADHD config wizard. Walks through producing or repairing adhd.config.ts: leader (code or figma), Figma URL (with reachability test), domains (multi-select), and optional Figma PAT setup when leader is code (detects FIGMA_PAT in shell or .env*; validates against Figma REST API; writes to .env.local if needed).
Generate a DTCG JSON file from this project's design tokens (Tailwind v4 defaults + custom tokens in globals.css). The user imports the resulting file into Figma via a DTCG-compatible community plugin (TokensBrücke recommended). Reads adhd.config.ts; never talks to Figma directly.
Sync design tokens between this Tailwind v4 codebase and the configured Figma file. Reads adhd.config.ts at the repo root. Supports --dry-run (read-only diff) and --domains <comma,separated> (limit to specific domains: colors, spacing, typography, radius, shadow).
Convert design tokens between code (CSS) and Figma (MCP variable defs) representations and the canonical DTCG (Design Token Community Group) JSON shape. Used by /adhd:export-for-figma, /adhd:check, and /adhd:sync-from-figma. Wraps the deterministic Node converter at plugins/adhd/lib/to-dtcg/cli.js.
This repo is two things at once:
adhd plugin — slash commands that keep design tokens synchronized between a Tailwind v4 codebase and a Figma file.example/ that demonstrates the plugin in use, with component patterns (Avatar, AvatarGroup) and a three-layer design-token architecture (primitives → semantic roles → Tailwind exposure).Plugin source lives at the repo root (plugins/, docs/, scripts/, etc.). The Next.js app lives in example/ so the root stays clean.
/plugin marketplace add /absolute/path/to/this/repo
/plugin install adhd@adhd-reference
Both commands are persistent — Claude Code remembers the marketplace and the enabled plugin across sessions. Run them once per machine.
After install, four slash commands are available:
| Command | Direction | What it does |
|---|---|---|
/adhd:config | — | Interactive wizard that produces adhd.config.ts |
/adhd:export-for-figma | code → Figma | Generates a DTCG JSON file the user imports into Figma via a community plugin |
/adhd:sync | Figma → code | Pulls Figma variables into globals.css (existing path; rename to /adhd:sync-from-figma planned for Plan 3) |
/adhd:to-dtcg | utility | Model-invocable converter wrapped by the user-facing skills |
In your consumer repo, run /adhd:config. The wizard walks through:
app/globals.css or src/app/globals.css)It produces adhd.config.ts at the repo root:
const config = {
figma: {
url: "https://www.figma.com/design/<KEY>/<NAME>",
},
// optional: domains: [...],
// optional: cssEntry: "src/app/globals.css",
};
export default config;
Then:
/adhd:export-for-figma # generate adhd-export-for-figma.json
/adhd:sync --dry-run # see what /adhd:sync would change
/adhd:sync # apply (Figma → code; will prompt before writing)
For the export → Figma flow, the recommended import plugin is TokensBrücke. See plugins/adhd/lib/to-dtcg/README.md for the recommended export settings and known round-trip caveats.
The Figma file must follow the structure mandated in the spec — a Primitives collection (no modes) and a Semantic collection (Light + Dark modes). The skill validates this and surfaces fix-up guidance on failure.
cd example
npm install
npm run dev
Open http://localhost:3000 — the homepage is a variant grid showcasing the Avatar component (sizes, shapes, status, image sources) and the AvatarGroup surface="brand" mode using the gold semantic tokens.
To exercise ADHD against the example:
cd example
# from this directory, slash commands resolve relative paths like a real consumer
# (adhd.config.ts, app/globals.css, node_modules/tailwindcss/theme.css all live here)
.
├── plugins/adhd/ # The plugin source
│ ├── skills/ # config, sync, export-for-figma, to-dtcg
│ ├── lib/to-dtcg/ # zero-deps Node converter (CLI + tests + fixtures)
│ └── .claude-plugin/ # plugin manifest
├── docs/superpowers/
│ ├── specs/ # design specs
│ └── plans/ # implementation plans
├── scripts/ # repo-level scripts (skill frontmatter validator)
├── .claude-plugin/ # marketplace declaration
├── .github/workflows/ # CI (to-dtcg unit tests + project hygiene)
├── example/ # Next.js + Tailwind v4 demo consumer
│ ├── app/ # Next.js App Router source
│ ├── adhd.config.ts # the example consumer's config
│ ├── package.json # Next.js / Tailwind / npm deps
│ └── … # next.config.ts, tsconfig.json, etc.
└── README.md, AGENTS.md, CLAUDE.md
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub sanctuarycomputer/adhd --plugin adhdDesign fluency for frontend development. 1 skill with 23 commands (/impeccable polish, /impeccable audit, /impeccable critique, etc.) and curated anti-pattern detection.
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
Complete developer toolkit for Claude Code