Claude Code Fancy HTML Hook — Documentation skill for Claude Code
Claude Code hook that auto-converts Markdown to fancy infographic HTML on Write/Edit (with confirmation dialog).
How to install Claude Code Fancy HTML Hook
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open uehaj/claude-code-fancy-html-hook and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Fancy HTML Hook does
Claude Code hook that auto-converts Markdown to fancy infographic HTML on Write/Edit (with confirmation dialog).
Alternatives in Documentation
- Docx — Create, edit, and analyze Word documents with tracked changes, comments, and formatting 94.1k ★
- Docs Serve — Build the HTML documentation and then serve it locally so it can be viewed in a browser 1.1k ★
- Xiaohu Wechat Format — Claude Code 公众号一键排版+发布技能 Markdown → 微信兼容 HTML → 推送草稿箱 30 套主题 + 可视化画廊 428 ★
README
claude-code-fancy-html-hook
Claude Code が Markdown を書き出した瞬間、
- 通常HTML(プレーンスタイル)
- ファンシーHTML(
claude -pをサブプロセス起動して生成するインフォグラフィック風HTML)
を自動で `.html/` ディレクトリに吐き出して、ブラウザで開いてくれる macOS 向け hook スクリプトです。
ダイアログで都度「HTML 生成しますか?」「ファンシーも作りますか?」を聞いてくる対話型。
仕組みの概要
Claude Code が *.md を Write/Edit
↓ PostToolUse hook (JSON over stdin)
on-md-write.sh
├─ AppleScript ダイアログで確認
├─ python-markdown で通常HTML生成
├─ (任意) claude -p をバックグラウンド起動してファンシーHTML生成
└─ open でブラウザに表示
詳細は Zenn 記事を参照: [人間がMarkdownを書いたり修正しない時代に、Claude Code hookでドキュメントを自動でファンシーHTML化する](https://github.com/uehaj/zenn-articles/blob/main/articles/claude-code-fancy-html-hook.md)
必要なもの
- macOS(
osascript/display dialogを使うため) - Claude Code CLI(
claude -pをサブプロセスで叩く) - Python 3 +
markdownパッケージpip3 install markdown
導入手順
# 1. このリポジトリを clone
git clone https://github.com/uehaj/claude-code-fancy-html-hook.git
cd claude-code-fancy-html-hook
# 2. hook スクリプトを ~/.claude/hooks/ に配置
mkdir -p ~/.claude/hooks
cp hooks/on-md-write.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/on-md-write.sh
# 3. ~/.claude/settings.json に PostToolUse hook を登録
# settings.example.json を参考にマージしてください
`settings.example.json`:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{ "type": "command", "command": "$HOME/.claude/hooks/on-md-write.sh" }
]
}
]
}
}
ディレクトリ構成
.
├── README.md
├── hooks/
│ └── on-md-write.sh # 本体スクリプト
├── images/ # スクリーンショット置き場
└── settings.example.json # hook 登録例
ライセンス
MIT
Related Skills
Compile Main System
You are the knowledge-base compiler for a personal markdown wiki. Use Read, Glob, and Grep to inspect existing
Dream Entity System
You are the dream-cycle entity re-synthesizer for a personal markdown wiki. Your single deliverable is an Edit
Vocalize
CLI that turns text and markdown into speech via the ElevenLabs API, with a Claude Code Stop hook that reads C
Claude Jsonl Browser
A web-based tool that converts Claude Code CLI conversation logs (JSONL format) into human-readable Markdown.
Help To Md Skill
Use when the user provides a help.sap.com URL and wants to read its content — converts SAP BTP Help Portal URL
Clerk
Auto-summarize Claude Code sessions as local markdown — session summaries, keyword index, on-demand reports.
Related Agents
Jira Mutator
Use for Atlassian/Jira write operations via scoped Atlassian MCP write tools — create issue, transition status
Pattern Finder
Find the canonical JellyRock implementation pattern for a given task or question. Examples: \"How do I show a
UX Flow Reviewer
Expert in user-facing interaction safety - confirmations, control labeling, and navigation state. Fires when t