ai-context-engineering-for-frontend
AGENTS.md2 starsChanged 8 months agoUnlicenseView on GitHub
Codex compatibility layer. Full orchestration rules are in .claude/frontend_agent.md. You are the Frontend Lead, the central coordinator of the frontend generation pipeline. Read CLAUDE.md for the full project context, tech stack, safety protocols, and communication rules. Read .claude/frontend_agent.md for agent architecture, skill routing, quality gates, and pipeline details. All 25 skills are defined in .claude/skills/*/SKILL.md. Codex wrappers are in .agents/skills/*/SKILL.md. See .claude/frontend_agent.md § Skills Matrix for the full owner/routing table. See .claude/frontend_agent.md § Ad-Hoc Routing for the complete request→action mapping.
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 31,439 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 repository70 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-project-context.mdcCursor rule
- .cursor/rules/01b-component-gen-next.mdcCursor rule
- .cursor/rules/01-component-gen.mdcCursor rule
- .cursor/rules/02-component-tests.mdcCursor rule
- .cursor/rules/03b-vue-doctor.mdcCursor rule
- .cursor/rules/03-react-doctor.mdcCursor rule
- .cursor/rules/04-ui-tweak.mdcCursor rule
- .cursor/rules/05-refactor.mdcCursor rule
- .cursor/rules/06-frontend-code-review.mdcCursor rule
- .cursor/rules/07-fe-repo-scout.mdcCursor rule
- .cursor/rules/08-be-repo-scout.mdcCursor rule
- .cursor/rules/09-web-vitals.mdcCursor rule
- .cursor/rules/10-browser-check.mdcCursor rule
- .cursor/rules/11-api-bind.mdcCursor rule
- .cursor/rules/12-e2e-tests.mdcCursor rule
- .cursor/rules/13-api-mocks.mdcCursor rule
- agents-checkerSkill
- api-bindSkill
- api-mocksSkill
- be-repo-scoutSkill
- browser-checkSkill
- component-gen-nextSkill
- component-genSkill
- component-testsSkill
- curate-lessonsSkill
- e2e-testsSkill
- fe-repo-scoutSkill
- fix-markdownSkill
- frontend-code-reviewSkill
- init-agentSkill
- init-projectSkill
- init-skillSkill
- prSkill
- react-doctorSkill
- refactorSkill
- setup-configsSkill
- skill-auditSkill
- spec-auditSkill
- ui-tweakSkill
- update-ai-setupSkill
- vue-doctorSkill
- web-vitalsSkill
- agents-checkerSkill
- api-bindSkill
- api-mocksSkill
- be-repo-scoutSkill
- browser-checkSkill
- component-gen-nextSkill
- component-genSkill
- component-testsSkill
- curate-lessonsSkill
- e2e-testsSkill
- fe-repo-scoutSkill
- fix-markdownSkill
- frontend-code-reviewSkill
- init-agentSkill
- init-projectSkill
- init-skillSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Read CLAUDE.md for the full project context, tech stack, safety protocols, and communication rules.
- Very specific: line 10
Read .claude/frontend_agent.md for agent architecture, skill routing, quality gates, and pipeline details.
- Very specific: line 21
All 25 skills are defined in .claude/skills/*/SKILL.md.
≈ “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.
Files
Frontend AI Agent
Codex compatibility layer. Full orchestration rules are in
.claude/frontend_agent.md.
Role
You are the Frontend Lead, the central coordinator of the frontend generation pipeline.
Read CLAUDE.md for the full project context, tech stack, safety protocols, and communication rules.
Read .claude/frontend_agent.md for agent architecture, skill routing, quality gates, and pipeline details.
Agent Architecture
| Role | File | Responsibility |
| Engineer | .claude/agents/engineer.md | Code generation (components, hooks, tests) |
| Auditor | .claude/agents/auditor.md | Quality review (read-only) |
Skills
All 25 skills are defined in .claude/skills/*/SKILL.md. Codex wrappers are in .agents/skills/*/SKILL.md.
See .claude/frontend_agent.md § Skills Matrix for the full owner/routing table.
Pipeline
/fe-repo-scout → /component-gen → /component-tests
(recon) (FSD + component) (tests + a11y)Routing
See .claude/frontend_agent.md § Ad-Hoc Routing for the complete request→action mapping.
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.

