Token导航 LogoToken导航

Agent Skill · 开发

crepal(crepal 命令行)

crepal 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

crepal 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 21,583。

总安装 186周安装 8GitHub Stars 11下载 65核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:crepal(crepal 命令行)
来源仓库:https://github.com/jiamingliu0520/crepal-skill
仓库路径:skills/crepal
安装命令:
npx skills add https://github.com/jiamingliu0520/crepal-skill --skill crepal
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jiamingliu0520/crepal-skill --skill crepal

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

crepal 是 AI 视频创作工具,通过自然语言对话创建视频内容,集成 OpenClaw 接口。适合在 Codex、Claude、Cursor、Gemini CLI 中快速生成视频脚本或自动化制作流程。使用时需遵循输出规范,避免暴露技术细节,并以友好语言总结结果。

安装前请确认 API 可用性、网络连接及是否涉及外部服务调用或媒体文件处理。crepal 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/crepal

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jiamingliu0520/crepal-skill --skill crepal;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

crepal 怎么安装?

在终端执行 npx skills add https://github.com/jiamingliu0520/crepal-skill --skill crepal。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

crepal 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

crepal 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

crepal 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

crepal 用的人多吗?

公开数据是累计安装 186 次,近一周安装 8 次,下载 65 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

crepal 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
crepal

crepal 命令行 · 本页

18611接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Crepal — AI Video Creator Skill

Overview

Crepal is a one-stop AI video creation tool. This skill connects OpenClaw to CrePal's API so you can create videos through natural conversation.


Ground Rules

These apply to everything you do with this skill.

  1. Never show raw technical output to the user. No JSON, no session IDs, no HTTP codes, no function-call names, no [CREPAL_CALLBACK] content. Summarize in plain, friendly language — as if texting a friend.
  2. Never stay silent after receiving an agentMsg. Always either reply to CrePal or call confirm_generate — except after Step 3 polling completes, where you skip the Decision Tree and go straight to Step 4 (download).
  3. The confirm_generate API is the ONLY way to start video rendering. Sending a chat message like "please generate" does nothing. You must call the dedicated endpoint.
  4. Translate errors into actionable advice. Instead of HTTP 401, say "Your API token seems invalid — could you double-check it?"
  5. Keep progress updates to one sentence. e.g. "CrePal 问了视频风格,我帮你选了温馨的,正在继续…"

Configuration — metadata.json

Stored in the skill root directory. Read it on every invocation.

{
"api_key": "",
"user_channel": "",
"auto_pilot": false,
"last_session_id": ""
}
FieldPurpose
api_keyCrePal API token. Used as Authorization: Bearer <api_key>.
user_channelUser's messaging address (e.g. telegram:123456789). Required for callbacks & notifications.
auto_pilottrue = full automation; false = step-by-step with user approval.
last_session_idMost recent session ID for easy resumption.

First-Run Setup

If api_key, user_channel, or both are empty:

  1. Welcome the user — introduce CrePal briefly.
  2. Collect user_channel — ask for their messaging platform address (platform:id). This is mandatory; without it, callbacks cannot be delivered.
  3. Collect api_key — direct them to crepal.ai to get a token.
  4. Ask about auto-pilot — explain the two modes and store their choice.
  5. Write all values to metadata.json immediately.

Pre-flight (every invocation): If user_channel or api_key is empty → ask before doing anything else.


Auto-Pilot Mode

Active when auto_pilot is true, or the user explicitly asks for full automation. You complete the entire pipeline without pausing for user input.

⚠️ Execution Model — FOREGROUND, NOT BACKGROUND

You MUST run ALL Python scripts (poll_session.py AND poll_download.py) in the foreground (i.e. background: false or simply exec). Wait for them to finish and capture stdout. Do NOT use background: true — background mode causes OpenClaw to dump raw script output into the user's chat, and the agent never gets a chance to process it.

  • poll_session.py outputs only the agentMsg text to stdout.
  • poll_download.py outputs only the resultUrl to stdout.
  • Both scripts send debug info to stderr only.
  • Non-zero exit code = error. Tell the user in friendly language; do NOT show raw error output.

You capture stdout, process it, and act on it — all in the same turn.

Step 1 — Create Session & Poll

  1. POST /api/openclaw/chat/session/create with the user's video description as content.
  2. Save sessionId → metadata.json → last_session_id.
  3. Tell the user briefly: "正在和 CrePal 沟通你的视频需求,请稍等…"
  4. Run poll_session.py in FOREGROUND (no --callback, no --notify): python3 scripts/poll_session.py "https://crepal.ai" "<TOKEN>" "<SID>"
  5. Check exit code: non-zero → tell user "和 CrePal 通信时遇到了问题,请检查网络或 API token。" Stop.
  6. Capture stdout — it contains only the agentMsg text from CrePal.
  7. Go to Step 2 with the captured agentMsg.

Step 2 — Process agentMsg (SILENT & IMMEDIATE)

You now have the agentMsg text. Do NOT show it raw to the user. Classify it and act:

Case A — Credit Error

agentMsg mentions "insufficient credits", "余额不足", etc. → Exit auto-pilot. Go to Recharge workflow.

Case B — Script Ready → CALL confirm_generate NOW 🔴

Match if ANY of these are true:

  • Keywords: "generate", "render", "ready to produce", "开始生成", "准备生成", "是否生成视频"
  • Script is "confirmed", "finalized", "complete", "done", "完成", "确认"
  • CrePal says "anything else?", "want to proceed?", "shall I continue?" after a script
  • 3+ rounds have passed and no new questions in the latest agentMsg
  • You replied "looks good" last round and no new questions came back

→ IMMEDIATELY go to Step 3. Do NOT reply via message/send. Call the confirm_generate API right now.

⚠️ When in doubt between B and C/D, always choose B. Better to generate early than loop forever.

Case C — CrePal Asks a Question

agentMsg asks a question or offers choices (e.g. "What style?", "(A)... (B)..."). → Compose a direct answer based on the user's original description. Send via message/send. Then re-poll (go to Step 2½).

Case D — Script Draft Needs Feedback

agentMsg shows a draft and asks "what do you think?" → Reply "Looks great, please continue" via message/send. Then re-poll.

Case E — Anything Else

→ Reply "Looks good, please continue" via message/send. Then re-poll. Never stay silent.

Step 2½ — Re-poll After Reply (Cases C/D/E)

After sending a reply to CrePal:

  1. Tell the user in one friendly sentence what you did (e.g. "我帮你选了温馨风格,正在等 CrePal 回复…").
  2. Run poll_session.py in FOREGROUND again (same command as Step 1, no flags).
  3. Capture stdout → go back to Step 2 with the new agentMsg.
  4. Repeat until you reach Case A or B.

🛑 LOOP GUARD: If you've been through 3+ rounds and the latest agentMsg has no clear new questions → treat it as Case B and call confirm_generate.

✅ YIELD SELF-CHECK (mandatory before every turn ends)

Before you finish a turn or yield control back to the user, ask yourself:

"Have I already called confirm_generate for this session?"
  • No, and a script/draft has been discussed → You probably missed Case B. Go to Step 3 NOW.
  • No, but CrePal is still asking questions → Fine, continue the loop.
  • Yes → Continue to Step 4 (or you're done).

This check prevents the most common failure mode: the agent replies to CrePal in a loop but never actually triggers video generation.

Step 3 — Confirm & Generate 🔴

This step starts video rendering. Without it, the user gets nothing.

  1. POST /api/openclaw/script/confirm_generate with {"sessionId": "..."}. This is a dedicated API call — NOT a chat message via message/send.
  2. Tell the user: "剧本已确认,视频片段正在生成中,请稍等…"
  3. Run poll_session.py in FOREGROUND to wait for rendering to finish: python3 scripts/poll_session.py "https://crepal.ai" "<TOKEN>" "<SID>"
  4. Check exit code:

- If non-zero → tell user "视频生成过程中出了点问题,请稍后重试或检查你的 API token。" Stop. - If zero → capture stdout. This agentMsg is a post-rendering summary from CrePal. Do NOT re-enter the Decision Tree. Do NOT call confirm_generate again. Do NOT reply via message/send. Simply proceed to Step 4.

Step 4 — Compose & Download 🎬

After all video segments are rendered, you must compose the final video and get the download URL.

  1. POST /api/openclaw/download/start with: {"sessionId": "...", "watermark": false, "resolution": 1080}

- watermark: false by default (no watermark). Set true if user explicitly requests one. - resolution: 1080 by default. Use 720 only if user requests lower quality. - If the API call fails (HTTP error / no downloadId in response) → tell user "发起视频合成时遇到了问题,请稍后重试。" Stop. - Returns downloadId and estimated duration (seconds).

  1. Tell the user: "视频片段已全部完成,正在合成最终成片…"
  2. Run poll_download.py in FOREGROUND to wait for composing to finish: python3 scripts/poll_download.py "https://crepal.ai" "<TOKEN>" "<DOWNLOAD_ID>"
  3. Check exit code:

- Non-zero → tell user "合成视频时遇到了问题,请稍后重试。" Stop. - Zero → capture stdout, which contains only the resultUrl (the download link).

  1. Present the download link to the user in a friendly message:

- "你的视频已经做好了!🎉 点击下载:"


Manual Mode

Active when auto_pilot is false. You pause at each step for user input.

  1. Call the relevant API endpoint (create session / send message / confirm generate).
  2. Save sessionId to metadata.json.
  3. Run poll_session.py in FOREGROUND (no flags). Capture the agentMsg from stdout.
  4. Present the agentMsg content to the user in friendly language (never raw). Wait for their input.
  5. Optionally also pass --notify "<CHANNEL>" if you want the user to get a push notification.

Confirming generation in manual mode:

  • User says "looks good" / "continue" about a script → use message/send.
  • User says "start generating the video" → use confirm_generate.

Composing the final video (after rendering is done):

  1. Call POST /api/openclaw/download/start with sessionId, watermark, resolution.
  2. Run poll_download.py in FOREGROUND. Capture resultUrl from stdout.
  3. Present the download link to the user.

Recharge Workflow

Triggered when agentMsg or any API response mentions insufficient credits.

  1. Exit auto-pilot (if active).
  2. POST /api/openclaw/subscription/config — get subscription plans.
  3. Present plans with stripeLink to the user.
  4. Optionally POST /api/openclaw/one_time_products/config — get one-time credit packs.
  5. After user recharges, resume via message/send.

API Reference

Auth: Authorization: Bearer <api_key> on all requests. Base URL: https://crepal.ai

Create Session

POST /api/openclaw/chat/session/create

{ "content": "Help me generate a short video script" }

Returns sessionId, messageId, status.

Send Message

POST /api/openclaw/chat/message/send

{ "sessionId": "...", "content": "Continue improving this video script" }

Returns sessionId, messageId, status.

Check Session Ended

POST /api/openclaw/chat/session/check_end

{ "sessionId": "..." }

Returns {"data": {"sessionId", "isEnded", "agentMsg"}}. Note: poll_session.py automates this — you rarely call it directly.

Confirm Script & Generate

POST /api/openclaw/script/confirm_generate

{ "sessionId": "..." }

Starts video rendering. You must poll afterwards.

Start Download (Compose Final Video)

POST /api/openclaw/download/start

{ "sessionId": "...", "watermark": false, "resolution": 1080 }
  • watermark (boolean): whether to add watermark. Default false.
  • resolution (integer): 720 or 1080. Default 1080.
  • Returns downloadId (string) and duration (estimated seconds).

Check Download Status

POST /api/openclaw/download/check

{ "downloadId": "..." }

Returns {"data": {"status": "pending|success|failed", "resultUrl": "..."}}.

  • resultUrl is the download link when status is "success".
  • Note: poll_download.py automates this — you rarely call it directly.

Get Subscription Config

POST /api/openclaw/subscription/config No body. Returns subscriptions[] with planType, price, stripeLink, etc.

Get One-Time Products

POST /api/openclaw/one_time_products/config No body. Returns canPurchase, products[] with price, credits, stripeLink.


Resources

metadata.json

Persistent config. Read on startup, write whenever values change.

scripts/poll_session.py

Polls check_end every 5 s until isEnded is true.

Output behavior:

  • No flags (foreground mode): prints only agentMsg text to stdout. All debug to stderr. This is the primary mode.
  • --callback <ch>: stdout is completely silent. Sends [CREPAL_CALLBACK] message via openclaw CLI. (Fallback mode.)
  • --notify <ch>: sends a short user-facing notification via openclaw CLI.
  • --openclaw-path <path>: override auto-discovery of openclaw executable.

<ch> = user_channel from metadata.json.

# Primary: foreground, agent captures stdout (use this in auto-pilot)
python3 scripts/poll_session.py "https://crepal.ai" "<TOKEN>" "<SID>"

# With user notification (final step or manual mode)
python3 scripts/poll_session.py "https://crepal.ai" "<TOKEN>" "<SID>" --notify "<CHANNEL>"

scripts/poll_download.py

Polls download/check every 5 s until status is success or failed.

Output: prints only the resultUrl to stdout when done. All debug to stderr.

python3 scripts/poll_download.py "https://crepal.ai" "<TOKEN>" "<DOWNLOAD_ID>"

平台分布

Codex

35.68%
按下载量换算23

Claude

28.67%
按下载量换算19

Cursor

19.53%
按下载量换算13

Gemini CLI

7.95%
按下载量换算5

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills