Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/gaelic-ghost/socket/cloud-inference-routing-workflownpx skills add gaelic-ghost/socket --skill cloud-inference-routing-workflowgit clone --depth 1 https://github.com/gaelic-ghost/socketWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/gaelic-ghost/socket/cloud-inference-routing-workflow)<a href="https://agentmods.dev/skills/gaelic-ghost/socket/cloud-inference-routing-workflow"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/cloud-inference-routing-workflow.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00098 | $0.01872 |
| Opus 5 | $0.00049 | $0.00936 |
| Sonnet 5 | $0.00020 | $0.00374 |
| Haiku 4.5 | $0.00010 | $0.00187 |
Grade A, and why
cloud-inference-routing-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cloud Inference Routing Workflow
Purpose
Choose the smallest correct cloud AI inference path before changing provider resources, spending GPU budget, moving model weights, or deploying endpoints.
The practical decision is whether the agent should use an official provider plugin, provider MCP server, provider CLI, SDK, managed inference endpoint, rented GPU instance, cluster platform, or a stack-owned implementation workflow.
Source Check
Use repo-local model code, Dockerfiles, provider configs, checked-out scripts, installed provider plugins, installed provider CLIs, bundled MCP servers, and official provider documentation before making claims about current behavior.
Preferred official sources:
- Runpod docs and bundled MCP servers for Runpod Pods, Serverless, Flash, templates, volumes, registries, and docs lookup.
- Hugging Face plugin and
huggingface_hubCLI for Hub repos, models, datasets, Spaces, Inference Endpoints, jobs, and papers. - AWS Agent Toolkit, AWS CLI, AWS SDKs, and AWS docs for Lambda, SageMaker, Bedrock, ECS, EKS, Batch, IAM, billing, and observability.
- Vast.ai docs and CLI for low-cost rented GPU instances.
- CoreWeave docs for Kubernetes-backed GPU infrastructure, clusters, storage, networking, and observability.
Translate documentation into the concrete project decision it changes.
Routing Workflow
- Inspect the workload:
- task: inference endpoint, batch inference, fine-tuning, full training, eval, model conversion, quantization, benchmark, notebook, or one-off GPU shell
- model family, parameter count, precision, context length, adapters, tokenizer, and required runtime
- expected VRAM, CPU RAM, disk, network, container image, driver, CUDA, and startup time
- latency, throughput, concurrency, cold-start tolerance, uptime, privacy, and cleanup needs
- artifact flow: model weights, private datasets, outputs, logs, checkpoints, and caches
- Choose the provider lane:
- quick managed inference
- quick custom endpoint
- cheap flexible GPU box
- training or conversion workspace
- Kubernetes or production cluster
- existing provider familiarity
- Prefer familiar first-party paths when they fit:
- Runpod for fast GPU Pods, Serverless endpoints, Flash, cheap/flexible experiments, templates, and resource management through MCP.
- Hugging Face for model and dataset repos, conversion/publishing workflows, Inference Endpoints, Spaces, jobs, and Hub-native collaboration.
- AWS when the project already uses AWS accounts, IAM, S3, CloudWatch, Lambda, SageMaker, Bedrock, ECS, EKS, or Batch.
- Route to official tools:
- Use
runpodMCP for Runpod resource mutations andrunpod-docsMCP for docs lookup when available. - Use the upstream Runpod skills under the exported
skills/tree for Runpodflash,runpodctl, and companion CLI details. Refresh those skills withnpx skills updateornpx skills add runpod/skillsinstead of hand-editing them. - Use the Hugging Face Codex plugin and Hugging Face CLI for Hub, model, dataset, Space, endpoint, or job work when available.
- Use the AWS Agent Toolkit and AWS CLI or SDKs for AWS inference work when available.
- Use provider CLIs or docs for Vast.ai and CoreWeave until a provider-owned agent surface is available or a concrete repeated Socket workflow justifies a new slice.
- Use
- Confirm boundaries before mutation:
- provider account, project, region, org, namespace, and budget
- API key or profile source
- model and dataset license or private-use boundary
- exact resources to create, update, stop, delete, or scale
- expected hourly cost, storage cost, bandwidth cost, idle behavior, and teardown path
- Choose validation:
- read-only docs, list, or pricing query for planning
- local smoke test or CPU fallback before GPU spend
- minimal GPU probe before full training or endpoint deployment
- endpoint health, latency, throughput, logs, and cost check after deployment
- cleanup verification for stopped Pods, terminated instances, deleted endpoints, detached volumes, and lingering storage
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 124 lines · 98 tokens per session scan A 2b92f5bfa97c
cloud-inference-routing-workflow is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 9d ago), licensed Apache-2.0. It adds 98 tokens to every session and 1,872 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
chief-data-officer
Owns data as an asset — governance, quality, the warehouse and semantic layer, analytics capability, and the governance of models built on top. Use this for a decision about how data is collected, stored, defined, or shared; when numbers disagree between teams; when deciding what to build in-house versus buy; when…
ai-workflow-architect
Designs AI systems, automations, and agent workflows for a business — identifying which manual work is worth automating, how to structure the system, which tools fit, and what could go wrong. Use this to automate part of an operation, design an agent or MCP workflow, reduce repetitive manual work, connect tools into a…
ai-ml-governance
Governs models and AI systems in production — intended use, evaluation, monitoring, human oversight, documentation, and the decision to deploy or retire. Use this before deploying a model or AI feature, when defining evaluation criteria, when a model's behavior has drifted, when assessing AI risk or regulatory…
data-engineering
Builds and operates data pipelines — ingestion, transformation, orchestration, quality testing, and reliability of data delivery. Use this to design or debug a pipeline, decide batch versus streaming, add data quality checks, handle late or duplicate data, or work out why a dashboard's numbers changed without anyone…
pipeline
Use when the user wants a feature idea taken end-to-end in one autonomous run — phrases like "run the whole pipeline", "take this feature from idea to finished branch", "brainstorm then build it autonomously", "do everything from idea to merged", "implement all phases without stopping". Triggers when they want…
craft
Use when a product idea is still vague and needs to become a clear definition of what to build — "let's craft an app like X", "help me define what I actually want", "clarify this idea before we plan it". Also use before planning or implementation when requirements, UX, domain behaviour, or technical preferences have…