Wechat-ggGitHub

Prefer HTML Output Skill — Documentation skill for Claude Code

Documentation community

Claude Code skill: decide when to render output as HTML over Markdown — based on Thariq Shihipar's html-effectiveness examples.

How to install Prefer HTML Output Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Wechat-ggGitHub/prefer-html-output-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Prefer HTML Output Skill does

Claude Code skill: decide when to render output as HTML over Markdown — based on Thariq Shihipar's html-effectiveness examples. Bilingual (zh-CN / en).

Alternatives in Documentation

  • Xlsx — Create, edit, and analyze Excel spreadsheets with formulas, formatting, and visualization 94.1k ★
  • 会话管理(Session Manager)需求文档(PRD / Markdown) — 目标:对 Codex / Claude Code 的本地会话记录进行可视化管理,并提供“一键复制 / 一键终端恢复”能力 31.7k ★
  • Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★

README

prefer-html-output

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) [![Made for Claude Code](https://img.shields.io/badge/Made_for-Claude_Code-D97757?logo=anthropic&logoColor=white)](https://claude.com/claude-code) [![Based on html-effectiveness](https://img.shields.io/badge/Based_on-html--effectiveness-2563EB)](https://github.com/ThariqS/html-effectiveness) [![Languages](https://img.shields.io/badge/Lang-en_%2F_zh--CN-22C55E)](#) [![GitHub stars](https://img.shields.io/github/stars/Wechat-ggGitHub/prefer-html-output-skill?style=flat&color=FACC15)](https://github.com/Wechat-ggGitHub/prefer-html-output-skill/stargazers) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-A78BFA.svg)](https://github.com/Wechat-ggGitHub/prefer-html-output-skill/pulls)

A Claude Code skill that lets the agent decide when to render output as HTML instead of Markdown — based on [Thariq Shihipar's](https://x.com/trq212) [html-effectiveness](https://github.com/ThariqS/html-effectiveness) 20 examples.

**Languages**: [English](./README.md) · [简体中文](./README.zh-CN.md)


Why this skill exists

Anthropic Claude Code's engineering lead Thariq Shihipar published [html-effectiveness](https://github.com/ThariqS/html-effectiveness) in May 2026 — 20 self-contained HTML files showing scenarios where HTML beats Markdown for LLM output. In a 20-way head-to-head comparison, HTML won 17.

The operational rule is: **HTML when the document has a human reader; Markdown when it'll be consumed by an automated pipeline or collaboratively edited.**

This skill packages that rule into something an agent can actually follow:

  1. Detects high-value scenarios during reply generation (weekly reports, PR reviews, design comparisons, concept explainers, flowcharts, design systems, ...)
  2. Proposes the upgrade with a one-sentence prompt referencing the matching example
  3. Generates the HTML with the matching style, drops it in a sensible folder, and opens the