/powertools:vertical-agent-designfrom powertools
Design principles for building accurate, domain-specific (vertical) AI agents that customers pick because they are more accurate. Use when designing or reviewing an agent's tools, system prompt, context layout, or tool architecture — deciding how many tools to expose, what belongs in the system prompt vs. loaded on demand, how to shape tool inputs/outputs, or why an agent is inaccurate or context-bloated. Core idea: structure the agent's context like a CPU memory hierarchy (L1/L2/L3). Adapted from Peter Wang's essay "Building a Good Vertical Agent."
Ships in powertools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A good agent is a faithful compression of its task distribution.
The mechanics are commodity: an agent is a while-loop around a model that calls tools until the task is done. Anyone can build one. What separates a good agent from a toy is not cleverness — it is understanding your domain's task distribution and doing tedious, careful work in the few places that matter.
With the model fixed, accuracy is a function of context quality. Bloated context buries the signal; missing context forces guessing. Both cost accuracy, and accuracy is what you sell — the payoff is non-linear (a task that scores 99% is worth far more than one that scores 95%).
Users do not bring a uniform distribution of problems. They bring a long tail:
Your job is to place each capability at the tier that minimizes total cost across that distribution. That is the whole craft.
Model context is like a CPU's memory: the fast store next to the processor is tiny, so you tier it. Keep the hot set in the fast tier; reach into slow tiers only for rare stuff. A "cache miss" is the cost you pay to fetch what wasn't resident.
Build the agent's context the same way. Every capability trades compression (cheap to keep resident, but costs prompt tokens on every task) against discovery (free until needed, but costs tool calls to find). Place each capability where total cost is lowest.
Lives in the system prompt on every call. The bread-and-butter operations on the steep part of the frequency curve.
Because L1 is resident forever, fight hardest to keep it tight. Expect a few hundred lines: core operations, the tool contract, the key types, and the execution/safety guidelines.
Important-but-occasional capabilities. Documenting them in L1 would bloat every task that never uses them, so fetch them in one discovery step (one cache miss).
Resident cost is thin: an allowlist (~50 lines) of the blessed capabilities and pointers saying the specs exist and when to reach for them. The spec contents stay out of the prompt until pulled in.
The one obscure thing you never wrapped and never wrote a spec for. You cannot anticipate it, but the agent must still reach it or it hits a wall.
grep recipes for each kind of question.Resident cost is ~5 lines: the skill's name and description, plus a pointer. The raw reference never touches the prompt.
The escape-hatch rule: the agent should never be stuck. Miss in L1, drop to L2, and if the curated spec is silent, descend into the raw tome and still return an answer in a sane number of calls. If the wrapped API can't do it, use the raw API — don't compromise.
Model accuracy degrades as you add tools — more schema in the prompt, more surface to confuse, more ways to pick wrong, especially when tools overlap. Popular agents disagree 4x on tool count, which is a tell that no principle is agreed on.
Prefer a single execute_code tool: the model writes code, the code calls your
functions, the functions touch the domain. This collapses every decision into one ("write
code") and lets the model compose capabilities with a full programming language instead of
stitching rigid tool calls. It also makes all three tiers reachable from one place — L1/L2/L3
are just which functions the model knows it can call, and how much work it did to find them.
Reading is an act of compression. A read wrapper should shrink the payload without losing information:
Writing should report what changed and what looks wrong. After a batch write, hand back a structured diff that is:
The compression in your prompts and specs is an encoding of your users' task distribution — which you understand better than anyone. Answer three questions:
Get the three placements right and the agent is fast on the common case, capable on the occasional one, and never truly stuck on the rare one — while context stays small enough that the model stays sharp.
What counts as L1 is not fixed. Stronger models absorb larger L2 specs in one shot and reason over more raw L3 detail. As models improve, yesterday's L3 becomes tomorrow's L2, and yesterday's L2 collapses into L1 — the tiers slide down a level.
But the hierarchy never disappears. Context will always be smaller than everything you could put in it, and noise always costs accuracy. Bigger context windows tempt you to paste in more; the better instinct is the one CPUs settled on decades ago: summaries in cache, details on demand, the raw substrate as the last resort. Build the agent's context like a memory hierarchy, and accuracy follows.
Source: Peter Wang (@BrainsAndTennis), "Building a Good Vertical Agent," Jun 2026.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jordangaston/claude-plugins --plugin powertools79 skills in this plugin
/ai-camera-movementsLibrary of 46 camera movement prompt blocks for AI video generation (Seedance, Kling, Veo, Runway, Higgsfield). Use this skill EVERY time the user needs a camera move for a video prompt, asks "what camera movement should I use", wants a dolly/pan/orbit/zoom/crane/drone/tracking/handheld/whip-pan/FPV/snorricam/tilt-shift/earth-zoom prompt, asks to add camera motion to a shot, wants to compare camera moves for a scene, or says "Run Camera" / "camera move for this shot". Also trigger when building shot lists or video prompts with other skills (ai-filmmaking, seedance-prompt-structure, genhq-seedance-2-prompt-builder) and a camera instruction is needed — this skill supplies the camera block./ai-image-promptsTurn a seed idea into a polished AI image-generation prompt using a 6-part structure: [medium], [subject], [action/pose], [environment], [style/vibe], [technical specs]. Use this skill whenever the user wants a prompt for generating an image with any model — Midjourney, DALL-E, Imagen, Nano Banana, Flux, Stable Diffusion, Freepik, or unnamed — or asks to 'write an image prompt,' 'make a prompt for this idea,' 'improve my image prompt,' or gives a rough visual idea ('a red panda barista,' 'cyberpunk samurai in the rain') and wants it image-ready. Also trigger when the user asks why their image prompts produce weak or inconsistent results. Covers any visual medium: photorealistic, digital painting, 3D render, anime, illustration, pixel art, watercolor, concept art, and more.Other plugins' skills for the same job