AgentSkillsCN

skill-as-a-service

启动具备专业技能的云端代码代理,并远程执行任务。 适用场景: - 用户需要从技能商店中列出可用技能 - 用户希望启动已安装特定技能的云端代理 - 用户需要在已部署的云端代理上运行任务 - 用户希望管理云端代理的生命周期(列出代理、获取代理信息、终止代理) - 用户需要通过轮询方式实时追踪任务状态 此功能需从技能服务提供商处获取 API 密钥。

SKILL.md
--- frontmatter
name: skill-as-a-service
description: |
  Spawn cloud code agents with specialized skills and execute tasks remotely.
  Use when:
  - User needs to list available skills from a skill store
  - User wants to spawn a cloud agent with specific skills installed
  - User needs to run tasks on a deployed cloud agent
  - User wants to manage cloud agent lifecycle (list, info, terminate)
  - User needs to track task status with polling

  Requires an API key from the skill service provider.

Skill as a Service

Spawn cloud code agents with specialized skills and execute tasks remotely. Specify the task, agents, and skills; the cloud handles provisioning and execution.

Agent Instructions: Setup & Authentication

Step 1: Verify API Key

Before performing any action, check if the SKILL_SERVICE_API_KEY environment variable is available.

  • If missing: Pause and ask the user: "I need a Rebyte API key to proceed. You can get one at rebyte.ai/settings/api-keys. Please provide your key or set the SKILL_SERVICE_API_KEY environment variable."
  • If present: Continue with the user's request.

Quick Start

1. Common Operations

You can use the Python client or the provided CLI tool.

Python Client

python
from scripts.skill_service import get_client

client = get_client()

# List available skills
skills = client.list_skills(search="pdf")

# Spawn an agent
agent = client.spawn_agent(
    agent_name="my-worker",
    skills=["anthropics-pdf"],
    prompt="You are a PDF expert."
)

# Run a task (waits for completion by default)
result = client.run_task(
    agent_id=agent["agent_id"],
    task_description="Extract text from the PDF",
    input_data={"file": "sample.pdf"}
)

# Terminate when done
client.terminate_agent(agent["agent_id"])

CLI Tool

bash
# List skills
python3 scripts/skill_cli.py list-skills --search pdf

# Spawn an agent
python3 scripts/skill_cli.py spawn-agent --name worker --skills anthropics-pdf

# Run a task
python3 scripts/skill_cli.py run-task --agent-id AGENT_ID --task "Extract text" --input '{"file": "sample.pdf"}'

Detailed Resources

  • API Reference: See references/api.md for full method signatures, response formats, and error handling.
  • Advanced Examples: See references/examples.md for complex workflows, custom polling, and bulk processing.

Configuration

VariableRequiredDefaultDescription
SKILL_SERVICE_API_KEYYes-API key for authentication
SKILL_SERVICE_BASE_URLNohttps://api.rebyte.aiAPI base URL