twitch-clip
БесплатноЗапускает вложенные скриптыНе проверенCreate Twitch clips of the current live stream via the Twitch API. Use when a streamer says "clip that", "clip the last X seconds", "make a clip", "clip it"…
от djc00p1 246 установок в других каталогахОб этом скилле
Twitch Clip Skill
Creates a clip of the last 5–60 seconds of a live Twitch stream via the Twitch Clips API. Includes a 30-second cooldown to prevent accidental spam clipping.
Before You Run
Clipping is a write action against your Twitch channel using a token that carries clip-creation authority.
- Explicit request only. Run this only when someone has directly asked for a clip of the current broadcast. Do not act on ambient mentions of streaming or recording.
- Confirm before creating. Confirm the clip request before calling the API. The skill creates a public clip immediately once authorized.
- Per-user state. The cooldown file lives in a private per-user state directory,
not a shared
/tmppath, so it is not writable or readable by other users on the machine.
Setup
1. Create a Twitch app
- Go to https://dev.twitch.tv/console/apps
- Register a new app (OAuth Redirect URL:
http://localhost, Category: Other) - Copy your Client ID and generate a Client Secret
2. Get an OAuth token
Visit this URL in your browser (replace YOUR_CLIENT_ID):
https://id.twitch.tv/oauth2/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=http://localhost&response_type=token&scope=clips:edit
Copy the access_token from the redirect URL.
3. Set environment variables
export TWITCH_CLIENT_ID="your_client_id"
export TWITCH_ACCESS_TOKEN="your_access_token"
export TWITCH_BROADCASTER_ID="your_broadcaster_id" # numeric user ID
To find your broadcaster ID:
curl -s -H "Authorization: Bearer $TWITCH_ACCESS_TOKEN" \
-H "Client-Id: $TWITCH_CLIENT_ID" \
https://api.twitch.tv/helix/users | python3 -c "import json,sys; print(json.load(sys.stdin)['data'][0]['id'])"
Usage
Run the clip script:
bash scripts/create_clip.sh [duration_seconds]
- Duration defaults to 30, and must be between 5 and 60 seconds
- The requested duration is passed to the Twitch API, so the published clip matches what was asked for
- Stream must be live or the API returns a 404
Cooldown
A 30-second cooldown is enforced between clips. If a clip request comes in during cooldown:
- Script exits with code 2 and prints remaining wait time
- Reply:
⏳ Cooldown active — try again in Xs - Do NOT retry automatically — wait for the next explicit clip request
Trigger phrases
- "clip that"
- "clip the last X seconds"
- "make a clip"
- "clip it"
Response format
Success:
Clipped! 🎬 https://clips.twitch.tv/<clip_id>
Cooldown active:
⏳ Cooldown active — try again in Xs
Not live:
Stream is offline — can't clip right now
Token refresh
Tokens expire. If you get a 401 error, re-authorize using the URL in Setup step 2.
Установить twitch-clip в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл twitch-clip?
Create Twitch clips of the current live stream via the Twitch API. Use when a streamer says "clip that", "clip the last X seconds", "make a clip", "clip it", or any variation requesting a clip of the current broadcast. Requires Twitch API credentials configured in environment variables. Has a 30-second cooldown between clips to prevent spam.
Как установить скилл twitch-clip?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл twitch-clip запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic