Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

talk-html-plugin

                /talk-html  (router)
                      │
                      ▼
          ┌── infer artifact_type ──┐
          └────────────┬────────────┘
                       │
   ┌─────────┬─────────┼─────────┬─────────┐
   ▼         ▼         ▼         ▼         ▼
/talk-ux  /talk-ceo /talk-data /talk-rev /talk-cto
   │         │         │         │         │
   └────┬────┴────┬────┴────┬────┴────┬────┘
        ▼         ▼         ▼         ▼
   /talk-qa  /talk-docs /talk-legal   …
                       │
                       ▼
        skills/talk-html (核心渲染管线)
        preflight → resolve → template
        → real-content grounding → embed
           real recording (non-static)
        → publish → recall

用 HTML 说话,不要用聊天滚动条——而且按观众分诊。

一个 Claude Code 插件。它把 agent 的长回答变成一页打磨过的 HTML,并根据这页是给谁看自动选择正确的证据形态、构建工具、机器评测工具和 gate 阈值。

落地页(GitHub Pages):https://liushiyumath.github.io/talk-html-plugin/

一行安装

curl -fsSL https://raw.githubusercontent.com/LiuShiyuMath/talk-html-plugin/main/install.sh | bash

这会装两份东西,相互独立、各自 idempotent:

  • 核心 skill → ~/.claude/skills/talk-html/(保留原来的 /talk-html 入口与 publish/recall 流水线)
  • 插件路由 + role commands → ~/.claude/plugins/talk-html-plugin/(注册下面 9 个斜杠命令)

命令

命令 给谁看 必看 proof
/talk-html (路由器,按 artifact_type 自动分派)
/talk-ux Designer / UX / Product / a11y / brand / lifecycle 截图对比 OR GIF/MP4 交互录像
/talk-ceo CEO / Product Owner / Release Manager / Finance / Marketing 端到端 demo 录像 + 真实结果
/talk-data DBA / SRE / Data Engineer / Analyst / ML Engineer schema diff / lineage / metric / eval 表
/talk-reviewer Code Reviewer / Tech Lead / API reviewer PR diff / API contract diff
/talk-cto Architect / SRE / Performance / Incident Commander benchmark / Lighthouse / diagram / health / timeline
/talk-qa QA / Bug Reporter / Release Manager / Support before-fail + after-pass / TUI 录像 / matrix
/talk-docs Docs Reviewer / Developer User rendered docs preview
/talk-legal Security Reviewer / Legal / Compliance Reviewer scan report + sanitized exploit / 必需条款 checklist

它做什么

并行开着好几个 Claude 会话时,agent 产出的 HTML 一份份散落在 ~/.claude/jobs/、worktree、/tmp 里。每份刚做出来都有用,隔几天就忘了从哪儿来。talk-html-plugin 把四件事收进一个插件:

  1. 分诊/talk-html 看你在干什么,先决定页面是给谁看的,再分派到对应 role 命令。
  2. 证据契约 — role 命令锁死了「这个角色只接受哪种 proof」「该用什么工具机器化判定 pass/fail」。
  3. 沟通 — 把长回答渲染成有版式、能读的一页 HTML(zh-CN)。
  4. 留存与回看 — 本地预览满意后,一键发布到 gist,凭关键词从本地索引(~/.claude/talk-html/index.jsonl)翻回来。

输出语言固定为简体中文;只有结构性元数据、文件路径、代码片段保留英文。

路由数据源

完整 artifact_type → 角色 → 必看 proof → build/eval/gate/CI artifact 映射存在:

skills/talk-html/role-routing.csv

路由层(commands/talk-html.md)和每个 role 命令都引用这一张表。改了映射,所有 role 命令的契约一起更新。

触发词

  • 路由:/talk-html用 html 解释做成一页推到 gisthtml 回看talk in htmlmake a page out of thisgive me an html version
  • 角色直达:/talk-ux/talk-ceo/talk-data/talk-reviewer/talk-cto/talk-qa/talk-docs/talk-legal,或对话里说「给 reviewer 看」「给 CEO 一页」「给数据团队看」之类。

仓库结构

talk-html-plugin/
├── .claude-plugin/
│   └── plugin.json                  # 插件元数据
├── commands/                        # 斜杠命令(路由器 + 8 个 role)
│   ├── talk-html.md
│   ├── talk-ux.md
│   ├── talk-ceo.md
│   ├── talk-data.md
│   ├── talk-reviewer.md
│   ├── talk-cto.md
│   ├── talk-qa.md
│   ├── talk-docs.md
│   └── talk-legal.md
├── skills/
│   └── talk-html/                   # 核心渲染管线(被所有 role 命令 defer)
│       ├── SKILL.md
│       ├── role-routing.csv         # 路由权威表
│       ├── publish.sh
│       ├── recall.sh
│       └── templates/
│           └── skeleton.html
├── install.sh                       # 一行安装:装 skill + 装 plugin
├── index.html                       # GitHub Pages 落地页
└── README.md

回看

bash ~/.claude/skills/talk-html/recall.sh            # 列出最近 20 份
bash ~/.claude/skills/talk-html/recall.sh <关键词>   # 按关键词在浏览器里打开

依赖

  • 发布到 gist 需要 GitHub CLI 并已登录(gh auth login)。
  • jqgitcurl —— macOS / Linux 上一般已就位。
  • 各 role 命令推荐的 build/eval 工具按需安装(Playwright、Lighthouse CI、k6、VHS、Semgrep、Mermaid…)。

从旧仓库迁移

旧仓库名是 talk-html-skill。本仓库重命名为 talk-html-plugin,并把:

  • skill/ 移到 skills/talk-html/
  • 新增 .claude-plugin/commands/
  • 新增 skills/talk-html/role-routing.csv

/talk-html 入口语义保持不变——但现在它会先做路由,再交给 SKILL.md 渲染。


本仓库的 index.html 就是 talk-html 自己产出的第一个 GitHub Pages 页面。

About

talk-html — a Claude Code skill that turns agent answers into shareable HTML. 用 HTML 说话,不要用聊天滚动条。

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages