TokenLab

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-tools

Tê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.

skillgroupoperations
tokenlab-runfoundation—
tokenlab-model-pickerfoundation—
tokenlab-promptingfoundation—
tokenlab-product-photographyimagetext-to-image, image-to-image, image-edit
tokenlab-edit-imageimageimage-edit, image-to-image
tokenlab-restore-and-upscaleimageimage-edit
tokenlab-text-in-imageimagetext-to-image, image-edit
tokenlab-character-consistencyimageimage-to-image, text-to-image, reference-to-video
tokenlab-photoreal-stillsimagetext-to-image
tokenlab-logos-and-vectorsimagetext-to-image, image-edit
tokenlab-animate-imagevideoimage-to-video
tokenlab-product-ad-videovideoimage-to-video, reference-to-video, text-to-video
tokenlab-keyframe-transitionvideostart-end-to-video
tokenlab-extend-videovideovideo-extension
tokenlab-edit-videovideovideo-to-video
tokenlab-motion-controlvideomotion-control
tokenlab-talking-avatarvideoimage-to-video, tts
tokenlab-cinematic-videovideotext-to-video, image-to-video
tokenlab-voiceoveraudiotts
tokenlab-transcribe-and-subtitleaudiostt, translation
tokenlab-musicaudiomusic
tokenlab-image-to-3d-asset3dimage-to-3d, text-to-3d
tokenlab-world-generation3dworld-generation
tokenlab-decisionsdecisionsystemone
tokenlab-api-integrationintegrationchat
tokenlab-native-endpointsintegrationchat, systemone
tokenlab-cost-routingintegration—
tokenlab-openai-compatible-migrationintegrationchat

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> --project hoặ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_image và 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.

Trên trang này