Skip to content

Instantly share code, notes, and snippets.

@benjamincrozat
Last active January 14, 2026 15:17
Show Gist options
  • Select an option

  • Save benjamincrozat/b93da99561ea939f48caf76c0cc6ea28 to your computer and use it in GitHub Desktop.

Select an option

Save benjamincrozat/b93da99561ea939f48caf76c0cc6ea28 to your computer and use it in GitHub Desktop.
Add this to your AGENTS.md file. What I do instead: my AGENTS.md file routes toward multiple files that take care of a particular topic.

Browser

This file exists to help you use the browser effectively to validate visuals and interactivity.

Non-negotiables

  • Always verify the actual behavior in a real browser (not just “looks right” in code).
  • When reporting results, provide evidence: what page you visited, what you clicked/typed, and what you observed (and any console errors).

Quick workflow (every UI change)

  • Load the relevant page and reproduce the scenario end-to-end.
  • Open DevTools Console and confirm no errors/warnings caused by your change.
  • Verify at least:
    • Mobile + desktop layout (responsive sanity check).
    • Keyboard navigation (Tab / Shift+Tab / Enter / Escape).
    • Focus behavior after actions (e.g. closing a modal returns focus to the trigger).
    • Interactive states: hover, active, focus, disabled, loading (when applicable).

Capturing evidence

  • URL (route/page) and the exact steps to reproduce.
  • Before/after screenshots when visual changes are involved.
  • If something breaks, include the console error text (copy/paste).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment