skills/html-report/SKILL.md
Create beautiful, self-contained single-file HTML reports, landing pages, and documents that are visual, interactive, and spatial. Use when the user wants to present information that would benefit from layout, color, diagrams, or interaction — such as project reports, product pages, architecture overviews, design documents, dashboards, slide decks, code review summaries, incident post-mortems, status reports, or any document where plain text would be too flat. Triggers include "create an HTML page", "make a report", "write a landing page", "build a dashboard", "present this information visually", or any request to communicate technical or business information in a polished, readable format.
npx skillsauth add luochang212/skills html-reportInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Turn information into beautiful, self-contained single-file HTML documents. This skill captures the philosophy, design system, and practical patterns for creating reports that people actually read — not skim.
Many documents we produce — reports, plans, overviews, summaries — are fundamentally spatial, visual, or interactive. Flattening them into linear text makes them harder to consume. A well-designed HTML page communicates structure at a glance: the reader sees hierarchy, relationships, and emphasis before reading a single word.
When HTML beats plain text or slides:
| Situation | Why HTML | |-----------|----------| | Architecture/system overviews | Boxes and arrows show structure better than paragraphs | | Product landing pages | Visual hierarchy guides the reader through features | | Project status reports | Small charts, colored timelines, visual priority | | Comparison documents | Side-by-side layouts let readers compare directly | | Code review summaries | Annotated diffs, severity tags, jump links | | Design documents | Color swatches, type scales, component sheets | | Incident post-mortems | Timeline visualization, log excerpts, checklist |
Every report should be a single .html file with inline CSS and JS. No framework, no build step, no external dependencies (except images when necessary). Open it in a browser — it works. This means:
npm install, no build, no serverMotion and interaction cannot be described in words — they must be felt. A small interactive element (a hover effect, a collapsible section, a tab switcher) communicates in half a second what a paragraph never could. Don't overdo it, but one well-placed interaction per page makes it feel alive.
Don't default to generic blue. Pick colors that match the topic. One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent.
| Palette | Background | Surface | Accent | Best for |
|---------|-----------|---------|--------|----------|
| Editorial Warm | #FBFAF8 ivory | #FFFFFF white | #C75B39 clay | Reports, docs, long-form |
| Dark Tech | #0a0a0b deep | #111114 card | cyan/teal | Dashboards, dev tools |
| Forest Fresh | #FAFBF9 | #FFFFFF | #2C5F2D | Nature, health, sustainability |
| Midnight Navy | #F8F9FB | #FFFFFF | #1E2761 | Enterprise, finance, legal |
| Warm Stone | #FAFAF9 stone | #FFFFFF | #B85042 terracotta | Creative, design, lifestyle |
| Charcoal Minimal | #FAFAFA | #FFFFFF | #36454F | Architecture, minimal products |
Dark backgrounds: Use them sparingly — best for hero sections, architecture diagrams, or a "sandwich" structure (dark → light → dark).
Use system fonts to avoid external dependencies:
--serif: ui-serif, Georgia, "Times New Roman", Times, serif;
--sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
Pairing rule: Serif headings + sans-serif body = editorial, trustworthy. Sans-serif headings + sans-serif body = modern, clean.
| Element | Size | Weight |
|---------|------|--------|
| Page title | clamp(42px, 6vw, 68px) | 500 (serif) |
| Section header | 26-30px | 500 |
| Card title | 16-20px | 500-600 |
| Body text | 14-16px | 400 |
| Captions/labels | 10-12px | 400 |
Every section should have a visual element. Text-only sections are forgettable.
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) — 3-6 cards with icons<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Document Title</title>
<style>
:root {
/* Define your palette here */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--sans);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<!-- Content -->
</body>
</html>
Inline SVG is one of HTML's superpowers. Use it for architecture diagrams, flowcharts, and data visualizations. The agent can draw precise diagrams that convey structure instantly.
Key SVG patterns:
rx="8") for boxes/nodesstroke-dasharray="5 3") for relationshipshtml { scroll-behavior: smooth; } and anchor linkstranslateY(-3px)) + shadow<details>/<summary> for FAQs or deep divesAlways include at least two breakpoints:
Test by resizing the browser. Scroll-snap can cause issues on mobile — disable it in media queries.
For data-heavy reports, use large stat callouts:
/* ── Section Name ── */)If the user's request is vague, clarify:
The references/html-effectiveness/ directory contains 20 concrete demos from ThariqS/html-effectiveness. Each demo is a self-contained .html file. Each is a self-contained .html file — open directly in a browser.
Read references/html-effectiveness/index.html first — it's the catalog page and the single best example of the design system in practice (warm editorial palette, card grid, SVG thumbnails, responsive layout).
| User asks for | Look at these demos |
|---------------|---------------------|
| A product landing page or project overview | index.html (the catalog structure), 09-slide-deck.html (section-based layout) |
| A comparison or code review summary | 03-code-review-pr.html, 17-pr-writeup.html, 01-exploration-code-approaches.html |
| A design system or style guide | 05-design-system.html, 06-component-variants.html |
| A status report or incident post-mortem | 11-status-report.html (weekly status with charts), 12-incident-report.html (timeline + log excerpts) |
| An architecture diagram or flowchart | 04-code-understanding.html (module map), 13-flowchart-diagram.html (clickable flow) |
| A slide deck for presentations | 09-slide-deck.html (arrow-key navigation) |
| An interactive tool or editor | 18-editor-triage-board.html (drag + export), 20-editor-prompt-tuner.html (live preview) |
| Visual design exploration | 02-exploration-visual-designs.html (layout + palette options) |
| An explainer or tutorial | 14-research-feature-explainer.html (collapsible sections, tabbed code), 15-research-concept-explainer.html (interactive concept) |
How to use these references: Don't copy-paste. Study the design language — the spacing, the color use, the typography, how SVGs are used as thumbnails, how sections are structured. Then apply the same principles to the user's specific topic with a fresh design. The goal is to internalize the philosophy, not reproduce the examples.
development
--- name: md-to-pdf description: Use when converting Markdown files (.md) to PDF on macOS, Windows, or Linux, especially files containing CJK (Chinese/Japanese/Korean) text. Triggers include "convert md to pdf", "markdown to pdf", "generate pdf from markdown", "export md as pdf", "md转pdf". Two cross-platform backends: Playwright/Chromium for best quality (default), reportlab for pure-Python lightweight fallback. --- # Markdown to PDF Converter Two cross-platform backends. Choose based on your
development
Use when the user asks to review code quality, find redundant code, audit duplication, or "clean up" a codebase. Also use when the user says "find issues" or "anything worth fixing" after a feature is built. This skill provides a systematic framework for identifying code quality issues, evaluating whether each fix is worth making, and safely applying changes without over-engineering.
development
Security audit and code scanning. Use when the user asks to scan code for bugs/vulnerabilities, audit security, run SAST, find code patterns, or review code for security issues. Supports two modes — fast pattern scanning (Semgrep) for quick results and CI gating, and deep AI-powered investigation (deepsec) for thorough reasoning-based analysis. Also use when the user mentions "semgrep", "deepsec", "static analysis", "security scan", "code scanning", "find vulnerabilities", "scan my code", or "security audit".
development
AI-powered vulnerability scanning with deepsec. Use when the user asks to audit security, scan for vulnerabilities, run a deep security audit, or review code for security issues. Also use when the user mentions "deepsec", "AI security scan", "agent-powered audit", "deep code audit", or wants to find hard-to-find vulnerabilities that grep/Semgrep would miss. Use for PR security review when the user mentions "review this PR for security" or "check these changes for vulnerabilities". Prefer this over semgrep when the user wants thorough, reasoning-based investigation rather than pattern matching.