Iterations

From real-simple-labs/parker-brain · View interactive version

Iterations is an AI agent skill from the GitHub repository real-simple-labs/parker-brain. The full iteration flow in one skill — choose which ads to iterate on, then make the iterations. If the user names a specific ad, go straight to making iterations; if they ask account-level (which ads should we iterate on, what to iterate this month), select the ads first, then make iterations on ea

How to use this skill

Skill file

Iterations

Goal

Take a performing ad and recommend the highest-confidence iterations to extend its life with the audience that already responds, or unlock new audiences with the same proven message. This skill owns the whole flow in two phases:

This skill does not cover net-new concept creation, script writing from scratch, headline writing for a new ad, or ad adaptation. If the request is any of those, route to the relevant skill instead.

Which phase to enter

Decide at the top, from what the user gave you:

When Phase A flows into Phase B in one run, carry the selection reasoning forward — why the ad was chosen (slow-burner vs high-riser, the working elements, the account trends and any uncommon-but-winning pattern it should respect) — into the Phase B diagnosis rather than re-deriving it.

What you are working from

Both phases run on canonical doctrine, not general intuition. The reads live in parker-system/creative-strategy-context/. Load the ones the active phase touches and reason in their named concepts — work that never speaks the doctrine's vocabulary proves the docs were not opened.

Performance data and the creatives pull through the Parker tools inventoried in parker-system/system/parker-tools.md.


Phase A — Choose which ads to iterate on

Run this when no specific ad has been named. The method is selecting-ads-to-iterate-on.md.

  1. Load brand context — strategy first. The brand's committed strategy (strategy/ — the working thesis and roadmap) frames which ads are worth extending and which strategic goal an iteration targets; read it before selecting. Then brand profile, ICP/personas, voice of customer, current creative challenges, compliance, marketing calendar. Check the idea bank (idea-bank/, including evaluated ideas) when an iteration needs a new element — a graded entry beats an invented one. No output without this loaded. A brain without strategy/ or an idea bank yet gets one line saying so.
  1. Pull the account, sorted by spend. Top-spending ads over a 60-day window with spend, week-over-week spend trend, run time, and core efficiency metrics (CPA/ROAS, hook rate, hold rate, CTR, frequency). Always sort by spend — spend is the first precursor. If the data isn't available, say so and name what you need.
  1. Read each candidate against the selection method. Is spend significant in the context of this account's scale? Is it rising, steady, or dropping WoW (rising/steady-rising = scaling potential; dropping = deprioritize)? Read run time only in the context of performance. Is the top spender a promo/discount creative (especially a static)? — if so, do not select it. Name the slow-burner vs high-riser pattern. Reason rooted in the breakdown effect throughout.
  1. Read the 60-day account trends. What the top performers share (formats, angles, creators, emotions, a-roll vs b-roll, how soon the product appears, prod level, vs organic), any uncommon-but-winning pattern to carry forward, and whether a candidate has already been iterated on (and whether those worked — don't repeat).
  1. Present the ranked shortlist and checkpoint. The ads to iterate on, in priority order, each with the spend/trend/run-time/promo read and the slow-burner/high-riser call; plus the high-spend ads you are not selecting and why. This is a human-in-the-loop checkpoint: confirm the picks before spending effort building iterations, unless the user asked to run straight through. End this output with the selection doc's required line.
  1. Proceed to Phase B on each confirmed ad, carrying its selection reasoning forward.

Phase A output


Phase B — Make the iterations

Run this when an ad is chosen (named by the user, or selected in Phase A). The method is iterations.md.

  1. Load brand context (if not already loaded in Phase A).
  1. Gather the ad. Get the creative itself and watch/study it directly — never work from metadata alone. Pull performance data: CTR, hook rate, hold rate, CvR, CPA, ROAS, spend, frequency. If missing, ask before proceeding. Surface iteration history so recommendations build on prior tests rather than repeat them.
  1. Run strategy.md. Diagnose through the data lens and the creative lens. Identify the bottleneck, identify the working elements that must be preserved, and choose the iteration processes that best address the diagnosis, factoring brand fit and prior iteration history. If you arrived from Phase A, fold the selection reasoning in rather than re-deriving it.
  1. State the diagnosis and chosen iterations before executing. Two to four sentences on what is working, the bottleneck, and which iteration types you are about to run, with reasoning. Human-in-the-loop checkpoint — the user can redirect before drafting. Skip only when the user already approved a specific set or asked to skip review.
  1. Load and execute each chosen process. Each process in processes/ has its own required inputs and steps. Honor those.
  1. Run the final quality audit. Every iteration must pass the checks in strategy.md before output.
  1. You run the two review gates yourself, now, before you present anything — this is a step you execute, not a thing that happens for you. Read "automatically" as without being asked, never as without you doing it: nothing else spawns these agents, so if you don't spawn them they never run. They are not optional, not a "second opinion," and never offered to the user as a choice — asking "want me to review this" is itself the failure. Running scripts/voice-lint.py yourself is not the gate; the gate is the independent agent, and its returned verdict fills the receipt block below, which you cannot write yourself. Grounding gate first (it changes content), voice gate second (it changes lines). Spawn the context-grounding-review agent (defined at .claude/agents/context-grounding-review.md) with the user's task, the recommendations, the brain root, and the list of tool pulls made this session. It runs scripts/grounding-check.py and independently derives what should have been loaded and pulled — the ad's real performance data behind the diagnosis, the doctrine vocabulary (hook rate, hold rate, the ad-formats/ tags) that proves the methods were opened — then diffs that against the evidence. A bounced verdict means re-pull and regenerate the affected recommendations. This gate runs before the voice gate because its verdict changes content, not lines. And every bounce gets captured through self-improvement-intake as a one-line reasoning trace — the task shape plus the loads or pulls that were missed — so the routing layer learns from the catch instead of re-making the same mistake for the gate to re-catch. (Use the runtime's independent spawning tool when available, including in Codex, and give each reviewer its .claude/agents/ method file to read. If spawning is unavailable, execute the applicable review method in a separate inline pass that re-reads the sources, and label the receipt inline. Grounding always runs; voice review follows this skill's customer-facing-copy condition. The cross-runtime contract is parker-system/system/codex-support.md.)
  1. Run the voice review gate on any new copy. When the iterations produce new customer-facing words — a rewritten hook, a new headline, replacement spoken lines, new overlay text — spawn the creative-voice-review agent (defined at .claude/agents/creative-voice-review.md) on those lines, with the brand voice profile if one exists. The agent runs the mechanical lint (scripts/voice-lint.py) and the judgment pass per ai-writing-tells.md — and spoken-script-voice.md for spoken lines — independently, in a context that did not write them. Apply every rewrite it returns, whatever the verdict, and re-run while the verdict is flagged, handing it its last return, for three passes at most. ships ends the gate. So does needs-corpus: the lines are clean but generic because the voice input is thin, which no rewrite fixes, so ship them with the agent's RESIDUAL naming the corpus that would fix it, and add that gap to running-notes/missing-context.md unless it's already listed. If the third pass still comes back flagged, stop and ship with the flags it still lists shown in the Voice Review block as unresolved, never as passed. Iterations that change no copy (a visual swap, a re-cut) skip the gate and say so in the Voice Review line.

Phase B output

The output the user sees has exactly three parts. Internal analysis, diagnostic questions, and working/not-working lists are process, not output — do not display them.

How many iterations

If the user specified a number, use it. If not, default to exactly three. If you only see N genuinely strong options and the user asked for more, give N and explain why you stopped. Padding with weak suggestions wastes budget.

When to skip the strategy step (Phase B)

Skip only in two cases: the user is adjusting specific recommendations already on the table in this conversation; or the user explicitly named the iteration type (e.g., a Frankenstein stitch) — then load that process directly. Otherwise run strategy first.


Brand Context Applied (append to every output, both phases)

Hard rules that override anything else

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.