agentleFS
minhduchd-mdsminhduchd-mds/desygn-ai/.github/copilot-instructions.md

desygn-ai

Copilot instructions2 starsChanged 3 months agoMITView on GitHub

This repo is a TypeScript + React + Vite project with: - Figma plugin (plugin/ — sandbox, no DOM) - Web workspace (web/src/ — React + Vite) - Vercel API routes (api/) - Agentic UI/UX Auditor (web/src/ux-checklist/) - Design.md generation engine (web/src/design-engine/) - Shared Zod schemas (shared/schemas/)

The file

We split this copilot-instructions.md into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 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.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not add more logic to web/src/main.tsx — it is an entry point only.

    line 12
  2. Very specific:

    Put checklist/audit code under web/src/ux-checklist/.

    line 13
  3. Very specific:

    Put API schemas under shared/schemas/.

    line 14
  4. Distinctive:

    Do not expose API keys in frontend or plugin code.

    line 16
  5. Very specific:

    All external AI calls must go through server API routes (api/).

    line 17
  6. Distinctive:

    Keep UI accessible (WCAG 2.2).

    line 18
  7. Distinctive:

    Add tests for all non-trivial logic.

    line 19
  8. Distinctive:

    Never call Figma API in loops — batch everything.

    line 21
  9. Very specific:

    Never use findAll() — use findAllWithCriteria() on currentPage only.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot / Coding Agent Instructions

This repo is a TypeScript + React + Vite project with:

  • Figma plugin (plugin/ — sandbox, no DOM)
  • Web workspace (web/src/ — React + Vite)
  • Vercel API routes (api/)
  • Agentic UI/UX Auditor (web/src/ux-checklist/)
  • Design.md generation engine (web/src/design-engine/)
  • Shared Zod schemas (shared/schemas/)

Rules

  • Do not add more logic to web/src/main.tsx — it is an entry point only.
  • Put checklist/audit code under web/src/ux-checklist/.
  • Put API schemas under shared/schemas/.
  • Validate all AI outputs with Zod schemas from shared/schemas/.
  • Do not expose API keys in frontend or plugin code.
  • All external AI calls must go through server API routes (api/).
  • Keep UI accessible (WCAG 2.2).
  • Add tests for all non-trivial logic.
  • CSS Modules per component. Dark theme only. Gap-based layout.
  • Never call Figma API in loops — batch everything.
  • Never use findAll() — use findAllWithCriteria() on currentPage only.
  • Scoring modules: pure functions, no side effects, no Figma API.
  • Sanitize all prompt text via shared/sanitize.ts.

Required commands before committing

npm run typecheck
npm run lint
npm test
npm run build

Architecture

See docs/DEV_GUIDE.md for full architecture guide.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.