AgentDS
AGENTS.md1 starsChanged 5 months agoApache-2.0View on GitHub
Instructions for Codex working in this repository. Follow them exactly; when a rule here conflicts with a general habit, this file wins. AgentDS is a free catalog of agent-ready design system files: Official Systems (DESIGN.md files generated from real open-source token packages — Carbon, Material 3, Primer, Fluent 2, Cloudscape…) and Brand Looks (independent visual-language analyses of famous product sites). Users browse previews, copy/download files, hit a public fetch API, or install via skills.sh. Reference docs live in docs/ (01-PROJECT-IDEA.md,…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.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
- Very specific: line 58
Read
/DESIGN.mdbefore writing or changing any UI: Use its tokens by name; never invent colors, radii, fonts, or spacing. - Distinctive: line 61
Every catalog/detail page needs loading, empty, error, and (where applicable) restricted states.
- Distinctive: line 67
All input validated at the edge (zod/class-validator via global pipe).
- Very specific: line 75
Never copy text from official design-system docs or competitor DESIGN.md collections into generated files.
- Very specific: line 76
Never commit or serve proprietary font binaries (SF Pro, Segoe, Salesforce Sans, etc.).
- Very specific: line 82
No PII anywhere: counters and analytics are aggregate and cookieless.
- Very specific: line 83
Run pnpm audit after adding dependencies.
- Distinctive: line 105
After content merges: API redeploy → ingest → call the web revalidate webhook.
- Distinctive: line 113
Prefer asking over assuming for: scope beyond the PRD, license/restricted handling for a new system, changes to the public API contract, or …
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.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
AGENTS.md — AgentDS
Instructions for Codex working in this repository. Follow them exactly; when a rule here conflicts with a general habit, this file wins.
Project identity
- Name: AgentDS · Owner: Oday Bakkour
- Production: web
https://agent-ds.oday-bakkour.com(Vercel) · APIhttps://api.agent-ds.oday-bakkour.com(Dokploy) - Repo:
github.com/System-Desgin/AgentDS— private during build, public from Phase 4. Treat every commit as world-readable from day one (the full history ships when visibility flips): no secrets, no client data, no internal Cyberpedia material, ever. - Skills install (public contract):
npx skills add System-Desgin/AgentDS --skill design-systems - Contact / security reports: contact@oday-bakkour.com
- Licensing: code Apache-2.0 · catalog content (
content/) CC BY 4.0 with per-entry upstream notices
What this project is
AgentDS is a free catalog of agent-ready design system files: Official Systems (DESIGN.md files generated from real open-source token packages — Carbon, Material 3, Primer, Fluent 2, Cloudscape…) and Brand Looks (independent visual-language analyses of famous product sites). Users browse previews, copy/download files, hit a public fetch API, or install via skills.sh. Reference docs live in docs/ (01-PROJECT-IDEA.md, 02-PRD.md, 03-DEV-CHECKLIST.md, 04-DATA-SOURCES.md). The PRD is the source of truth for scope — do not add features it doesn't define without asking.
Repository map
apps/web/ Next.js (App Router, RSC, Tailwind v4) — deployed on Vercel
apps/api/ NestJS (Express adapter) + Prisma + PostgreSQL — Docker on Dokploy
packages/shared/ zod schemas (meta.yaml, API DTOs), TS types, taxonomy constants, preview renderer
packages/pipeline/ Content CLI: extract | generate | validate | verify | export | new (+ prompts/)
content/
official/<slug>/ DESIGN.md · meta.yaml · tokens.json · tailwind.css · QA.md
brand-looks/<slug>/ same layout, disclaimer header mandatory
skills/ Agent Skills (SKILL.md) mirrored to the public skills repo
docs/ Project docs (idea, PRD, checklist, data sources)
DESIGN.md THIS SITE'S own design system — read before any UI workCommands
pnpm install # root, pnpm workspaces
pnpm dev # turborepo: web + api in watch mode
pnpm dev --filter web # frontend only (http://localhost:3000)
pnpm dev --filter api # backend only (http://localhost:4000, swagger at /docs)
pnpm build # all apps/packages
pnpm lint && pnpm typecheck # must pass before any commit
pnpm test # unit; pnpm test:e2e for api supertest suite
pnpm --filter api prisma migrate dev # DB migrations (never edit applied migrations)
pnpm pipeline <cmd> <slug> # extract | generate | validate | verify | export | new
# generate = headless Claude Code (claude -p), versioned prompts,
# billed to the plan's Agent SDK credit — NO API key
/generate-system <slug> # interactive alternative, run inside Claude Code
pnpm pipeline verify <slug> [--fix] # tokens vs. the cited source (CIEDE2000); --fix re-grounds
pnpm pipeline verify --all # whole catalog; hits the network
pnpm check:verification # offline publish gate (what CI runs on content PRs)
npx @google/design.md lint <file> # official linter — gate for all contentNon-negotiable rules
UI / frontend
- Read
/DESIGN.mdbefore writing or changing any UI. Use its tokens by name; never invent colors, radii, fonts, or spacing. New tokens require editing DESIGN.md first (then run the official linter on it). - Server Components by default;
"use client"only for real interactivity. Preview cards (palette, type scale, spacing, radius) are pure server-rendered HTML/CSS from parsed YAML — no client JS to view them. - Accessibility is a feature: keyboard nav, visible focus (2px accent ring), WCAG AA contrast,
prefers-reduced-motionrespected. We badge other systems' WCAG results — failing it ourselves is a launch blocker. - Every catalog/detail page needs loading, empty, error, and (where applicable) restricted states.
Backend / API
- Public API is read-only GET under
/v1+ one token-gatedPOST /internal/ingest. Never add unauthenticated write routes. - Raw-file endpoints must send correct
Content-Type,ETag, andCache-Controlheaders; restricted entries return451with a JSON reason; rate-limited responses return429+Retry-After. - All input validated at the edge (zod/class-validator via global pipe). No stack traces or internal paths in production error bodies.
- DB access only through Prisma; schema changes only via migrations; every list endpoint is paginated (
limitmax 100).
Content
- Nothing publishes without:
meta.yamlpassing the shared zod schema,npx @google/design.md lintwith zero errors, a passingverify-report.json(pnpm pipeline verify <slug>— every color grounded in the cited source,inconclusive: false), and a human-signedQA.md. CI enforces this — never bypass or weaken the content workflow. - Never hand-edit a token value. Values come from the source via
extract/verify --fix, never from memory or eyeballing — that is exactly how the catalog drifted before. If a value looks wrong, fix the extractor or the provenance and re-run. An entry whose source cannot be recovered staysdraft: reporting "inconclusive" is correct, inventing a palette is not. Changing a color without re-verifying failspnpm check:verification. - Official path: provenance is mandatory (package@version or repo@commit + extracted_at). Brand Looks: the disclaimer header is mandatory and injected by the pipeline — never remove it.
- Never copy text from official design-system docs or competitor DESIGN.md collections into generated files. Prose is written fresh from tokens + paraphrased principles (see
docs/04-DATA-SOURCES.md§6). - Never commit or serve proprietary font binaries (SF Pro, Segoe, Salesforce Sans, etc.). Use the substitution map in
packages/pipeline; note the original family in prose only. - Published files are plain markdown: no HTML tags, no scripts, no external embeds. The pipeline sanitizer test in
packages/pipelinemust keep passing.
Security & secrets
- Secrets live only in Vercel/Dokploy env;
.env*is gitignored;.env.exampledocuments keys without values. Never print secrets in logs or commit history. - No PII anywhere: counters and analytics are aggregate and cookieless. Don't add tracking beyond the existing Umami +
/v1/events. - Run
pnpm auditafter adding dependencies; prefer zero-dependency solutions for small utilities. - Generation billing: pipeline generation uses Claude Code under the owner's Max plan — interactive sessions draw plan limits;
claude -pdraws the plan's monthly Agent SDK credit. Never setANTHROPIC_API_KEYin any repo environment, script, or CI: its presence silently reroutesclaude -pbilling to a pay-per-token API account.
Conventions
- TypeScript strict everywhere; no
anywithout an inline justification comment. - Conventional commits (
feat:,fix:,content:,chore:,docs:); one logical change per PR; PRs touchingcontent/are content-only. - Shared types/DTOs live in
packages/shared— web and api import from there; never duplicate schema definitions. - API responses use the
{ data, meta }envelope; errors use problem-details shape{ statusCode, error, message }. - File naming: kebab-case files, PascalCase React components, camelCase functions. Western digits only in all content and UI.
- Copy tone: plain, specific, active voice ("Copy file", "Download tokens.json") — see DESIGN.md writing rules.
Testing expectations
- New API endpoints: unit tests for the service + e2e happy path, 404, and one failure mode (429/451 where relevant).
- Pipeline changes: run the full chain on one Tier-1 slug (
carbon) and attach the lint report to the PR. - UI: preview renderer gets snapshot tests against 2 fixture DESIGN.md files (one Official, one Brand Look).
Deployment notes
apps/web: Vercel Git integration — pushingmaindeploys production atagent-ds.oday-bakkour.com, PRs get previews. Env:NEXT_PUBLIC_API_URL=https://api.agent-ds.oday-bakkour.com.apps/api: Dokploy buildsapps/api/Dockerfileon themainwebhook, served atapi.agent-ds.oday-bakkour.com(Traefik TLS). Multi-stage build,node:22-alpine, non-root user,HEALTHCHECKon/v1/health. Content incontent/is baked into the image; ingest runs on boot.- After content merges: API redeploy → ingest → call the web revalidate webhook. Never hand-edit the production DB.
Definition of done
A task is done when: typecheck + lint + tests pass; states (loading/empty/error) exist for new UI; new UI matches DESIGN.md tokens; new endpoints appear in Swagger with examples; content changes carry lint report + verify report + QA sign-off, with pnpm check:verification green; and the relevant box in docs/03-DEV-CHECKLIST.md can honestly be ticked.
When unsure
Prefer asking over assuming for: scope beyond the PRD, license/restricted handling for a new system, changes to the public API contract, or edits to this file and DESIGN.md. Everything else: make the smallest correct change, follow the docs, ship.
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.

