openpress-create-pages
Skill14 starsChanged 4 months agoMITView on GitHub
Use when creating or extending a page-based OpenPress artifact such as a report, proposal, paper, book, teaching note, or handbook.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- openpress-apply-commentsSkill
- openpress-collaborateSkill
- openpress-create-slideSkill
- openpress-deploySkill
- openpress-pluginsSkill
- openpressSkill
- openpress-upgradeSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 26
Use page="a4" for reports, proposals, whitepapers, papers, books, teaching notes, and handbooks.
- Very specific: line 27
Keep geometry on <Press page>, not in CSS.
- Very specific: line 29
Keep artifact-local components, media, and theme under press/<slug>/.
- Distinctive: line 30
Use self-hosted licensed fonts or system fallbacks.
- Very specific: line 33
Read references/press-tree.md before creating the folder tree or Press TSX.
- Very specific: line 41
Put <TableCaption> before captioned tables.
- Very specific: line 42
When prose refers to a figure or table, give the target a stable semantic ID and write @fig-stable-name or @tbl-stable-name instead of a …
- Very specific: line 43
When the author explicitly wants the following content to start on a new page, put <PageBreak /> immediately before it.
- Distinctive: line 63
Do not use create commands for upgrades or migrations.
- Distinctive: line 64
Do not edit generated output or publish from this skill.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
OpenPress Create Pages
This skill owns page-artifact structure and content judgment. openpress owns CLI lifecycle and delivery; openpress-collaborate owns revision mode for existing authored content.
Setup
OpenPress requires Node 20 or newer. Detect whether the workspace already has a Press:
node -v
find press -mindepth 2 -maxdepth 2 -name press.tsx -print -quit 2>/dev/null | grep -q . && echo EXISTING || echo FRESH- Fresh empty folder: use
npm create @open-press <target> -- --type pages, then extend the generated minimal pages Press. Do not force a non-empty target. - Existing workspace: inspect
press/*/press.tsx, choose a new slug, runopen-press create <slug> --type pages --title "<title>", then extend only the newpress/<slug>/.
Page Contract
Gather the document brief and confirmed source material before writing. OpenPress-specific defaults and constraints:
- Use
page="a4"for reports, proposals, whitepapers, papers, books, teaching notes, and handbooks. Ask only when custom geometry is required. - Keep geometry on
<Press page>, not in CSS. - Register public MDX sources in
press/<slug>/press.tsx; keep internal planning inpress/design.md,memory/, or skills. - Keep artifact-local components, media, and theme under
press/<slug>/; usepress/shared/only for intentional cross-Press reuse. - Use self-hosted licensed fonts or system fallbacks; final themes must not depend on remote font CSS.
- Preserve confirmed facts. Mark missing material as
[TODO: ...],[DRAFT: ...], or[FIX: ...]instead of inventing it.
Read references/press-tree.md before creating the folder tree or Press TSX. Read references/theme.md before writing theme or page components.
Document Structure
#: document title or cover identity only.##: formal chapter or document unit; enters the TOC.###: major topic group; enters the TOC.####: local procedure, theorem, example, or reference item; normally stays out of the TOC.- Put
<TableCaption>before captioned tables; OpenPress owns figure/table numbering. - When prose refers to a figure or table, give the target a stable semantic ID and write
@fig-stable-nameor@tbl-stable-nameinstead of a literal number. OpenPress resolves the current localized number during render. Readreferences/press-tree.md→ Caption Targets And Semantic References before authoring these links. - When the author explicitly wants the following content to start on a new page, put
<PageBreak />immediately before it. Do not recreate that intent with spacer content or increasingly specific pagination CSS.
For learner-facing documents, show state-changing procedures and expected results where they aid verification. Load openpress-plugins when specialized diagrams, architecture figures, or visual tools are needed.
Verify
Scan authored source before the shared review gate:
open-press search . "[TODO:" --scope all --json
open-press search . "[DRAFT:" --scope all --json
open-press search . "[FIX:" --scope all --jsonThen follow openpress → Review And Delivery Gate. A successful build or PDF export alone is not page-layout verification.
Report the Press slug, title, geometry, source root, files written, unresolved inputs, and fresh verification results.
Boundaries
- Do not use create commands for upgrades or migrations.
- Do not edit generated output or publish from this skill.
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.

