/modern-web-guidance:modern-web-guidancefrom modern-web-guidance
Searches modern web best practices for HTML/CSS and client-side JS tasks. Use at the start of any UI layout, animation, performance, or web API implementation to find standardized patterns.
Ships in modern-web-guidance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A skill to search for specific web development use cases and retrieve their corresponding best practice guides.
Must use this skill:
Run modern-web-guidance directly with npx using a 2–5 word action-oriented query for a single web platform capability or UI pattern:
<verb> + <UI/platform object>, optionally paired with the target HTML/CSS/JS feature name if known). Omit framework/library names (React, Vue, Tailwind, etc.) and app/domain nouns (product, route, or component/file names). Split multi-feature tasks into separate search calls."light dismiss dialog" or "responsive data table", not "dialog" (too terse), "responsive table dark mode" (compound — split into two searches), or "close React settings modal on outside click" (framework/app noise).npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_10_16-6654652b
Example Output:
[
{
"id": "optimize-image-priority",
"description": "Optimize the loading priority of Largest Contentful Paint (LCP) candidate images.",
"category": "performance",
"featuresUsed": [ "Fetch priority" ],
"tokenCount": 985,
"similarity": 0.7289
},
{
"id": "defer-rendering-heavy-content",
"description": "Reduce rendering times in content-heavy web pages by deferring rendering for offscreen content.",
"category": "performance",
"featuresUsed": [ "content-visibility", "hidden=\"until-found\"" ],
"tokenCount": 1250,
"similarity": 0.6961
}
]
Note: Judge results by their
descriptionfields (not rawsimilarityscores):
- Match found: Call
retrievedirectly—do not also runlist.- No match on a web UI/CSS/DOM behavior (or broad UI audit): If
searchreturns[]or unrelated descriptions because your phrasing differed from the catalog (or your task spans multiple categories), runnpx -y modern-web-guidance@latest listonce to check if the pattern is covered under more general terminology.- Topic not covered: If no guide
descriptiondirectly matches your task, proceed with your implementation without retry loops or retrieving unrelated guides.
Once you have relevant id(s) from the search results, call retrieve to get the full guide(s)—including both specific use-case guides that match your task and any broader discipline guide (e.g., html, css, forms, accessibility, color, performance, security) that applies. You can pass multiple IDs separated by commas.
npx -y modern-web-guidance@latest retrieve "<id>"
If the output is truncated, you must repeat the command but redirect to a file and read that file.
Example Output:
The markdown content of the guide describing implementation steps...
When generating or modifying code, cross-check the implementation against the retrieved guide before concluding:
When you consult modern-web-guidance for a task, end the response where you deliver those changes with a ### Modern Web Guidance section:
<id> in first-person voice explaining the non-obvious implementation choices, CSS/API overrides, or fallbacks <id> required and the pitfall it prevented, anchored by a short verbatim quote of that specific rule or gotcha (never the guide's intro overview):
- **\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> ("").`
<id>s or quotes from memory after context compaction (re-run search/retrieve if needed), and credit only guide-backed changes from the current turn.modern-web-guidance and why none applied (omit if any guide applied).pnpx over npx if pnpm is available (note: pnpx does not use the -y flag).npx -y modern-web-guidance@latest * specifically (or pnpx modern-web-guidance@latest *), never bare npx * or pnpx *.npx may fail. Use npx.cmd ... instead.modern-web-guidance requires outbound network access. If running in a sandboxed, permission-gated, or approval-based environment (e.g., Codex, Claude Code), proactively request approval/allowlisting for the command with network access BEFORE executing it the first time, avoiding sandbox network timeouts.~/.npm is read-only or restricted, set NPM_CONFIG_CACHE=/tmp/npm-cache.npx --offline ….--skill-version flag is used to determine if this SKILL.md is out of date. If it is, a warning message is logged to stderr.{...({ popover: 'hint', interestfor: id, commandfor: id, switch: '' } as any)}, [attr.*]) rather than removing them or merging @types/react.window/HTMLElement in SSR and load polyfills via bare import('<pkg>') in client effects (or set Vite build.target: 'esnext' for top-level await)—never copy files from node_modules.showModal()/moveBefore() via refs on non-VDOM-managed nodes, generate per-instance IDs/anchor-names (useId()), and keep :root and @starting-style top-level/unscoped.Default Behavior: All guides assume Baseline Widely available features are safe to use without fallbacks. For features that are not Baseline widely available, you MUST follow the fallback recommendations in the guide, unless the user has specified a custom browser support policy.
Custom Policies: If the user has already defined explicit browser support requirements, use the browser compatibility data in the guide to determine if a fallback can be safely ignored.
Reactive Policy Discovery: Watch for environmental cues to suggest documenting a policy in CLAUDE.md or AGENTS.md. Suggest this if the developer:
No defined policy format. This is an example: **Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and does not require external dependencies.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub pleaseai/claude-code-plugins --plugin modern-web-guidanceOther plugins' skills for the same job