openpress
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenPress
OpenPress
Use this skill first for OpenPress CLI and delivery work.
处理OpenPress CLI和交付工作时,请优先使用此技能。
Route
路由
| Need | Skill |
|---|---|
| Page artifact creation | |
| Slide creation or editing | |
| Authored-content analysis, proposal, or revision | |
Pending | |
| External plugins (diagrams, visual tools, writing helpers) | |
| Package upgrade or migration | |
| Deploy or publish | |
Load portable language or genre skills only when the content requires them.
| 需求 | 技能 |
|---|---|
| 页面制品创建 | |
| 幻灯片创建或编辑 | |
| 原创内容分析、提案或修订 | |
待处理的 | |
| 外部插件(图表、可视化工具、写作助手) | |
| 包升级或迁移 | |
| 部署或发布 | |
仅当内容需要时,才加载可移植语言或类型技能。
Source Boundary
源边界
| Layer | Paths | Rule |
|---|---|---|
| Workspace source | | editable |
| Skill source | | editable for skill work |
| Framework source | | framework work only |
| Review handoff | | |
| Installed framework | | read-only; fix upstream |
| Generated/cache | | never hand-edit |
openpress/settings.jsonpress/design.mdIf exists, read it first; it identifies a downstream workspace and its project rules.
memory/AGENTS.md| 层级 | 路径 | 规则 |
|---|---|---|
| 工作区源 | | 可编辑 |
| 技能源 | | 仅技能工作可编辑 |
| 框架源 | | 仅框架工作可编辑 |
| 审核交接 | | |
| 已安装框架 | | 只读;需修复上游问题 |
| 生成/缓存 | | 禁止手动编辑 |
openpress/settings.jsonpress/design.md如果存在,请先阅读它;它会指明下游工作区及其项目规则。
memory/AGENTS.mdLocal Review Gate
本地审核关卡
After content, layout, component, Press Tree, or pagination-sensitive theme changes:
bash
npm run build
npm run dev # downstream workspace在内容、布局、组件、Press Tree或分页敏感主题变更后:
bash
npm run build
npm run dev # 下游工作区npm run dev:workspace # framework dogfood repo
npm run dev:workspace # 框架内部测试仓库
Open Vite's `/workspace` and inspect the affected Press for page count,
overflow/cropping, pagination, typography/media, and pending comments. Fix
source and repeat when needed.
Export only a requested delivery format, after local Workbench review:
```bash
npm run openpress:pdf
npm run openpress:image
npm run openpress:wordPDF/image/Word export does not replace Workbench review.
打开Vite的`/workspace`,检查受影响的Press的页面数量、溢出/裁剪、分页、排版/媒体以及待处理评论。如有需要,修复源文件并重复此步骤。
仅在本地Workbench审核后,导出请求的交付格式:
```bash
npm run openpress:pdf
npm run openpress:image
npm run openpress:wordPDF/图片/Word导出不能替代Workbench审核。
Refresh Boundary
刷新边界
Vite HMR does not regenerate . After MDX, Press Tree, component, metadata, or pagination-sensitive theme edits, run before reviewing. For a faster inner loop, run and refresh the browser. Pure CSS edits that do not move content may use HMR alone.
public/openpress/<slug>/document.jsonnpm run buildopen-press export .Vite HMR不会重新生成。在MDX、Press Tree、组件、元数据或分页敏感主题编辑后,需先运行再进行审核。为了更快的内部循环,运行并刷新浏览器。不涉及内容移动的纯CSS编辑可仅使用HMR。
public/openpress/<slug>/document.jsonnpm run buildopen-press export .CLI And References
CLI与参考资料
- Prefer package scripts. Downstream commands without a wrapper use ; the framework repo uses
open-pressbecause its binary is not built locally.node packages/core/engine/cli.mjs - Read only for commands not shown above, source search/replace, inspect, or nonstandard verification depth.
references/cli-commands.md - Read whenever the review gate applies or Workbench controls are needed.
references/local-review.md - Read only for framework work that changes the Press Tree/runtime contract, not ordinary workspace authoring.
references/render-boundary.md - New artifacts are owned by or
openpress-create-pages; do not use create commands as upgrade tools.openpress-create-slide
- 优先使用包脚本。无包装器的下游命令使用;框架仓库使用
open-press,因为其二进制文件未在本地构建。node packages/core/engine/cli.mjs - 仅当上述未列出命令、需要源文件搜索/替换、检查或非标准验证深度时,才阅读。
references/cli-commands.md - 每当审核关卡适用或需要Workbench控件时,阅读。
references/local-review.md - 仅当框架工作涉及更改Press Tree/运行时契约时,才阅读,普通工作区创作无需阅读。
references/render-boundary.md - 新制品由或
openpress-create-pages负责;请勿将创建命令用作升级工具。openpress-create-slide