Skip to content

DeepCogNeural/html-artifact-report-skill

Repository files navigation

HTML Report Skill for AI Agents

English 简体中文 Español 日本語 Français

CI License: MIT Contract

Turn notes or Markdown into a readable standalone HTML report plus a schema-checked JSON manifest.

Use it when an agent output is too important to leave as chat or a Markdown wall: decision briefs, technical reviews, research reports, incident writeups, strategy memos, and data-heavy summaries.

Why this exists: people need a report they will actually read; future agents need a manifest they can verify without scraping prose. html-artifact-report gives both outputs from one contract.

It is a portable skill for Claude Code, Codex, Cursor, Gemini CLI, DeepSeek-backed clients, and any file-reading coding agent:

  • artifact.html: a warm editorial single-file report that people can read.
  • artifact.json: a structured manifest that future agents can verify, diff, and reuse.
  • Checker-enforced alignment: HTML data-section-id / data-component-id values must match the JSON contract.

HTML Artifact Report Skill preview

Why Agents Use It

Markdown is a good source format, but it is a poor final surface for substantial work. Pretty HTML alone is also not enough, because the next agent has to scrape and guess.

This skill keeps each format in its proper job. Markdown can be input. HTML is the reading surface. JSON is the agent interface. The manifest records sections, components, claims, evidence, source hashes, verification, and limitations.

The visual style is inspired by the broader HTML artifact workflow: answer first, warm editorial typography, dense but readable layouts, folded raw evidence, and diagrams/tables where they help. This is a clean-room implementation; no third-party templates, screenshots, CSS, or assets are copied.

Install

Pick your agent and install only for that client.

Claude Code:

npx skills add DeepCogNeural/html-artifact-report-skill \
  --agent claude-code \
  --skill html-artifact-report \
  -g -y

Codex:

npx skills add DeepCogNeural/html-artifact-report-skill \
  --agent codex \
  --skill html-artifact-report \
  -g -y

Check that the skill is discoverable:

npx skills add DeepCogNeural/html-artifact-report-skill --list

Use without installing:

npx skills use DeepCogNeural/html-artifact-report-skill@html-artifact-report

Agent Install Matrix

Agent Install First prompt
Claude Code npx skills add DeepCogNeural/html-artifact-report-skill --agent claude-code --skill html-artifact-report -g -y Use html-artifact-report. Turn notes.md into artifact.html and artifact.json. Run both checkers.
Codex npx skills add DeepCogNeural/html-artifact-report-skill --agent codex --skill html-artifact-report -g -y Use html-artifact-report. Read SPEC.md and one example first, then validate HTML/JSON alignment.
Cursor npx skills add DeepCogNeural/html-artifact-report-skill --agent cursor --skill html-artifact-report -g -y Use the repo skill instructions. Produce both files and do not treat JSON as a second essay.
Gemini CLI npx skills add DeepCogNeural/html-artifact-report-skill --agent gemini-cli --skill html-artifact-report -g -y Use this skill as a file-based workflow. Read SKILL.md, SPEC.md, and one example.
DeepSeek-backed agents Install through the client running DeepSeek, or paste the one-off prompt from npx skills use. Use DeepSeek as the model, but follow this repository's SKILL.md/SPEC.md contract.
Any file-reading agent Clone this repo and point the agent at SKILL.md. Follow SKILL.md exactly. Output artifact.html and artifact.json, then run the Python checkers.

Full setup guide: docs/agents.md.

Copy-Paste Quickstart

Use the html-artifact-report skill.

Input: notes.md
Output:
- artifact.html
- artifact.json

Read these first:
- SKILL.md
- SPEC.md
- templates/desktop-report-template.html
- components/report-components.md
- one complete example under examples/

The JSON manifest is not a prose duplicate.
It must validate against contract/artifact-report.schema.json and align with
the HTML data-section-id / data-component-id values.

Run:
python3 scripts/check_html_artifact.py artifact.html
python3 scripts/check_artifact_json.py artifact.json --html artifact.html

Examples Gallery

Example HTML JSON Use case
Executive decision brief artifact.html artifact.json First-screen recommendation and decision evidence
Data-heavy report artifact.html artifact.json Tables and raw evidence folded behind readable summaries
Technical design review artifact.html artifact.json Architecture review with cross-checked IDs
CJK report artifact.html artifact.json CJK prose with stable machine IDs

Run the full validation suite:

python3 scripts/check_examples.py
python3 -m unittest discover -s tests

Public Contract

Every completed report must include:

  1. A standalone artifact.html.
  2. A paired artifact.json.
  3. <meta name="artifact-contract" content="artifact-report.v1"> in HTML.
  4. Matching IDs:
    • HTML sections use data-section-id.
    • HTML components use data-component-id.
    • JSON sections[].id and components[].id must match the HTML exactly.
  5. Source hashes for local evidence files.
  6. Verification and limitations in both the manifest and the visible report.

Required JSON fields:

schema_version, artifact_id, title, template_version, source_hashes,
sections, components, claims, evidence, verification, limitations

Checker-Enforced Rules

  • Canonical warm editorial profile: single 1180px column, serif headings, warm palette.
  • Answer-first TL;DR and summary cards.
  • At least one meaningful visual or table.
  • Folded raw evidence, not giant default visible tables.
  • Visible verification and limitations.
  • No default sidebar TOC, tab-hidden main content, purple gradients, GitHub-dark shell, or generic AI slop.
  • JSON schema validity.
  • Duplicate ID detection on both HTML and JSON.
  • Bidirectional HTML/JSON section and component alignment.
  • Source-hash checks for local evidence files.
  • Negative fixtures proving bad/slop and drift cases fail.

Agent Discoverability

This repo is built so agents can find the contract without crawling everything:

  • AGENTS.md: repository instructions for coding agents.
  • llms.txt: short curated agent map.
  • docs/agents.md: installation and first-run prompts.
  • SKILL.md: runtime skill instructions.
  • SPEC.md: public artifact contract.
  • examples/*/artifact.{html,json}: golden examples for forward testing.

Recommended GitHub topics:

ai-agents, agent-skill, claude-code, codex, cursor, gemini-cli,
deepseek, llm, html-report, json-schema, documentation, evidence

Multilingual Quickstarts

What This Is Not

  • Not a website builder.
  • Not a Markdown-to-HTML converter.
  • Not a GUI app.
  • Not a template marketplace.
  • Not a replacement for human visual review before publishing.

The point is not to make every possible page. The point is to make one kind of report reliably excellent.

Prior Art

This is a clean-room implementation inspired by:

No third-party code, templates, screenshots, or assets are copied in v1. See ATTRIBUTIONS.md.

Repository Layout

.
├── AGENTS.md
├── SKILL.md
├── SPEC.md
├── llms.txt
├── contract/
├── templates/
├── components/
├── references/
├── examples/
├── docs/
├── scripts/
└── tests/

Contributing

Keep the scope tight. v1 is a report skill, not an app. See CONTRIBUTING.md.

License

MIT. Generated artifacts may include template HTML/CSS from this repository; see LICENSE and SPEC.md.