RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/CLAUDE.md/MetaMask/metamask-design-system

CLAUDE.md

CLAUDE.md
CLAUDE.mdroot

Quality

97/100

Scores the file, not the repository.

Length

406 words

14 headings · 4 code blocks

Repository

34

— · pushed 3 days ago

Last changed

3 days ago

First indexed 3 days ago.
MetaMask/metamask-design-system/CLAUDE.mdRawGitHub
1# MetaMask Design System
2 
3Design tokens and components for MetaMask extension (React) and mobile (React Native).
4 
5## Documentation for AI Agents
6 
7Repository-specific conventions and patterns:
8 
9- @.cursor/rules/styling.md
10- @.cursor/rules/testing.md
11- @.cursor/rules/component-documentation.md
12- @.cursor/rules/component-architecture.md
13- @.cursor/rules/component-creation.md
14- @.cursor/rules/component-enum-union-migration.md
15- @.cursor/rules/component-migration.md
16- @.cursor/rules/figma-integration.md
17- @.cursor/rules/release-workflow.md
18 
19See @docs/ai-agents.md for comprehensive strategy explanation.
20 
21## Monorepo Structure
22 
23**This is a yarn workspaces monorepo.** Run all commands from the repository root.
24 
25### Command Patterns
26 
27Two ways to run commands:
28 
291. **Root scripts** (preferred for common tasks)
30 
31```bash
32 yarn build # Builds all packages
33 yarn test # Runs all tests
34 yarn lint # Lints entire monorepo
35```
36 
372. **Workspace-specific commands** (for targeting single packages)
38```bash
39 yarn workspace @metamask/design-system-react run test
40 yarn workspace @metamask/design-system-react run build
41 yarn workspace @metamask/design-system-react run lint
42```
43 
44**Never** use `cd packages/*/` - always run commands from root using one of the patterns above.
45 
46### Essential Commands
47 
48```bash
49# Build
50yarn build # All packages
51yarn build:types # TypeScript only
52 
53# Test
54yarn test # All tests
55yarn test:storybook # Accessibility tests
56yarn workspace @metamask/design-system-react run test # Single package
57 
58# Lint
59yarn lint # Check all
60yarn lint:fix # Auto-fix
61 
62# Component Creation
63yarn create-component:react --name ComponentName --description "Brief description"
64yarn create-component:react-native --name ComponentName --description "Brief description"
65 
66# Storybook
67yarn storybook # React web (port 6006)
68yarn storybook:ios:build # React Native iOS dev client (first time / native dep changes)
69yarn storybook:ios # React Native iOS (Metro + dev client)
70yarn storybook:android:build # React Native Android dev client (first time / native dep changes)
71yarn storybook:android # React Native Android (Metro + dev client)
72 
73# Dependencies
74yarn constraints --fix # Fix dependency constraints
75yarn dedupe # Deduplicate dependencies
76```
77 
78### Packages
79 
80- `@metamask/design-tokens` - Foundation tokens
81- `@metamask/design-system-shared` - Shared utilities
82- `@metamask/design-system-react` - Web components
83- `@metamask/design-system-react-native` - Mobile components
84- `@metamask/design-system-tailwind-preset` - Web Tailwind preset
85- `@metamask/design-system-twrnc-preset` - Mobile twrnc preset
86 
87### Apps (Consumer Platforms)
88 
89Storybook apps in `apps/` consume packages for development and testing:
90 
91- `@metamask/storybook-react` - Web component development (`yarn storybook`)
92- `@metamask/storybook-react-native` - Mobile development (`yarn storybook:ios:build` then `yarn storybook:ios`)
93 
94These platforms are for manual testing and component showcase. Visual regression testing is planned but not yet implemented.
95 
96**Import using package names, never file paths:**
97 
98```tsx
99// ✅ Correct
100import { Button } from '@metamask/design-system-react';
101 
102// ❌ Wrong
103import { Button } from '../../../packages/design-system-react';
104```
105 
106## Personal Overrides
107 
108As per [Claude Code best practices](https://code.claude.com/docs/en/best-practices), create `CLAUDE.local.md` for personal preferences (gitignored).
109See `CLAUDE.local.md.example` for template.
110 

Commands it names

  • yarn build
  • yarn test
  • yarn lint
  • yarn workspace @metamask/design-system-react run test
  • yarn workspace @metamask/design-system-react run build
  • yarn workspace @metamask/design-system-react run lint
  • yarn build:types
  • yarn test:storybook
  • yarn lint:fix
  • yarn create-component:react --name ComponentName --description "Brief description"
  • yarn create-component:react-native --name ComponentName --description "Brief description"
  • yarn storybook
  • yarn storybook:ios:build
  • yarn storybook:ios
  • yarn storybook:android:build
  • yarn storybook:android
  • yarn constraints --fix
  • yarn dedupe

Sections

  • MetaMask Design System
  • Documentation for AI Agents
  • Monorepo Structure
  • Command Patterns
  • Essential Commands
  • Build
  • Test
  • Lint
  • Component Creation
  • Storybook
  • Dependencies
  • Packages
  • Apps (Consumer Platforms)
  • Personal Overrides

What it covers

buildtestlint-formatcode-stylearchitecturedependenciesuimonorepodocs

Stack — with the evidence

typescript

(1.00)

node

(1.00)

eslint

(1.00)

react

(0.70)

react-native

(0.70)

expo

(0.70)

tailwind

(0.70)

vite

(0.70)

vitest

(0.70)

jest

(0.70)

playwright

(0.70)

javascript

(0.60)

github-actions

(0.60)

monorepo

(0.50)

Format

CLAUDE.md

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

What the corpus says about it

Repository

Owner
MetaMask
Language
—
License
—
Archived
no

All configs in this repo

Also in MetaMask/metamask-design-system

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
MetaMask/metamask-design-system.cursor/rules/pr.mdc · 34Cursor rulestypescriptnode+11testgitsecurity73/1003 days ago
Diff against .cursor/rules/pr.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
Adit-Jain-srm/NightmareNetCLAUDE.md · 45CLAUDE.mdtypescriptpython+18buildtestlint-formatstyle+6100/1003 days ago
nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4kCLAUDE.mdtypescriptnode+16setupbuildstylearch+2100/1003 days ago
dotCMS/corecore-web/CLAUDE.md · 949CLAUDE.mdjavanode+13teststylearchtesting-strategy+3100/1003 days ago
microsoft/playwrightCLAUDE.md · 94kCLAUDE.mdtypescriptjavascript+10buildtestlint-formatstyle+7100/1003 days ago
filamentphp/filamentCLAUDE.md · 32kCLAUDE.mdphplaravel+5buildtestlint-formatstyle+7100/1003 days ago
bagisto/bagistoCLAUDE.md · 28kCLAUDE.mdphplaravel+8setupbuildteststyle+5100/1003 days ago
dotCMS/coreCLAUDE.md · 949CLAUDE.mdjavanode+9setupbuildteststyle+799/100today
lollipopkit/flutter_server_boxCLAUDE.md · 8.3kCLAUDE.mddartflutter+8buildteststylearch+298/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack