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.
In this repository14 other files it gives its agents.
- article-annotation-pageSkill
- claudemd-updaterSkill
- crazy-realist-friend-skillSkill
- garbage-collectionSkill
- ia-planner-skillSkill
- loop-contract-builderSkill
- mav-cover-skillSkill
- mav-slidecraft-skillSkill
- motion-conceptSkill
- patient-pm-skillSkill
- resource-inventorySkill
- solution-researcher-skillSkill
- upgraderSkill
- visual-explorer-skillSkill
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
- Distinctive: line 8
Create a standalone Rednote-only Beautiful XHS workspace.
- Very specific: line 16
Default project output: output/<article-slug>/.
- Distinctive: line 33
Before content curation, design, rendering, or export, ask the user to choose the Reacticle theme for this run unless the same request …
- Very specific: line 35
Ask in Chinese: 这次想用哪个 Reacticle 主题?
- Distinctive: line 37
Treat a "template style" as a Reacticle runtime theme, not as an independent Rednote visual template.
- Very specific: line 38
Do not silently pick a theme during the workflow.
- Very specific: line 62
Use --force only when intentionally overwriting scaffolded files in the target.
- Very specific: line 71
Page Curation: write article/rednote/content.ts using the schema.
- Very specific: line 72
Export: run npm run xhs:export, or set XHS_THEME=<theme> for a theme variant.
- Very specific: line 73
QA: verify dimensions, readability checks, overflow, contact sheet, and full-size pages.
- Very specific: line 76
Default to output/<article-slug>/.
- Distinctive: line 80
Default to long-form reading retention, not quote-card compression.
- Distinctive: line 81
Prefer original sentences, paragraph order, and argument progression.
- Very specific: line 82
Use paragraph as the main content block.
- Very specific: line 83
Use rich structural block types only when they make the source clearer than prose: flow, relationMap, tradeoff, checklist, and …
- Distinctive: line 84
Add pages or recurate content when text overflows.
- Distinctive: line 85
When a page overflows after visual enhancement, prefer splitting pages, reducing local structural-block density, or tightening only the …
- Distinctive: line 86
Ask only when blocked by missing source material, unknown theme, unclear external media rights, or an explicit user preference decision.
- Very specific: line 91
Keep content semantic. article/rednote/content.ts decides page kind and block meaning.
- Distinctive: line 93
Use the page-05 quality bar as the default aesthetic benchmark: generous warm paper, a controlled asymmetric accent, nested frame …
- Distinctive: line 94
Every theme profile must answer four visual questions: where is the reading field, what gives the page direction, what creates …
- Distinctive: line 99
No normal Beautiful Article web deliverable.
- Distinctive: line 100
No HTML/PDF delivery workflow.
- Distinctive: line 101
No Guizang or social-card dependency.
- Distinctive: line 102
No independent Rednote-only visual template system.
- Distinctive: line 103
No full-page screenshot slicing or manual browser cropping.
- Distinctive: line 104
No video thumbnail, cover prompt, or HyperFrames output.
- Distinctive: line 108
Keep each generated workspace clean.
- Distinctive: line 110
If a legacy term appears in documentation, it must be explicitly framed as a non-goal or cleanup note.
≈ “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.
Files
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-pageis exactly 1080x1440 CSS pixels and exports at 2160x2880 PNG by default. - Capture method: Playwright
locator.screenshot()on fixed.xhs-pagenodes. - 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, andsottsass. - Theme resolution order:
XHS_THEME, thenarticle.theme, thentufte. - Content model: curated page data in
article/rednote/content.ts, typed byarticle/rednote/schema.ts. - Readability contract:
.xhs-pageowns both the Rednote--ra-text-*tokens and the inheritedfont-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, thentufte, 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:exportCross-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:exportUse --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
- Theme Gate: confirm the Reacticle theme.
- Source Intake: normalize the user's URL/PDF/DOCX/Markdown/text into
source/source.mdand record extraction risk insource/extraction-notes.md. Readreferences/source-processing.md. - Rednote Planning: decide page arc, information retention, block mix, and any asset needs. Keep this lightweight; do not recreate Beautiful Article's checkpoint system.
- Page Curation: write
article/rednote/content.tsusing the schema. Readreferences/content-schema.mdandreferences/pagination-rules.md. - Export: run
npm run xhs:export, or setXHS_THEME=<theme>for a theme variant. - QA: verify dimensions, readability checks, overflow, contact sheet, and full-size pages. Template/theme changes must also pass
npm run xhs:qa:themes. Readreferences/export-qa.md. - 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
paragraphas the main content block. Usesummary,aside, orquoteonly 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:
tufteshould feel data-ink/rule based;presslike warm print;shannonlike dark evidence;vignellilike a Swiss grid;knuthlike a proof;freddielike yellow-black system mapping;andylike soft rounded cards;bodonilike a Didone broadsheet;bayerlike Bauhaus geometry;fullerlike a dark geodesic structure;sottsasslike Memphis offset. - Keep content semantic.
article/rednote/content.tsdecides page kind and block meaning;scripts/rednote-theme-profiles.jsdecides 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 intoarticle/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.
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
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.

