frontend-production-engineer
AGENTS.md2 starsChanged 2 months agoMITView on GitHub
This repository is a frontend engineering skill. Its canonical instructions live in SKILL.md, which routes to the domain files under references/. Any agent working in this repo should load SKILL.md first and then read only the references/*.md file(s) relevant to the task. Primary integration: Claude (Anthropic Agent Skills). The files below let other agents use the same content; they are pointers, not copies. If anything here disagrees with SKILL.md, SKILL.md wins. This skill improves itself after a task. SELF-IMPROVEMENT.md gives…
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 repository2 other files it gives its agents.
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Before the main task: if the directory ~/.skill-improvements/frontend-production-engineer/ exists, do section 3 of SELF-IMPROVEMENT.md.
- Very specific: line 23
After the main task: if you found a defect in this skill, load SELF-IMPROVEMENT.md and obey it.
- Distinctive: line 114
Write-time: plan first, verify the installed versions, and apply the defaults from the integrated domains as you write.
- Very specific: line 120
Read SKILL.md for the router, the standing rules, the mode logic, and the definition of done.
- Very specific: line 129
Verify the installed versions from package.json, next.config.ts, and tsconfig.json before you generate code.
- Distinctive: line 132
Run the definition-of-done checks before you report the work complete.
- Distinctive: line 133
Verify the versions first, and let no file mix idioms from two major versions.
- Very specific: line 162
Every other integrated domain holds no veto.
- Very specific: line 173
All of them defer to SKILL.md and references/.
≈ “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.
Files
AGENTS.md
This repository is a frontend engineering skill. Its canonical instructions
live in SKILL.md, which routes to the domain files under references/. Any
agent working in this repo should load SKILL.md first and then read only the
references/*.md file(s) relevant to the task.
Primary integration: Claude (Anthropic Agent Skills). The files below let
other agents use the same content; they are pointers, not copies. If anything
here disagrees with SKILL.md, SKILL.md wins.
Self-improvement
This skill improves itself after a task. SELF-IMPROVEMENT.md gives the rules.
- Before the main task: if the directory
~/.skill-improvements/frontend-production-engineer/exists, do section 3 ofSELF-IMPROVEMENT.md. - During the main task: change no file of this skill, unless the main task is a change to this skill. When this skill gives wrong, old, unclear, or incomplete information, add one item to your task list: "Skill review: frontend-production-engineer".
- After the main task: if you found a defect in this skill, load
SELF-IMPROVEMENT.mdand obey it.
What this skill does
Plans, writes, and reviews production Next.js and TypeScript against a Django / Django REST Framework backend. Scope is the browser-facing application. That scope is routing and rendering, the React component tree, and the typed contract with the backend. It also holds the non-functional guarantees a shipped frontend owes its users. The Django backend itself is out of scope. Server-side security defers to the backend's own security review.
Twenty-four domains are integrated across four tiers. The tiers are foundations, backend contract and state, interface craft, and non-functional guarantees. A Tier 0 operating doctrine sits under them, and it is always in effect.
The integrated material in references/ is the App Router
foundation, the type system, and the React component tree. It also holds the
project structure, the DRF contract, and the client cache and state.
It holds the session with the gates over it, and the push transport with the
events on it. It holds the design system and accessibility — the tokens and the
layout, the element and its name, the keyboard, and the measurable criteria.
It holds forms, the dense data surface, media, and motion. That part is the schema and the bind, and the table with the server that drives it. It also holds the file that leaves for a user, and the animation over all of them.
It holds the copy — the words on a control, the message that a failure produces, and the string as data behind a key.
It holds speed as a measured property — the thresholds, the budget, and the gate over them. It also holds the bytes of JavaScript, with the third-party script beside them. The last part is the largest paint, the layout shift, and the answer to a tap.
It holds the browser-side threat model, and that part holds a veto. It is the sink that turns data into code, and the sanitiser in front of it. It also holds the policy and the header set that the response carries. The endpoint that the network reaches, and the destination that the server reaches back, are in it too. The last of it is what must never cross to the browser, and the code that arrives there that nobody on the team wrote.
One part is what a machine reads. It is the title, the canonical link, and the card that a share preview renders. It also holds the claim that a page makes in machine-readable form, and the escape that the grammar of that block needs.
The last part is the crawl and the index. It holds the robots rules, and the sitemap that the DRF data produces. It also holds the status code that a missing record returns, and the redirect that a rename ships.
Another part is the second language. It holds the route that carries a locale, and the file that holds the catalog behind it. It also holds the date, the number, and the calendar that each locale writes in its own form. The last of it is the direction of a surface, and the script that a font must carry.
The next part is the proof. It holds the level that each test belongs to, and the component test that carries most of the value. It also holds the answer that a mock gives to a request, and the journey that a real browser runs. The last of it is the gate that a change passes before a merge.
Another part is what happens when something breaks. It holds the report that a failure sends, and the personal value that the report must never carry. It also holds the identifier that joins one screen to one Django log line, and the trace that crosses to the backend. The last of it is the application under an outage. That part is the gate over a dead backend, the offline state, and the probe that answers for the chain.
Another part is the release. It holds the artifact that a build produces, and the image that carries it. It also holds the process that serves it, and the front door in front of that process. The last of it is the pipeline, the deploy that a probe proves, and the way back.
Another part is the measurement, and the permission that comes before it. It holds the event, its name, and the one module that sends it. It also holds the consent that a script waits for, the record that keeps the answer, and the inventory that proves the cookie policy true. The last of it is the export, the deletion, and the retention window that the interface states.
The newest part is the process that the work runs inside. It holds the plan
that comes before a diff, and the line that traces to the request. It also
holds the version read from the install, and the name that the install must
carry. The last of it is the file that instructs an agent, and the text from
outside that is never a command. SKILL.md is the authoritative list of what
is loadable.
Two modes
- Review-time: audit existing frontend code, produce findings ordered by severity (location, the concrete failure a user would experience, fix), and state what was not reviewed. Read-only by default.
- Write-time: plan first, verify the installed versions, and apply the defaults from the integrated domains as you write. Note the choices a reviewer would want to see. Ambiguous cases take write-time guardrails, with a review offered afterward.
How to use the content
- Read
SKILL.mdfor the router, the standing rules, the mode logic, and the definition of done. - Open the
references/*.mdfile(s) for the concern in front of you (the table inSKILL.mdmaps concern → file). - Resolve the domains in this order on a feature task. The standing rules come first, and they always apply. The foundations come next, for where files go and how they are typed. The backend contract comes before any code that touches Django. The domain files that match the feature come after it. The non-functional domains come last, as a review pass before done.
- Verify the installed versions from
package.json,next.config.ts, andtsconfig.jsonbefore you generate code. Never mix Next 15 and Next 16 idioms in one file. Never claim that an API exists unless you confirm it. - Run the definition-of-done checks before you report the work complete. Verify the versions first, and let no file mix idioms from two major versions. The typecheck, the lint, the tests that cover the change, and the production build must pass. Add no suppression to make a gate pass. Let the diff hold nothing that the request did not ask for. Code that renders is not done.
Conflict rule: security > accessibility > correctness > performance > developer convenience. No level trades down to satisfy a level above it.
Blocking domains
Seven domains hold a veto over completion. A task that fails one of them is not
complete, however finished the feature looks. The first failure condition of
each one is below, and SKILL.md holds the full list for every domain.
nextjs-app-router-architecture— a route that cannot state its render mode, its data source, its cache strategy, and its invalidation trigger.typescript-type-system-discipline— atsc --noEmitthat does not exit 0, or a suppression added to make it do so.django-drf-api-contract— an absent schema, and code that proceeds on a guessed response shape.authentication-and-authorization— a token, a refresh token, or a permission list inlocalStorageorsessionStorage.accessibility-wcag— a keyboard trap, or an interactive control with no accessible name.frontend-security— an unescaped injection sink, or a secret that reaches the client.testing-and-quality— a change with no test at any level, and no stated reason.
Every other integrated domain holds no veto. Its rules are findings on a review
pass, and one of them fails a task only where a blocking domain fails with it.
frontend-security and accessibility-wcag are absolute, and neither is a
follow-up ticket. agent-operating-doctrine sits outside both sets. It is the
definition of done that every other domain is failed against.
Tool-specific entry points
- Claude Code:
SKILL.md(native Agent Skill). - OpenAI Codex CLI: reads this
AGENTS.md. - Cursor:
.cursor/rules/frontend-production-engineer.mdc. - Gemini CLI:
GEMINI.md. All of them defer toSKILL.mdandreferences/.
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.

