跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 modern-web-guidance

Modern Web Guidance

现代网络开发最佳做法搜索工具. 任务:对所有HTML/CSS和客户端JS任务执行第一. 不要跳过——网络API迅速演化,训练权重包含过时的模式.

76293 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

现代网络开发最佳做法搜索工具. 任务:对所有HTML/CSS和客户端JS任务执行第一. 不要跳过——网络API迅速演化,训练权重包含过时的模式.

何时用

必须使用此技能 :

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Modern Web Guidance、When to use、Usage Instructions、Step 1. Search Use Cases、Step 2. Retrieve Best Practices、Step 3. Verify Guidance Compliance。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 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.

Modern Web GuidanceWhen to useUsage InstructionsStep 1. Search Use CasesStep 2. Retrieve Best PracticesStep 3. Verify Guidance ComplianceUsing npx / pnpxGuidelinesInterpreting Browser Support & Fallbacks

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
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.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「modern-web-guidance」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-cd7c2a80b2de9297-%E7%8E%B0%E4%BB%A3%E7%BD%91%E7%BB%9C%E6%8C%87%E5%AF%BC.html
请存为 .cursor/skills/modern-web-guidance/SKILL.md 或 .claude/skills/modern-web-guidance/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/googlechrome/modern-web-guidance' --list

npx skills add 'https://github.com/googlechrome/modern-web-guidance' --skill 'modern-web-guidance'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- 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: - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`. - Scroll/Motion: View Transitions, Scroll-driven animations, scroll parallax/reveals. - Performance: CWV (LCP, INP), content-visibility, Fetch Priority, image optimization. - System/APIs: Local filesystem access, WebUSB, WebSockets sync, WebAssembly widgets. - Frameworks: Adapting layout/styles in React, Vue, Angular. - General Frontend: Forms, autofill, advanced inputs, custom scrollbars, modern component states, etc. DO NOT trigger for: - Backend: Database SQL, ORMs, Express API routes. - Pipelines: CI/CD deployment, Docker, Actions. - Generic: Local scripts (Python/Go tools), ESLint, Git. --- # Modern Web Guidance A skill to search for specific web development use cases and retrieve their corresponding best practice guides. ## When to use Must use this skill: - At the **start** of implementing any web feature. - Before creating a new component, to check if a standardized pattern already exists. - To avoid implementing ad-hoc solutions or loading large dependencies unnecessarily. ## Usage Instructions ### Step 1. Search Use Cases Search with an action-oriented query summarizing what you want to achieve using the `search` command. Run `modern-web-guidance` directly with `npx`. ```sh npx -y modern-web-guidance@latest search "" --skill-version 2026_09_04-7de96777 ``` **Example Output**: ```json [ { "id": "optimize-image-priority", "description": "Optimize the loading priority of Largest Contentful Paint (LCP) candidate images.", "category": "performance", "featuresUsed": [ "Fetch priority" ], "tokenCount": 985, "similarity": 0.7289 }, { "id": "defer-rendering-heavy-content", "description": "Reduce rendering times in content-heavy web pages by deferring rendering for offscreen content.", "category": "performance", "featuresUsed": [ "content-visibility", "hidden=\"until-found\"" ], "tokenCount": 1250, "similarity": 0.6961 } ] ``` > **Note**: If search results are vague, return no matches, or show low similarity scores, run the `list` command to browse all guides: > ```sh > npx -y modern-web-guidance@latest list > ``` --- ### Step 2. Retrieve Best Practices Once you have a relevant `id` from the search results, call this script using the `retrieve` command to get the full guide. You can pass multiple IDs separated by commas. ```sh npx -y modern-web-guidance@latest retrieve "" ``` If the output is truncated, you must repeat the command but redirect to a file and read that file. **Example Output**: `The markdown content of the guide describing implementation steps...` --- ### 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. ## Using npx / pnpx - Prefer `pnpx` over `npx` if `pnpm` is available (note: `pnpx` does not use the `-y` flag). - When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` specifically (or `pnpx modern-web-guidance@latest *`), never bare `npx *` or `pnpx *`. - IMPORTANT: on Windows, using `npx` may fail. Use `npx.cmd ...` instead. - Fetching and running `modern-web-guidance` requires outbound network access. If running in a sandboxed, permission-gated, or approval-based environment (e.g., Codex, Claude Code), **proactively request approval/allowlisting for the command with network access BEFORE executing it the first time**, avoiding sandbox network timeouts. - In sandboxed environments where `~/.npm` is read-only or restricted, set `NPM_CONFIG_CACHE=/tmp/npm-cache`. - If the command hangs due to being offline, try running again in offline mode: `npx --offline …`. - The `--skill-version` flag is used to determine if this SKILL.md is out of date. If it is, a warning message is logged to stderr. ## Guidelines - Always search **first** to find the most relevant guides. - These guides are usually framework-agnostic; adapt them correctly to your setup. - Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project. ## 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 has already defined explicit browser support requirements, use the browser compatibility data in the guide to determine if a fallback can be safely ignored. - For Baseline YYYY targets, a feature satisfies this target if its "Baseline since" date is <= YYYY. - **Policy Examples**: - _"Do not implement feature fallbacks."_ (for exploratory prototypes of the cutting-edge web) - _"Safari 17.4+"_ (for internal tools targeting macOS or Tauri-based desktop apps) - _"Never recommend or implement polyfills; if a Baseline Newly Available feature is required for core functionality, provide a lightweight custom fallback or redesign the approach."_ (to minimize bundle size and avoid technical debt) - _"Assume a modern execution environment where Baseline Newly Available features can be used natively, provided they are strictly feature-detected and degrade gracefully."_ (for progressive enhancement strategies) * **Reactive Policy Discovery**: Watch for environmental cues to suggest documenting a policy in CLAUDE.md or AGENTS.md. Suggest this if the developer: - Mentions building for a restricted runtime (e.g., Electron or Tauri). - Explicitly excludes specific targets (e.g., "we don't support Desktop Chrome"). - Expresses hesitation about polyfill complexity, bundle size, or performance cost. - Questions if a feature is safe to use without fallbacks. No defined policy format. This is an example: `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and does not require external dependencies.`

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…