Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.py and .canyon.
  • Defining agent adapter contracts, callable functions, and the primary serving endpoint in workflow_config.yaml.
  • Configuring stateful versus stateless replica boundaries, autoscaling rules in scaling.yaml, and LLM cost caps in llms.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 canyonos CLI 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 fastmcp or mcp-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 trulens or agent-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.
  • .env remains in the project root; credentials are never committed or copied to .canyon.
  • Add required credential keys to .canyon/.env.example as 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

  1. 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: true and replicas: 1 (unscalable).
    • External database state: Set stateful: false (freely scalable).
  2. Autoscaling Policy (.canyon/config/scaling.yaml):

    ResearchAgent:
      min_replicas: 1
      max_replicas: 5
      cpu_threshold: 75%
    
  3. LLM Access & Cost Limits (.canyon/config/llms.yaml):

    limits:
      monthly_budget_usd: 100.00
      rate_limit_rpm: 60
    
  4. Extracted 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, and prompts.yaml.

Validation exits 0 on success. Do not proceed

Полный SKILL.md на GitHub

Установить canyonos в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Grep
Glob
Write
Edit

Вложенные файлы

SKILL.toonevals/evals.jsonreferences/source.jsonreferences/upstream.mdscripts/preflight.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить canyonos с