agentleFS
quan0715quan0715/open-press/skills/openpress-create-pages/SKILL.md

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.

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
  1. Very specific:

    Use page="a4" for reports, proposals, whitepapers, papers, books, teaching notes, and handbooks.

    line 26
  2. Very specific:

    Keep geometry on <Press page>, not in CSS.

    line 27
  3. Very specific:

    Keep artifact-local components, media, and theme under press/<slug>/.

    line 29
  4. Distinctive:

    Use self-hosted licensed fonts or system fallbacks.

    line 30
  5. Very specific:

    Read references/press-tree.md before creating the folder tree or Press TSX.

    line 33
  6. Very specific:

    Put <TableCaption> before captioned tables.

    line 41
  7. Very specific:

    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 …

    line 42
  8. Very specific:

    When the author explicitly wants the following content to start on a new page, put <PageBreak /> immediately before it.

    line 43
  9. Distinctive:

    Do not use create commands for upgrades or migrations.

    line 63
  10. Distinctive:

    Do not edit generated output or publish from this skill.

    line 64

≈ “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.

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

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, run open-press create <slug> --type pages --title "<title>", then extend only the new press/<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 in press/design.md, memory/, or skills.
  • Keep artifact-local components, media, and theme under press/<slug>/; use press/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-name or @tbl-stable-name instead of a literal number. OpenPress resolves the current localized number during render. Read references/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 --json

Then 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.

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.