Generate a Chrome extension MV3 AGENTS.md
Browser extensions have awkward edges: popup UI, background logic, content scripts, and manifest permissions all have different failure modes.
This preset gives agents a tighter contract around extension surfaces, packaging, and permission-sensitive changes.
Use it when you need agent guidance that respects MV3 constraints instead of treating the repo like a normal web app.
Common commands
- Install:
npm install - Dev:
npm run dev - Lint:
npm run lint - Typecheck:
npm run typecheck - Build:
npm run build:extension - Test:
npm run test
Common forbidden actions
- Do not add remote code loading or eval-like behavior.
- Do not request host permissions broader than the feature needs.
- Do not hide permission changes in unrelated commits.
Why this preset needs tailored guidance
Manifest V3 repos need explicit permission and surface boundaries so agents do not hide risky extension changes inside ordinary UI work.