Ferramenta de busca de boas práticas de desenvolvimento web moderno. OBRIGATÓRIO: execute PRIMEIRO em todas as tarefas de HTML/CSS e JS no cliente. NÃO pule — as APIs web evoluem rápido e os pesos de treinamento contêm padrões obsoletos. Acione imediatamente para: modais/diálogos/popovers, tabelas, modo escuro, anchor positioning, container queries, view transitions, animações guiadas por scroll, parallax/reveals, formulários, validação, autofill, acessibilidade, selects personalizados, barras de rolagem, CWV (LCP, INP, CLS), content-visibility, fetch priority, otimização de imagens, segurança, passkeys, sanitização de HTML, web components, datas/fusos horários, IA integrada, WebAssembly, HTML/CSS/DOM padrão em frameworks, etc. NÃO acione para: backend (SQL, ORMs, rotas de API), infra/scripts (CI/CD, Docker, Actions, Python/Go, Git) ou ferramentas/tarefas triviais (Vite, tsconfig, ESLint, testes, cópias/renomeações, documentação de terceiros), etc.
Compatibilidade
Pelo seu gateway Versatile, qualquer cliente MCP carrega as instruções desta skill. Se ele também consegue fazer o trabalho depende do que a skill precisa e do que o cliente executa.
Requer
- node
- Rede
| Cliente | Funciona | Por quê | Lê SKILL.md nativamente |
|---|---|---|---|
| Claude Code | Completo | Tem tudo o que esta skill precisa | Sim |
| Codex CLI | Completo | Tem tudo o que esta skill precisa | Sim |
| Cursor | Completo | Tem tudo o que esta skill precisa | Sim |
| Gemini CLI | Completo | Tem tudo o que esta skill precisa | Sim |
| VS Code Copilot | Completo | Tem tudo o que esta skill precisa | Sim |
| opencode / oh-my-pi | Completo | Tem tudo o que esta skill precisa | Sim |
| Claude Desktop | Só as instruções | Não executa comandos, Não acessa a web | Sim |
| ChatGPT and other chat-only MCP clients | Só as instruções | Não executa comandos, Não acessa a web | Não |
Como determinamos isso
Nada aqui foi executado ou testado. Cada veredito é derivado dos arquivos da própria skill e de uma tabela fixa de regras, então leia como uma previsão, não uma garantia.
Da skill lemos as ferramentas que o frontmatter permite, as linguagens dos scripts que ela traz, os comandos que cita no código, o uso de rede e os servidores MCP que espera.
De cada cliente usamos três coisas que ele faz na sua máquina sem servidores extras: executar comandos, ler e gravar arquivos e acessar a web. A busca embutida de um app de chat não conta, porque uma skill não consegue acioná-la.
Completo significa que o cliente faz tudo o que a skill precisa. Só as instruções significa que ele carrega e segue o texto, mas não tem uma capacidade que a skill usa. Não significa que a skill traz código e o cliente não consegue executá-lo.
- Alternativas
- 4 skills parecidas unidas a esta
---
name: modern-web-guidance
description: |
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
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).
```sh
npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_11_10-47b4c80e
```
> **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`, `forms`, `accessibility`, `color`, `performance`, `security`) that applies. You can pass multiple IDs separated by commas.
```sh
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 Guidance Compliance
When generating or modifying code, cross-check the implementation against the retrieved guide before concluding:
- **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.
- Do not run `legacy-scan`; it's for detecting legacy patterns to modernize, not this.
### Step 4. Disclose Skill Usage
When you consult `modern-web-guidance` for a task, end the response where you deliver those changes with a `### Modern Web Guidance` section:
- **When retrieved guides shaped your code**: Write **one** bullet (1–2 sentences, ≤75 words) per newly applied `<id>` in first-person voice explaining the non-obvious implementation choices, CSS/API overrides, or fallbacks `<id>` required and the pitfall it prevented, anchored by a short verbatim quote of that specific rule or gotcha (never the guide's intro overview):
`- **\`<id>\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> ("<short verbatim quote of the specific rule or gotcha>").`
- **Never** guess `<id>`s or quotes from memory after context compaction (re-run `search`/`retrieve` if needed), and credit **only** guide-backed changes from the current turn.
- **When searched/listed in this turn but zero guides applied**: Write one first-person sentence naming which topics or guides you checked in `modern-web-guidance` and why none applied (omit if any guide applied).
## 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).
```sh
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` to force 0 findings.
## Using npx / pnpx
- **Runner & Permissions**: Prefer `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 *`.
- **Sandboxes & Network**: Fetching `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.
- **Offline**: If the command hangs due to being offline, retry with `npx --offline …`.
## Guidelines
- Always search **first** to find the most relevant guides. Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.
- These guides use vanilla HTML/CSS/JS; adapt them to your framework without dropping the modern feature:
- **Types**: Spread/cast newly shipped HTML attributes (`{...({ popover: 'hint', interestfor: id, commandfor: id, switch: '' } as any)}`, `[attr.*]`) rather than removing them or merging `@types/react`.
- **SSR & Bundlers**: Guard `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`.
- **DOM, IDs & CSS**: Call `showModal()`/`moveBefore()` via refs on non-VDOM-managed nodes, generate per-instance IDs/`anchor-name`s (`useId()`), and keep `:root` and `@starting-style` top-level/unscoped.
## Interpreting Browser Support & Fallbacks
* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user has specified a custom browser support policy.
* **Custom Policies**: If the user defines explicit browser support requirements, use the guide's compatibility data to determine if a fallback can be ignored (for `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"_.
* **Reactive Policy Discovery**: Suggest documenting a policy in `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.
211 arquivos, 1,9 MB
- SKILL.md9,6 KB
- guides/accessibility/accessibility.md50,5 KB
- guides/accessibility/accessible-error-announcement.md13,3 KB
- guides/accessibility/accessible-generated-content.md2,2 KB
- guides/accessibility/respect-os-text-scale.md7,1 KB
- guides/built-in-ai/language-detection.md3,6 KB
- guides/built-in-ai/language-model.md19 KB
- guides/built-in-ai/prompt-api.md19 KB
- guides/built-in-ai/summarizer.md6,2 KB
- guides/built-in-ai/translator.md7,5 KB
- guides/css/animate-to-intrinsic-sizes.md5,7 KB
- guides/css/atrule-support-conditionals.md5,6 KB
- guides/css/calculate-with-intrinsic-sizes.md10,4 KB
- guides/css/child-state-based-styling.md4,9 KB
- guides/css/content-based-styling.md5,2 KB
- guides/css/css-layout.md21,3 KB
- guides/css/css.md12,3 KB
- guides/css/design-token-reactivity.md5,8 KB
- guides/css/dynamic-sibling-styling.md3,6 KB
- guides/css/fluid-scaling.md3,2 KB
- guides/css/individual-transform-properties.md3,6 KB
- guides/css/overflow-clipping-control.md8,1 KB
- guides/css/reduce-style-repetition.md3,9 KB
- guides/css/responsive-design.md1,8 KB
- guides/css/selector-atrule-combinations.md3,6 KB
- guides/css/size-aware-styling.md2,9 KB
- guides/css/style-parent-with-has.md13,6 KB
- guides/css/usage-aware-component-variations.md5,1 KB
- guides/forms/animated-select-picker.md8,5 KB
- guides/forms/autofill-address-form.md4,9 KB
- guides/forms/autofill-highlight-inputs.md3,5 KB
- guides/forms/autofill-payment-form.md9,7 KB
- guides/forms/autofill-sign-in-form.md10,5 KB
- guides/forms/autofill-sign-up-form.md11,6 KB
- guides/forms/brand-consistent-forms.md8,4 KB
- guides/forms/branded-select-styling.md5,6 KB
- guides/forms/custom-select-picker-layouts.md7,8 KB
- guides/forms/form-fields-automatically-fit-contents.md5,9 KB
- guides/forms/forms.md18,9 KB
- guides/forms/ime-safe-enter-submit.md6,3 KB
- guides/forms/required-field-feedback.md13,9 KB
- guides/forms/rich-media-picker.md10,5 KB
- guides/forms/select-menu-interaction.md12,9 KB
- guides/forms/slider.md6,7 KB
- guides/forms/sms-otp-form.md12,5 KB
- guides/forms/switch.md2,6 KB
- guides/forms/validate-input-after-interaction.md17,2 KB
- guides/html/accessible-web-components.md5,1 KB
- guides/html/custom-elements.md12,2 KB
- guides/html/form-associated-custom-elements.md4,9 KB
- guides/html/html.md20,8 KB
- guides/html/prerendering-custom-elements.md3,6 KB
- guides/html/shadow-dom.md3,8 KB
- guides/html/styling-web-components.md8,7 KB
- guides/html/web-components.md6,6 KB
- guides/js/calculate-event-differentials.md8,3 KB
- guides/js/capture-location-agnostic-data.md9,7 KB
- guides/js/coordinate-global-events.md4 KB
- guides/js/js.md29,7 KB
- guides/js/sort-high-precision-timestamps.md6,6 KB
- guides/js/support-global-calendar-systems.md5,8 KB
- guides/performance/batch-analytics-events.md6,4 KB
- guides/performance/break-up-long-tasks.md3,1 KB
- guides/performance/calculate-total-foreground-time.md2,9 KB
- guides/performance/conditional-async-dependencies.md5,3 KB
- guides/performance/defer-rendering-heavy-content.md6,3 KB
- guides/performance/defer-work-until-scroll-ends.md3,3 KB
- guides/performance/deliver-optimized-decorative-images.md2,8 KB
- guides/performance/deprioritize-background-fetches.md1,8 KB
- guides/performance/detect-initial-visibility-state.md4,6 KB
- guides/performance/efficient-background-processing.md5 KB
- guides/performance/faster-spa-view-transitions.md3,6 KB
- guides/performance/flicker-free-client-side-ab-testing.md8,5 KB
- guides/performance/full-session-analytics.md5,7 KB
- guides/performance/identify-heavy-scripts.md4,2 KB
- guides/performance/identify-inp-causes.md8,7 KB
- guides/performance/improve-next-page-load-performance.md7,2 KB
- guides/performance/interaction-paint-timing.md11,2 KB
- guides/performance/interactions-in-complex-layouts.md3,4 KB
- guides/performance/lazy-load-video-and-audio.md9,6 KB
- guides/performance/optimize-image-priority.md4,5 KB
- guides/performance/optimize-preload-priority.md3,3 KB
- guides/performance/optimize-script-priority.md2,6 KB
- guides/performance/out-of-order-html-streaming.md12,2 KB
- guides/performance/performance.md20,6 KB
- guides/performance/resolution-optimized-pseudo-elements.md2,3 KB
- guides/performance/schedule-tasks-by-priority.md3,8 KB
- guides/privacy/privacy.md11 KB
- guides/pwa/install-web-app.md15 KB
- guides/pwa/migrate-web-app-origin.md3,6 KB
- guides/security/client-side-encryption.md14,8 KB
- guides/security/digital-signatures.md9,9 KB
- guides/security/local-network-access.md12,3 KB
- guides/security/passkey-authentication.md11,5 KB
- guides/security/passkey-conditional-create.md7,9 KB
- guides/security/passkey-management.md17,3 KB
- guides/security/passkey-reauthentication.md6,4 KB
- guides/security/passkey-registration.md10,3 KB
- guides/security/passkeys.md4,9 KB
- guides/security/quick-sign-ins.md17,5 KB
Mais 111 arquivos na origem.
- Licença
- Apache-2.0encontrada em repository
- Listagem
- Baixar o YAML
Gateway na porta 7465 alterar
Fica salvo só neste navegador.
Ainda não tem o gateway? Cole isto no seu terminal e clique em Importar de novo.
git clone https://github.com/versatile-sh/connector-engine && cd connector-engine && make upImportar abre o seu próprio gateway em uma nova aba; esta página nunca se conecta a ele. Como funciona