语义化网页开发专家
简介
专业 HTML5 开发专家,提供语义化标记、表单构建、无障碍访问及 HTML5 API 的标准化实现方案。
原始描述
Expert HTML development skill for building web pages, forms, and interactive content. Use when creating HTML documents, structuring web content, implementing...
通过你的 Agent 添加
安装目录:html-coder/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
HTML Coder 是一款面向专业网页开发的纯文档型技能,专注于帮助开发者构建符合现代标准的 HTML 文档。其核心功能包括:
- 语义化文档结构:指导使用
<article>、<nav>、<header>、<section>、<footer>等语义元素替代无意义的div堆砌,提升代码可读性和 SEO 表现 - 无障碍表单构建:提供完整的表单模式,包括字段集分组、标签关联、HTML5 原生验证属性(
required、pattern、type="email"等) - 响应式多媒体:支持
<picture>元素、srcset 属性、loading="lazy"延迟加载等现代图片处理技术 - HTML5 API 参考:涵盖 Web Storage、Geolocation、Canvas、SVG、Drag & Drop、Web Workers 等 API 的使用指导
该技能通过四个核心参考文档提供支持:reference.md(完整元素属性参考)、essentials.md(语义标记与响应式技术)、quickstart.md(快速参考手册)、standards.md(HTML5 规范与标准)。
显著优点
- 零安全风险:纯 Markdown 文档结构,无可执行代码、无脚本文件、无动态执行能力,从根本上杜绝代码注入和恶意行为
- 权威标准依托:所有技术参考均链接至 WHATWG HTML Living Standard、W3C WCAG、MDN Web Docs 等业界顶级文档源
- 无障碍优先设计:内置 ARIA 规范、屏幕阅读器支持、键盘导航、色彩对比度等 WCAG 合规指导
- 现代开发模式:涵盖 HTML5 最新特性,支持响应式设计、性能优化(懒加载、DOM 深度最小化)
- 协作生态:与
make-skill-template 和 finalize-agent-prompt 技能联动,支持技能模板创建和提示词优化
潜在缺点与局限性
- 无实时验证能力:作为纯文档技能,无法直接执行代码或提供实时 HTML 验证反馈,开发者需手动使用 W3C Validator 等外部工具
- 依赖开发者主动性:需要用户主动查阅参考文档,无法自动检测或修复代码中的语义错误或可访问性问题
- 技术栈局限:仅覆盖 HTML 层面,不涉及 CSS、JavaScript 等配套技术的深度整合
- 版本滞后风险:HTML 标准持续演进(WHATWG 采用 Living Standard 模式),文档内容可能存在更新延迟
适合的目标群体
- 前端开发初学者:系统学习语义化 HTML 和 Web 标准
- 全栈开发者:快速查阅 HTML5 API 和最佳实践
- 无障碍工程师:获取 ARIA 和 WCAG 合规指导
- 内容创作者:构建结构化、SEO 友好的网页内容
- 教育培训机构:作为 HTML 课程的辅助参考材料
使用风险
- 性能风险:无。纯文档无运行时开销。
- 依赖风险:无。零第三方依赖,无供应链攻击面。
- 网络风险:极低。仅包含 3 个外部文档链接(MDN、WHATWG、W3C),均为 TLS 加密的权威来源。
- 隐私风险:无。不收集用户数据,无敏感信息访问。
- 误报注意:安全扫描曾将 "Expert" 关键词误标为 DAN 模式,已确认为正常产品描述。
make-skill-template 和 finalize-agent-prompt 技能联动,支持技能模板创建和提示词优化- 无实时验证能力:作为纯文档技能,无法直接执行代码或提供实时 HTML 验证反馈,开发者需手动使用 W3C Validator 等外部工具
- 依赖开发者主动性:需要用户主动查阅参考文档,无法自动检测或修复代码中的语义错误或可访问性问题
- 技术栈局限:仅覆盖 HTML 层面,不涉及 CSS、JavaScript 等配套技术的深度整合
- 版本滞后风险:HTML 标准持续演进(WHATWG 采用 Living Standard 模式),文档内容可能存在更新延迟
适合的目标群体
- 前端开发初学者:系统学习语义化 HTML 和 Web 标准
- 全栈开发者:快速查阅 HTML5 API 和最佳实践
- 无障碍工程师:获取 ARIA 和 WCAG 合规指导
- 内容创作者:构建结构化、SEO 友好的网页内容
- 教育培训机构:作为 HTML 课程的辅助参考材料
使用风险
- 性能风险:无。纯文档无运行时开销。
- 依赖风险:无。零第三方依赖,无供应链攻击面。
- 网络风险:极低。仅包含 3 个外部文档链接(MDN、WHATWG、W3C),均为 TLS 加密的权威来源。
- 隐私风险:无。不收集用户数据,无敏感信息访问。
- 误报注意:安全扫描曾将 "Expert" 关键词误标为 DAN 模式,已确认为正常产品描述。
- 性能风险:无。纯文档无运行时开销。
- 依赖风险:无。零第三方依赖,无供应链攻击面。
- 网络风险:极低。仅包含 3 个外部文档链接(MDN、WHATWG、W3C),均为 TLS 加密的权威来源。
- 隐私风险:无。不收集用户数据,无敏感信息访问。
- 误报注意:安全扫描曾将 "Expert" 关键词误标为 DAN 模式,已确认为正常产品描述。
技能正文
name: html-coder visibility: public invocation: direct description: 'Expert HTML development skill for building web pages, forms, and interactive content. Use when creating HTML documents, structuring web content, implementing semantic markup, adding forms and media, working with HTML5 APIs, or needing HTML templates, best practices, and accessibility guidance. Supports modern HTML5 standards and responsive design patterns.' description_zh: "用于构建网页、表单和交互内容的专业HTML开发技能。当创建HTML文档、组织网页内容、实现语义化标记、添加表单和媒体、使用HTML5 API,或需要HTML模板、最佳实践和无障碍指引时使用。支持现代HTML5标准和响应式设计模式。" homepage: https://clawhub.ai/jhauga/html-coder collaborators:
- make-skill-template
- finalize-agent-prompt provenance: origin: clawhub-mit0 license: MIT-0 upstream_url: https://clawhub.ai/jhauga/html-coder maintained_by: OpenSquilla
HTML Coder Skill
Expert skill for professional HTML development with focus on semantic markup, accessibility, HTML5 features, and standards-compliant web content.
When to Use This Skill
- Creating HTML documents with semantic structure
- Building accessible forms with HTML5 validation
- Implementing responsive markup and multimedia
- Using HTML5 APIs (Canvas, SVG, Storage, Geolocation)
- Troubleshooting validation or accessibility issues
OpenSquilla Webpage Delivery
For a new runnable webpage when workspace file-authoring tools are available:
- Create a filesystem-safe, dedicated project subdirectory such as
webpage-<topic-slug>/; never place a generated site directly in the workspace root. - Keep
index.html, local CSS/JavaScript, and every local asset inside that project root, using browser-relative references. - Validate the finished project, then call
open_workspace_previewwith the entry file and the complete dedicated root:
{
"path": "webpage-<topic-slug>/index.html",
"bundle": "directory",
"bundle_root": "webpage-<topic-slug>"
}
Do not bundle the entire workspace. When a caller explicitly requests
source-only output, forbids tool calls, or supplies its own deterministic
writer, follow that narrower caller contract
instead. When file authoring or open_workspace_preview is unavailable, return
only the requested guidance or source and do not claim that a runnable project
was opened.
Core Capabilities
- Semantic HTML: Document structure, content sections, accessibility-first markup
- Forms: All input types, validation attributes, fieldsets, labels
- Media: Responsive images, audio/video, Canvas, SVG
- HTML5 APIs: Web Storage, Geolocation, Drag & Drop, Web Workers
- Accessibility: ARIA, screen reader support, WCAG compliance
Essential References
Core documentation for HTML experts:
references/add-css-style.md- Add CSS vialinktag, inline, or embedded in htmlreferences/add-javascript.md- Add JavaScript viascript src="link.js"tag, inlinescript, or embedded in htmlreferences/attributes.md- HTML attribute essentialsreferences/essentials.md- Semantic markup, validation, responsive techniquesreferences/global-attributes.md- Complete global attribute informationreferences/glossary.md- Complete HTML element and attribute referencereferences/standards.md- HTML5 specifications and standards
Best Practices
Semantic HTML - Use elements that convey meaning: <article>, <nav>, <header>, <section>, <footer>, not div soup.
Accessibility First - Proper heading hierarchy, alt text, labels with inputs, keyboard navigation, ARIA when needed.
HTML5 Validation - Leverage built-in validation (required, pattern, type="email") before JavaScript.
Responsive Images - Use <picture>, srcset, and loading="lazy" for performance.
Performance - Minimize DOM depth, optimize images, defer non-critical scripts, use semantic elements.
Quick Patterns
Semantic Page Structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
</head>
<body>
<header><nav><!-- Navigation --></nav></header>
<main><article><!-- Content --></article></main>
<aside><!-- Sidebar --></aside>
<footer><!-- Footer --></footer>
</body>
</html>
Accessible Form
<form method="post" action="/submit">
<fieldset>
<legend>Contact</legend>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<button type="submit">Send</button>
</fieldset>
</form>
Responsive Image
<picture>
<source media="(min-width: 1200px)" srcset="large.webp">
<source media="(min-width: 768px)" srcset="medium.webp">
<img src="small.jpg" alt="Description" loading="lazy">
</picture>
Troubleshooting
- Validation: W3C Validator (validator.w3.org), check unclosed tags, verify nesting
- Accessibility: Lighthouse audit, screen reader testing, keyboard nav, color contrast
- Compatibility: Can I Use (caniuse.com), feature detection, provide fallbacks
Key Standards
- WHATWG HTML Living Standard: https://html.spec.whatwg.org/
- WCAG Accessibility: https://www.w3.org/WAI/WCAG21/quickref/
- MDN Web Docs: https://developer.mozilla.org/en-US/docs/Web/HTML
<form method="post" action="/submit">
<fieldset>
<legend>Contact</legend>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
<button type="submit">Send</button>
</fieldset>
</form>
<picture>
<source media="(min-width: 1200px)" srcset="large.webp">
<source media="(min-width: 768px)" srcset="medium.webp">
<img src="small.jpg" alt="Description" loading="lazy">
</picture>
Troubleshooting
- Validation: W3C Validator (validator.w3.org), check unclosed tags, verify nesting
- Accessibility: Lighthouse audit, screen reader testing, keyboard nav, color contrast
- Compatibility: Can I Use (caniuse.com), feature detection, provide fallbacks
Key Standards
- WHATWG HTML Living Standard: https://html.spec.whatwg.org/
- WCAG Accessibility: https://www.w3.org/WAI/WCAG21/quickref/
- MDN Web Docs: https://developer.mozilla.org/en-US/docs/Web/HTML
- WHATWG HTML Living Standard: https://html.spec.whatwg.org/
- WCAG Accessibility: https://www.w3.org/WAI/WCAG21/quickref/
- MDN Web Docs: https://developer.mozilla.org/en-US/docs/Web/HTML