agentleFS
blueduskbluedusk/html-magazine/CLAUDE.md

html-magazine

CLAUDE.md4 starsChanged 8 months agoMITView on GitHub

html-magazine is a Claude Code plugin (skill) that transforms plain text, markdown, or HTML into a self-contained paginated HTML magazine file with page-flip navigation, sourced photography, and print-quality typography. The project uses a two-layer design: The skill does not write HTML itself — it always delegates rendering to ui-ux-pro-max. See RELEASING.md. The only file that needs a version bump is .claude-plugin/plugin.json. Use /release to automate the full flow. Uses semantic versioning: patch for fixes/tweaks, minor for new features/styles, major for…

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every generated magazine must be:

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this project is

html-magazine is a Claude Code plugin (skill) that transforms plain text, markdown, or HTML into a self-contained paginated HTML magazine file with page-flip navigation, sourced photography, and print-quality typography.

Architecture

The project uses a two-layer design:

  1. html-magazine (skills/html-magazine/SKILL.md) — the editorial brain. Handles style selection, content rewriting, sub-style randomization, and passing a complete visual brief to the rendering layer.
  2. ui-ux-pro-max (external plugin dependency) — the rendering engine. Receives the brief and generates all HTML/CSS/JS. html-magazine never prescribes colors, fonts, or layout details directly.

The skill does not write HTML itself — it always delegates rendering to ui-ux-pro-max.

Slash commands

CommandFilePurpose
/html-magazinecommands/html-magazine.mdInvoke the skill to transform content

Release process

See RELEASING.md. The only file that needs a version bump is .claude-plugin/plugin.json. Use /release to automate the full flow. Uses semantic versioning: patch for fixes/tweaks, minor for new features/styles, major for breaking changes to the skill interface.

PDF export

python3 scripts/export-pdf.py magazine.html
# Optional flags: --output filename.pdf --width 210 --height 297
# Requires: pip install playwright pypdf && playwright install chromium

Evals

Evaluation test cases are defined in evals/evals.json. Three scenarios cover Editorial (moderate rewrite), Vibrant Lifestyle (full rewrite), and Tech Minimal (light rewrite). Each case has 11–13 assertions checking HTML structure, CSS properties, navigation, and style-specific visual rules.

Style system

Four main styles, each with 5 sub-styles in references/substyles.md. Sub-styles are always randomly selected — never asked of the user, never defaulting to the first option. Each style has a reference file:

  • references/editorial.md — NYT / The Atlantic
  • references/tech-minimal.md — Wired / MIT Technology Review
  • references/vibrant-lifestyle.md — Vogue / GQ
  • references/creator.md — Dazed / i-D / The Face

Reference files define editorial voice, visual tone, and media mood only — no specific colors or fonts. Visual decisions belong to ui-ux-pro-max.

Samples site

Demo magazines live in samples/ and are deployed to https://samples-six-omega.vercel.app/.

Vercel project: bluedusks-projects/samples

To rebuild the index and deploy:

python3 scripts/deploy-samples.py              # rebuild index.html + deploy
python3 scripts/deploy-samples.py --no-deploy   # rebuild only
python3 scripts/deploy-samples.py --deploy-only  # deploy without rebuilding

The index page (samples/index.html) is a hand-crafted magazine shelf gallery with GSAP animations and iframe cover previews. The deploy script can regenerate a simpler version, but the current hand-crafted version should be preserved — use --deploy-only to deploy without overwriting it.

Output constraints

Every generated magazine must be:

  • A single self-contained HTML file (no CDN, no external CSS/JS)
  • Using system font stacks only (Georgia, Helvetica Neue, Courier New families)
  • Pages at 92vh height, width via A4 ratio calc(92vh / 1.414), horizontally centered
  • Two-page spread mode default on viewports ≥ 1100px; single page below that
  • Including a Built with html-magazine watermark linking to the GitHub repo

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.