Công cụ lập trình
TokenLab Agent Skills
Cài đặt các TokenLab skill cho hình ảnh, video, âm thanh, 3D, quyết định và tích hợp API trong Claude Code, Codex hoặc bất kỳ agent nào
Để agent của tôi thiết lập việc này
Sao chép tác vụ này vào một agent đang chạy trên máy tính của bạn:
Read this guide and install the TokenLab Agent Skills I need in my current agent:
https://tokenlab.sh/docs/vi/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.Các skill này thực hiện những gì
Một skill là một thư mục chứa tệp SKILL.md giúp dạy cho agent một công việc cụ thể. Agent chỉ tải tên và mô tả của skill cho đến khi có yêu cầu khớp với skill đó, sau đó nó mới đọc toàn bộ hướng dẫn.
Các TokenLab skill bao gồm một kết quả, không phải một model. Hãy yêu cầu ảnh sản phẩm, lồng tiếng hoặc tài sản 3D; skill sẽ chọn một model từ danh mục TokenLab trực tuyến, đọc chi tiết model, ước tính giá, thực hiện cuộc gọi và chờ kết quả bất đồng bộ (async).
Các skill này miễn phí và được cấp phép theo MIT. Các cuộc gọi API mà chúng thực hiện được tính phí theo giá TokenLab thông thường. Mã nguồn nằm tại tokenlab-skills.
Cài đặt
Thêm marketplace và cài đặt plugin:
/plugin marketplace add hedging8563/tokenlab-skills
/plugin install tokenlab@tokenlab-toolsTên các skill được đặt theo namespace, ví dụ /tokenlab:tokenlab-run. Plugin cũng thêm các kết nối TokenLab MCP được mô tả trong README của kho lưu trữ.
Để xác nhận cài đặt, hãy yêu cầu agent liệt kê các skill khả dụng của nó.
Các cuộc gọi trả phí cần có API key. Hãy tạo một key trong Console → API keys và đặt nó làm TOKENLAB_API_KEY trong môi trường khởi chạy agent. Không bao giờ dán key vào khung chat.
Danh mục Skill
Bảng này được tạo từ catalog.json trong kho lưu trữ skill. Operations là các thao tác model TokenLab mà một skill có thể gọi.
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 |
Trang Skills hiển thị từng skill cùng với số lượng model trực tuyến phục vụ cho các thao tác của nó.
Cách các model mặc định luôn được cập nhật
Một skill không bao giờ phụ thuộc vào một model cố định. Mỗi skill kết quả liệt kê một model mặc định theo từng giai đoạn, cùng với các lựa chọn thay thế và tùy chọn chi phí thấp. Kho lưu trữ skill làm mới các mặc định này mỗi ngày từ danh mục TokenLab trực tuyến.
Trước mỗi cuộc gọi, skill sẽ đọc chi tiết trực tuyến và các trường được hỗ trợ của model bằng GET /v1/models/{model} và giá của nó bằng GET /v1/models/{model}/pricing. Khi một model hết nguồn cung, agent sẽ chọn một model khác phục vụ cùng thao tác đó.
Để cập nhật cài đặt:
- Plugin Claude Code:
/plugin marketplace update tokenlab-tools, sau đó/plugin update tokenlab@tokenlab-tools. - Plugin Codex:
codex plugin marketplace upgrade tokenlab-tools, sau đócodex plugin add tokenlab@tokenlab-tools. - Skills CLI:
npx skills update <skill-id> --projecthoặc--global, trong phạm vi bạn đã cài đặt.
Sử dụng skill với TokenLab MCP
Skills và MCP thực hiện các công việc khác nhau và hoạt động tốt cùng nhau:
- TokenLab MCP cung cấp cho agent các công cụ có thể gọi như
create_imagevàget_task_status. - Skills cung cấp cho agent phương thức: chọn model nào, cách viết prompt và cách kiểm tra kết quả.
Khi server MCP được kết nối, một skill có thể sử dụng các công cụ của nó. Nếu không có MCP, skill sẽ gọi trực tiếp HTTP API.
Ví dụ về yêu cầu
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.Trợ giúp
Đối với các câu hỏi về API hoặc tài khoản, hãy sử dụng Hỗ trợ trong ứng dụng; xem lại bản xem trước và gửi yêu cầu một cách rõ ràng. Đối với một yêu cầu cụ thể, hãy bắt đầu với Requests và làm theo hướng dẫn điều tra. Báo cáo lỗi trong một skill thông qua GitHub Issues.