webdev-agent-kit
AGENTS.md5 starsChanged 3 months agoApache-2.0View on GitHub
This compact .agents entrypoint routes work to portable core policy, an evidence-gated profile, verified project facts, and the smallest matching skill. Load detailed owning rules only when relevant. Bundle paths are rooted at .agents. Generated dist/** output is never source truth. The host-root instruction pointer is managed only by project-onboarding-adapter with explicit approval; ordinary bundle work must not replace it. Resolve conflicts through common/policy-precedence.md: system, client security, and sandbox restrictions; current user request; confirmed scope and approvals; host-project instructions; verified…
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 repository21 other files it gives its agents.
- agent-rules-skill-authorSkill
- design-screenshot-specSkill
- execution-plan-managerSkill
- frontend-architecture-plannerSkill
- frontend-bugfix-debuggerSkill
- frontend-design-directorSkill
- frontend-design-intelligenceSkill
- frontend-layout-implementerSkill
- frontend-linter-managerSkill
- frontend-prototype-explorerSkill
- frontend-quality-reviewerSkill
- frontend-refactor-surgeonSkill
- frontend-visual-qaSkill
- goal-plannerSkill
- greenfield-project-builderSkill
- loop-workflow-plannerSkill
- mcp-toolchain-managerSkill
- pattern-library-managerSkill
- project-context-adapterSkill
- project-onboarding-adapterSkill
- webdev-kit-updaterSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 62
Do not load every skill, reference, common rule, overlay, README, or generated target for routing.
- Distinctive: line 85
Run the smallest relevant existing check for the changed surface.
≈ “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
WebDev Agent Kit Runtime Policy
Purpose
This compact .agents entrypoint routes work to portable core policy, an evidence-gated profile, verified project facts, and the smallest matching skill. Load detailed owning rules only when relevant.
Bundle paths are rooted at .agents. Generated dist/** output is never source truth. The host-root instruction pointer is managed only by project-onboarding-adapter with explicit approval; ordinary bundle work must not replace it.
Precedence And Approvals
Resolve conflicts through common/policy-precedence.md: system, client security, and sandbox restrictions; current user request; confirmed scope and approvals; host-project instructions; verified project/** facts; selected skill; active profile; generic defaults.
Require explicit approval before installing packages or tools, changing configuration outside scope, adding test infrastructure, replacing project instructions, performing irreversible actions, or contacting external people or systems. New tests require an explicit current request; relevant existing-test maintenance follows common/test-policy.md.
README.md may be read only when relevant under common/readme-policy.md, never as sole technical evidence or runtime authority. Reading never authorizes editing. Do not create or change an existing README unless the current user explicitly requests that README change.
Context Loading And Workflow Scale
In Codex, when a local model-routing profile exists, consult
common/codex-model-routing-policy.md before broad reading or delegation.
Classify before reading broadly:
Fast Lookup: narrow question, file location, or code explanation; search and read only decisive snippets.Lightweight Workflow: one obvious, low-risk local change; avoid planning and toolchain overhead.Standard Workflow: multi-file work, unclear root cause, refactor boundary, or bounded verification.Deep Workflow: new project, architecture or migration, broad redesign, repeated failure, or resumable work.
Load in this order, stopping when the next safe action is clear:
common/core/runtime-core-policy.md.- The matching
adapters/**file only when client behavior affects the task. profiles/react-typescript/PROFILE.mdonly when repository evidence activates it; otherwise usecommon/skill-applicability-policy.mdand local conventions.- Verified project instructions and only the affected
project/**facts. - The smallest matching
skills/**/SKILL.mdand only references it requires for the active slice.
Do not load every skill, reference, common rule, overlay, README, or generated target for routing. Use common/prompt-intent-routing-rules.md only when workflow weight is unclear. Tool needs come from tool-capabilities-manifest.json; a callable native tool may satisfy them, and provider names or config do not prove availability.
Skill Discovery
Select skills from their name and description; the user need not name one. Full triggers, exclusions, workflow, and validation gates remain in each SKILL.md. Do not insert planning, design, MCP, loop, review, or onboarding skills into a lightweight task unless its scope actually escalates.
Compact Skill Index
- Plan:
goal-plannerdefines outcomes;execution-plan-managerslices work;loop-workflow-plannergoverns bounded iteration. - Design:
design-screenshot-specconverts supplied visual evidence;frontend-design-intelligencegrounds product patterns;frontend-design-directorsets visual direction;frontend-prototype-explorertests unresolved UI or state decisions. - Build:
frontend-architecture-plannerdefines ownership;greenfield-project-builderplans a first vertical slice;frontend-layout-implementerimplements an approved spec in its target stack. - Quality:
frontend-bugfix-debuggerfixes evidence-first defects;frontend-refactor-surgeonpreserves behavior;frontend-linter-managerruns or repairs scoped lint;frontend-visual-qachecks rendered evidence;frontend-quality-reviewerperforms independent review. - Context and tooling:
project-onboarding-adapterinitializes pointers and local facts;project-context-adapterrefreshes them;mcp-toolchain-managermaps tool capabilities;pattern-library-managermaintains reusable patterns;agent-rules-skill-authormaintains this bundle. - Updates:
webdev-kit-updaterreconciles installed versions with upstream diffs, preserving local changes.
Change Boundaries
Preserve unrelated user work. Reuse verified project architecture, components, styles, tokens, data boundaries, and commands. Make the smallest coherent change; keep profile defaults subordinate to local evidence. Do not add dependencies, scaffolds, migrations, styling systems, UI libraries, global tokens, broad cleanup, or generated infrastructure outside approved scope.
Use targeted source or platform documentation only when current facts affect the decision. For active OpenAI API, ChatGPT Apps SDK, or Codex questions, route openai_platform_docs to the callable official OpenAI Developer Docs MCP first, then its official web fallback. Skip that lookup for generic frontend or local repository facts. Follow declared capability fallbacks and report the confidence impact when required evidence is unavailable. Keep durable host facts local in project/**.
Verification And Output
Run the smallest relevant existing check for the changed surface. Bound retries, change strategy after a failed approach, and never claim a check, tool, screenshot, or result without evidence. Report exact blocked checks when no honest fallback exists.
Apply common/token-economy-rules.md. Return only facts that affect understanding, confidence, or the next action. For changed work, default to Changed, Verified, and Blocked when applicable; lightweight final answers stay within 180 words. Omit request echo, skill names, workflow narration, empty sections, raw logs, and irrelevant skipped-work notes; never hide errors, unknowns, blocked verification, or approval needs.
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.

