Keep your coding agent up to date with the latest web best practices
Release v0.0.7
Paul Irish2244e4e724f9
diff --git a/.gitignore b/.gitignoreindex abae832..1b67af9 100644--- a/.gitignore+++ b/.gitignore@@ -1,5 +1,3 @@-# Force tracking of node_modules when publishing releases from dist envelope-!node_modules/+# Exclude node_modules from publishing as we move to npx -y style+node_modules/-# Specifically exclude the node_modules in the modern-web-use-cases CLI-skills-cli/modern-web-use-cases/cli/node_modules/diff --git a/README.md b/README.mdindex 9064968..d797f49 100644--- a/README.md+++ b/README.md@@ -5,14 +5,17 @@ This curated collection of skills, tools, and AI-ready documentation injects Chr#### Skill Coverage in `v0.0.7`<details>-<summary><strong>17 web features with implementation guidance from Chrome's experts</strong>: :user-valid and :user-invalid, <details>, <link rel="preload">, AbortController and AbortSignal, color-scheme, Fetch, Fetch priority, fetchLater, hidden="until-found", Mutually exclusive <details> elements, prefers-color-scheme media query, prefers-contrast media query, Registered custom properties, Scroll-driven animations, scrollbar-color, scrollbar-width, Speculation rules</summary>+<summary><strong>24 web features with implementation guidance from Chrome's experts</strong>: :autofill, :user-valid and :user-invalid, <details>, <link rel="preload">, AbortController and AbortSignal, color-scheme, content-visibility, Email, telephone, and URL <input> types, enterkeyhint, Fetch, Fetch priority, fetchLater, field-sizing, hidden="until-found", inputmode, Long animation frames, Mutually exclusive <details> elements, prefers-color-scheme media query, prefers-contrast media query, Registered custom properties, Scroll-driven animations, scrollbar-color, scrollbar-width, Speculation rules</summary>+- **[:autofill](https://webstatus.dev/features/autofill)**+ - **autofill-address-form**: Build an address form with correct autocomplete attributes and autofill support.+ - **autofill-highlight-inputs**: Use CSS to highlight form fields that have been autofilled by the browser and not edited by the user.- **[:user-valid and :user-invalid](https://webstatus.dev/features/user-pseudos)**- **accessible-error-announcement**: Synchronize programmatic accessibility states (like aria-invalid) with the visual :user-invalid state to ensure screen reader users receive error feedback only after interaction, mirroring the visual experience.- **required-field-feedback**: Provide error message for required form fields that were skipped or left empty *only* after user interaction, to avoid preemptive errors and ensure feedback is timely and contextually relevant to the user's flow.- **select-menu-interaction**: Validate that a non-default option has been chosen in a select menu only after the user has interacted with the control.- - **style-parent-with-has**: Style parent elements of a form field (e.g. labels or fieldsets) when the field is invalid.- **validate-input-after-interaction**: Show form field validation feedback (e.g. password complexity or email format requirements) only after the user has finished their initial interaction, avoiding premature errors on page load or while the user is typing.+ - **style-parent-with-has**: Style parent elements of a form field (e.g. labels or fieldsets) when the field is invalid.- **[<details>](https://webstatus.dev/features/details), [Mutually exclusive <details> elements](https://webstatus.dev/features/details-name), [hidden="until-found"](https://webstatus.dev/features/hidden-until-found)**- **search-hidden-content**: Hide content from view using patterns such as accordions, tabs, and "Read more" sections, while ensuring the hidden text reveals itself during native "Find in page" searches, allows search engine indexing, supports URL fragment deep links, and maintains ARIA accessibility.- **[AbortController and AbortSignal](https://webstatus.dev/features/aborting), [fetchLater](https://webstatus.dev/features/fetchlater)**@@ -20,6 +23,13 @@ This curated collection of skills, tools, and AI-ready documentation injects Chr- **full-session-analytics**: Reliably track analytics, errors, and telemetry data across the user's entire page visit, and defer sending of the data until the user leaves the page.- **[color-scheme](https://webstatus.dev/features/color-scheme), [prefers-color-scheme media query](https://webstatus.dev/features/prefers-color-scheme), [scrollbar-color](https://webstatus.dev/features/scrollbar-color)**- **adapt-scrollbar-to-light-dark-preferences**: Ensure the scrollbar visually matches the user's operating system light/dark mode preference+- **[content-visibility](https://webstatus.dev/features/content-visibility), [hidden="until-found"](https://webstatus.dev/features/hidden-until-found)**+ - **defer-rendering-heavy-content**: Reduce rendering times in content-heavy web pages (e.g. pages with long feeds, lots of articles, or complex dashboards), by deferring rendering for any content that is not immediately visible to the user.+- **[Email, telephone, and URL <input> types](https://webstatus.dev/features/input-email-tel-url), [inputmode](https://webstatus.dev/features/inputmode)**+ - **autofill-sign-in-form**: Build a sign-in form with correct autocomplete values and autofill support.+ - **autofill-sign-up-form**: Build a sign-up form with correct autocomplete values and autofill support.+- **[enterkeyhint](https://webstatus.dev/features/enterkeyhint), [Email, telephone, and URL <input> types](https://webstatus.dev/features/input-email-tel-url), [inputmode](https://webstatus.dev/features/inputmode)**+ - **autofill-payment-form**: Build a payment form that collects card details with correct autocomplete values and autofill support.- **[Fetch](https://webstatus.dev/features/fetch), [Fetch priority](https://webstatus.dev/features/fetch-priority)**- **deprioritize-background-fetches**: Deprioritize background data fetches made with the Fetch API to prevent network contention with user-initiated requests.- **[Fetch priority](https://webstatus.dev/features/fetch-priority)**@@ -27,6 +37,11 @@ This curated collection of skills, tools, and AI-ready documentation injects Chr- **optimize-script-priority**: Optimize the loading priority of scripts by boosting critical asynchronous scripts and deprioritizing non-essential or late-body scripts to improve sequencing and reduce delays.- **[Fetch priority](https://webstatus.dev/features/fetch-priority), [<link rel="preload">](https://webstatus.dev/features/link-rel-preload)**- **optimize-preload-priority**: Optimize the relative priority of preloaded content to reduce critical resource load delays.+- **[field-sizing](https://webstatus.dev/features/field-sizing)**+ - **form-fields-automatically-fit-contents**: Allow form fields to grow and shrink to fit the user input, e.g. as the user types or selects a different option. Apply maximum and minimum size limits to create dynamic and responsive form fields that conform with the page design.+- **[Long animation frames](https://webstatus.dev/features/long-animation-frames)**+ - **identify-heavy-scripts**: Identify the scripts most responsible for long animation frames+ - **identify-inp-causes**: Identify slow running JavaScript that is impacting INP metric- **[prefers-contrast media query](https://webstatus.dev/features/prefers-contrast), [scrollbar-color](https://webstatus.dev/features/scrollbar-color)**- **adapt-scrollbar-to-contrast-preferences**: Enhance scrollbar visibility for users who prefer high-contrast interfaces- **[Registered custom properties](https://webstatus.dev/features/registered-custom-properties), [Scroll-driven animations](https://webstatus.dev/features/scroll-driven-animations), [scrollbar-color](https://webstatus.dev/features/scrollbar-color)**@@ -62,16 +77,15 @@ gemini extensions install https://github.com/GoogleChrome/skills-alpha --auto-up### 🌐 VSCode Extension-Compatible with Antigravity, Cursor, etc.-*Note: We'll publish to a markplace soon; In the meantime, install the slow way:*-*Note: This is a local extension and will not be automatically updated.*+*Note: We'll publish to a markplace soon; In the meantime, install the slow way (which won't auto-update):** Clone this repo* In VSCode, open the Command Palette (`Cmd+Shift+P` or `Ctrl+Shift+P`)* Select "Extensions: Install from Location..."* Navigate to the `skills-alpha` directory and select it.+Compatibility with VSCode forks: unknown.---diff --git a/package.json b/package.jsonindex fc59a7a..02f8c3c 100644--- a/package.json+++ b/package.json@@ -1,11 +1,13 @@{"name": "skills-alpha","displayName": "Chrome Web Development Skills",+ "private": true,"description": "Curated collection of agent skills for modern web development.","version": "0.0.7","publisher": "GoogleChrome","engines": {- "vscode": "^1.90.0"+ "vscode": "^1.90.0",+ "node": ">=20.0.0"},"categories": ["AI",@@ -17,5 +19,12 @@"path": "./skills/modern-web-use-cases/SKILL.md"}]+ },+ "bin": {+ "modern-web": "./skills/modern-web-use-cases/cli/serving/bin/modern-web.mjs"+ },+ "dependencies": {+ "@huggingface/transformers": "^3.8.1",+ "@lancedb/lancedb": "^0.26.2"}}