Syntic

Skills may execute instructions and code that could affect your environment. Marketplace scans reduce risk but do not guarantee safety. Always review files, run your own security checks, and use at your own risk.

FormattingFree Safe

md-document

Security Scan Summary

Status: Safe

Source: Syntic Skills registry

Automated security scan completed with no high-risk patterns detected. Manual review is still required.

About This Skill

Use when converting long-form markdown specs, reports, or explainers into single-file HTML with TOC, search, and code-copy buttons.

Downloadable SKILL.md

Download SKILL.md and place it in your Syntic skills folder. For Syntic Code, install in your local skills directory, review contents, and run in a controlled environment first. Acknowledge the risk notice above to enable the download.

SKILL.md
---
name: md-document
description: Use when converting long-form markdown specs, reports, or explainers into single-file HTML with TOC, search, and code-copy buttons.
category: Formatting
version: 1.0.0
tools: []
---

# md-document — Markdown to HTML

Convert long-form markdown (specs, plans, RFCs, reports, explainers) into a single-file HTML document with sticky TOC, scrollspy, search filter, code-copy buttons, and design-system-driven brand tokens.

Three stdlib tools pipeline together: markdown parser (md → JSON AST) → html renderer (AST + tokens → HTML) → interactivity injector (HTML + JS behavior).

Output is one `.html` file with the user's 12 derived brand tokens. Externals limited to Google Fonts CSS and Prism.js CDN.

## What Gets Rendered

CommonMark subset with GFM extensions:
- Headings H1-H6 (every H2+ gets an anchor id and TOC entry)
- Paragraphs with inline **bold** / *italic* / `code` / [links](url) / ![images](url)
- Fenced code blocks (` ```python `) with Prism.js highlighting on demand
- GFM tables with per-column alignment
- GFM callouts (`> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, `> [!CAUTION]`)
- Blockquotes, ordered + unordered lists (single-level), horizontal rules

Out of scope: nested lists, HTML inlines, footnotes, definition lists, task list checkboxes, reference-style links.

## Hard Rules

1. Refuses input < 100 lines (markdown wins below the threshold).
2. Refuses without design-system onboarding.
3. Single-file output. All CSS + JS inline. Only externals are Google Fonts and Prism CDN.
4. Customization must change behavior. `design_style=editorial` produces 720px-wide layout with 1.75 line-height; `playful` rounds callouts and adds shadow; `technical` is dense with 0.875rem code.
5. WCAG-compliant tokens. Body text ≥ 4.5:1 contrast, links iteratively walked to 4.5:1.
6. Idempotent injection. Re-injecting interactivity is a no-op (marker check).

## Interactive Features

- Sticky-sidebar TOC for > 800 words / 4+ H2s
- Search filter for headings
- Smooth scroll on anchor clicks
- Scrollspy highlighting of current section
- Code copy buttons

## Output Artifact

Single `.html` file with 12 derived CSS custom properties, Google Fonts, Prism.js (optional), and all behavior inline.

## Asking the Right Questions

1. **What's the intended use?** Skim, decide, or deep-read? Density follows.
2. **Sticky-sidebar TOC or collapsible?** Recommended: sticky for > 800 words / 4+ H2s.
3. **Which interactive features?** Recommended: all four (TOC, search, scrollspy, copy-code).
4. **Does the document have a clear H1 title?** Recommended: yes.

Bundle Download

Includes SKILL.md and bundled support files where provided. Risk acknowledgement is required.

Install Targets

Syntic App

  1. 1. Create a dedicated folder for this skill in your local skills library.
  2. 2. Place SKILL.md into that folder.
  3. 3. Restart Syntic and invoke this skill on matching tasks.

Syntic Code (CLI)

  1. 1. Save SKILL.md in your local Syntic Code skills directory.
  2. 2. Keep related files in the same skill folder.
  3. 3. Run in a safe environment and validate outputs.

Source

https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/md-document/SKILL.md

Open Source Link
Formatting

Related Skills