desygn-ai
CLAUDE.md2 starsChanged 3 months agoMITView on GitHub
Full dev guide: docs/DEV_GUIDE.md Prefer capabilities that improve this closed loop over unrelated utility features.
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- Design Intelligence UpgradeSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 14
Never call Figma API in loops — batch everything.
- Very specific: line 15
Never use findAll() — use findAllWithCriteria() on currentPage only.
- Distinctive: line 23
Start from a product outcome, not a random file edit.
- Very specific: line 26
Keep audit/scoring/policy logic deterministic and explainable.
- Distinctive: line 27
Keep Edge-safe modules separated from Node-only dependencies.
- Very specific: line 30
Do not merge around failing unit/build/security checks unless the failure is demonstrated to be infrastructure-only and recorded in the PR.
- Distinctive: line 35
Prefer capabilities that improve this closed loop over unrelated utility features.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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
Desygn AI — Claude Code Instructions
Full dev guide: docs/DEV_GUIDE.md
Commands
npm run dev # Watch mode (UI + plugin)
npm run build # Production → dist/
npm test # Vitest
npm run lint # ESLint 9Hard Rules
- Never call Figma API in loops — batch everything.
- Never use
findAll()— usefindAllWithCriteria()oncurrentPageonly. - Serializer:
isMixed()check before reading mixed properties. Max depth 15. - Scoring modules: pure functions, no side effects, no Figma API.
- Prompt text: always
sanitize()viasanitize.ts(strips HTML + control chars). For prompt-injection defense, also usewrapUserInput()when embedding user text in AI prompts. - CSS Modules per component. Dark theme only. Gap-based layout.
- New serializer field: types.ts → serializer.ts → prompt-compact.ts.
Agent workflow
- Start from a product outcome, not a random file edit.
- Map affected workspace packages, API routes, web surfaces, data contracts, tests, and deployment runtime.
- For multi-module work, create a dependency-aware task graph and define acceptance criteria before implementation.
- Keep audit/scoring/policy logic deterministic and explainable. AI may recommend changes but must not silently redefine metrics or standards.
- Keep Edge-safe modules separated from Node-only dependencies; check transitive imports, not only direct imports.
- Build workspace/shared packages before consumer applications when validating production deployment.
- A builder must not be the sole reviewer of its own patch. Use the repository reviewer agent after implementation.
- Do not merge around failing unit/build/security checks unless the failure is demonstrated to be infrastructure-only and recorded in the PR.
Product direction
Design source → normalized Design IR → explainable analysis/audit → design-system intelligence → recommendation → optional implementation → independent verification/evidence.
Prefer capabilities that improve this closed loop over unrelated utility features.
Source and license policy
External projects may be studied for architecture, workflow, standards, protocols, or public APIs. Prefer clean-room implementation for core algorithms. If implementation is adapted, record source URL, exact revision/version, license, retained notices, and modifications. Never claim a standardized mathematical transform or third-party algorithm as repository-owned.
Repo
- Origin: github.com/minhduchd-mds/desygn-ai
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.

