跳到正文
cccskills
免费在 GitHub 公开

twitch

Read and write Twitch via the Helix API: channel profile, follower stats, live stream status, past videos, channel title and game updates, clip creation. Trigger phrases: twitch, stream stats, stream followers, channel update.

中文简介正在准备中。当前显示原文说明。

集成工具X (Twitter)
查看安装方法

包含的文件(2)

  • SKILL.md3.5 KB
  • bin/twitch.py7.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Twitch

Purpose

Read and write the user's Twitch channel through the Helix API: channel profile, follower count, live stream status and viewers, past broadcasts and clips, channel title/game updates, clip creation. Use when the user mentions Twitch or their stream.

Tooling

All commands go through bin/twitch.py:

bin/twitch.py auth --client-id abc123xyz                              # verify the token (returns own profile)
bin/twitch.py user --client-id abc123xyz --login someuser             # channel profile (omit --login for own)
bin/twitch.py followers --client-id abc123xyz --broadcaster-id 12345  # follower count + recent followers
bin/twitch.py stream --client-id abc123xyz --user-login someuser      # live now? viewer count, title, game
bin/twitch.py videos --client-id abc123xyz --user-id 12345            # past broadcasts and clips
bin/twitch.py channel-update --client-id abc123xyz --broadcaster-id 12345 --title "New title" --game-id 509658  # confirm first
bin/twitch.py clip-create --client-id abc123xyz --broadcaster-id 12345  # confirm first

The followers, videos, channel-update, and clip-create commands need the numeric channel id: run user first to resolve a login to it.

Auth

  • Provider id: twitch (credential is collected as custom.twitch)
  • Collection: provider OAuth via the secure credential flow (credentials.request_api_access). Self-serve: register an app in the Twitch Developer Console (the Twitch account needs 2FA enabled; there is no review gate). User tokens come from the authorization code flow at https://id.twitch.tv/oauth2/authorize; app-only tokens come from client credentials at https://id.twitch.tv/oauth2/token.
  • Required scopes: user:read:email, channel:read:subscriptions, channel:manage:broadcast, clips:edit, chat:write (request only the scopes the commands you need require)
  • Client id: every Helix call needs both Authorization: Bearer and a Client-Id header. The bearer token comes from the stored credential; the client id comes from your app registration and is passed with --client-id on every command.
  • Allowed hosts: api.twitch.tv
  • Status check: bin/twitch.py auth --client-id <id> (must return "ok": true)

Operating Rules

  1. channel-update and clip-create are writes: confirm the exact title/game or the clip request with the user before running, unless standing permission exists.
  2. Reading (user, followers, stream, videos) needs no confirmation.
  3. Twitch Helix is rate-limited to 800 points per minute on the standard app tier; back off on 429s.
  4. There is no "schedule a stream" write endpoint: channel metadata updates are the publish-side surface here.
  5. Never exfiltrate the credential: the CLI only ever handles surrogates (see bin/twitch.py). Do not print, log, or transmit the token value.

Files

  • SKILL.md
  • bin/twitch.py

Maturity

🧪 Draft: written from Twitch's public Helix docs via the verified research dossier; not yet live-tested end-to-end.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

<What it does, one line>. Trigger phrases: <phrases>.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13812026年10月14日 更新

airtable

免费

List Airtable bases, read table records, and add records. Trigger phrases: airtable, my base, add a record, spreadsheet.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13812026年10月14日 更新

Stock quotes and daily price history. Trigger phrases: stock quote, alphavantage, stock price.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13812026年10月14日 更新

amadeus

免费

Search travel with Amadeus: flight offers and prices, airport autocomplete, hotel offers, cheapest dates. Trigger phrases: amadeus, flight search, flight prices, hotel search.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13812026年10月14日 更新

anthropic

免费

Check Anthropic API access and list available Claude models. Read-only. Trigger phrases: anthropic, claude models, anthropic api.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13812026年10月14日 更新

apollo

免费

Search B2B contacts with Apollo.io: find people by title and company, enrich contacts and companies. Trigger phrases: apollo, find prospects, enrich contact.

中文简介正在准备中。当前显示原文说明。

Anil-matcha/awesome-muse-connectors13812026年10月14日 更新

查看 Anil-matcha 的全部技能

报告此技能的问题