/modern-web-guidance:modern-web-guidancefrom modern-web-guidance
Searches modern web best practices for HTML/CSS and client-side JS tasks. Use first for UI patterns like modals, tables, dark mode, forms, accessibility, and performance.
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.
Read when SKILL.md points to them.
Search and retrieve standardized modern web best practices at the start of implementing or updating any web UI, CSS layout/animation, or client-side JS logic (dates/timezones, sanitization, performance, accessibility, UX fixes) before writing ad-hoc solutions or adding dependencies.
Run modern-web-guidance directly with npx using a 2–5 word action-oriented English 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."confirmation modal dialog" or "confirm dialog" rather than "confirm destructive action", or "date picker input" rather than "pick a date")."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_11_26-0b45137d
Note: Returns
[{ "id", "description" }, ...]. Judge results by theirdescriptionfields:
- Match found: Call
retrievedirectly—do not also runlist.- Weak or empty results: If
searchreturns[]or unrelated descriptions, rephrasesearchonce using the concrete HTML/CSS/UI component noun or synonym (e.g.,dialog,modal,popover,table,form) before falling back tolist(or uselistonce for broad UI audits).- Topic not covered: If no
descriptionmatches after rephrasing, proceed without 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, js, forms, accessibility, color, performance, security) that applies. You can pass multiple IDs separated by commas.
npx -y modern-web-guidance@latest retrieve "<id>"
If retrieve saves large output (> 9.5 KB) to a temporary file to prevent truncation, read that file path in full using your file-reading tool (reading remaining line ranges if needed)—do not use cat or head.
Before concluding, cross-check your implementation against the retrieved guide(s):
legacy-scan; it's for detecting legacy patterns to modernize, not this.Only when asked for a broad, open-ended codebase modernization or legacy-pattern scan where no specific target feature or component is named (do not run legacy-scan when asked to add, update, fix, or audit a specific feature or component), run the 4-step modernization flow:
Note:
legacy-scanscans for a curated subset (~20% of the guidance corpus).
npx -y modern-web-guidance@latest legacy-scan <path> --json
legacy-scan <path> --json to detect legacy web platform patterns across the project or directory.keepWhen / dropWhen rubric; drop false positives (fallbacks, cross-file helpers, vendor code, lookalikes).legacy-scan only checks the subset of guides (~20% of the catalog) that have deterministic legacy rules.retrieve "<guide-id>" via Step 2), apply the replacement (keeping existing libraries as fallbacks where the guide requires one), and re-run legacy-scan <path> on the modified files to confirm resolution.
legacy-scan.mjs to force 0 findings.pnpx over npx if pnpm is available (pnpx does not use -y); on Windows, use npx.cmd. When requesting tool permissions, allowlist npx -y modern-web-guidance@latest * (or pnpx modern-web-guidance@latest *) specifically, never bare npx * or pnpx *.modern-web-guidance requires outbound network access. In sandboxed or approval-gated environments (e.g., Codex, Claude Code), proactively request approval/allowlisting with network access BEFORE the first execution to avoid timeouts, and set NPM_CONFIG_CACHE=/tmp/npm-cache if ~/.npm is read-only.npx --offline ….{...({ 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.Baseline YYYY targets, a feature satisfies the target if its "Baseline since" date is <= YYYY). Examples: "Do not implement feature fallbacks", "Safari 17.4+", "Never implement polyfills; use a lightweight custom fallback or redesign", or "Allow Newly Available features if feature-detected with graceful degradation".AGENTS.md or CLAUDE.md (e.g., **Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and no external dependencies) if the developer targets a restricted runtime (Electron/Tauri), excludes specific browsers, hesitates over polyfill size/complexity, or asks if a feature is safe without fallbacks.guides/accessibility/accessibility.md (opens in a new tab)guides/accessibility/accessible-error-announcement.md (opens in a new tab)guides/accessibility/accessible-generated-content.md (opens in a new tab)guides/accessibility/respect-os-text-scale.md (opens in a new tab)guides/built-in-ai/language-detection.md (opens in a new tab)guides/built-in-ai/language-model.md (opens in a new tab)guides/built-in-ai/prompt-api.md (opens in a new tab)guides/built-in-ai/summarizer.md (opens in a new tab)guides/built-in-ai/translator.md (opens in a new tab)guides/css/animate-to-intrinsic-sizes.md (opens in a new tab)guides/css/atrule-support-conditionals.md (opens in a new tab)guides/css/calculate-with-intrinsic-sizes.md (opens in a new tab)guides/css/child-state-based-styling.md (opens in a new tab)guides/css/content-based-styling.md (opens in a new tab)guides/css/css-layout.md (opens in a new tab)guides/css/css.md (opens in a new tab)guides/css/design-token-reactivity.md (opens in a new tab)guides/css/dynamic-sibling-styling.md (opens in a new tab)guides/css/fluid-scaling.md (opens in a new tab)guides/css/individual-transform-properties.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
2 plugins in one repository ship this exact skill · first indexed Dec 1, 2026
npx claudepluginhub googlechrome/modern-web-guidance --plugin modern-web-guidanceOther plugins' skills for the same job