← 返回 Skills 市场
kyriswu

抖音文案解析

作者 kyris wu · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
304
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install douyin-transcribe-api
功能描述
Call the coze-js-api Douyin transcription endpoint and return transcript-ready results from Douyin URLs or share-text. Use this skill whenever the user asks...
使用说明 (SKILL.md)

Douyin Transcribe API Skill

Use this skill to reliably call the API endpoint:

  • POST https://coze-js-api.devtool.uk/transcribe-douyin

Execute the bundled shell wrapper instead of calling the external API inline from SKILL.md.

When to use

Use this skill if the user asks for any of the following:

  • Transcribe a Douyin video
  • Extract speech/subtitles/text from a Douyin URL
  • Use copied Douyin share text that contains a short link
  • Build a curl request for the transcribe-douyin endpoint
  • Debug failed transcribe-douyin calls

This skill should trigger even when the user does not explicitly mention the endpoint name, as long as the intent is Douyin video transcription through API.

Inputs

Collect or infer these inputs:

  • url (required):
    • Ask the user to provide Douyin share text or share link content.
    • Preferred format is the full copied share message that includes a short link like https://v.douyin.com/.../.
    • Example input style:
      • 2.89 zTl:/ ... https://v.douyin.com/UxkQpDSVMFE/ 复制此链接,打开Dou音搜索,直接观看视频!
    • A direct link like https://v.douyin.com/.../ is also accepted.

API key resolution

Resolve api_key in this order:

  1. Read environment variable DOUYIN_TRANSCRIBE_API_KEY.
  2. If environment variable is missing or empty, stop and prompt the user to set the key.

Prompt message when key is missing:

  • 未检测到环境变量 DOUYIN_TRANSCRIBE_API_KEY,请先设置 key 后再重试。可前往 https://devtool.uk/plugin 申请或反馈。

Input normalization

Before calling the API:

  1. If url includes free text, extract the first https://... URL.
  2. Keep the original text if no URL can be extracted and explain the issue.
  3. Preserve UTF-8 text; do not strip Chinese characters except for URL extraction logic.
  4. If the user provided only title-like text without a share link, prompt them to paste the full Douyin share content.

Request format

Always send JSON body with:

  • url
  • api_key

Command to run:

export DOUYIN_TRANSCRIBE_API_KEY="\x3Cyour_key>"

exec bash scripts/transcribe_douyin.sh "\x3Cnormalized_url_or_share_text>"

If DOUYIN_TRANSCRIBE_API_KEY is not set, do not call the API. Prompt the user to set it first.

Do not construct a raw curl command in the final answer unless the user explicitly asks for it. Prefer executing the bundled script.

Response handling

After the call:

  1. Show status outcome clearly (success or failed).
  2. Return important response fields directly.
  3. If request fails, provide likely causes and a corrected command.

Common failure causes:

  • Invalid or expired API key
  • Malformed JSON quoting
  • URL missing from copied share text
  • Upstream video access or parsing issues

If response indicates invalid token/key (for example code: -1 and message like 令牌无效), guide the user to:

Output format

Use this structure in responses:

# Douyin Transcription Request
- Endpoint: https://coze-js-api.devtool.uk/transcribe-douyin
- URL input: \x3Cvalue used>
- API key source: \x3Cenv: DOUYIN_TRANSCRIBE_API_KEY>

## Request
\x3Cexact exec bash scripts/transcribe_douyin.sh command>

## Result
\x3Cconcise summary of response or error>

## Next Step
\x3Cone practical fix or follow-up>

Examples

Example 1: Input: "Transcribe this: https://v.douyin.com/gtSMSkIh3p0/" Output behavior: Read key from DOUYIN_TRANSCRIBE_API_KEY, run exec bash scripts/transcribe_douyin.sh "https://v.douyin.com/gtSMSkIh3p0/", then summarize response.

Example 2: Input: "4.12 ... https://v.douyin.com/gtSMSkIh3p0/ ... 打开Dou音搜索 ..." Output behavior: Pass the full share text into scripts/transcribe_douyin.sh, let the script send the JSON request, and report result.

Safety and privacy

  • Never leak full secret keys in logs when not required.
  • If sharing command output, redact sensitive key values unless user explicitly asks for full raw output.
  • Do not invent successful transcripts when the API fails; report the failure honestly.
安全使用建议
This skill appears to do what it says (POST {url, api_key} to the declared transcribe endpoint) and uses only bash/curl/python3 and the bundled script. Before installing, verify these points: (1) Confirm the DOUYIN_TRANSCRIBE_API_KEY requirement is documented in the registry metadata — the current metadata omits it; (2) Do not paste your real API key into chat prompts or example fields — set DOUYIN_TRANSCRIBE_API_KEY in your environment instead; (3) Confirm you trust the endpoint domain (https://coze-js-api.devtool.uk) and that you obtained the API key from a legitimate source; (4) If you need to audit network calls, run the script locally with a test key first and inspect the request/response; (5) If the registry owner or homepage are unknown, consider contacting the owner or using an alternative with clearer provenance. These inconsistencies are likely sloppy configuration rather than malicious, but they warrant caution.
功能分析
Type: OpenClaw Skill Name: douyin-transcribe-api Version: 0.1.1 The skill is a functional API wrapper for transcribing Douyin videos using a third-party service (coze-js-api.devtool.uk). It uses a shell script (scripts/transcribe_douyin.sh) to execute a Python-based curl command, which safely handles user input and environment variables (DOUYIN_TRANSCRIBE_API_KEY) using standard subprocess calls. No malicious patterns, such as unauthorized data exfiltration, backdoors, or prompt injection attacks, were detected in SKILL.md or the associated scripts.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included script all align: the skill calls a Douyin transcription endpoint and needs to send {url, api_key}. Required binaries (bash, curl, python3) are reasonable for this task. However, the registry metadata lists no required environment variables while runtime instructions and the script require DOUYIN_TRANSCRIBE_API_KEY — this mismatch is unexpected and should be corrected.
Instruction Scope
SKILL.md narrowly describes extracting a URL from share text, reading the API key from DOUYIN_TRANSCRIBE_API_KEY, and executing the bundled scripts/transcribe_douyin.sh which POSTs JSON to the declared endpoint. The instructions do not ask the agent to read unrelated files, system secrets, or other env vars; the network call is limited to the stated API endpoint.
Install Mechanism
No install spec — instruction-only with a small bundled script. Nothing is downloaded from arbitrary URLs and no archives are extracted. This is low-risk from an install mechanism perspective.
Credentials
At runtime the skill expects a secret DOUYIN_TRANSCRIBE_API_KEY; that is proportionate to its purpose. But the registry metadata does not declare this required env var, which is an inconsistency. Additionally, the included evals/examples show prompts containing an API key value (e.g., 'dddd'), which may encourage users to paste secrets into chat rather than using the environment variable; that raises an information-exposure risk.
Persistence & Privilege
always is false and the skill does not request persistent or system-wide privileges. It does not modify other skills or system configs. Autonomous invocation is allowed (platform default) but not combined with any elevated privileges in this skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-transcribe-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-transcribe-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
**Now uses an external shell script for transcription requests.** - Added scripts/transcribe_douyin.sh for handling API requests via bash. - Updated logic to execute the bundled shell script instead of building API requests inline. - Response formatting and error prompts remain consistent, but requests use exec bash scripts/transcribe_douyin.sh with environment-based API key. - Added metadata to declare system requirements (bash, curl, python3). - Clarified examples and instructions to prefer the shell wrapper over manual curl commands.
v0.1.0
- Initial release of douyin-transcribe-api skill. - Supports transcription requests from Douyin URLs or share text. - Automatically handles API key resolution from environment variable. - Extracts and normalizes Douyin URLs from messy share text. - Provides clear responses, including error explanations and troubleshooting guidance. - Returns results in a standardized, markdown-formatted summary with next-step suggestions.
元数据
Slug douyin-transcribe-api
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

抖音文案解析 是什么?

Call the coze-js-api Douyin transcription endpoint and return transcript-ready results from Douyin URLs or share-text. Use this skill whenever the user asks... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 304 次。

如何安装 抖音文案解析?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-transcribe-api」即可一键安装,无需额外配置。

抖音文案解析 是免费的吗?

是的,抖音文案解析 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

抖音文案解析 支持哪些平台?

抖音文案解析 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 抖音文案解析?

由 kyris wu(@kyriswu)开发并维护,当前版本 v0.1.1。

💬 留言讨论