程式工具
TokenLab Agent Skills
在 Claude Code、Codex 或任何 agent 中安裝用於圖像、影片、音訊、3D、決策及 API 整合的 TokenLab Skills
讓我的 agent 進行設定
將此任務複製給電腦上正在執行的 agent:
Read this guide and install the TokenLab Agent Skills I need in my current agent:
https://tokenlab.sh/docs/zh-TW/integrations/coding-agent-skill
Check my installed version and active configuration first.
Preserve existing accounts, providers, permissions and other settings.
Back up local files and show proposed changes.
Have me enter any API key locally; never ask for, print or paste it in chat.
Check configuration loading first.
Explain any paid request test separately before running it.Skills 的功能
Skill 是一個包含 SKILL.md 檔案的資料夾,用於教導 agent 完成一項工作。Agent 只會載入 Skill 的名稱與描述,直到請求符合條件時,才會讀取完整的指令。
TokenLab Skills 涵蓋的是結果,而非模型。您可以要求產品照片、配音或 3D 資產;Skill 會從即時的 TokenLab 目錄中挑選模型、讀取模型詳細資訊、估算價格、發起呼叫並等待非同步結果。
這些 Skills 是免費且採用 MIT 授權的。它們所發起的 API 呼叫將按照正常的 TokenLab 價格計費。原始碼位於 tokenlab-skills。
安裝
新增市集並安裝外掛程式:
/plugin marketplace add hedging8563/tokenlab-skills
/plugin install tokenlab@tokenlab-toolsSkill 名稱具有命名空間,例如 /tokenlab:tokenlab-run。該外掛程式還會新增儲存庫 README 中描述的 TokenLab MCP 連線。
若要確認安裝,請要求 agent 列出其可用的 Skills。
付費呼叫需要 API key。請在 Console → API keys 中建立一個,並將其設定為啟動 agent 環境中的 TOKENLAB_API_KEY。切勿將 key 貼上到對話視窗中。
Skill 目錄
此表格由 Skills 儲存庫中的 catalog.json 產生。Operations 是 Skill 可以呼叫的 TokenLab 模型操作。
skill | group | operations |
|---|---|---|
tokenlab-run | foundation | — |
tokenlab-model-picker | foundation | — |
tokenlab-prompting | foundation | — |
tokenlab-product-photography | image | text-to-image, image-to-image, image-edit |
tokenlab-edit-image | image | image-edit, image-to-image |
tokenlab-restore-and-upscale | image | image-edit |
tokenlab-text-in-image | image | text-to-image, image-edit |
tokenlab-character-consistency | image | image-to-image, text-to-image, reference-to-video |
tokenlab-photoreal-stills | image | text-to-image |
tokenlab-logos-and-vectors | image | text-to-image, image-edit |
tokenlab-animate-image | video | image-to-video |
tokenlab-product-ad-video | video | image-to-video, reference-to-video, text-to-video |
tokenlab-keyframe-transition | video | start-end-to-video |
tokenlab-extend-video | video | video-extension |
tokenlab-edit-video | video | video-to-video |
tokenlab-motion-control | video | motion-control |
tokenlab-talking-avatar | video | image-to-video, tts |
tokenlab-cinematic-video | video | text-to-video, image-to-video |
tokenlab-voiceover | audio | tts |
tokenlab-transcribe-and-subtitle | audio | stt, translation |
tokenlab-music | audio | music |
tokenlab-image-to-3d-asset | 3d | image-to-3d, text-to-3d |
tokenlab-world-generation | 3d | world-generation |
tokenlab-decisions | decision | systemone |
tokenlab-api-integration | integration | chat |
tokenlab-native-endpoints | integration | chat, systemone |
tokenlab-cost-routing | integration | — |
tokenlab-openai-compatible-migration | integration | chat |
Skills 頁面 顯示了每個 Skill 以及支援其操作的即時模型數量。
模型預設值如何保持最新
Skill 絕不依賴單一固定模型。每個成果 Skill 都會列出每個階段的預設模型,並提供替代方案與低成本選項。Skills 儲存庫每天都會從即時的 TokenLab 目錄中重新整理這些預設值。
在每次呼叫之前,Skill 會使用 GET /v1/models/{model} 讀取模型的即時詳細資訊與支援欄位,並使用 GET /v1/models/{model}/pricing 讀取其價格。當某個模型供應中斷時,agent 會挑選另一個支援相同操作的模型。
若要更新安裝:
- Claude Code 外掛程式:
/plugin marketplace update tokenlab-tools,然後/plugin update tokenlab@tokenlab-tools。 - Codex 外掛程式:
codex plugin marketplace upgrade tokenlab-tools,然後codex plugin add tokenlab@tokenlab-tools。 - Skills CLI:在您安裝的範圍內執行
npx skills update <skill-id> --project或--global。
將 Skills 與 TokenLab MCP 搭配使用
Skills 與 MCP 的工作內容不同,但可以完美協作:
- TokenLab MCP 為 agent 提供可呼叫的工具,例如
create_image和get_task_status。 - Skills 為 agent 提供方法:選擇哪個模型、如何撰寫提示詞 (prompt),以及如何檢查結果。
當 MCP server 連線時,Skill 可以使用其工具。若沒有 MCP,Skill 將直接呼叫 HTTP API。
請求範例
Use the TokenLab product photography skill to put this bottle on a warm studio background in 1:1 and 9:16.Use the TokenLab API integration skill to add image generation to this Node.js app.
Read the current model details before choosing fields.
Keep the API key in TOKENLAB_API_KEY and add one runnable test.協助
若有 API 或帳戶相關問題,請使用 in-app Support;請審閱預覽並明確提交。針對特定請求,請從 Requests 開始,並遵循 investigation guide。若要回報 Skill 中的缺陷,請透過 GitHub Issues 進行。