OpenPress Plugins
Manage, recommend, and adapt external specialized skills into OpenPress documents, components, and media.
Workflow
Recognize Intent:
- Match user requests (e.g. "畫架構圖", "system diagram", "flowchart", "sequence diagram", "cover design") against triggers in
references/catalog.json.
- Match user requests (e.g. "畫架構圖", "system diagram", "flowchart", "sequence diagram", "cover design") against triggers in
Check Readiness & Recommend:
- If installed (
.agents/skills/<id>orskills/<id>exists): invoke the plugin skill directly, then read its matching adapter. - If not installed: present a compact, actionable Recommendation Card in chat:
- If installed (
### 🧩 Recommended Plugin: <Plugin Name>
<Short Description>
- **Source**: `<source>` (<License>)
- **Why**: <Why this plugin fits the user's specific request>
**Options:**
1. **Install & Use**: Follow the short installation note in the matching adapter, then proceed with the generation.
2. **Continue with Native**: Proceed using standard OpenPress basic SVG without installing the plugin.
Handle User Response:
- Install & Use: Give the adapter's natural-language installation note, then invoke the plugin and adapt its output.
- Native Fallback: Generate standard basic React SVG figure or table directly without external dependencies.
Adapt and Insert:
- Save visual components to
press/<slug>/components/figures/<Name>Figure.tsx(orcomponents/<Name>Figure/index.tsx). - For writing plugins: apply edits directly to the target MDX file.
- Follow
openpress→ Local Review Gate (npm run dev:workspaceornpm run build) to verify layout, pagination, and theming.
- Save visual components to
Responsibility Boundary
openpress-plugins: Recommends external skills based on document authoring needs (e.g. diagrams, posters, writing polish) and provides adapters to convert external skill outputs into OpenPress native components (components/figures/<Name>Figure.tsx).- Workbench Updates (
/workspace/settings): Read-only capability status in the UI with copyable prompts for Agent handoff. - Codex / Claude (Agent): Executes actual remote inspection, dependency upgrades,
skills-lock.jsonhash updates, and verification.
References & Adapters
references/catalog.json: Registry of supported companion plugins, triggers, and sources.adapters/diagram-design.md: Adapter rules fordiagram-designarchitecture and technical diagrams.adapters/gc-minimal-zine-poster.md: Adapter rules forgc-minimal-zine-postereditorial covers and poster art.