LE

legacy-html-exporter

Export Markdown specs into standalone HTML files for easier reading by non-technical stakeholders.

Install

mkdir -p .claude/skills/legacy-html-exporter && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13089" && unzip -o skill.zip -d .claude/skills/legacy-html-exporter && rm skill.zip

Installs to .claude/skills/legacy-html-exporter

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Export stakeholder-facing Markdown artifacts into standalone HTML companions for easier reading in pilot reviews, SME walkthroughs, and business sign-off sessions. Use when the user asks for HTML versions of BRDs, specs, review packs, question packs, traceability pages, STATUS pages, or other user / SME-facing docs. Supplemental skill only: Markdown remains the canonical source, and this skill generates `.html` companions plus optional directory `index.html` pages without redefining the underlying artifact contract.
521 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Convert Markdown artifacts to standalone HTML companions
  • Generate optional directory `index.html` pages
  • Preserve original document structure in HTML
  • Improve readability for pilot reviews and SME walkthroughs
  • Support BRDs, specs, review packs, and STATUS pages

How it works

The skill converts human-facing Markdown artifacts into standalone HTML companions and optional directory `index.html` pages, improving readability for stakeholders while keeping Markdown as the canonical source.

Inputs & outputs

You give it
One Markdown file path or one directory containing Markdown files
You get back
`.html` companion files and optional directory `index.html` pages

When to use legacy-html-exporter

  • Exporting a BRD to HTML
  • Creating a spec review pack
  • Generating a status page for stakeholders

About this skill

<!-- Legacy Spec Factory Copyright 2026 Leo L Zhang Original author: Leo L Zhang License: Apache License 2.0 This skill is part of the Legacy Spec Factory project. Retain this notice in substantial copies or derived versions. -->

Legacy HTML Exporter

Skill Card

FieldNotes
Problem solvedCreates easier-to-read standalone HTML companions for stakeholder-facing Markdown artifacts.
InputCanonical Markdown artifacts such as BRDs, specs, review packs, question packs, traceability pages, and STATUS pages.
Output.html companion files and optional directory index.html pages, with Markdown remaining canonical.
Core prompt strategyRender for readability without changing artifact meaning, links, IDs, evidence status, or approval state.
Upstream skillAny Legacy Spec Factory skill that produced stakeholder-facing Markdown.
Downstream consumerSMEs, pilot reviewers, business sign-off sessions, and non-technical stakeholders.
Validation standardHTML mirrors the Markdown content, local links resolve where possible, and no contract fields are redefined.
Known riskStakeholders treating the HTML copy as the source of truth instead of the canonical Markdown.
Practical exampleExport a BRD package and traceability page to HTML before a walkthrough with operations SMEs.

Convert human-facing Markdown artifacts into standalone HTML so SMEs, business users, and pilot reviewers can read the same content in a browser without changing the canonical source format.

Purpose

The Legacy Spec Factory deliberately keeps reviewable artifacts in Markdown: portable across Codex, Claude Code, and OpenCode; diffable in git; easy to validate; and stable as the source of truth. That is still the right default.

But pilot reviews often involve readers who are more comfortable with:

  • browser scrolling instead of raw Markdown
  • wider table layouts
  • printable pages
  • a single click-open index.html for a capability package

This skill adds that convenience layer without changing the artifact contract. It creates HTML companions for docs such as:

  • brd.md
  • spec.md
  • sdd-handoff.md
  • *-review.md
  • traceability.md
  • question-pack.md
  • STATUS.md
  • programs-batch-digest.md
  • object-map.md

When to Use

Trigger on any of these signals:

  • The user asks for "HTML", "web view", "browser-readable", "给 SME 看更方便", "导出成 html", or similar
  • A capability package already exists in Markdown and needs a more convenient review surface for user / SME walkthroughs
  • A pilot review is blocked by "these docs are hard to read as raw Markdown"
  • The user wants a whole folder of human-facing artifacts exported at once

When NOT to Use

Do NOT trigger when:

  • The user needs the canonical artifact itself rewritten or regenerated (route to the producing skill instead)
  • The user is asking for machine-readable structured output (spec.yaml, sdd-handoff.yaml, JSON bundles, manifests)
  • The caller wants HTML to become the source of truth
  • The source Markdown is still unstable, incomplete, or blocked and should be fixed first
  • The request is really about publishing a full external website rather than internal review convenience

This skill is a companion-rendering step, not a replacement for BRD/spec/review generation and not a web publishing pipeline.

Non-Negotiable Guardrail

If a caller asks to make HTML the new source of truth, overwrite Markdown with HTML, or ignore the Markdown after export, block that request.

The correct policy is always:

  • Markdown remains canonical
  • HTML is a companion view only
  • if content is wrong, fix Markdown first and regenerate HTML

When this guardrail is triggered, prefer an explicit answer shape:

- action: blocked
- reason: HTML companion export does not replace the Markdown source of truth
- canonical source of truth: <original .md path>

Do not soften, reinterpret, or partially comply with this guardrail. If the caller asks to promote .html above .md, the answer must stay blocked.

If the caller both asks for HTML export and tries to replace the source of truth, the source-of-truth guardrail wins. Do not "split the difference".

Layer Position

Supplemental rendering skill. It does not advance the linear legacy-analysis stage and does not alter review status, approvals, IDs, or evidence strength.

Use it after a human-facing Markdown artifact already exists.

Inputs

Accept:

  • One Markdown file path to export
  • One directory containing Markdown files to export
  • Optional --recursive intent when the user wants a whole capability or demo tree rendered
  • Optional target subset if only specific files in a directory should be exported

Input readiness scoring:

  • 0-5 blocked: no readable Markdown source exists; path is ambiguous; the caller actually wants canonical content rewritten; source file is not Markdown.
  • 6 minimum_pass: one stable Markdown file or one clear directory exists.
  • 7-8 usable: the caller has identified the target package or audience (e.g. SME, pilot review, business user).
  • 9-10 strong: the export scope is explicit (single file vs package), and the human-facing docs are already complete enough for review.

Stop conditions:

  • Source path does not exist
  • Source is not .md
  • Caller asks to overwrite the source with HTML
  • Markdown is still blocked and should be fixed upstream before packaging

If a stop condition is hit, do not continue into "best effort" export advice that violates the contract.

Output Contract

By default, write HTML companions beside the Markdown source:

  • foo.mdfoo.html
  • directory mode also writes index.html at the supplied directory root

The HTML output must:

  • remain standalone with no network dependency
  • preserve headings, tables, lists, checklists, safe links, quotes, and code blocks
  • keep the underlying Markdown path visible so reviewers know the canonical source
  • avoid inventing or transforming business content
  • downgrade runtime-specific local links (file://, vscode://, command:, javascript:, VSCode webview CDN, and local absolute paths) into visible source references instead of clickable href values

The HTML output must NOT:

  • become the authoritative artifact instead of .md
  • silently drop sections from the source Markdown
  • add new business statements, approvals, or IDs
  • rewrite YAML / JSON machine artifacts into fake HTML substitutes unless the user explicitly asked for a human-readable companion

If a caller requests any forbidden item above, block instead of partially complying.

Canonical Script

Use:

  • scripts/render_stakeholder_html.py as the stable entrypoint
  • skills/legacy-html-exporter/scripts/render_stakeholder_html.py as the canonical skill-owned implementation
  • skills/legacy-html-exporter/scripts/export_contract_helper.py for deterministic contract-only / no-write smoke responses

The root script exists for convenience and should stay behaviorally aligned with the skill-owned script.

Step Contract

Fast Decision Rules

Apply this decision order exactly:

  1. If the prompt says HTML should replace Markdown, answer with the blocked template and stop.
  2. Else if the prompt is a contract-only / no-write smoke test for one .md file, use export_contract_helper.py or follow its exact logic: infer the sibling .html path, return the requested labels only, and stop.
  3. Else if the prompt is a normal export request for one .md file, run the renderer and report the emitted .html path.
  4. Else if the prompt is a directory export request, use directory mode and report the relevant .html / index.html outputs.

Do not inspect more files than the active branch requires.

Input

  • Required: one existing Markdown file or one directory containing Markdown files
  • Optional: recursive export intent; a narrowed list of target docs; a custom index title
  • Readiness checks: source exists; source files are human-facing docs suitable for browser reading; caller understands Markdown remains canonical
  • Stop conditions: nonexistent path; non-Markdown source; request to treat HTML as the system of record

Execution

  • Procedure:
    1. Confirm whether the request is single-file export or package export
    2. Select only the human-facing Markdown docs in scope
    3. If the prompt is a contract-only or no-write smoke test, do not actually run the script; infer the sibling .html path from the contract
    4. In GitHub Copilot hosted-agent mode, do not run Python or configure an environment; report the renderer path and expected output path as manual follow-up text. In an already-prepared local shell only, run scripts/render_stakeholder_html.py with an existing Python interpreter. The renderer uses only the Python standard library; do not create a virtual environment, install packages, or wait on interactive environment configuration. If Python is unavailable or startup remains configuring/evaluating for more than about 30 seconds, do not claim export success.
    5. Report generated or expected .html paths back to the user
  • Allowed inference: if the user says "给 SME 看这些文档", infer that the relevant Markdown package or capability directory should be exported
  • Forbidden assumptions: changing source content; exporting YAML/JSON as if they were the reviewed source; claiming HTML is canonical; omitting source files without noting scope
  • Output discipline: when the caller says Return only, respond with only the requested labels / bullets. Do not add extra sections, explanations, or permission requests.
  • Smoke-test discipline: when the prompt says contract-only no-write smoke test or do not create or edit files, never ask to execute the renderer, never request approval, and never imply that HTML becomes canonical.
  • **S

Content truncated.

When not to use it

  • When the user needs the canonical artifact itself rewritten or regenerated
  • When the user is asking for machine-readable structured output
  • When the caller wants HTML to become the source of truth

Limitations

  • Markdown remains canonical
  • HTML is a companion view only
  • Does not replace BRD/spec/review generation

How it compares

This skill generates HTML companions for Markdown documents for easier review, unlike directly sharing raw Markdown which may be less accessible for non-technical stakeholders.

Compared to similar skills

legacy-html-exporter side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
legacy-html-exporter (this skill)02moReviewBeginner
ml-paper-writing486moReviewAdvanced
docs-review107moNo flagsBeginner
claude-md-improver216moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

ml-paper-writing

davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.

4897

docs-review

metabase

Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.

1085

claude-md-improver

anthropics

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".

2167

write-docs

tldraw

Writing SDK documentation for tldraw. Use when creating new documentation articles, updating existing docs, or when documentation writing guidance is needed. Applies to docs in apps/docs/content/.

665

update-docs

vercel

This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature", "document this feature", "review docs completeness", "add docs for this change", "what documentation is affected", "docs impact", or mentions "docs/", "docs/01-app", "docs/02-pages", "MDX", "documentation update", "API reference", ".mdx files". Provides guided workflow for updating Next.js documentation based on code changes.

2543

wiki-architect

microsoft

Analyzes code repositories and generates hierarchical documentation structures with onboarding guides. Use when the user wants to create a wiki, generate documentation, map a codebase structure, or understand a project's architecture at a high level.

1144

Search skills

Search the agent skills registry