agentleFS
HayoDevHayoDev/safari-devtools-mcp/skills/safari-specific-debugging/SKILL.md

safari-specific-debugging

Skill2 starsChanged 8 months agoMITView on GitHub

Use this skill when something works in other browsers but breaks in Safari, or when debugging WebKit-specific behavior. Start by running check_webkit_compatibility — it checks every CSS property on the page against the live Safari session via CSS.supports() and reports what is actually broken (unsupported properties, missing -webkit- prefixes): For specific elements, inspect computed styles directly: Common Safari CSS gotchas: Run diagnostics with evaluate_script: Known Safari JS quirks: - requestIdleCallback: Not available — use setTimeout fallback. - OffscreenCanvas: Partial support…

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when something works in other browsers but breaks in Safari, or when debugging WebKit-specific behavior.

    line 3
  2. Very specific:

    Start by running check_webkit_compatibility — it checks every CSS property on the page against the live Safari session via CSS.supports() …

    line 10
  3. Very specific:

    Run diagnostics with evaluate_script:

    line 33
  4. Distinctive:

    Check console for errors:

    line 98
  5. Distinctive:

    Check network for failures:

    line 104
  6. Distinctive:

    Test specific feature support:

    line 117
  7. Distinctive:

    Check CSS compatibility across the page:

    line 123

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Safari-Specific Debugging

Use this skill when something works in other browsers but breaks in Safari, or when debugging WebKit-specific behavior.

Common Safari issues and how to debug them

CSS issues

Start by running check_webkit_compatibility — it checks every CSS property on the page against the live Safari session via CSS.supports() and reports what is actually broken (unsupported properties, missing -webkit- prefixes):

check_webkit_compatibility

For specific elements, inspect computed styles directly:

get_computed_style uid="<element-uid>" properties=["display", "gap", "aspect-ratio", "container-type", "backdrop-filter"]

Common Safari CSS gotchas:

  • -webkit-backdrop-filter: Still requires prefix in Safari <18.
  • 100vh on iOS Safari includes the address bar — use 100dvh instead.
  • position: sticky inside overflow: auto containers often breaks.
  • :has() selector: Safari was first to ship it, but edge cases may differ.

JavaScript issues

Run diagnostics with evaluate_script:

evaluate_script function="() => {
  return {
    userAgent: navigator.userAgent,
    webkitVersion: navigator.userAgent.match(/AppleWebKit\/(\d+)/)?.[1],
    features: {
      structuredClone: typeof structuredClone !== 'undefined',
      requestIdleCallback: typeof requestIdleCallback !== 'undefined',
      offscreenCanvas: typeof OffscreenCanvas !== 'undefined',
      webComponents: typeof customElements !== 'undefined',
      resizeObserver: typeof ResizeObserver !== 'undefined',
      intersectionObserver: typeof IntersectionObserver !== 'undefined'
    }
  };
}"

Known Safari JS quirks:

  • requestIdleCallback: Not available — use setTimeout fallback.
  • OffscreenCanvas: Partial support — 2d context only, no WebGL.
  • Date parsing: new Date('2024-01-15') works, but new Date('01-15-2024') may fail. Always use ISO 8601.
  • fetch with keepalive: Stricter size limits than Chrome.
  • Web Locks API: Not supported in older Safari versions.
  • <input type="date">: Renders differently. Check with take_snapshot.

Network / CORS issues

Check failing requests:

list_network_requests resourceTypes=["fetch", "xhr"]

Then get details for any request with a 0 or 4xx/5xx status:

get_network_request reqid=<id>

Known Safari network quirks:

  • Third-party cookies blocked by default (ITP). Check with get_cookies.
  • CORS preflight caching is stricter — Access-Control-Max-Age may be ignored for non-standard headers.
  • Service Worker cache can be more aggressive. Test with evaluate_script to check registration: () => navigator.serviceWorker.getRegistration().

Form / input issues

Safari renders <select>, <input type="date">, <input type="time"> with native OS controls that differ from Chrome. Use take_snapshot to see what the a11y tree reports, then take_screenshot for visual comparison.

Debugging workflow for cross-browser issues

  1. Reproduce the issue:

    navigate_page url="<problem-url>"
  2. Check console for errors:

    list_console_messages types=["error", "warn"]
  3. Check network for failures:

    list_network_requests
  4. Take a snapshot and screenshot for comparison:

    take_snapshot
    take_screenshot
  5. Test specific feature support:

    evaluate_script function="() => { /* feature detection code */ }"
  6. Check CSS compatibility across the page:

    check_webkit_compatibility
  7. Inspect a specific element's styles:
    get_computed_style uid="<element-uid>"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.