From mrp-nextjs
Utilize built-in browser APIs (like Popover API, View Transitions etc) instead of building features manually via JavaScript
How this skill is triggered — by the user, by Claude, or both
Slash command
/mrp-nextjs:modern-browser-apisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
We prefer native, modern browser APIs — _standardized, widely supported, and high-leverage_ — to heavy external libraries or custom fallbacks. Use them to simplify logic, improve performance, and reduce bundle size where appropriate.
We prefer native, modern browser APIs — standardized, widely supported, and high-leverage — to heavy external libraries or custom fallbacks. Use them to simplify logic, improve performance, and reduce bundle size where appropriate.
These APIs are stable, broadly implemented, and useful in everyday applications.
if ('clipboard' in navigator) { … }
For APIs not universally supported (e.g., WebGPU), provide a graceful fallback (WebGL or degraded UI).
Always combine user gesture requirements (e.g., for sharing or clipboard) with permission checks.
ASYNC FIRST: Prefer promise/async APIs to avoid blocking UI.
PERMISSIONS UI: Convey clearly to users when the browser will ask for access (files, clipboard, sharing).
PERFORMANCE MINDFUL: Observe and prioritize main thread work using PerformanceObserver or Scheduling APIs.
SECURE CONTEXTS: Use HTTPS; many APIs require secure contexts to function.
Write code for browsers as platforms, not just JS engines.
Prefer native semantics (e.g., lazy loading via IntersectionObserver vs manual scroll handlers).
Reduce external dependencies where modern browser APIs suffice.
Document API usage and fallback patterns for maintenance and cross-browser support.
npx claudepluginhub mrpitch/mrp-claude-plugin --plugin mrp-nextjsRetrieves best practice guides for modern web development, covering HTML/CSS, client-side JavaScript, performance metrics (LCP, INP), and new web APIs like View Transitions and container queries.
Implements and debugs browser Prompt API integrations in JavaScript/TypeScript web apps. For LanguageModel availability, session creation, prompt/promptStreaming, structured output, download progress, or iframe permission-policy.
Enforces opinionated conventions for modern JavaScript and Node.js: ES2023+ features, async/await patterns, ESM/CJS modules, Web Workers, browser APIs, performance optimization, and Node patterns.