agentleFS
luigi-dvluigi-dv/react-ts-vite/docs/agents.md

react-ts-vite

AGENTS.md1 starsChanged 25 days agoMITView on GitHub

.agent/ makes the project legible to AI coding agents — Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI, Jules, Amp and anything else that reads AGENTS.md. It is also the best onboarding document for humans. Everything is plain Markdown under version control; nothing is hidden in a vendor dashboard. Skills follow the Agent Skills specification: the folder name equals name, description says what the skill does and when to use it (≤ 1024 characters), optional license, compatibility, metadata and…

The file

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

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Rule: add .agent/rules/<topic>.md with front matter title and description.

    line 56
  2. Very specific:

    Run npm run agent:sync and commit the regenerated files together with your change.

    line 59

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

AI agents: the .agent/ folder

.agent/ makes the project legible to AI coding agents — Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI, Jules, Amp and anything else that reads AGENTS.md. It is also the best onboarding document for humans. Everything is plain Markdown under version control; nothing is hidden in a vendor dashboard.

.agent/
├── README.md             How the folder works
├── instructions.md       Project-wide instructions: mindset, how to work, never-do list, scripts
├── rules/                Always-on rules
│   ├── architecture.md     GENERATED from rtv.config.json — active architecture, layers, aliases, import rules
│   ├── code-style.md       TypeScript/React/module conventions
│   ├── design-system.md    Tailwind tokens, dark mode, Headless UI, Heroicons, accessibility
│   ├── testing.md          Vitest + Testing Library conventions
│   └── git-workflow.md     Conventional Commits, PRs, releases
├── skills/               Reusable know-how (Agent Skills standard: SKILL.md with YAML front matter)
├── workflows/            Step-by-step procedures (become slash commands in Claude Code)
└── agent.json            GENERATED index

Skills

SkillUse it when…
project-architecturedeciding where code lives, fixing arch:check violations, switching architectures
react-componentbuilding, extracting or refactoring components, hooks and pages
scaffold-featureimplementing a business capability end to end ($ARGUMENTS = feature name)
tailwind-design-systemstyling, re-theming, adding dialogs/menus/listboxes
testing-vitestwriting or fixing tests, raising coverage
clean-code-reviewreviewing a diff or PR against the project rules
accessibility-auditchecking semantics, keyboard, focus, contrast, forms
dependency-upgradebumping Vite/React/Tailwind/Vitest/TypeScript safely
ci-cd-dockerdebugging CI, adding workflows or deploy targets, running containers
deployment-insightsproducing release notes / risk reports, configuring Claude on deployment

Skills follow the Agent Skills specification: the folder name equals name, description says what the skill does and when to use it (≤ 1024 characters), optional license, compatibility, metadata and allowed-tools. Only spec fields are used so the skills stay portable across tools.

How each tool consumes it

npm run agent:sync (also run by postinstall, by npm run setup, by the architecture switcher and by the Claude Code hook) renders the folder into tool-specific locations. npm run agent:check (part of npm run check) fails when any of them is stale.

ToolReadsNotes
Claude CodeCLAUDE.md → @AGENTS.md import, .claude/skills/<skill>/ (mirrors), .claude/commands/<workflow>.md (mirrors), .claude/settings.jsonSkills are invoked as /project-architecture, workflows as /add-page, etc. The settings pre-approve npm run … scripts and run Prettier after every edit (scripts/hooks/post-edit.mjs, which also re-syncs when .agent/ changes).
Codex, Jules, Amp, Zed, Warp, Gemini CLI, …AGENTS.mdGenerated: instructions + all rules inline + skill and workflow index with links.
GitHub Copilot.github/copilot-instructions.mdGenerated: instructions + rules + skill list.
Cursor.cursor/rules/rtv-*.mdcOne always-apply rule per .agent/rules/*.md.

Why mirrors instead of symlinks? They work on every OS and in every tool, and the check keeps them honest. Edit the source in .agent/; never edit a mirror.

The generated architecture rule

.agent/rules/architecture.md is rendered from rtv.config.json and the architecture catalogue every time you run npm run arch -- apply, npm run templates -- add/remove, npm run setup or npm run agent:sync. It tells agents the active architecture, where each role lives, the aliases, the layer table with allowed imports, and the applied templates — so an agent never has to guess where a file belongs.

Adding or changing instructions

  • Rule: add .agent/rules/<topic>.md with front matter title and description; keep it short and imperative.
  • Skill: mkdir .agent/skills/<name> + SKILL.md (front matter name, description); add supporting files next to it (the deployment-insights skill ships its PROMPT.md).
  • Workflow: .agent/workflows/<name>.md with numbered steps referencing skills and scripts.
  • Run npm run agent:sync and commit the regenerated files together with your change.

Design notes

  • The folder is tool-agnostic on purpose: a team can switch agents without rewriting its conventions.
  • Rules are the short, always-on layer; skills carry the long, situational detail; workflows chain them. Keep each rule under ~40 lines and each SKILL.md under ~500.
  • Generated artefacts carry an <!-- rtv:generated --> marker so the tooling never overwrites a hand-written file.

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.