Skip to content

wanshuiyin/Auto-claude-code-research-in-sleep / skills/skills-codex/render-html

render-html

Verified

Render an ARIS Markdown / JSON artifact (IDEA_REPORT, AUTO_REVIEW, KILL_ARGUMENT, PAPER_PLAN, research-wiki state, etc.) into a single-file HTML view designed for human reading. Use when the user says "渲染 HTML", "出一份 HTML 报告", "render html", "make this readable", "export to html", or wants a polished web-rendered view of a Markdown artifact.

FileKindSize
SKILL.mdskill md20.6 KB
scripts/render_html.pyscript36.2 KB
scripts/templates/academic.htmlother8.4 KB
scripts/templates/dashboard.htmlother8.2 KB

scripts/templates/academic.html

View on GitHub
<!DOCTYPE html>
<html lang="{{LANG}}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{TITLE}}</title>

<meta name="generator" content="ARIS render-html (academic, v1)">
<meta name="aris:source-path" content="{{SOURCE_PATH}}">
<meta name="aris:source-sha256" content="{{SOURCE_SHA256}}">
<meta name="aris:generated-at" content="{{GENERATED_AT}}">

{{HEAD_CDN}}

<style>
:root {
  --bg: #fdfcf7;
  --bg-soft: #f4f1ea;
  --bg-code: #f8f5ec;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #6b6b6b;
  --primary: #1a4a8c;
  --primary-soft: #2d6cb8;
  --accent: #b8390e;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --info-bg: #dbeafe;
  --good-bg: #d1fae5;
  --good: #065f46;
  --bad-bg: #fee2e2;
  --bad: #991b1b;
  --border: #d6d0c0;
  --border-soft: #e8e3d5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Source Serif Pro", "Source Serif 4", "Crimson Pro", "Georgia", "Songti SC", "STSong", serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 40px 32px;
}

nav.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 13px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-right: 1px solid var(--border-soft);
  padding-right: 16px;
}
nav.toc h3 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 600;
}
nav.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
nav.toc ol li { margin: 5px 0; counter-increment: toc; }
nav.toc ol li::before { content: counter(toc) ". "; color: var(--ink-muted); margin-right: 4px; }
nav.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
nav.toc a:hover { color: var(--primary); border-bottom-color: var(--primary); }
nav.toc ul { list-style: none; padding-left: 14px; margin: 3px 0; font-size: 12px; }
nav.toc ul li::before { content: "→ "; color: var(--border); }

main { min-width: 0; }

header.hero {
  border-bottom: 3px double var(--primary);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
header.hero .eyebrow {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 8px;
}
header.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
header.hero .subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-style: italic;
}
header.hero .byline {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
header.hero .byline strong {
  color: var(--ink);
  font-weight: 600;
}
header.hero .meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}
header.hero .meta span strong { color: var(--ink-soft); }
header.hero .meta code {
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

h2 {
  font-size: 24px;
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
}
h2 .num { color: var(--primary); font-weight: 600; margin-right: 8px; }
h3 { font-size: 19px; margin: 28px 0 10px; color: var(--primary); font-weight: 600; }
h4 { font-size: 16px; margin: 20px 0 8px; color: var(--ink); font-weight: 600; }

p { margin: 10px 0; }
ul, ol { padding-left: 22px; margin: 10px 0; }
ul li, ol li { margin: 4px 0; }
ul li::marker { color: var(--primary); }

strong { color: var(--accent); font-weight: 600; }
em { color: var(--ink-soft); }

a { color: var(--primary); }
a:hover { color: var(--accent); }

code:not(.hljs) {
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.86em;
  background: var(--bg-code);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
  color: var(--accent);
}

pre {
  background: #fafaf6;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 0;
  overflow-x: auto;
  border-radius: 4px;
  margin: 14px 0;
}
pre code, pre code.hljs {
  background: transparent !important;
  display: block;
  padding: 14px 18px !important;
  font-size: 13px;
  line-height: 1.55;
  font-family: "JetBrains Mono", "SF Mono", "Menlo", monospace;
  color: var(--ink);
}
pre.diagram {
  background: #f9f6ed;
  border-left: 4px solid var(--accent);
  font-size: 12.5px;
  line-height: 1.4;
}

.callout {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 4px solid;
  font-size: 15px;
}
.callout-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.callout-info { background: var(--info-bg); border-left-color: var(--primary); }
.callout-info .callout-title { color: var(--primary); }
.callout-warn { background: var(--warn-bg); border-left-color: var(--warn); }
.callout-warn .callout-title { color: var(--warn); }
.callout-good { background: var(--good-bg); border-left-color: var(--good); }
.callout-good .callout-title { color: var(--good); }
.callout-bad { background: var(--bad-bg); border-left-color: var(--bad); }
.callout-bad .callout-title { color: var(--bad); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
thead { background: var(--primary); color: white; }
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
th { font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-soft); }

details.qa, details {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  margin: 10px 0;
  padding: 0;
}
details summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "▸ ";
  margin-right: 4px;
  display: inline-block;
  transition: transform 0.15s;
}
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { border-bottom: 1px solid var(--border-soft); }
details > :not(summary) { padding: 10px 14px; }
details p:first-of-type { margin-top: 8px; }

mjx-container[display="true"] { margin: 12px 0 !important; }

footer.aris-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
}
footer.aris-footer a { color: var(--ink-muted); border-bottom: 1px dotted var(--border); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  nav.toc {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding-right: 0;
    padding-bottom: 14px;
  }
  header.hero h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
@media print {
  nav.toc { display: none; }
  .layout { grid-template-columns: 1fr; padding: 0; }
  body { background: white; }
  header.hero { border-bottom-color: var(--ink); }
}
</style>
</head>
<body>
<div class="layout">

<nav class="toc">
  <h3>{{TOC_LABEL}}</h3>
  {{TOC_HTML}}
</nav>

<main>
<header class="hero">
  {{EYEBROW_BLOCK}}
  <h1>{{TITLE}}</h1>
  {{SUBTITLE_BLOCK}}
  {{BYLINE_BLOCK}}
  <div class="meta">
    <span><strong>Source:</strong> <code>{{SOURCE_PATH}}</code></span>
    <span><strong>SHA256:</strong> <code>{{SOURCE_SHA256_SHORT}}</code></span>
    <span><strong>Rendered:</strong> {{GENERATED_AT}}</span>
    {{EXTRA_META}}
  </div>
</header>

{{BODY_HTML}}

<footer class="aris-footer">
  Generated by <a href="https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/render-html/SKILL.md">ARIS <code>/render-html</code></a> ·
  source path <code>{{SOURCE_PATH}}</code> ·
  SHA256 <code>{{SOURCE_SHA256_SHORT}}</code> ·
  generated at {{GENERATED_AT}}.
  This is a generated view — edit the source Markdown, then re-render.
</footer>
</main>

</div>
</body>
</html>
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall