agent-runtime-patterns

agent-runtime-patterns is a skill for Claude Code from yeaight7/agent-powerups. It costs 30 tokens per session (636 once invoked), scanned A, original, Apache-2.0.

A set of patterns for designing and tuning AI agent workflows. It covers choosing direct work, routing, chaining, parallel workers, or agents used as tools, plus compact instruction cards.

In plain words
What is it for?
It is for planning agent orchestration, reducing redundant work, and managing MCP sessions. MCP is a protocol that lets agents use connected tools and data services.
Why use it?
It helps avoid unnecessary tool calls, repeated searches, high token use, and poorly structured multi-agent workflows.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the dev-vitals plugin — 14 skills, 4 commands, 1 agent shipped together

Good fit It is for planning agent orchestration, reducing redundant work, and managing MCP sessions. MCP is a protocol that lets agents use connected tools and data services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/agent-runtime-patterns
Install

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.

Any agent
npx skills add yeaight7/agent-powerups --skill agent-runtime-patterns
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install dev-vitals, the plugin that ships this one along with the rest of its 14 skills, 4 commands, 1 agent.

Wrote 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.

agentmods badge for agent-runtime-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/agent-runtime-patterns/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/agent-runtime-patterns)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/agent-runtime-patterns"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/agent-runtime-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-runtime-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/agent-runtime-patterns"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/agent-runtime-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00636
Opus 5 $0.00015 $0.00318
Sonnet 5 $0.00006 $0.00127
Haiku 4.5 $0.00003 $0.00064

Measured yesterday against content hash 38ae075e5630, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-15, from the pricing page.

Security

Grade A, and why

agent-runtime-patterns 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.

plugins/dev-vitals/skills/agent-runtime-patterns/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Runtime Patterns

When to use

  • Optimizing a slow or over-spending agent loop (too many tool calls, high token use).
  • Designing multi-agent orchestration topology for a new workflow.
  • Managing MCP session lifecycle for experimental data-layer sessions.
  • Reducing redundant search or file-read loops.

Core Patterns

Pattern Use when Avoid when
Direct execution Single agent, clear scope, no subagent benefits Task genuinely requires parallel sub-agents or specialized routing
Routing Input type determines which specialized agent to invoke Agents share context and can't be isolated
Chaining Output of A is strict input of B Agents need to share partial context
Orchestrator-worker Parallel independent subtasks with a coordinator Tasks are tightly coupled or sequential
Agents-as-tools Callable child agent inside a parent's tool loop The child needs user interaction

Knowledge Cards

A card is a compact, high-signal instruction block — typically 3–10 lines — for a specific operation. Cards are preferable to loading full documentation into context.

Good card: step sequence + key constraint + example invocation. Bad card: copied README sections, multiple unrelated topics in one block.

Pack cards for the current task only. Swap cards between phases rather than accumulating them.

Workflow

  1. Identify the bottleneck — measure before optimizing: count tool calls, token usage, and latency. Name the specific slow or expensive step.
  2. Choose the right pattern — use the table above. Default to direct execution; add orchestration only when simpler approaches are insufficient.
  3. Pack knowledge as cards — replace large prompt docs with targeted 5–10 line cards per operation.
  4. Bound search loops — cap retries (e.g., max 3 search attempts), normalize query construction, prefer a dedicated search subagent over inline ad-hoc loops.
  5. Model MCP sessions explicitly — for experimental sessions: track create/delete lifecycle, request _meta session IDs, handle missing-session errors without silent retries.
  6. Measure after — compare latency, tool-call count, token use, and task success rate before/after.

Read the full file on GitHub · 55 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. yesterday First seen · 55 lines · 30 tokens per session scan A 38ae075e5630

Subscribe to this mod's changes

agent-runtime-patterns is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 30 tokens to every session and 636 once invoked, about $0.0002 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-14.