hug-html
/install hug-html
\r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r \r
hug-html\r
\r
📚 渐进式加载:本技能采用渐进式 MD 体系,
SKILL.md为入口(≤230行),详细内容拆分到references/*.md按需加载。\r \r
触发场景\r
\r 当用户提到以下内容时触发本技能:\r \r
- "生成 HTML 模板" / "HTML template" / "hug html"\r
- "编辑 HTML" / "可视化编辑 HTML" / "visual edit HTML"\r
- "HTML 模块" / "HTML module library"\r
- "填充 HTML 内容" / "fill HTML content"\r
- 输出格式:自包含 HTML 文件(粉紫→蓝绿渐变风格)\r \r 不触发:\r
- 用户仅询问 HTML 语法概念,无文件生成需求\r
- 用户明确请求其他特定技能\r \r
📚 渐进式加载:本技能采用渐进式 MD 体系,
SKILL.md为入口(≤230行),详细内容拆分到references/*.md按需加载。\r \r
核心能力\r
\r | # | 能力 | 说明 |\r |---|------|------|\r | 1 | 生成 HTML 模板 | Python 生成带标准接口的 HTML 模板(通过 CSS 类名标识可编辑区域) |\r | 2 | 可视化编辑界面 | Python 生成纯前端可编辑 HTML 界面(JS 处理所有编辑逻辑,无需后端) |\r | 3 | 模块库组装 | 可复用 HTML 模块(颜色/字体/图片/布局)通过标准接口组合 |\r | 4 | 内容填充 | 根据需求同时生成模板并填充内容 |\r \r
快速开始\r
\r
python scripts/template_generator.py --output "../.standardization/hug-html/data/output/template.html" --type promo\r
python scripts/visual_editor.py --template "../.standardization/hug-html/data/output/template.html" --output "../.standardization/hug-html/data/output/editor.html"\r
python scripts/module_assembler.py --modules "gradient-purple,title-large,img-cover" --output "../.standardization/hug-html/data/output/assembled.html"\r
python scripts/content_filler.py auto --template "../.standardization/hug-html/data/output/template.html" --output "../.standardization/hug-html/data/output/filled.html"\r
```\r
\r
## 工作流程\r
\r
> 📚 **渐进式加载**:本技能采用渐进式 MD 体系,`SKILL.md` 为入口(≤230行),详细内容拆分到 `references/*.md` 按需加载。\r
\r
1. **解析需求** — 理解用户需要的 HTML 类型(宣传面板/产品介绍/技术说明/流程图)\r
2. **生成模板** — 调用 `template_generator.py` 生成带标准接口的 HTML 模板\r
3. **生成编辑界面**(可选)— 调用 `visual_editor.py` 生成纯前端可编辑 HTML 界面\r
4. **模块组装**(可选)— 调用 `module_assembler.py` 组合可复用模块\r
5. **内容填充**(可选)— 调用 `content_filler.py` 填充具体内容\r
6. **输出结果** — 将最终 HTML 写入 `../.standardization/hug-html/data/output/`,生成摘要\r
\r
## 权限说明\r
\r
本技能需要以下权限才能正常工作:\r
\r
| 工具 | 访问级别 | 用途 |\r
|------|----------|------|\r
| Read | 只读 | 读取输入文件、模块库、样式预设 |\r
| Write | 写入 | 将输出 HTML 文件写入 `../.standardization/hug-html/data/output/` |\r
| Bash | 受限 | 运行内部处理脚本(限制在 `scripts/` 目录内) |\r
\r
- **不会**访问系统敏感路径或凭证文件\r
- **不会**向外部网络发送数据\r
- **不会**执行用户 Shell 配置文件(`.bashrc` / `.zshrc`)\r
\r
## 主要工作流程\r
\r
本技能使用三阶段执行框架(执行 → 审查 → 推进):\r
\r
### 阶段 1:执行\r
- 读取用户输入参数(模板类型、样式预设、模块列表等)\r
- 调用 `scripts/` 目录中的脚本进行处理\r
- 捕获执行结果和错误\r
\r
### 阶段 2:审查\r
- 验证输出 HTML 文件已生成\r
- 检查 HTML 格式合规性(自包含,无外部依赖)\r
- 将执行日志记录到 `../.standardization/hug-html/data/logs/`\r
\r
### 阶段 3:推进\r
- 向用户输出最终结果(文件路径或 HTML 预览)\r
- 更新进度文件(如有)\r
- 若发生错误,进入错误处理流程\r
\r
---\r
\r
## 附录:详细文档索引\r
\r
| 文档 | 内容 |\r
|------|------|\r
| `references/guide.md` | 完整使用教程和参数说明 |\r
| `references/permissions.md` | 权限扫描报告和风险说明 |\r
| `references/examples.md` | 使用示例和输出样本 |\r
| `references/module-library.md` | 可复用模块库说明 |\r
| `references/style-presets.md` | 样式预设系统说明 |\r
| `references/call-chains.md` | 调用链定义(skill-sub) |\r
| `references/antipatterns.md` | 反模式手册 |\r
| `references/faq.md` | 常见问题解答 |\r
\r
> 本文档由 `skill-standardization v2.38.6` 生成,遵循 R-01~R-24 规范。\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install hug-html - After installation, invoke the skill by name or use
/hug-html - Provide required inputs per the skill's parameter spec and get structured output
What is hug-html?
Generate customizable, self-contained HTML templates with editable regions, module assembly, and content filling using Python scripts and front-end editing i... It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.
How do I install hug-html?
Run "/install hug-html" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is hug-html free?
Yes, hug-html is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does hug-html support?
hug-html is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created hug-html?
It is built and maintained by Lighthexuish (@ldxs001); the current version is v1.0.1.