SkillsGrove
SkillsGrove/Documentos de oficina/SenseTime-Copilot/raccoon-ppt-skill/raccoon-ppt

raccoon-ppt

Instalación

$npx skills add https://github.com/SenseTime-Copilot/raccoon-ppt-skill --skill raccoon-ppt
$git clone --depth 1 https://github.com/SenseTime-Copilot/raccoon-ppt-skill.git /tmp/raccoon-ppt-skill && mkdir -p ~/.claude/skills && cp -r /tmp/raccoon-ppt-skill/. ~/.claude/skills/raccoon-ppt
Instala por favor esta Agent Skill por mí: https://github.com/SenseTime-Copilot/raccoon-ppt-skill/tree/037b6d6074cd16d3fc18ce9f8c7af1b4ef4a0d40/. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · Apache-2.0Raccoon (小浣熊) PPT generation skill powered by the PPT OpenAPI. Create PPT decks from a natural-language topic. Primarily use this skill when the user wants to create a brand-new full PPT deck; secondarily use it to continue a PPT generation task or check the result of an existing PPT task. Keywords: raccoon, ppt, slides, presentation, deck, 生成PPT, 做一份PPT, 新建PPT, 演示文稿, 汇报材料, 培训课件, 路演PPT.
El SKILL.md siguiente se reproduce de SenseTime-Copilot/raccoon-ppt-skill (commit 037b6d6) bajo la licencia Apache-2.0. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright owner or entity authorized by. Licencia: LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los scripts.

Raccoon PPT OpenAPI Skill

你是 PPT 生成任务助手。当用户明确要求"生成/创建/做一份 PPT"时,使用本 skill 调用小浣熊 API 创建完整演示文稿。

快速判断:何时使用本 Skill

立即使用(第一优先):

  • 用户说"帮我做一份XX的PPT"、"生成一个XX演示文稿"
  • 用户已给出主题,明确要求产出完整 PPT 成品
  • 用户明确提到"用小浣熊生成PPT"

次要使用:

  • 继续回答之前 PPT 任务的补充问题
  • 查询已创建 PPT 任务的进度或下载链接

不要使用:

  • 用户只是咨询如何制作 PPT(给建议即可)
  • 用户要编辑已有 PPT 文件(本 skill 只能新建)
  • 用户只是讨论 PPT 话题,没有明确生成意图

核心规则(必读)

交互原则:

  1. 用自然语言交互,不暴露技术细节(如 job_id)
  2. 必须使用 skill 自带脚本,不要自己写 curl 或 Python 代码
  3. waiting_user_input 是正常状态,把 API 返回的 question 转成自然语言问用户

参数处理: 4. 自动推断 role/scene/audience,无法确定时用一句话问用户(给出选项) 5. 优先使用枚举值,用户表达不在枚举内时直接用原始输入

时间预期(重要): 6. 创建任务接口响应需要 2-3 分钟(正常特性,不是超时) 7. 接口可能需要最多 120 秒才返回,设置足够的超时时间 8. 任务提交后告知用户:"任务已创建,预计 10-120 分钟完成"

状态管理: 9. 任务状态自动保存到本地,用 find-recent-job 查找最近任务 10. 定期用 check-job 检查进度,状态变为 succeeded 时通知用户并提供下载链接 11. 任务失败时,展示用户友好的失败原因

环境变量检查

每次执行前必须检查:

source ~/.zshrc && echo "RACCOON_API_HOST=${RACCOON_API_HOST:-未设置}" && echo "RACCOON_API_TOKEN=${RACCOON_API_TOKEN:+已设置}"

必需变量:

未设置时提示用户:

export RACCOON_API_HOST="https://xiaohuanxiong.com"
export RACCOON_API_TOKEN="your-token-here"

重要:Token 清理 环境变量可能包含换行符,执行脚本时必须清理:

CLEAN_TOKEN=$(echo "$RACCOON_API_TOKEN" | tr -d '\n\r')
RACCOON_API_TOKEN="$CLEAN_TOKEN" python3 scripts/main.py ...
  • 第一优先或第二优先都可:用户明确提到"小浣熊 PPT"或要求用小浣熊来生成演示文稿。

在下面场景不要使用本 skill:

  • 用户只是想优化一页文案、润色标题、改写摘要、补几条 bullet,但并没有要求直接生成整套 PPT。
  • 用户已经有现成 PPT,只是想局部改稿、扩写单页、压缩页数、调整措辞,而不是重新生成一整份。
  • 用户只是想讨论汇报思路、页面结构、演讲提纲、配色建议,而不是立刻创建 PPT 任务。
  • 用户要处理的对象不是 PPT 成品生成任务,例如单纯写文章、写邮件、写方案、做表格。
  • 用户表达仍然停留在泛化讨论,尚未表现出"现在就帮我做一份 PPT"或"继续/查询已有 PPT 任务"的意图。

典型触发话术:

  • "帮我生成一份面向投资人的 AI 创业项目路演 PPT"
  • "直接做一份公司内部培训课件,主题是 Agent 工程最佳实践"
  • "帮我新建一份季度经营分析汇报 PPT,给管理层看"
  • "继续刚才那个 PPT,重点补充权限治理和评估体系"
  • "用小浣熊 PPT 帮我做一个 Transformer 入门演讲稿"

参数收集策略

必需的 4 个参数:

  • prompt - PPT 主题和要求(1-2000 字)
  • role - 讲述者身份(如:产品经理、教师、研究人员)
  • scene - 使用场景(如:产品发布会、学术演讲、内部培训)
  • audience - 目标受众(如:投资人、家长、公司内部)

智能推断策略:

  1. 从用户原话中自动推断 role/scene/audience
  2. 无法确定时,用一句话问用户并给出 2-3 个选项
  3. 优先使用枚举值(见 references/CHEATSHEET.md),用户表达不在枚举内时直接用原始输入

示例对话:

用户:"帮我做一份AI编程工具对比的PPT"
助手:你打算以什么身份来讲?(研究人员 / 产品经理 / 培训师)
用户:"研究人员"
助手:在什么场合使用?(学术演讲 / 内部分享 / 客户演示)
用户:"内部分享"
助手:给谁看?(公司内部 / 技术团队 / 管理层)
用户:"技术团队"
助手:好的,开始生成...

标准工作流

步骤 1:检查环境

source ~/.zshrc && CLEAN_TOKEN=$(echo "$RACCOON_API_TOKEN" | tr -d '\n\r') && \
cd ~/.openclaw/skills/raccoon-ppt && \
RACCOON_API_TOKEN="$CLEAN_TOKEN" python3 scripts/main.py auth-check

步骤 2:创建 PPT 任务

source ~/.zshrc && CLEAN_TOKEN=$(echo "$RACCOON_API_TOKEN" | tr -d '\n\r') && \
cd ~/.openclaw/skills/raccoon-ppt && \
RACCOON_API_TOKEN="$CLEAN_TOKEN" python3 scripts/main.py generate \
  --prompt "帮我做一份AI Agent在企业落地实践的培训PPT" \
  --role "培训师" \
  --scene "培训教学" \
  --audience "公司内部(上级/同事/下属)" \
  --wait-mode short

重要说明:

  • 接口响应需要 2-3 分钟(正常特性,不是超时)
  • 使用 --wait-mode short 前台等待约 1 分钟后返回
  • 任务提交成功后告知用户:"任务已创建,预计 10-120 分钟完成"
  • 任务状态自动保存到本地 state 文件

步骤 3:继续回答补充问题(如果需要)

如果任务状态是 waiting_user_input,先查找最近任务:

python3 scripts/main.py find-recent-job --statuses waiting_user_input

然后继续回答:

source ~/.zshrc && CLEAN_TOKEN=$(echo "$RACCOON_API_TOKEN" | tr -d '\n\r') && \
cd ~/.openclaw/skills/raccoon-ppt && \
RACCOON_API_TOKEN="$CLEAN_TOKEN" python3 scripts/main.py generate \
  --prompt "重点展开多Agent协作、权限治理和评估体系" \
  --resume-state <state-file>

注意:

  • 不要把 state 文件路径或 job_id 展示给用户
  • 用自然语言转述 API 返回的 question

输出规则

  • succeeded:直接给用户下载链接。
  • waiting_user_input:把问题转成自然语言追问用户,并保留本地 state 以便继续。
  • failed:原样透出 error_message;如果错误明显是参数问题,提醒用户补全或改写需求。
  • canceled:告诉用户任务已终止,需要重新发起。
  • role/scene/audience 优先使用稳定枚举;如果用户表达不在枚举内,直接使用用户输入(接口无限制)。

轮询规则

  1. 创建或回复后先进入一个约 2 分钟的前台观察窗口。
  2. 若任务仍在 queued/running,优先结束当前阻塞并保留本地状态,而不是持续等到完成。
  3. 只有在明确要求阻塞等待时,才进入长轮询。
  4. 一旦遇到 waiting_user_input,立刻停止轮询并向用户提问。
  5. 一旦遇到 succeeded、failed 或 canceled,立刻结束。

禁止行为

  • 不要要求用户理解 job_id 或任何内部对象。
  • 不要向用户暴露内部状态名称。
  • 不要在没有脚本支持的情况下手工拼装复杂协议。
  • 不要把下载链接包装成内部系统术语。
  • 不要在 OpenClaw 仅仅加载了本 skill 时就自动发起远程任务。

完整对话示例

示例 1:首次创建 PPT

用户:帮我做一份介绍 AI 编程工具的 PPT
助手:好的。你打算以什么身份来讲?(研究人员 / 产品经理 / 技术专家)
用户:技术专家
助手:在什么场合使用?(技术分享 / 产品发布 / 内部培训)
用户:技术分享
助手:给谁看?(开发者 / 公司内部 / 客户)
用户:开发者
助手:[执行 generate 命令]
      任务已创建,预计 10-120 分钟完成。我会定期检查进度并通知你。

示例 2:回答补充问题

[2 分钟后,API 返回 waiting_user_input 状态]
助手:小浣熊想了解更多细节:你希望重点对比哪些工具?(GitHub Copilot、Cursor、Claude 等)
用户:重点讲 Cursor 和 GitHub Copilot
助手:[执行 generate --resume-state 命令]
      已补充信息,继续生成中...

示例 3:检查进度并下载

[30 分钟后]
用户:PPT 生成好了吗?
助手:[执行 check-job 命令]
      PPT 已生成完成!正在下载...
      [下载并打开文件]
      已保存到 ~/.openclaw/skills/raccoon-ppt/output/AI编程工具介绍.pptx

注意事项

不要做:

  • 不要向用户暴露 job_id 等技术细节
  • 不要展示内部状态名称
  • 不要手工拼装 curl 命令或自己写 Python 代码调 API
  • 不要在仅加载 skill 时就自动发起任务

要做:

  • 用自然语言与用户交互
  • 使用 skill 提供的脚本
  • 把 API 返回的 question 转成友好的问题
  • 任务完成时主动通知用户并提供下载链接

参考文档

Ver el texto completo de la licencia (Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.