agentleFS
maverickgao8848maverickgao8848/mav-skills/beautiful-article-rednote-pagination/SKILL.md

beautiful-article-rednote-pagination

Skill7 starsChanged 4 months agoMITView on GitHub

Create standalone Beautiful XHS Xiaohongshu/Rednote 3:4 PNG page sets from articles, scripts, notes, URLs, PDFs, DOCX, Markdown, or pasted text. Use when the user wants long-form content turned into Rednote carousel pages, 小红书图文卡片, or 3:4 PNG pagination with Reacticle/Beautiful Article theme tokens. This skill is independent and Rednote-only: it scaffolds its own workspace, curates source into semantic pages, exports PNGs, and does not create normal web articles, PDFs, Guizang/social-card outputs, or video covers.

The file

Show its rules and text

We split this skill into the rules it gives an agent

29 rules. About 0 are common, 18 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a standalone Rednote-only Beautiful XHS workspace.

    line 8
  2. Very specific:

    Default project output: output/<article-slug>/.

    line 16
  3. Distinctive:

    Before content curation, design, rendering, or export, ask the user to choose the Reacticle theme for this run unless the same request …

    line 33
  4. Very specific:

    Ask in Chinese: 这次想用哪个 Reacticle 主题?

    line 35
  5. Distinctive:

    Treat a "template style" as a Reacticle runtime theme, not as an independent Rednote visual template.

    line 37
  6. Very specific:

    Do not silently pick a theme during the workflow.

    line 38
  7. Very specific:

    Use --force only when intentionally overwriting scaffolded files in the target.

    line 62
  8. Very specific:

    Page Curation: write article/rednote/content.ts using the schema.

    line 71
  9. Very specific:

    Export: run npm run xhs:export, or set XHS_THEME=<theme> for a theme variant.

    line 72
  10. Very specific:

    QA: verify dimensions, readability checks, overflow, contact sheet, and full-size pages.

    line 73
  11. Very specific:

    Default to output/<article-slug>/.

    line 76
  12. Distinctive:

    Default to long-form reading retention, not quote-card compression.

    line 80
  13. Distinctive:

    Prefer original sentences, paragraph order, and argument progression.

    line 81
  14. Very specific:

    Use paragraph as the main content block.

    line 82
  15. Very specific:

    Use rich structural block types only when they make the source clearer than prose: flow, relationMap, tradeoff, checklist, and …

    line 83
  16. Distinctive:

    Add pages or recurate content when text overflows.

    line 84
  17. Distinctive:

    When a page overflows after visual enhancement, prefer splitting pages, reducing local structural-block density, or tightening only the …

    line 85
  18. Distinctive:

    Ask only when blocked by missing source material, unknown theme, unclear external media rights, or an explicit user preference decision.

    line 86
  19. Very specific:

    Keep content semantic. article/rednote/content.ts decides page kind and block meaning.

    line 91
  20. Distinctive:

    Use the page-05 quality bar as the default aesthetic benchmark: generous warm paper, a controlled asymmetric accent, nested frame …

    line 93
  21. Distinctive:

    Every theme profile must answer four visual questions: where is the reading field, what gives the page direction, what creates …

    line 94
  22. Distinctive:

    No normal Beautiful Article web deliverable.

    line 99
  23. Distinctive:

    No HTML/PDF delivery workflow.

    line 100
  24. Distinctive:

    No Guizang or social-card dependency.

    line 101
  25. Distinctive:

    No independent Rednote-only visual template system.

    line 102
  26. Distinctive:

    No full-page screenshot slicing or manual browser cropping.

    line 103
  27. Distinctive:

    No video thumbnail, cover prompt, or HyperFrames output.

    line 104
  28. Distinctive:

    Keep each generated workspace clean.

    line 108
  29. Distinctive:

    If a legacy term appears in documentation, it must be explicitly framed as a non-goal or cleanup note.

    line 110

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Beautiful Article Rednote Pagination

Create a standalone Rednote-only Beautiful XHS workspace. The output is a deterministic set of 3:4 PNG pages for Xiaohongshu/Rednote, not a normal long-form web article.

beautiful-xhs is retained only as the historical workflow alias and command prefix. The repository and frontmatter name are beautiful-article-rednote-pagination.

The skill inherits Beautiful Article's editorial spine, Reacticle semantic design language, theme anatomy, and --ra-* tokens. It replaces Beautiful Article delivery with fixed-page Rednote pagination.

Core Contract

  • Default project output: output/<article-slug>/.
  • Final page output inside the project: article/rednote-pages/page-XX.png.
  • Preview/export entry: rednote.html.
  • Main command: npm run xhs:export.
  • Page contract: every .xhs-page is exactly 1080x1440 CSS pixels and exports at 2160x2880 PNG by default.
  • Capture method: Playwright locator.screenshot() on fixed .xhs-page nodes.
  • Visual system: Beautiful Article / Reacticle semantic components, theme anatomy, and --ra-* tokens. Rednote code is a paged export adapter, not a new template system.
  • Design quality: every theme must render as a strong, recognizable design system, not a lightly styled document. Each profile owns its cover treatment, page motif, folio treatment, semantic block treatment, and quote/highlight treatment.
  • Premium page standard: a page feels high-end when content, frame, motif, and emphasis block share one visible composition logic. Do not rely on decoration density. Build a stable reading field, one directional accent, a precise inner frame, and one semantic anchor block that gives the page a landing point.
  • Theme profiles: the exporter supports tufte, press, shannon, vignelli, knuth, freddie, andy, bodoni, bayer, fuller, and sottsass.
  • Theme resolution order: XHS_THEME, then article.theme, then tufte.
  • Content model: curated page data in article/rednote/content.ts, typed by article/rednote/schema.ts.
  • Readability contract: .xhs-page owns both the Rednote --ra-text-* tokens and the inherited font-size: var(--ra-text-base). Do not only change tokens; ordinary paragraphs and semantic component bodies must inherit the page-level reading size.
  • Stability contract: visual strength must come from lightweight CSS gradients, borders, shadows, and pseudo-elements in the theme profile. Do not use external images, remote fonts, canvas animation, heavy filters, or per-article visual hacks.

Reacticle Theme Gate

Before content curation, design, rendering, or export, ask the user to choose the Reacticle theme for this run unless the same request already specifies one.

  • Ask in Chinese: 这次想用哪个 Reacticle 主题?
  • Present the available Reacticle themes: tufte, press, shannon, vignelli, knuth, freddie, andy, bodoni, bayer, fuller, sottsass.
  • Treat a "template style" as a Reacticle runtime theme, not as an independent Rednote visual template.
  • Do not silently pick a theme during the workflow. The export script can still fall back to article.theme, then tufte, for mechanical script safety.
  • Unknown themes must fail fast with the available theme list.
  • New visual templates are not allowed inside this skill. Add a new style only by adding a Reacticle runtime theme plus its Beautiful Article theme profile and a matching Rednote profile.

Quick Start

Scaffold a self-contained Rednote workspace:

node <skill-dir>\scripts\scaffold-rednote.js .\output\my-rednote-pages
cd .\output\my-rednote-pages
npm ci
$env:XHS_THEME='bayer'; npm run xhs:export

Cross-platform:

node <skill-dir>/scripts/scaffold-rednote.js ./output/my-rednote-pages
cd ./output/my-rednote-pages
npm ci
XHS_THEME=bayer npm run xhs:export

Use --force only when intentionally overwriting scaffolded files in the target.

npm ci accesses the package registry, downloads dependencies, and writes node_modules/. The first Playwright browser setup may download Chromium. Explain these effects and obtain user confirmation before running either action; the Skill may still scaffold and curate content without installing dependencies.

Workflow

  1. Theme Gate: confirm the Reacticle theme.
  2. Source Intake: normalize the user's URL/PDF/DOCX/Markdown/text into source/source.md and record extraction risk in source/extraction-notes.md. Read references/source-processing.md.
  3. Rednote Planning: decide page arc, information retention, block mix, and any asset needs. Keep this lightweight; do not recreate Beautiful Article's checkpoint system.
  4. Page Curation: write article/rednote/content.ts using the schema. Read references/content-schema.md and references/pagination-rules.md.
  5. Export: run npm run xhs:export, or set XHS_THEME=<theme> for a theme variant.
  6. QA: verify dimensions, readability checks, overflow, contact sheet, and full-size pages. Template/theme changes must also pass npm run xhs:qa:themes. Read references/export-qa.md.
  7. Delivery: return the PNG folder, rednote.html, contact-sheet.png, and a short note on theme, page count, and major editorial choices.

Default to output/<article-slug>/; honor a user-specified directory. Any URL fetch, dependency installation, browser download, overwrite, or external write requires explicit confirmation.

Content Rules

  • Default to long-form reading retention, not quote-card compression. Preserve about 55%-65% of the source text unless the user asks for a more compressed or more complete edition.
  • Prefer original sentences, paragraph order, and argument progression. Remove mainly repetition, off-topic setup, navigation noise, weak examples, and transitions that do not change the argument.
  • Use paragraph as the main content block. Use summary, aside, or quote only for emphasis; they must not replace the main body prose.
  • Use rich structural block types only when they make the source clearer than prose: flow, relationMap, tradeoff, checklist, and source-derived tables should appear no more than once every 2-3 pages by default.
  • Add pages or recurate content when text overflows. Do not solve overflow by further compressing the argument or shrinking the global body baseline.
  • When a page overflows after visual enhancement, prefer splitting pages, reducing local structural-block density, or tightening only the affected component spacing. Do not lower the global body baseline.
  • Ask only when blocked by missing source material, unknown theme, unclear external media rights, or an explicit user preference decision.

Theme Quality Rules

  • Maximize the chosen Reacticle theme's own visual logic instead of making themes converge. For example: tufte should feel data-ink/rule based; press like warm print; shannon like dark evidence; vignelli like a Swiss grid; knuth like a proof; freddie like yellow-black system mapping; andy like soft rounded cards; bodoni like a Didone broadsheet; bayer like Bauhaus geometry; fuller like a dark geodesic structure; sottsass like Memphis offset.
  • Keep content semantic. article/rednote/content.ts decides page kind and block meaning; scripts/rednote-theme-profiles.js decides visual treatment.
  • The contact sheet must show a clear cover, consistent page rhythm, scannable structural blocks, and a visible difference between themes.
  • Use the page-05 quality bar as the default aesthetic benchmark: generous warm paper, a controlled asymmetric accent, nested frame precision, strong title hierarchy, and a boxed semantic takeaway. Other themes should reach the same level of compositional control while keeping their own vocabulary.
  • Every theme profile must answer four visual questions: where is the reading field, what gives the page direction, what creates craft/precision, and which block is the semantic anchor. If any answer is missing, strengthen the profile before exporting final PNGs.
  • Ignore accidental style pollution from mixed screenshots or overlapping experiments. Judge the theme by its own token system and by the final contact sheet rhythm.

Non-Goals

  • No normal Beautiful Article web deliverable.
  • No HTML/PDF delivery workflow.
  • No Guizang or social-card dependency.
  • No independent Rednote-only visual template system.
  • No full-page screenshot slicing or manual browser cropping.
  • No video thumbnail, cover prompt, or HyperFrames output.

Cleanup Rule

Keep each generated workspace clean. Do not leave unused source files, old web article entrypoints, placeholder components, duplicate content trees, or unexplained build products.

If a legacy term appears in documentation, it must be explicitly framed as a non-goal or cleanup note.

Bundled Resources

  • scripts/scaffold-rednote.js: copy the standalone template into a working directory.
  • scripts/source-to-markdown.py: lightweight source extraction fallback.
  • scripts/source-to-markdown-markitdown.py: MarkItDown-backed extraction for complex documents.
  • assets/rednote-template/: standalone Node/Playwright exporter, theme profiles, and starter content schema.
  • assets/rednote-template/scripts/qa-themes.js: exports all supported themes into article/rednote-pages-qa/<theme>/ and validates dimensions, overflow, body size, and PNG dimensions.
  • references/source-processing.md: source normalization and extraction checks.
  • references/pagination-rules.md: Rednote page curation rules.
  • references/content-schema.md: schema and block type guidance.
  • references/export-qa.md: export commands, environment variables, and QA checks.

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.