PoYo Agent Skill
Thepoyo-ai-models Skill teaches compatible coding agents to discover models, validate schemas, execute safely, and resume asynchronous tasks.
The Skill is distributed from the poyo-devtools repository under:
npx @poyoapi/cli.
Install
Run this in your project directory, replacingclaude-code with codex or cursor as needed. Add --global to install it for all projects, or omit --agent to choose another client interactively:
How it executes
- MCP connected: the agent calls PoYo MCP tools such as
poyo_search_models,poyo_run_model, andpoyo_check_job. See Connect with MCP. - No MCP: the agent runs
npx @poyoapi/cli, for examplesubmit MODEL_ID ...followed bytask wait TASK_ID. The CLI uses the key saved byauth login. - Streaming chat: the agent uses the CLI, because MCP
poyo_chatreturns one complete result.
Workflow
The Skill instructs an agent to:- Restate modality, inputs, constraints, output requirements, and budget.
- Search the production Capability Catalog.
- Inspect the selected model’s schema.
- Choose non-streaming MCP chat, CLI streaming chat, short generation, or asynchronous submission.
- Poll queued/running tasks until they succeed or fail.
- Report model ID, status, outputs, and partial failures.
Guardrails
- Never invent a model ID or parameter.
- Never put an API key in a prompt or committed file.
- Do not automatically resubmit a request after a timeout or transport failure; first determine whether a task was created.
- Do not claim completion while a task is queued or running.
- Preserve task IDs so an interrupted workflow can resume without resubmission.
Troubleshooting
Authentication fails after auth login
Credential priority is --api-key, then POYO_API_KEY, then the system keyring, then local config. An old or invalid POYO_API_KEY environment variable overrides the key saved by auth login. Check which source is used:
(environment) or (keyring). Unset the stale variable or update it.
npx skills add fails with “Failed to clone”
The installer clones from GitHub. Make sure your network can reach github.com, and configure a proxy for git if needed.
JSON input breaks on Windows
Inline--input '{...}' JSON is often broken by shell quoting on Windows. Prefer schema flags such as --prompt "..." --resolution 1K, or put the request in a file and pass --input-file.