heygen
Skill157 starsChanged 7 months agoMITView on GitHub
Prepare guarded HeyGen Direct API requests for avatar video generation, video translation, asset discovery, and status polling.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- dAAAb/agent-skillstheir own version, first seen Mar 3, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- calesthio/OpenMontage★ 63ksame name
- dAAAb/agent-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository88 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/llm-wiki/templates/AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1passwordSkill
- agentic-tpmSkill
- airtableSkill
- alexaSkill
- apple-calendarSkill
- apple-musicSkill
- apple-passwordsSkill
- bahnSkill
- blinkSkill
- bookingSkill
- brand-voiceSkill
- byd-batterySkill
- channel-catchupSkill
- code-reviewSkill
- code-simplificationSkill
- current-timeSkill
- diagramSkill
- discordSkill
- distil-pii-redactorSkill
- docxSkill
- download-platform-invoicesSkill
- excalidrawSkill
- fastbillSkill
- fax-sendSkill
- feature-planningSkill
- firecrawlSkill
- froniusSkill
- ga4Skill
- gh-issuesSkill
- github-pr-workflowSkill
- gogSkill
- google-adsSkill
- google-workspaceSkill
- gwsSkill
- handoff-linksSkill
- hermes3000-writingSkill
- hetzner-cloudSkill
- hetzner-dnsSkill
- hetzner-storage-boxSkill
- homematicSkill
- hubspotSkill
- hueSkill
- human-distillSkill
- hybridclaw-helpSkill
- image-generationSkill
- iss-positionSkill
- langfuseSkill
- lexware-officeSkill
- llm-wikiSkill
- mailchimpSkill
- manim-videoSkill
- microsoft-365Skill
- miroSkill
- mittwaldSkill
- notionSkill
- obsidianSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 7 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 55
Use this skill for HeyGen Direct API work: avatar and voice discovery, guarded avatar video generation from approved scripts, video …
- Very specific: line 62
create gateway-proxied requests for POST /v2/videos
- Very specific: line 94
Use http-request only when you need to inspect or hand off the generated payload wrapper to the built-in http_request tool.
- Very specific: line 99
Do not try to verify HEYGEN_API_KEY with bash, environment inspection, or by asking the model whether the secret exists.
- Very specific: line 108
Start with request list-avatars and request list-voices unless the avatar and voice ids are already known.
- Very specific: line 113
Run the script through /brand-voice before generating avatar video from marketing, sales, training, or public-facing copy.
- Very specific: line 115
Use plan for natural-language generation or translation requests so the stakes tier and required grant are explicit.
- Very specific: line 117
Do not emit generate-video or translate-video requests unless the user has granted that exact credit-consuming operation in the current …
- Distinctive: line 124
Treat auto-publish to public channels as red tier and escalate before any upload, share link, social post, or public channel message.
- Distinctive: line 129
Run the colocated helper with Node:
- Very specific: line 181
If you truly need a raw gateway payload for the built-in http_request tool:
- Distinctive: line 218
Never print or ask for the HeyGen API key.
- Very specific: line 219
Prefer request for live API calls.
- Very specific: line 221
Do not hand-author HeyGen http_request payloads.
- Very specific: line 224
Do not pipe asset-list responses through head or ask for the full JSON by default.
- Very specific: line 231
Do not claim HEYGEN_API_KEY is missing unless http_request returns an explicit missing/forbidden/unresolved secret error.
- Distinctive: line 233
Keep scripts at or below 5000 characters for the direct video endpoint.
- Distinctive: line 234
Do not pass localhost, loopback, RFC1918, link-local, or other internal media URLs to HeyGen.
- Very specific: line 240
Use request or skills/heygen/client.cjs when direct execution is needed.
- Distinctive: line 245
Avoid concurrent generate/translate bursts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HeyGen
Use this skill for HeyGen Direct API work: avatar and voice discovery, guarded avatar video generation from approved scripts, video translation with lip-sync, and polling asynchronous generation or translation status.
Scope
- list available avatars, voices, and video-translation target languages
- create gateway-proxied requests for
POST /v2/videos - create gateway-proxied requests for
POST /v2/video_translate - poll
GET /v1/video_status.getandGET /v2/video_translate/{id} - classify and retry HeyGen 429, quota, and transient upstream responses with
bounded
Retry-Afteraware backoff - block private or internal media URLs before asking HeyGen to fetch them
- require explicit operator grant before credit-consuming generate/translate calls
Custom avatar training, live streaming, real-time avatars, public publishing, and distribution to external channels are outside this adapter slice.
Credential Rules
HeyGen Direct API uses an API key sent as X-API-KEY. Store it in HybridClaw
encrypted runtime secrets; never paste it into the prompt.
Recommended setup order:
- Browser admin: open the active HybridClaw admin URL ending in
/admin/secretsand setHEYGEN_API_KEY. - Browser
/chator TUI fallback:/secret set HEYGEN_API_KEY "<api-key>". - Local console fallback:
hybridclaw secret set HEYGEN_API_KEY "<api-key>"For live API calls inside HybridClaw, prefer the helper's request command. It
sends the secret-backed payload through the local gateway, retries bounded
429/5xx responses, summarizes large asset lists by default, and fails clearly
if the gateway truncates a response.
Use http-request only when you need to inspect or hand off the generated
payload wrapper to the built-in http_request tool. The helper sets
secretHeaders: [{ "name": "X-API-KEY", "secretName": "HEYGEN_API_KEY",
"prefix": "" }] so the gateway injects the API key server-side.
Do not try to verify HEYGEN_API_KEY with bash, environment inspection, or by
asking the model whether the secret exists. The model cannot inspect the
gateway secret store. If the operator says the secret was set, attempt the
http_request call with the emitted secretHeaders. Only say the secret is
missing if http_request returns a gateway error that explicitly says
HEYGEN_API_KEY is not set, unavailable, missing, or unresolved.
Default Workflow
- Start with
request list-avatarsandrequest list-voicesunless the avatar and voice ids are already known. These commands return concise summaries by default; use--limit <count>to show more candidates. Asset ids are opaque values; never use display names as--avatar-idor--voice-id. - Run the script through
/brand-voicebefore generating avatar video from marketing, sales, training, or public-facing copy. - Use
planfor natural-language generation or translation requests so the stakes tier and required grant are explicit. - Do not emit
generate-videoortranslate-videorequests unless the user has granted that exact credit-consuming operation in the current task or through an approved F8 escalation. - Poll status with
request video-status --watchorrequest translation-status --watch. Use a bounded polling budget, respectRetry-After, avoid parallel polling loops, and stop if HeyGen reports quota, credit, or rate-limit failure. - Treat auto-publish to public channels as red tier and escalate before any upload, share link, social post, or public channel message.
Command Contract
Run the colocated helper with Node:
node skills/heygen/heygen.cjs --helpPlan a request without contacting HeyGen:
node skills/heygen/heygen.cjs plan "Create an approved onboarding video from this script"List avatars, voices, or translation languages. Asset lists use compact summary output by default:
node skills/heygen/heygen.cjs request list-avatars --limit 10
node skills/heygen/heygen.cjs request list-voices --limit 10
node skills/heygen/heygen.cjs request list-translation-languagesGenerate an avatar video only after explicit operator grant:
node skills/heygen/heygen.cjs http-request generate-video \
--avatar-id avatar_123 \
--voice-id voice_123 \
--script "Approved script text" \
--title "Quarterly enablement update" \
--resolution 1080p \
--aspect-ratio 16:9 \
--operator-grantTranslate a video only after explicit operator grant:
node skills/heygen/heygen.cjs http-request translate-video \
--video-url https://example.com/source.mp4 \
--output-language de \
--mode fast \
--operator-grantPoll status:
node skills/heygen/heygen.cjs request video-status --video-id <video-id>
node skills/heygen/heygen.cjs request video-status --video-id <video-id> --watch --max-polls 10 --interval-seconds 30
node skills/heygen/heygen.cjs request translation-status --video-translate-id <translation-id>If you truly need a raw gateway payload for the built-in http_request tool:
node skills/heygen/heygen.cjs http-request list-avatarsClassify retry behavior after an API response:
node skills/heygen/heygen.cjs classify-rate-limit \
--status 429 \
--retry-after 5 \
--body-json '{"message":"Too Many Requests"}'Stakes
Green tier:
list-avatarslist-voiceslist-translation-languagesvideo-statustranslation-status
Amber tier:
generate-videotranslate-video
Red tier:
- public auto-publish, social posting, public share-link distribution, or uploading generated media to a public channel
Working Rules
- Never print or ask for the HeyGen API key.
- Prefer
requestfor live API calls. Usehttp-requestplus the built-inhttp_requesttool only when a raw payload is necessary. - Do not hand-author HeyGen
http_requestpayloads. Use the helper output unchanged soskillName, secret injection, response limits, and cost metadata stay intact. - Do not pipe asset-list responses through
heador ask for the full JSON by default. Userequest list-avatars --limit <count>orrequest list-voices --limit <count>. These commands cache concise asset summaries locally sogenerate-videocan catch display names and stale ids before contacting HeyGen. - Pass
--skip-cache-validationonly for a known private/custom asset id supplied by the operator and not present in the cached asset list. - Do not claim
HEYGEN_API_KEYis missing unlesshttp_requestreturns an explicit missing/forbidden/unresolved secret error. - Keep scripts at or below 5000 characters for the direct video endpoint.
- Do not pass localhost, loopback, RFC1918, link-local, or other internal media URLs to HeyGen.
- Honor
Retry-Afteron HTTP 429 and back off on quota/rate-limit messages. - Poll with
--watchonly when the user expects you to wait. Keep polling bounded with--max-pollsand--interval-seconds; otherwise perform one status check and report the id so the session can resume later. - Use
requestorskills/heygen/client.cjswhen direct execution is needed; it sends the generatedhttpRequestthrough/api/http/request, never adds cleartext HeyGen credentials to process output, retries bounded 429/5xx responses, and refuses truncated gateway bodies instead of parsing partial JSON. - Avoid concurrent generate/translate bursts; HeyGen quotas are account and plan dependent.
- Cost per assistant run is recorded by HybridClaw
UsageTotals; helper output includescostMeasurement.system = "UsageTotals"so evals can verify the accounting contract.
References
- HeyGen Quick Start: https://docs.heygen.com/
- Generate video endpoint: https://docs.heygen.com/reference/create-video-1
- Translate video endpoint: https://docs.heygen.com/reference/video-translate
- API limits and costs: https://docs.heygen.com/reference/limits
Validation
Run:
python3 skills/skill-creator/scripts/quick_validate.py skills/heygen
node skills/heygen/heygen.cjs --help
node skills/heygen/heygen.cjs eval-scenariosDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

