agentleFS
AnxForeverAnxForever/stylekit/AGENTS.md

stylekit

AGENTS.md575 starsChanged 3 months agoMITView on GitHub

Rules for any AI assistant working in this repository. Checked into version control on purpose: CLAUDE.md is a local, gitignored file, so anything that should reach every contributor and every assistant belongs here. If instructions conflict, follow this order: - Never use a native <select> in product UI. Its dropdown is drawn by the operating system, so the arrow, option typography, highlight color and radius cannot follow the design system. Use segmented buttons when the option set is short (see…

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

The file

We split this AGENTS.md into the rules it gives an agent

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

  • 4

    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
  1. Distinctive:

    If instructions conflict, follow this order:

    line 7
  2. Distinctive:

    Do not use emoji in code, UI text, or docs unless explicitly requested.

    line 32
  3. Very specific:

    Prefer existing components in components/ui/ over adding duplicates.

    line 33
  4. Very specific:

    Keep UI components in components/ and domain logic in lib/.

    line 34
  5. Distinctive:

    Use TypeScript strict-safe changes.

    line 38
  6. Distinctive:

    Keep formatting consistent: 2 spaces, double quotes, semicolons.

    line 39
  7. Very specific:

    Never commit secrets, API keys, or real .env files.

    line 40
  8. Very specific:

    Keep server keys server-side only (never expose via NEXT_PUBLIC_).

    line 41

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

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

StyleKit Agent Rules

Rules for any AI assistant working in this repository. Checked into version control on purpose: CLAUDE.md is a local, gitignored file, so anything that should reach every contributor and every assistant belongs here.

If instructions conflict, follow this order:

  1. AGENTS.md (this file)
  2. docs/CONTRIBUTING.md
  3. docs/STYLE_ADDITION_CHECKLIST.md

Tech Stack

  • Next.js 16 (App Router, NOT Pages Router)
  • React 19
  • TypeScript strict mode
  • Tailwind CSS v4 (CSS-based config, NO tailwind.config.js)
  • pnpm (NOT npm or yarn)
  • Vitest for unit tests, Playwright for E2E
  • Radix UI primitives for accessible components

Interface Rules

  • Never use a native <select> in product UI. Its dropdown is drawn by the operating system, so the arrow, option typography, highlight color and radius cannot follow the design system. Use segmented buttons when the option set is short (see Segmented in app/submit/_style-form.tsx), or a custom listbox built on Radix when it is long.
    • Exempt: app/styles/*/showcase/ pages. Their form controls are demo content illustrating what a style looks like, not product chrome.
  • Do not use emoji in code, UI text, or docs unless explicitly requested.
  • Prefer existing components in components/ui/ over adding duplicates.
  • Keep UI components in components/ and domain logic in lib/.

Code Rules

  • Use TypeScript strict-safe changes.
  • Keep formatting consistent: 2 spaces, double quotes, semicolons.
  • Never commit secrets, API keys, or real .env files.
  • Keep server keys server-side only (never expose via NEXT_PUBLIC_).

Verification Before Final Output

pnpm run lint
npx tsc --noEmit
pnpm run test
pnpm run build

Commits

Conventional Commits, one concern per commit: feat: fix: refactor: docs: chore: test: perf:.

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.