John Haugabook

HTML Coder

开发编程v2.0.1
作者:John Haugabook更新于 2026-05-11共 3 个版本 · 最新版本发布于 2026-03-09html-coder@clawhub_jhauga/html-coder
代码生成前端开发

据 AlphaMoat 统计,截至 2026-09,HTML Coder 累计下载 4,702 次、获 8 个星标,在全部 5,078 个 AI 技能中排名第 2,019 位,在「开发编程」分类(577 个)中排名第 259 位。

累计安装
161
累计下载
4,702
星标
8
全站排名
#2,019
全站前 40% · 「开发编程」前 45%
平台累计安装累计下载星标评论
ClawHub ↗772,5764-
SkillHub ↗1614,7028—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

围绕语义化结构、无障碍表单、响应式媒体和浏览器 API 提供实践指导,也涵盖验证与可访问性排查。建议使用有含义的页面元素、清晰的标题层级、替代文本、表单标签和键盘导航;可先利用内置表单校验,并检查图像加载和页面性能。参考示例或第三方依赖前,应按项目要求复核其正确性、可访问性和供应链风险。 还应检查图像加载、DOM 深度和非关键脚本延迟以改善页面性能;设置实际内容语言,测试键盘和读屏行为,并以特性检测配合回退。审查第三方依赖及完整性校验,使用脚本时应用适当 Content Security Policy;这些是实现指引而非无障碍认证。

资料发布于 2026-10-27

可以用来做什么

  • 编写语义清晰、便于访问的 HTML 页面

什么时候用

  • 实现带标签和内置校验的表单或响应式媒体

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查这段 HTML 的语义结构、键盘操作和表单标签,并提出可验证的修改建议。

月度数据趋势

累计下载4,702
6122,8095,0052026-03 · 累计下载 9152026-05 · 累计下载 1,7962026-06 · 累计下载 2,0262026-07 · 累计下载 2,4092026-08 · 累计下载 3,1542026-09 · 累计下载 4,70226-0326-09
星标8
2582026-03 · 星标 22026-05 · 星标 52026-06 · 星标 52026-07 · 星标 82026-08 · 星标 82026-09 · 星标 826-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-094,702—8
2026-083,154+30.9%8
2026-072,409+18.9%8
2026-062,026+12.8%5
2026-051,796—5
2026-03915—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.1 KB · ClawHub v2.0.1
---
name: html-coder
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.'
collaborators:
  - make-skill-template
  - finalize-agent-prompt
---

# HTML Coder Skill
展开全部(共 108 行)
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

## 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`](references/add-css-style.md) - Add CSS via `link` tag, inline, or embedded in html
- [`references/add-javascript.md`](references/add-javascript.md) - Add JavaScript via `script src="link.js"` tag, inline `script`, or embedded in html
- [`references/attributes.md`](references/attributes.md) - HTML attribute essentials
- [`references/essentials.md`](references/essentials.md) - Semantic markup, validation, responsive techniques
- [`references/global-attributes.md`](references/global-attributes.md) - Complete global attribute information
- [`references/glossary.md`](references/glossary.md) - Complete HTML element and attribute reference
- [`references/standards.md`](references/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
```html
<!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
```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>
```

### Responsive Image
```html
<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

---

「开发编程」分类下的热门技能

John Haugabook 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。