canyonos
БесплатноЗапускает вложенные скриптыНе проверенDeploy, observe, and scale multi-agent Python applications without decorators or SDK modifications using CanyonOS (v0.2.2). Use when converting plain Python…
от akillness★ 63 звезды на GitHubОб этом скилле
CanyonOS
When to use this skill
Use when deploying, instrumenting, observing, or scaling distributed multi-agent systems written in plain Python, LangChain, or LangGraph using CanyonOS v0.2.2. CanyonOS eliminates manual infrastructure setup by turning standard agent classes into containerized microservice topologies without altering existing source code.
Key scenarios include:
- Non-invasively converting an existing agent repository into a CanyonOS deployment using
prepare.pyand.canyon. - Defining agent adapter contracts, callable
functions, and the primary servingendpointinworkflow_config.yaml. - Configuring stateful versus stateless replica boundaries, autoscaling rules in
scaling.yaml, and LLM cost caps inllms.yaml. - Extracting hardcoded LLM system instructions into managed, versioned
prompts.yaml. - Inspecting runtime health, logs, OpenTelemetry traces, and GPU utilization (
nvidia-smi/--gpus all). - Running the
canyonosCLI lifecycle (doctor,new-app,validate,deploy,status,test,logs,stop,clean).
Route-outs
- For managing declarative Kubernetes agent CRDs, controller reconcile loops, or gRPC A2A sessions directly, use
kagent. - For building, hosting, or consuming Model Context Protocol (MCP) servers and tools, use
fastmcpormcp-builder. - For authoring in-process LangGraph state graphs or checkpoint persistence without container orchestration, use
langgraph-fundamentals. - For raw OpenTelemetry collector pipelines or Prometheus scrapers without CanyonOS, use
agent-observability. - For measuring LLM output quality, hallucinations, or RAG Triad scores, use
trulensoragent-evaluation.
Instructions
1. Offline environment preflight
Before creating directories or invoking container commands, verify the local environment using the offline manifest helper:
python3 "$SKILL_DIR/scripts/preflight.py" --json
To compare an existing CanyonOS source checkout against the pinned 12-file manifest:
python3 "$SKILL_DIR/scripts/preflight.py" --json --repo /absolute/real/path/to/canyonos
The preflight script performs non-executing path discovery for python3, uv, docker, canyonos, and git, strictly validating source bytes without starting daemons or accessing the network.
2. Scaffold or convert an existing Python agent project
Scaffolding a new project
canyonos new-app my-agents
cd my-agents
This generates standard agent classes in agents/ and a central workflow.py.
Converting an existing repository
Run the upstream conversion helper to generate the isolated .canyon configuration directory:
python3 <skill_dir>/prepare.py <import-root> .canyon
- Preserves application code, dependencies, and environment files.
.envremains in the project root; credentials are never committed or copied to.canyon.- Add required credential keys to
.canyon/.env.exampleas documentation.
3. Configure workflow, adapters, and entrypoints
Edit .canyon/config/workflow_config.yaml to define the runtime topology:
version: "1.0"
endpoint:
agent: WorkflowAgent
method: run
agents:
WorkflowAgent:
path: agents/workflow.py
class: WorkflowAgent
functions:
- name: run
args:
query: str
return_type: str
replicas: 1
stateful: false
ResearchAgent:
path: agents/researcher.py
class: ResearchAgent
functions:
- name: search
args:
topic: str
return_type: dict
replicas: 2
stateful: false
Record one representative test query in .canyon/config/test_query.txt (raw string, without Markdown fences).
4. Memory, scaling, and LLM cost governance
State Isolation:
- Single-request shared state: Set
stateful: true(routes requests to the same replica while allowing scale). - Multi-request in-memory state: Set
stateful: trueandreplicas: 1(unscalable). - External database state: Set
stateful: false(freely scalable).
- Single-request shared state: Set
Autoscaling Policy (
.canyon/config/scaling.yaml):ResearchAgent: min_replicas: 1 max_replicas: 5 cpu_threshold: 75%LLM Access & Cost Limits (
.canyon/config/llms.yaml):limits: monthly_budget_usd: 100.00 rate_limit_rpm: 60Extracted Prompts (
.canyon/config/prompts.yaml): Extract hardcoded system instructions into named templates (<agent>.<function>) so prompts can be updated without rebuilding container images.
5. Static pre-deployment validation
Always run static validation from the application root before attempting any deployment:
canyonos validate
Validation verifies:
- Import graph and entrypoint reachability.
- Dependency compatibility via
uv pip compile. - Schema alignment between
workflow_config.yaml,scaling.yaml, andprompts.yaml.
Validation exits 0 on success. Do not proceed
Установить canyonos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobWriteEditВложенные файлы
FAQ
Что делает скилл canyonos?
Deploy, observe, and scale multi-agent Python applications without decorators or SDK modifications using CanyonOS (v0.2.2). Use when converting plain Python, LangChain, or LangGraph projects into containerized agent replicas via .canyon and prepare.py; defining workflow topologies, entrypoints, and adapters; configuring state isolation, replicas, and autoscaling in scaling.yaml; managing LLM access and cost caps in llms.yaml; extracting versioned system prompts into prompts.yaml; generating OpenTelemetry metrics and traces; or running canyonos doctor, new-app, validate, deploy, status, test, logs, clean, and stop. Route Kubernetes-only CRD declarative cluster controllers to kagent, MCP application authoring to fastmcp, and LLM evaluation benchmarks to trulens or agent-evaluation.
Как установить скилл canyonos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл canyonos запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic