All skills
aktsmm avatar

/single-html-forge

@8bcd12d
by yamapanaktsmm/agent-skills26 stars
4

Generate a single self-contained HTML file — a horizontal slide deck, a vertical-scroll explainer document, or a fixed-canvas summary image — with zero external runtime dependencies, then verify it mechanically. Use when the user asks for HTMLスライド, 単一HTMLスライド, single-file HTML presentation, ブラウザーで開く説明資料, HTML 説明資料, HTMLサマリ画像, or self-contained HTML, or wants to hand someone a deck or explainer that opens anywhere without PowerPoint. Also use to embed images into such a file or to re-check an existing one. Does not output PPTX.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/single-html-forge

This session only. Nothing lands on disk.

referencesjapanese-typography.md

≈747 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Japanese typography

The templates already set this up. The notes here explain what to preserve when writing content.

Font stack

font-family:
  "Segoe UI", "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;

Windows lands on Yu Gothic UI, macOS and iOS on Hiragino Sans, Android on its own sans. The same file therefore renders with different glyphs on different machines. That is the price of a genuinely self-contained file: bundling a Japanese web font would add megabytes and a licence question.

Say this plainly when someone asks about pixel fidelity. Line breaks can land differently across machines, which is why layouts here are built to tolerate a line more, not to be pixel-perfect.

What the templates set

font-feature-settings: "palt" 1; /* proportional kana and punctuation spacing */
line-break: strict; /* proper kinsoku */
overflow-wrap: anywhere; /* long tokens wrap instead of overflowing */
line-height: 1.7 – 1.8; /* CJK needs more than a Latin default */

palt matters. Without it, Japanese punctuation carries full-width sidebearings and headlines look gappy.

line-break: strict keeps 、。 ) off the start of a line and ( off the end. Loosening it is what makes text look subtly wrong without an obvious cause.

Writing rules

  • Put a half-width space between Japanese and Latin or digits: HTML の仕様, 3 つの論点. Not around punctuation.
  • Do not insert manual line breaks to control wrapping. They will be wrong at another width or on another machine.
  • Headings read better short. Japanese has no inter-word spaces, so a long heading gives the eye nowhere to break.
  • Prefer full-width 、。 in body text and half-width , . inside code.
  • Avoid mixing ~ and 〜 in one document.

Line length

--shf-size-measure defaults to 74ch in the doc archetype. For Japanese that is roughly 37 characters per line, which is close to the comfortable range of 35–45. Widening past that is the most common reason a document becomes tiring to read.

Numbers and units

Use half-width digits. Keep a space before a unit (12 GB), except for % and °C. Tabular figures are worth it in tables:

font-variant-numeric: tabular-nums;

Things that break silently

  • overflow-wrap: anywhere は長い token を守る一方、短い日本語ラベルを意味の途中で折ることがある。短い caption / card label だけ word-break: keep-all; overflow-wrap: normal にし、Tier 2 で overflow を確認する。
  • A <code> element inherits palt unless the template resets it. The deck and doc CSS already do; if you add code elsewhere, check the spacing.
  • Vertical writing (writing-mode: vertical-rl) is not supported in v1. The stage sizing assumes horizontal.
  • Rare glyphs may fall back to a different face mid-sentence on some machines. Nothing to do about it in a font-free artifact, but it is worth knowing before someone reports it as a bug.

Source: SKILL.md on GitHub

No alerts22d3 checks · Risk SAFE
  • Gen Agent Trust Hub22d

    This skill provides a secure framework for generating self-contained HTML presentations and documents. It incorporates an extensive security and verification harness, including SHA-256 hash pinning for CSS and JavaScript, a strict HTML tag allowlist, and a custom lexical preflight to prevent parser-confusion attacks. The skill also includes mechanical checks (Tier 2 Playwright verification) to block network egress and ensure artifact integrity before publication.

  • Socket22d

    No alerts

  • Snyk22d

    Risk: LOW · No issues

Signed by skilld at 8bcd12d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 2 days ago
argument-hint
作りたい内容と、deck / doc / poster のどれか
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/single-html-forge