agentleFS
RidhuanDEVRidhuanDEV/claude-skills/modern-web-guidance/SKILL.md

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

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.
  • thistleknotSkill

    chrome-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-devSkill

    brand-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

  • david33137Skill

    logo-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

  • gowizzardSkill

    rex

    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

  • ncklrsSkill

    motion-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

  • LLl0k0laDSkill

    code-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

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
  1. Distinctive:

    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 …

    line 8
  2. Very specific:

    When network access is available, query the verified official CLI (modern-web-guidance@1.0.1, GoogleChrome/modern-web-guidance-src) first:

    line 28
  3. Very specific:

    Offline / Sandboxed Fallback: If npx is unavailable or offline, try npx --offline ...

    line 40
  4. Distinctive:

    Prefer native platform primitives before adding npm dependencies:

    line 46

“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.

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

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 @supports fallbacks, 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:

ModuleTopicLoad 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 restorationBuilding modals, popovers, responsive cards, forms, themes, or replacing legacy UI npm libs
02-core-web-vitals-assets-and-main-thread-yielding.mdLCP (fetchpriority="high", AVIF/WebP), CLS (aspect-ratio, content-visibility: auto), INP (scheduler.yield() chunking), reduced-motion View TransitionsFixing slow hero loads, layout jumps, sluggish click/filter INP, or scroll animations
react-nextjs-performance.mdEliminating async waterfalls, barrel/bundle splitting, RSC React.cache(), Server Actions & avoiding needless re-rendersOptimizing React or Next.js App Router rendering, bundles, and data fetching
evaluations.mdGraded 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 npx is unavailable or offline, try npx --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 CaseModern Native StandardGuardrail / Fallback Policy
Modals & DrawersNative <dialog> (showModal(), ::backdrop, Escape, inert)Return keyboard focus to trigger element on close (/shadow-accessibility).
Popovers, Menus & TooltipsPopover API (popover, popovertarget) + CSS Anchor PositioningGate Anchor Positioning behind @supports (anchor-name: --a) with clean fallback.
Component-Scoped LayoutContainer 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, inputmodeMirror server validation with aria-invalid + aria-describedby + visible <label for>.
Theme Tokens & Color MathCSS Custom Properties (@theme / :root), oklch(), color-mix(), light-dark()Bind 100% of custom UI to semantic theme tokens — zero ad-hoc hex values.
Motion & ScrollView 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() chunkingNever 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 :disabledAlways 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 @supports or runtime checks and degrade gracefully — never silently break Safari/Firefox users or add bloated polyfills without checking bundle impact.

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.