← Back to Skills Marketplace
kyriswu

抖音文案解析

by kyris wu · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
304
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install douyin-transcribe-api
Description
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...
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install douyin-transcribe-api
  3. After installation, invoke the skill by name or use /douyin-transcribe-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug douyin-transcribe-api
Version 0.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 抖音文案解析?

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... It is an AI Agent Skill for Claude Code / OpenClaw, with 304 downloads so far.

How do I install 抖音文案解析?

Run "/install douyin-transcribe-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 抖音文案解析 free?

Yes, 抖音文案解析 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 抖音文案解析 support?

抖音文案解析 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 抖音文案解析?

It is built and maintained by kyris wu (@kyriswu); the current version is v0.1.1.

💬 Comments