agentleFS
luochang212luochang212/skills/skills/html-report/SKILL.md

html-report

Skill1 starsChanged 7 months agoApache-2.0View on GitHub

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.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 14 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every report should be a single .html file with inline CSS and JS.

    line 31
  2. Distinctive:

    Don't default to generic blue.

    line 46
  3. Distinctive:

    Dark backgrounds: Use them sparingly — best for hero sections, architecture diagrams, or a "sandwich" structure (dark → light → dark).

    line 57
  4. Distinctive:

    Use system fonts to avoid external dependencies:

    line 61
  5. Distinctive:

    Leave breathing room — don't fill every pixel

    line 84
  6. Distinctive:

    Every section should have a visual element.

    line 88
  7. Distinctive:

    Default blue color scheme — pick colors specific to the topic

    line 103
  8. Distinctive:

    Always include at least two breakpoints:

    line 161
  9. Distinctive:

    Test by resizing the browser.

    line 165
  10. Distinctive:

    Start with the hero — title, subtitle, one visual element

    line 185
  11. Distinctive:

    Write one section at a time, top to bottom

    line 186
  12. Distinctive:

    Add interaction last — it's seasoning, not the meal

    line 187
  13. Very specific:

    Keep the CSS organized with clear section comments (/* ── Section Name ── */)

    line 188
  14. Distinctive:

    Check contrast — can you read everything comfortably?

    line 194
  15. Distinctive:

    Remove anything that doesn't earn its place

    line 195
  16. Distinctive:

    If the user's request is vague, clarify:

    line 199

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HTML Fancy Report

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.

Philosophy

HTML is often the best medium for communication

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:

SituationWhy HTML
Architecture/system overviewsBoxes and arrows show structure better than paragraphs
Product landing pagesVisual hierarchy guides the reader through features
Project status reportsSmall charts, colored timelines, visual priority
Comparison documentsSide-by-side layouts let readers compare directly
Code review summariesAnnotated diffs, severity tags, jump links
Design documentsColor swatches, type scales, component sheets
Incident post-mortemsTimeline visualization, log excerpts, checklist

The self-contained principle

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:

  • Zero friction to view — no npm install, no build, no server
  • Permanent and portable — the file will render the same way in 10 years
  • Easy to share — email it, commit it, drag it into a browser
  • The medium matches the message — the file itself embodies the philosophy

Interaction beats description

Motion 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.

Design System

Color Palettes

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.

PaletteBackgroundSurfaceAccentBest for
Editorial Warm#FBFAF8 ivory#FFFFFF white#C75B39 clayReports, docs, long-form
Dark Tech#0a0a0b deep#111114 cardcyan/tealDashboards, dev tools
Forest Fresh#FAFBF9#FFFFFF#2C5F2DNature, health, sustainability
Midnight Navy#F8F9FB#FFFFFF#1E2761Enterprise, finance, legal
Warm Stone#FAFAF9 stone#FFFFFF#B85042 terracottaCreative, design, lifestyle
Charcoal Minimal#FAFAFA#FFFFFF#36454FArchitecture, minimal products

Dark backgrounds: Use them sparingly — best for hero sections, architecture diagrams, or a "sandwich" structure (dark → light → dark).

Typography

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.

ElementSizeWeight
Page titleclamp(42px, 6vw, 68px)500 (serif)
Section header26-30px500
Card title16-20px500-600
Body text14-16px400
Captions/labels10-12px400

Spacing

  • 0.5" (48px) minimum edge margins
  • 0.3-0.5" (12-20px) between content blocks
  • Section padding: 80-120px vertical
  • Leave breathing room — don't fill every pixel

Layout Patterns

Every section should have a visual element. Text-only sections are forgettable.

  1. Hero with visual — Title + subtitle on the left, an SVG diagram or illustration on the right (2-column grid)
  2. Card grid — grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) — 3-6 cards with icons
  3. Two-column install — Side-by-side options (e.g., macOS vs Windows install)
  4. Numbered list — For trust/safety, steps, or principles — number + heading + description
  5. Dark card in light section — One dark-background card floating in a light section for emphasis
  6. Horizontal scroll gallery — Screenshots or images in a horizontal strip
  7. Pill row — Tech tags, categories, labels as rounded pills
  8. CTA box — Centered, bordered card with a call to action and big buttons

Avoid (Hallmarks of AI-Generated Slides/Pages)

  • Centered body text — left-align paragraphs, center only short titles
  • Accent lines under titles — use whitespace or background instead
  • Default blue color scheme — pick colors specific to the topic
  • Text-only layouts — add at least one visual element per section
  • Mixing random spacing — choose consistent gaps and stick to them
  • Low-contrast text — ensure readability against backgrounds

Practical Patterns

Base HTML Template

<!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>

SVG Diagrams Inline

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:

  • Rounded rects (rx="8") for boxes/nodes
  • Dashed lines (stroke-dasharray="5 3") for relationships
  • Color coding — warm for primary, cool for secondary, neutral for supporting
  • Small labels (font-size 9-11px) for annotations
  • A caption div below the SVG for context

Interactive Elements Worth Adding

  1. Copy buttons on code blocks — small, satisfying, useful
  2. Smooth scroll — html { scroll-behavior: smooth; } and anchor links
  3. Card hover effects — subtle lift (translateY(-3px)) + shadow
  4. Collapsible sections — <details>/<summary> for FAQs or deep dives
  5. Tab switchers — for comparing options or showing multiple languages

Responsive Design

Always include at least two breakpoints:

  • Tablet (768px) — switch to single column, reduce padding
  • Phone (480px) — smaller fonts, full-width cards

Test by resizing the browser. Scroll-snap can cause issues on mobile — disable it in media queries.

Typography & Statistics

For data-heavy reports, use large stat callouts:

  • Big numbers (60-72pt) with small labels below
  • One key metric per "stat card"
  • Visual hierarchy: number > label > context

Workflow

Before Writing Code

  1. Identify the audience — developer? executive? general public?
  2. Choose a palette — pick from the table above, adapted to the topic
  3. Sketch the sections — what are the 4-7 sections the reader needs?
  4. Pick a visual for each section — diagram, cards, gallery, pills, CTA

While Writing

  1. Start with the hero — title, subtitle, one visual element
  2. Write one section at a time, top to bottom
  3. Add interaction last — it's seasoning, not the meal
  4. Keep the CSS organized with clear section comments (/* ── Section Name ── */)

After Writing

  1. Open in a browser and scroll through
  2. Resize to mobile width and verify readability
  3. Check contrast — can you read everything comfortably?
  4. Remove anything that doesn't earn its place

Questions to ask before starting

If the user's request is vague, clarify:

  • What's the primary message? (one sentence)
  • Who will read this? (audience)
  • How many sections? (scope — aim for 4-7)
  • Any existing brand colors or assets to incorporate?

Bundled Reference: HTML Effectiveness Demos

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).

When to consult specific demos

User asks forLook at these demos
A product landing page or project overviewindex.html (the catalog structure), 09-slide-deck.html (section-based layout)
A comparison or code review summary03-code-review-pr.html, 17-pr-writeup.html, 01-exploration-code-approaches.html
A design system or style guide05-design-system.html, 06-component-variants.html
A status report or incident post-mortem11-status-report.html (weekly status with charts), 12-incident-report.html (timeline + log excerpts)
An architecture diagram or flowchart04-code-understanding.html (module map), 13-flowchart-diagram.html (clickable flow)
A slide deck for presentations09-slide-deck.html (arrow-key navigation)
An interactive tool or editor18-editor-triage-board.html (drag + export), 20-editor-prompt-tuner.html (live preview)
Visual design exploration02-exploration-visual-designs.html (layout + palette options)
An explainer or tutorial14-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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.