modern-web-guidance
Skill1 starsChanged 7 days agoMITView on GitHub
Use when choosing Baseline web APIs, native dialog/popover, container queries, or fixing LCP, INP, and CLS. Not for crawl SEO (/shadow-seo).
44 other projects use a version of this.
Adopted by
Most recently taken up by
- UIhoshi/AgentLogictheir own version, first seen Nov 29, 2026
- benmix/skillstheir own version, first seen Nov 29, 2026
- kenbanks-peng/skillstheir own version, first seen Nov 29, 2026
- fengye404/fengye-skillstheir own version, first seen Nov 29, 2026
- tizee/skillstheir own version, first seen Nov 29, 2026
- raniellimontagna/agent-toolkittheir own version, first seen Nov 29, 2026
Used with
Projects with it also use chrome-extensions, brand-architecture and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
thistleknotSkillchrome-extensions
Build, install and verify a personal Chrome extension that does something on the local machine (write a file, run a script) when its toolbar button is clicked. Covers the Manifest V3 extension + native-messaging host pattern, pinning the extension ID with a "key", registering the host under HKCU (no admin), the one manual "Load unpacked" step and why automation cannot do it, and how to test the real Chrome round trip yourself without clicking the toolbar. Trigger on "chrome extension", "browser button that saves to a file", "native messaging", "clip the page to a file", "load unpacked", "extension shows a red !".
Also in 9 projects that use this
brainbytes-devSkillbrand-architecture
Design brand architecture for multi-product or multi-brand organizations. Use when managing brand portfolios or launching sub-brands.
Also in 3 projects that use this
david33137Skilllogo-design
Logo design with 55 styles, 30 color palettes, 25 industries. Generate logos with Gemini Nano Banana model. Actions: design, create, generate logo.
Also in 3 projects that use this
gowizzardSkillrex
Use the rex CLI to manage Rex sessions, open tabs, arrange panes, run commands, inspect terminal output, and control connected Rex apps.
Also in 3 projects that use this
ncklrsSkillmotion-designer
Advanced motion designer with decades of After Effects and motion graphics experience, specialized in creating engaging video specifications for Remotion. Use when creating video specs, planning motion graphics, designing animations, or when asked to "create a video", "design motion graphics", "plan video content", or "spec out a video". Produces detailed scene-by-scene specifications with timing, audio, sound effects, and animation descriptions.
Also in 3 projects that use this
LLl0k0laDSkillcode-review-and-quality
Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.
Also in 5 projects that use this
Other versions44 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 44
- vercel-labs/agent-browser★ 55ksame name
- GoogleChrome/modern-web-guidance★ 28ksame name
- libnyanpasu/clash-nyanpasu★ 13ksame name
- sanity-io/sanity★ 6.4ksame name
- JetBrains/skills★ 386same name
- OutThisLife/brooklyn-skills★ 218same name
- Ratimon/openquok-monorepo★ 116same name
- jim60105/copilot-prompt★ 22same name
- Alice39s/agent-stash★ 20same name
- narumiruna/skills★ 19same name
34 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- shadow-visual-refinementSkill
- antislop-codeSkill
- antislop-copywritingSkill
- antislop-humanSkill
- antislop-layoutmobileSkill
- antislopSkill
- antislop-uiSkill
- context7Skill
- handoffSkill
- shadow-accessibilitySkill
- shadow-ai-engSkill
- shadow-analyticsSkill
- shadow-apiSkill
- shadow-architectSkill
- shadow-authSkill
- shadow-bootstrapSkill
- shadow-browserSkill
- shadow-cacheSkill
- shadow-compatSkill
- shadow-concurrencySkill
- shadow-dataSkill
- shadow-dbSkill
- shadow-debugSkill
- shadow-designSkill
- shadow-discoverySkill
- shadow-docSkill
- shadow-domainSkill
- shadow-eaSkill
- shadow-emailSkill
- shadow-evalSkill
- shadow-finopsSkill
- shadow-gitSkill
- shadow-grcSkill
- shadow-handoverSkill
- shadow-illustrationSkill
- shadow-integrateSkill
- shadow-maintainSkill
- shadow-mobileSkill
- shadow-modernizeSkill
- shadow-monarchSkill
- shadow-observeSkill
- shadow-opsSkill
- shadow-perfSkill
- shadow-planSkill
- shadow-pmoSkill
- shadow-presalesSkill
- shadow-privacySkill
- shadow-qualitySkill
- shadow-realtimeSkill
- shadow-refactorSkill
- shadow-releaseSkill
- shadow-resilienceSkill
- shadow-searchSkill
- shadow-secSkill
- shadow-seoSkill
- shadow-supplychainSkill
- shadow-testSkill
- shadow-uatSkill
- shadow-videoSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
2
Distinctive
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
- Distinctive: line 8
Use this skill at the start of any HTML, CSS, UI component, or client-side web task so the Shadow Army uses Baseline Widely Available …
- Very specific: line 28
When network access is available, query the verified official CLI (modern-web-guidance@1.0.1, GoogleChrome/modern-web-guidance-src) first:
- Very specific: line 40
Offline / Sandboxed Fallback: If npx is unavailable or offline, try npx --offline ...
- Distinctive: line 46
Prefer native platform primitives before adding npm dependencies:
“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Modern Web Guidance (/modern-web-guidance) — Baseline Web Platform & Frontend Performance
Use this skill at the start of any HTML, CSS, UI component, or client-side web task so the Shadow Army uses Baseline Widely Available native web platform capabilities instead of obsolete polyfills or bloated third-party libraries.
- Owner: Baseline native HTML/CSS platform APIs (
<dialog>, Popover,@container,:has(),:user-valid,oklch()), graceful@supportsfallbacks, Tailwind v4 cursor/craft restoration, Core Web Vitals (LCP/INP/CLS) asset/yielding mechanics, and React/Next.js waterfall & bundle optimization. - Boundaries: Deep WCAG screen-reader/RTL audits (
shadow-accessibility), live Playwright E2E/viewport runs (shadow-browser), SEO CrUX search architecture (shadow-seo), backend SQL/ORMs (shadow-db), and Docker/CI pipelines (shadow-ops).
Reference Guide
Load ONLY the 1–2 playbooks needed for the active frontend platform subtask:
| Module | Topic | Load When |
| 01-baseline-native-html-css-apis-and-fallbacks.md | <dialog> (showModal()), Popover API + Anchor @supports fallback, @container, :has(), :user-valid, oklch(), Tailwind v4 cursor restoration | Building modals, popovers, responsive cards, forms, themes, or replacing legacy UI npm libs |
| 02-core-web-vitals-assets-and-main-thread-yielding.md | LCP (fetchpriority="high", AVIF/WebP), CLS (aspect-ratio, content-visibility: auto), INP (scheduler.yield() chunking), reduced-motion View Transitions | Fixing slow hero loads, layout jumps, sluggish click/filter INP, or scroll animations |
| react-nextjs-performance.md | Eliminating async waterfalls, barrel/bundle splitting, RSC React.cache(), Server Actions & avoiding needless re-renders | Optimizing React or Next.js App Router rendering, bundles, and data fetching |
| evaluations.md | Graded specialist evaluation scenarios (MWG-EVAL-01..06) | Auditing native-first platform choices, Tailwind v4 craft, CWV honesty, and backend non-triggering |
1. Live Official Guide Lookup (GoogleChrome/modern-web-guidance)
When network access is available, query the verified official CLI (modern-web-guidance@1.0.1, GoogleChrome/modern-web-guidance-src) first:
- Windows (PowerShell):
npx.cmd -y modern-web-guidance@1.0.1 search "<query>" npx.cmd -y modern-web-guidance@1.0.1 retrieve "<guide-id>" - macOS / Linux:
npx -y modern-web-guidance@1.0.1 search "<query>" npx -y modern-web-guidance@1.0.1 retrieve "<guide-id>" - Offline / Sandboxed Fallback: If
npxis unavailable or offline, trynpx --offline ...or apply the self-contained Baseline Web Platform Matrix below without inventing unverified guide IDs.
2. Self-Contained Baseline Modern Web Platform Matrix
Prefer native platform primitives before adding npm dependencies:
| Use Case | Modern Native Standard | Guardrail / Fallback Policy |
| Modals & Drawers | Native <dialog> (showModal(), ::backdrop, Escape, inert) | Return keyboard focus to trigger element on close (/shadow-accessibility). |
| Popovers, Menus & Tooltips | Popover API (popover, popovertarget) + CSS Anchor Positioning | Gate Anchor Positioning behind @supports (anchor-name: --a) with clean fallback. |
| Component-Scoped Layout | Container Queries (container-type: inline-size, @container), subgrid, :has() | Prefer @container over viewport-only @media for reusable widgets. |
| Form Validation & UX | :user-valid / :user-invalid, autocomplete, inputmode | Mirror server validation with aria-invalid + aria-describedby + visible <label for>. |
| Theme Tokens & Color Math | CSS Custom Properties (@theme / :root), oklch(), color-mix(), light-dark() | Bind 100% of custom UI to semantic theme tokens — zero ad-hoc hex values. |
| Motion & Scroll | View Transitions API, Scroll-driven animations (animation-timeline) | Mandatory: gate inside @media (prefers-reduced-motion: no-preference) with static fallback. |
| Core Web Vitals (LCP/INP/CLS) | Hero <img> with width/height + fetchpriority="high" (never loading="lazy"); content-visibility: auto; scheduler.yield() chunking | Never claim CWV pass numbers without real measurement (antislop-ui R-36 / R-40). |
| Interactive Affordances (Tailwind v4) | Restore cursor: pointer on enabled controls & cursor: not-allowed on :disabled | Always ship all 5 states (default, hover, active, :focus-visible 3:1, disabled). |
3. Browser Support & Fallback Policy
- Default: Features marked Baseline Widely Available ship cleanly without polyfills.
- Newly / Limited Availability: Feature-detect with
@supportsor runtime checks and degrade gracefully — never silently break Safari/Firefox users or add bloated polyfills without checking bundle impact.
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
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.

