Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

web-htmlWEB HTML 搜索

Agent Skill

web-html 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

408

周安装

17

GitHub Stars

4

下载量

136
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web-html(WEB HTML 搜索)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/web-html
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill web-html
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill web-html

简介

用于查找、检索和筛选 HTML 相关技术信息,辅助开发参考。

  • 适合根据关键词或任务需求快速定位候选结果和解决方案。
  • 通过 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI 等宿主。
  • 使用前应核实仓库维护状态和权限范围,确保信息准确性和时效性。
  • web-html 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Purpose

This skill enables OpenClaw to generate, edit, and optimize HTML5 code, focusing on semantic markup for structure, ARIA and WCAG compliance for accessibility, form handling, Web Components for encapsulation, Shadow DOM for styling isolation, and SEO techniques like meta tags and structured data.

When to Use

Apply this skill when building web pages requiring accessible, semantic HTML, such as creating e-commerce product pages with ARIA roles or dynamic forms in single-page apps. Use it for SEO-heavy content like blog posts or when integrating custom Web Components to avoid global style conflicts.

Key Capabilities

  • Generate semantic HTML: Create elements like <main> or <article> for better readability and SEO. Example: Use <header role="banner"> for accessible site headers.
  • Implement ARIA/WCAG: Add attributes like aria-label="Search" to elements for screen reader support, ensuring WCAG 2.1 AA compliance.
  • Handle forms: Build forms with required attributes, e.g., <input type="email" required aria-invalid="false">, including validation hooks.
  • Create Web Components: Define custom elements with Shadow DOM, e.g., <my-component> encapsulating internal HTML and styles.
  • Optimize for SEO: Insert meta tags like <meta name="description" content="Page description"> and use headings for keyword placement. Code snippet:
<section aria-labelledby="sec-title">
  <h2 id="sec-title">Section Heading</h2>
  <p>Content with SEO keywords.</p>
</section>

Usage Patterns

Invoke this skill via OpenClaw's CLI or API by specifying the skill ID ("web-html") and action parameters. For generation tasks, provide JSON configs; for edits, supply target HTML strings. Pattern 1: Use CLI for quick prototypes. Pattern 2: Chain with other skills, e.g., pass output to a CSS skill. Always include accessibility flags for WCAG compliance. Example pattern: openclaw execute web-html --action generate --params '{"type": "page", "features": ["semantic", "aria"]}' to produce structured code.

Common Commands/API

  • CLI Commands: Use openclaw execute web-html --action <action> --params <JSON>, where actions include "generate", "enhance", or "validate". For example, openclaw execute web-html --action generate --params '{"elements": ["form"], "accessible": true}' generates an accessible form. Include flags like --debug for verbose output or --validate to check WCAG compliance.
  • API Endpoints: POST to https://api.openclaw.ai/skills/web-html with a JSON body, e.g., {"action": "generate", "params": {"type": "component", "shadowDom": true}}. Set header Authorization: Bearer $OPENCLAW_API_KEY for authentication. Response format: JSON with "code" (HTML string) and "errors" array. Code snippet:
{
  "action": "enhance",
  "target": "<div>Original HTML</div>",
  "params": {"addAria": true}
}

Use this to enhance existing HTML with ARIA attributes.

Integration Notes

Integrate by piping outputs to other skills, e.g., use web-html output as input for web-css. Config format: JSON objects, e.g., {"accessibility": true, "seoTags": ["description", "keywords"]}. For Web Components, ensure compatibility by wrapping in Shadow DOM; example: Combine with web-js skill via openclaw chain web-html web-js --input <html-code>. If using env vars, set $OPENCLAW_API_KEY for API calls and handle dependencies like Node.js for local Web Component testing.

Error Handling

Common errors: Invalid HTML (e.g., missing closing tags) returns HTTP 400 with message like "Syntax error in element"; ARIA misuse (e.g., invalid role) triggers 422 with details. Handle by checking response.status; if >=400, parse the "errors" array for specifics. For CLI, use --retry 3 flag to attempt fixes, e.g., openclaw execute web-html --action generate --params {...} --retry 3. Code snippet for error checking:

if (response.errors.length > 0) {
  console.error(response.errors[0].message); // e.g., "Missing aria-label"
  retryAction();
}

Always validate inputs with WCAG rules before execution.

Concrete Usage Examples

  1. Generate a semantic HTML page with SEO: Run openclaw execute web-html --action generate --params '{"structure": "basic", "seo": true, "accessibility": true}'. This produces a full HTML document like: <!DOCTYPE html> <html lang="en"> <head><meta name="description" content="SEO description"></head> <body><main aria-label="Main content">Content here</main></body> </html> Use this for quick prototyping of accessible web pages.
  2. Enhance a form with ARIA for accessibility: First, provide a base form string, then execute openclaw execute web-html --action enhance --target '<form><input type="text"></form>' --params '{"addAria": true}'. Output: <form aria-label="User Form"> <label for="input1">Label:</label> <input id="input1" type="text" aria-required="true"> </form> This ensures WCAG compliance for form elements in existing code.

Graph Relationships

  • Related Skills: web-css (for styling generated HTML), web-js (for scripting Web Components)
  • In Cluster: web-dev
  • Connected Tags: html, accessibility, semantic, web
  • Dependencies: Requires web-dev cluster for full functionality

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.53%
按下载量换算46

Claude

31.57%
按下载量换算43

Cursor

17.76%
按下载量换算24

Gemini CLI

8.62%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills