Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add echoVic/boss-skill --skill html-prototypegit clone --depth 1 https://github.com/echoVic/boss-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/echovic/boss-skill/html-prototype)<a href="https://agentmods.dev/skills/echovic/boss-skill/html-prototype"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/html-prototype/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/echovic/boss-skill/html-prototype"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/html-prototype.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.03742 |
| Opus 5.5 | $0.00012 | $0.01497 |
| Sonnet 5.5 | $0.00006 | $0.00748 |
| Haiku 4.5 | $0.00003 | $0.00374 |
Grade A, and why
ui-designer/html-prototype scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 369 lines — stays where its author put it; the contents beside it link to each section on GitHub.
可交互 HTML 原型
适用场景
当设计方案需要用户直观看到才能决策时,生成可交互的 HTML 原型页面,在浏览器中展示并让用户点击选择。
适用:
- 多设计变体需要用户对比选择
- 布局/视觉方向需要用户确认
- 复杂交互流程需要走查
不适用:
- 纯后端/API 项目
- 用户已明确指定设计方向
- 简单页面无需可视化确认
核心流程
1. 征求同意 → 2. 生成原型 HTML → 3. 启动本地服务 → 4. 用户查看/选择 → 5. 读取选择 → 6. 清理
步骤 1:征求同意
在开始设计前,单独发一条消息询问用户:
接下来的设计方案如果能在浏览器里直观看到,会比纯文字描述更容易决策。我可以生成可交互的 HTML 原型页面,你打开本地链接就能看到效果并点击选择方案。需要开启吗?
这条消息必须独立发送,不要和其他内容混在一起。等待用户回复。
- 用户同意 → 继续步骤 2
- 用户拒绝 → 跳过 HTML 原型,用文字描述 + JSON 交付
步骤 2:生成原型 HTML
在 .boss/<feature>/prototype/ 目录下生成原型文件。
文件结构:
.boss/<feature>/prototype/
├── index.html # 主页面:展示所有变体,可点击选择
├── server.cjs # 本地服务脚本(由 Agent 写入)
└── selections.json # 用户选择记录(服务运行时生成)
2.1 写入服务脚本
将以下代码原样写入 .boss/<feature>/prototype/server.cjs:
const http = require('http');
const fs = require('fs');
const path = require('path');
const DIR = __dirname;
const PORT = process.env.PROTO_PORT || 0;
const MIME = {
'.html': 'text/html; charset=utf-8',
'.css': 'text/css',
'.js': 'application/javascript',
'.json': 'application/json',
'.svg': 'image/svg+xml',
'.png': 'image/png',
'.jpg': 'image/jpeg',
};
let selections = [];
const selFile = path.join(DIR, 'selections.json');
try {
selections = JSON.parse(fs.readFileSync(selFile, 'utf-8'));
} catch (e) {}
function saveSelections() {
fs.writeFileSync(selFile, JSON.stringify(selections, null, 2));
}
const clients = new Set();
const server = http.createServer((req, res) => {
if (req.method === 'POST' && req.url === '/select') {
let body = '';
req.on('data', (c) => (body += c));
req.on('end', () => {
try {
const sel = JSON.parse(body);
sel.timestamp = Date.now();
selections.push(sel);
saveSelections();
for (const c of clients) {
try {
c.write(`data: ${JSON.stringify(sel)}\n\n`);
} catch (e) {}
}
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ ok: true }));
} catch (e) {
res.writeHead(400);
res.end('Bad request');
}
});
return;
}
if (req.url === '/selections') {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify(selections));
return;
}
if (req.url === '/events') {
res.writeHead(200, {
'Content-Type': 'text/event-stream',
'Cache-Control': 'no-cache',
Connection: 'keep-alive',
});
clients.add(res);
req.on('close', () => clients.delete(res));
return;
}
let relPath = req.url === '/' ? '/index.html' : req.url.split('?')[0];
let filePath = path.join(DIR, relPath);
if (!filePath.startsWith(DIR)) {
res.writeHead(403);
res.end('Forbidden');
return;
}
if (!fs.existsSync(filePath)) {
res.writeHead(404);
res.end('Not found');
return;
}
const ext = path.extname(filePath).toLowerCase();
res.writeHead(200, { 'Content-Type': MIME[ext] || 'application/octet-stream' });
res.end(fs.readFileSync(filePath));
});
server.listen(PORT, '127.0.0.1', () => {
const port = server.address().port;
console.log(JSON.stringify({ url: `http://localhost:${port}`, port }));
});
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 369 lines · 30 tokens per session scan A 70c4cbbd051c
ui-designer/html-prototype is a skill published in the GitHub repository echoVic/boss-skill (544 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 3,742 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.
Other skills, from other repositories
huashu-design
A design workflow for making high-fidelity HTML prototypes, slide decks, animations, visualizations, and design reviews. It requires three initial design directions before developing the selected one.
openclaw-carapace
Build or modify OpenClaw application UI using canonical semantic tokens, themes, shared CSS foundations, consumer adapters, and established local primitives. Use for product interfaces, component styling, theme work, or design-token integration.
grid
Deprecated compatibility entry for Grid construction. This component is now maintained in Bricks; install and use component-builder to build a new Grid.
masonry
Deprecated compatibility entry for Masonry construction. This component is now maintained in Bricks; install and use component-builder to build a new Masonry.
interaction-skill
Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…
layout-skill
Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…