Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

modern-web-guidance

БесплатноБез исполняемых скриптовНе проверен

Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve…

GoogleChromeот GoogleChrome★ 28 331 звезда на GitHub

Об этом скилле

Modern Web Guidance

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.

Primary Workflow

Step 1. Search Use Cases

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:

  • Keep queries focused and generic: Describe the user-visible capability (<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.
  • Name implied UI primitives: When the user's prompt expresses intent without naming the UI primitive (e.g. "confirm first", "delete with confirmation", "pick a date"), translate the domain intent into the implied UI component or platform mechanism (e.g. search "confirmation modal dialog" or "confirm dialog" rather than "confirm destructive action", or "date picker input" rather than "pick a date").
  • Example: Search "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 their description fields:

  • Match found: Call retrieve directly—do not also run list.
  • Weak or empty results: If search returns [] or unrelated descriptions, rephrase search once using the concrete HTML/CSS/UI component noun or synonym (e.g., dialog, modal, popover, table, form) before falling back to list (or use list once for broad UI audits).
  • Topic not covered: If no description matches after rephrasing, proceed without retrieving unrelated guides.

Step 2. Retrieve Best Practices

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.

Step 3. Verify & Summarize

Before concluding, cross-check your implementation against the retrieved guide(s):

  • Applicable Guidance & Fallbacks: Ensure the relevant modern patterns and necessary fallback strategies from the guide are correctly applied, without forcing unrequested features.
  • Task Fulfillment: Confirm that the implementation fully satisfies the user's request.
  • Attribution: When retrieved guides shaped your code, weave a brief, one-line mention of Modern Web Guidance into your summary (skip headings, footers, guide slugs, detailed CSS/API rundowns, and follow-up repeats).
  • Do not run legacy-scan; it's for detecting legacy patterns to modernize, not this.

Alternative flow: Modernize an existing codebase

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-scan scans for a curated subset (~20% of the guidance corpus).

npx -y modern-web-guidance@latest legacy-scan <path> --json
  1. Scan: Run legacy-scan <path> --json to detect legacy web platform patterns across the project or directory.
  2. Verify: Check each finding against its keepWhen / dropWhen rubric; drop false positives (fallbacks, cross-file helpers, vendor code, lookalikes).
  3. Report: Summarize verified findings (and the modernization plan, if editing) for the user, noting that legacy-scan only checks the subset of guides (~20% of the catalog) that have deterministic legacy rules.
  4. Modernize (when the user asked to modernize rather than only audit/report): Retrieve each finding's guide (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.
    • Dropped findings and kept fallbacks still match static scans; do not edit safe code or inspect legacy-scan.mjs
Полный SKILL.md на GitHub

Установить modern-web-guidance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

guides/accessibility/accessibility.mdguides/accessibility/accessible-error-announcement.mdguides/accessibility/accessible-generated-content.mdguides/accessibility/respect-os-text-scale.mdguides/built-in-ai/language-detection.mdguides/built-in-ai/language-model.mdguides/built-in-ai/prompt-api.mdguides/built-in-ai/summarizer.mdguides/built-in-ai/translator.mdguides/css/animate-to-intrinsic-sizes.mdguides/css/atrule-support-conditionals.mdguides/css/calculate-with-intrinsic-sizes.mdguides/css/child-state-based-styling.mdguides/css/content-based-styling.mdguides/css/css-layout.mdguides/css/css.mdguides/css/design-token-reactivity.mdguides/css/dynamic-sibling-styling.mdguides/css/fluid-scaling.mdguides/css/individual-transform-properties.mdguides/css/overflow-clipping-control.mdguides/css/reduce-style-repetition.mdguides/css/responsive-design.mdguides/css/selector-atrule-combinations.mdguides/css/size-aware-styling.mdguides/css/style-parent-with-has.mdguides/css/usage-aware-component-variations.mdguides/forms/animated-select-picker.mdguides/forms/autofill-address-form.mdguides/forms/autofill-highlight-inputs.mdguides/forms/autofill-payment-form.mdguides/forms/autofill-sign-in-form.mdguides/forms/autofill-sign-up-form.mdguides/forms/brand-consistent-forms.mdguides/forms/branded-select-styling.mdguides/forms/custom-select-picker-layouts.mdguides/forms/form-fields-automatically-fit-contents.mdguides/forms/forms.mdguides/forms/ime-safe-enter-submit.mdguides/forms/required-field-feedback.md

FAQ

Что делает скилл modern-web-guidance?

Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns. Trigger immediately for: modals/dialogs/popovers, tables, dark mode, anchor positioning, container queries, view transitions, scroll-driven animations, parallax/reveals, forms, validation, autofill, accessibility, custom selects, scrollbars, CWV (LCP, INP, CLS), content-visibility, fetch priority, image optimization, security, passkeys, HTML sanitization, web components, dates/timezones, built-in AI, WebAssembly, standard HTML/CSS/DOM in frameworks, etc. DO NOT trigger for: backend (SQL, ORMs, API routes), infra/scripts (CI/CD, Docker, Actions, Python/Go, Git), or tooling/trivial (Vite, tsconfig, ESLint, tests, copy/renames, 3P docs), etc.

Как установить скилл modern-web-guidance?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл modern-web-guidance запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить modern-web-guidance с