moda-templates
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesemoda-templates
moda-templates
<!-- moda:banner -->
PREREQUISITE — load once per session (step-0, write contract,
free/metered map). Already loaded? Skip ahead. If you cannot load it, the
non-negotiables: run before anything;
before creating; every write carries the latest revision — on
, re-read and retry once (it heals); send the canvas link the
moment it exists; stuck or failed? — free and fast,
never guess.
<!-- /moda:banner -->
moda-coremoda doctor --jsonmoda brand liststale_revisionmoda ask "<question>"A team template is the canvas someone approved as the starting point for
recurring work — the QBR deck, the launch post, the customer one-pager. It
carries layout and structure, one level up from what a brand kit carries.
<!-- moda:banner -->
前提条件——每个会话仅加载一次(步骤0,编写合约,免费/计量映射)。已加载?直接跳过。如果无法加载,必须执行以下操作:先运行;创建前先运行;每次写入都要携带最新版本——遇到时,重新读取并重试一次(即可恢复);画布链接一创建好就发送;遇到问题或失败?使用——免费且快速,切勿自行猜测。
<!-- /moda:banner -->
moda-coremoda doctor --jsonmoda brand liststale_revisionmoda ask "<question>"团队模板是指经他人批准、可作为重复性工作起点的画布——比如QBR演示文稿、发布帖、客户单页文档。它承载着布局和结构,比品牌套件的层级更高。
Check before designing (one cheap read)
设计前检查(一次轻量读取)
The ask names a recurring artifact type (QBR or board deck, launch post,
customer one-pager) or the user says "our template", "our usual format", "what
do we have" → check first. Skip it for genuine one-offs.
当需求中提到重复性工件类型(如QBR或董事会演示文稿、发布帖、客户单页文档),或用户提到「我们的模板」「我们常用的格式」「我们有哪些模板」时,先进行检查。真正的一次性工作可跳过此步骤。
Instantiate
实例化流程
- — id, name, category, page count. An empty list is a normal answer: say it in one line and design fresh.
moda template list - LOOK before choosing. Names do not tell you what a template looks like,
and a template IS a canvas: renders it inline (≤3 pages per call). Judge 2–4 plausible candidates with your own vision; category and page count do the cheap narrowing first.
moda canvas screenshot [cvs_…] - Comparing many at once? is the one read whose
moda template pull --output /tmp/templates.jsonvalues are fetchable (thumbnail_urlscrubs them by design) — download those with your harness's own fetch. They expire: never place one in markup, never persist one, never hand one to the user. A null thumbnail means nothing is rendered yet.moda template list - — a full server-side copy that keeps the source's brand kit. The template defines size, pages, and category, so
moda canvas create --name "[Q3 QBR — Acme]" --template [cvs_…],--size,--pages,--category,--intent,--folderand--visibilityare REJECTED alongside it; place the copy afterwards with--brand, and rebind its kit withmoda drive movewhen the user's kit differs.moda canvas brand [cvs_…] [bk_…] - The copy is an ordinary canvas — read it, then edit it the normal way (moda-edit). Send the link, and name which template you started from: that is a decision the user may want to correct.
- None fit? One line ("no team template matched, so I designed this fresh") and build from scratch. Never force a bad-fit template.
Want a copy of an ordinary canvas instead of a template? is the as-is copy of anything you can read.
moda canvas duplicate [CANVAS_REF] --name "…"- ——返回模板的ID、名称、分类、页数。空列表是正常结果:用一句话说明后从头设计即可。
moda template list - 选择前先查看。名称无法体现模板的实际样式,而模板本身就是画布:可在线渲染模板(每次调用最多显示3页)。结合你的判断筛选2-4个合适的候选模板;可先通过分类和页数快速缩小范围。
moda canvas screenshot [cvs_…] - 如需同时对比多个模板?是唯一能获取
moda template pull --output /tmp/templates.json的读取操作(thumbnail_url默认会隐藏该字段)——可通过你的工具自行下载缩略图。注意:缩略图会过期,切勿将其放入标记语言、持久存储或提供给用户。moda template list缩略图表示尚未生成渲染内容。null - ——在服务器端完整复制模板,保留源模板的品牌套件。模板已定义尺寸、页数和分类,因此
moda canvas create --name "[Q3 QBR — Acme]" --template [cvs_…]、--size、--pages、--category、--intent、--folder和--visibility参数会被拒绝;如需调整位置,可后续使用--brand,若用户的品牌套件不同,可使用moda drive move重新绑定。moda canvas brand [cvs_…] [bk_…] - 复制得到的是普通画布——读取后即可按常规方式编辑(moda-edit)。发送画布链接,并说明使用的起始模板:用户可能需要纠正这一选择。
- 没有合适的模板?用一句话说明(「没有匹配的团队模板,因此我从头设计了这个内容」),然后从零开始构建。切勿强行使用不合适的模板。
如需复制普通画布而非模板?使用可原样复制任何你有权读取的内容。
moda canvas duplicate [CANVAS_REF] --name "…"Flag a canvas as the team's template
将画布标记为团队模板
moda canvas template [cvs_…] # publishes it to the whole team
moda canvas template [cvs_…] --clear # un-flag- Team-visible curation, not a local preference. Offer it when the user calls something reusable ("we do this every quarter"); never flag a one-off, never flag unasked, and tell them once you have.
- Original should stay an ordinary canvas? first, then flag the copy. Flag in place when the canvas was BUILT to be the template.
moda canvas duplicate - hides canvases the viewer cannot see, so flagging a private canvas yields a template only you can find:
moda template listshares it — or say plainly you could not.moda drive visibility [cvs_…] team
moda canvas template [cvs_…] # 向整个团队发布该模板
moda canvas template [cvs_…] --clear # 取消标记- 这是团队可见的整理操作,而非本地偏好。当用户提到某内容可复用(「我们每季度都做这个」)时,可提供此功能;切勿标记一次性内容,切勿未经请求就标记,标记后需告知用户。
- 若希望原画布保持普通画布状态?先使用复制,再标记副本。如果画布本身就是为模板打造的,可直接标记原画布。
moda canvas duplicate - 会隐藏查看者无权访问的画布,因此标记私有画布后,只有你能找到该模板:可使用
moda template list共享画布——或直接说明无法共享。moda drive visibility [cvs_…] team
theme
is a different thing — don't reach for it
themetheme
是不同的功能——请勿混淆
thememoda canvas template [cvs_…] thememoda template listthemetemplate--clearmoda canvas show [cvs_…]template_typemoda canvas template [cvs_…] thememoda template listthemetemplate--clearmoda canvas show [cvs_…]template_typeExamples
示例
- "start from our QBR template" → list, screenshot the QBR candidates, create
with , then author into the copy.
--template - "use our usual layout for this one-pager" → same flow, filtered to 1–2 page document templates.
- "make this our standard deck" → flag it (after checking ).
template_type - "do we have anything for launches?" → list + screenshots, answer honestly if the answer is no.
- 「从我们的QBR模板开始」→ 列出模板、截图QBR候选模板、使用创建副本,然后编辑副本内容。
--template - 「使用我们常用的布局制作这个单页文档」→ 流程相同,筛选1-2页的文档模板。
- 「把这个设为我们的标准演示文稿」→ 标记它(先检查)。
template_type - 「我们有适用于发布的模板吗?」→ 列出模板并截图,如实告知是否存在匹配模板。
Errors
错误处理
Any typed error → load moda-core and read its recovery reference. A 404 here
means the surface is not enabled on this account: treat it exactly like "no
templates" — do not retry it, and do not mention it. A 403 means template
management is admin-only: say an admin has to flag this one, in one line.
任何输入错误→加载moda-core并查看其恢复参考文档。404错误表示该功能未在当前账户启用:完全按照「无模板」情况处理——不要重试,也不要提及该错误。403错误表示模板管理仅限管理员操作:用一句话说明需要管理员来标记该模板。
Make it recurring
实现自动化重复操作
Every instantiation is a return visit — that is the point. Pair it with
moda-automate when the cadence is fixed (a monthly menu, a weekly post set).
See also: moda-core — the contract, recovery, everything Moda can do.
每次实例化都是重复任务的回归——这正是模板的意义所在。当任务有固定周期(如每月菜单、每周发布帖)时,可搭配moda-automate使用。
另请参阅:moda-core——包含合约、恢复方案以及Moda的所有功能。