Avoid common HTML mistakes — accessibility gaps, form pitfalls, and SEO oversights.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install html或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install html⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/html/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: HTML description: Avoid common HTML mistakes — accessibility gaps, form pitfalls, and SEO oversights. metadata: {"clawdbot":{"emoji":"🌐","os":["linux","darwin","win32"]}} ---
width and height on ![]()
even with CSS sizing — browser reserves space before loadaspect-ratio in CSS as fallback — for responsive images without dimensionsautocomplete attribute is specific — autocomplete="email", autocomplete="new-password", not just on/off + required for radio/checkbox groups — screen readers announce the group labelinputmode for virtual keyboard — inputmode="numeric" shows number pad without validation constraintsenterkeyhint changes mobile keyboard button — enterkeyhint="search", enterkeyhint="send"Skip to content before nav or scope="row" — without scope, screen readers can't associate headersaria-hidden="true" hides from screen readers — use for decorative icons, not interactive elementsrole="presentation" on layout tables — if you must use tables for layout (you shouldn't)
Link Security
target="_blank" needs rel="noopener noreferrer" — noopener prevents window.opener access, noreferrer hides referrer- User-generated links need
rel="nofollow ugc" — ugc tells search engines it's user content
SEO Meta
prevents duplicate content — self-referencing canonical on every pageog:image needs absolute URL — relative paths fail on social platformstwitter:card values: summary, summary_large_image, player — not arbitrary
Common Oversights
for non-submit — default is type="submit", triggers form submission element for modals — built-in focus trap and escape handling + for accordions — no JS needed, accessible by default- Void elements don't need closing slash —
![]()
not ![]()
in HTML5, though both work
Prompt 示例
安装 HTML 后,可以对 AI 说这些话来触发它
UHelp me get started with HTML
AExplains what HTML does, walks through the setup, and runs a quick demo based on your current project
UUse HTML to avoid common HTML mistakes — accessibility gaps, form pitfalls, and...
AInvokes HTML with the right parameters and returns the result directly in the conversation
UWhat can I do with HTML in my developer & devops workflow?
ALists the top use cases for HTML, with example commands for each scenario
常见问题
如何安装 HTML?▾
将技能文件夹放到 ~/.claude/skills/html/ 目录(个人级,所有项目可用),或 .claude/skills/html/(项目级)。重启 AI 客户端后,用 /html 主动调用,或让 AI 根据上下文自动发现并使用。
HTML 支持哪些 AI 平台?▾
HTML 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
HTML 是免费的吗?▾
HTML 可免费安装使用。请查阅仓库了解许可证信息。
HTML 有什么功能?▾
Avoid common HTML mistakes — accessibility gaps, form pitfalls, and SEO oversights.
HTML 属于哪个分类?▾
HTML 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
使用场景
UAutomate my developer & devops tasks using HTML
AIdentifies repetitive steps in your workflow and sets up HTML to handle them automatically
4.2k517