Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

crepalcrepal 命令行

Agent Skill

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

总安装

186

周安装

8

GitHub Stars

11

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

crepal 是 AI 视频创作工具,通过自然语言对话创建视频内容,集成 OpenClaw 接口。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中快速生成视频脚本或自动化制作流程。
  • 使用时需遵循输出规范,避免暴露技术细节,并以友好语言总结结果。
  • 安装前请确认 API 可用性、网络连接及是否涉及外部服务调用或媒体文件处理。
  • crepal 属于开发类 Skill,可作为该场景下的辅助能力补充。

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_generateexcept 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 sessionIdmetadata.jsonlast_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>"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills