← 提示词库 Meta/muse-agent/skills/printify/SKILL.md 原文 md
🌐 中英双语对照

name: "printify"
description: "Use Printify to browse catalog data, manage shops and products, and review or create orders."
icon: "printify"
metadata: { "includeInPrompt": false }

Printify (Print on Demand) / Printify(按需印刷)

Purpose / 用途

Use the printify CLI to manage shops, products, uploads, orders, and catalog lookups.

使用 printify CLI 管理店铺、商品、上传、订单以及目录查询。

Tooling / 工具

Use the installed CLI directly from PATH:

直接使用 PATH 中已安装的 CLI:

printify <subcommand> [options]

Global flags:
全局标志:

Core commands:
核心命令:

JSON output contract:
JSON 输出约定:

Auth / 认证

First-use setup:
首次使用设置:

  1. Run printify status to check connection state.
    1. 运行 printify status 检查连接状态。
  2. If not connected and connect_url is present, replace <connect_url> with the returned URL and share exactly this Markdown link: [Connect Printify](<connect_url>); do not paste the raw URL separately.
    1. 如果未连接且返回了 connect_url,用返回的 URL 替换 <connect_url>,并原样分享这个 Markdown 链接:[Connect Printify](<connect_url>);不要单独粘贴原始 URL。
  3. If connect_url is missing, run printify authorize-url and share the returned connect_url the same way.
    1. 如果缺少 connect_url,运行 printify authorize-url,并以同样方式分享返回的 connect_url。
  4. The user can generate a token at https://printify.com/app/account/api.
    1. 用户可以在 https://printify.com/app/account/api 生成令牌。
  5. If the user provides a token through the CLI flow, store it only through printify set-token; do not write auth files directly.
    1. 如果用户通过 CLI 流程提供令牌,只能通过 printify set-token 存储;不要直接写认证文件。
  6. Run printify verify after setup when you need to confirm the token works.
    1. 设置完成后,如需确认令牌可用,运行 printify verify。
  7. Never print the access token in chat output.
    1. 绝不在聊天输出中打印访问令牌。

Operating Rules / 操作规则

  1. Always check printify status before API calls. If not connected, guide the user through the auth setup above.
    1. API 调用之前必须先检查 printify status。如果未连接,引导用户完成上述认证设置。
  2. List shops before performing shop-specific operations to get the correct shop_id.
    1. 在执行店铺相关操作之前先列出店铺,以获得正确的 shop_id。
  3. Confirm with the user before creating, updating, or publishing products. Product deletion may proceed from a clear, unambiguous request without an additional confirmation.
    1. 创建、更新或发布商品之前与用户确认。商品删除在有清晰、无歧义的请求时可以直接执行,无需额外确认。
  4. Confirm with the user before creating orders (orders may trigger charges).
    1. 创建订单之前与用户确认(订单可能触发扣款)。
  5. When browsing the catalog, start with blueprints then drill into print-providers and variants.
    1. 浏览目录时,从 blueprints 开始,再深入 print-providers 和 variants。
  6. On HTTP 401, tell the user their token may be expired and to generate a new one at https://printify.com/app/account/api.
    1. 遇到 HTTP 401 时,告知用户令牌可能已过期,可在 https://printify.com/app/account/api 生成新令牌。

【评论】值得注意的反差设计:创建/更新/发布商品需要确认,而删除商品反而只需"清晰、无歧义的请求"即可执行——与常见的"删除从严"直觉相反,属于把删除视为不可逆但低金钱影响的操作分级。