keitaro-optimize

keitaro-optimize is a skill for Claude Code from iso73-ops/claude-keitaro. It costs 66 tokens per session (882 once invoked), scanned A, original, MIT.

An optimization skill for Keitaro advertising campaigns. It uses campaign performance data to classify traffic flows as losing, uncertain, stable, promising, or still too new to judge.

In plain words
What is it for?
Use it to identify losing and winning flows, rebalance traffic weights, and prepare an action plan; changes are made only after confirmation.
Why use it?
It turns performance numbers into suggested actions, helping decide which flows to pause, monitor, keep, or give more traffic.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-keitaro plugin — 8 skills, 3 agents shipped together

Good fit Use it to identify losing and winning flows, rebalance traffic weights, and prepare an action plan; changes are made only after confirmation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iso73-ops/claude-keitaro/keitaro-optimize
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 iso73-ops/claude-keitaro --skill keitaro-optimize
Clone the repo
git clone --depth 1 https://github.com/iso73-ops/claude-keitaro

Made for: Claude Code.

Or install claude-keitaro, the plugin that ships this one along with the rest of its 8 skills, 3 agents.

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 keitaro-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/iso73-ops/claude-keitaro/keitaro-optimize/github.svg)](https://agentmods.dev/skills/iso73-ops/claude-keitaro/keitaro-optimize)
Your own site
<a href="https://agentmods.dev/skills/iso73-ops/claude-keitaro/keitaro-optimize"><img src="https://agentmods.dev/badge/skills/iso73-ops/claude-keitaro/keitaro-optimize/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 keitaro-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/iso73-ops/claude-keitaro/keitaro-optimize"><img src="https://agentmods.dev/badge/skills/iso73-ops/claude-keitaro/keitaro-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 882 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.00066 $0.00882
Opus 5 $0.00033 $0.00441
Sonnet 5 $0.00013 $0.00176
Haiku 4.5 $0.00007 $0.00088

Measured 11d ago against content hash e30cddee7f3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

keitaro-optimize 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 11d ago.

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.

skills/keitaro-optimize/SKILL.md · 114 lines

How it starts

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

Keitaro Auto-Optimization

Process

  1. Read keitaro/references/optimization-rules.md for decision logic
  2. Read keitaro/references/verticals.md for vertical-specific thresholds
  3. Pull performance data via report API
  4. Apply rules to identify actions
  5. Present action plan with estimated impact
  6. Execute only after user confirmation

Optimization Pipeline

Step 1: Collect Data

Build report grouped by stream_id with metrics: clicks, conversions, revenue, cost, profit, roi, cr, epc

Step 2: Classify Each Flow

For each flow, determine status based on vertical thresholds:

Status Condition Action
KILL ROI < kill threshold AND clicks >= min Recommend pause
WARNING ROI in warning range Monitor, flag
STABLE ROI in good range Keep running
SCALE ROI > scale threshold AND clicks >= scale min Recommend weight increase
TESTING clicks < min threshold Wait for data

Step 3: Generate Action Plan

Present as prioritized list:

Optimization Plan — Campaign #12
═══════════════════════════════════════

KILL (save $X/day):
  ✗ Flow "Test Landing C" — ROI: -45%, 180 clicks, 0 conv
    → Action: Pause flow (saves ~$15/day)

SCALE (earn +$X/day):
  ↑ Flow "DE Mobile" — ROI: +78%, 3,259 clicks, 62 conv
    → Action: Increase weight 60% → 70% (est. +$12/day)

TESTING (wait):
  ? Flow "New Offer X" — ROI: +15%, 45 clicks, 2 conv
    → Action: Need 55 more clicks before decision

TOTAL ESTIMATED IMPACT: +$27/day

Step 4: Execute (After Confirmation)

Only execute after user says "yes", "do it", "apply", etc.

Actions:

  • Kill → POST /streams/{id}/disable
  • Scale → PUT /streams/{id} with new weight
  • Rebalance → adjust all weights proportionally

Bulk Optimization

When user says "optimize all campaigns":

  1. Get all active campaigns
  2. Build report grouped by campaign_id
  3. For each campaign with sufficient data:
    • Run flow-level optimization
    • Aggregate actions
  4. Present summary:

Read the full file on GitHub · 114 lines

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. 11d ago First seen · 114 lines · 66 tokens per session scan A e30cddee7f3c

Subscribe to this mod's changes

keitaro-optimize is a skill published in the GitHub repository iso73-ops/claude-keitaro (24 stars, last pushed 5mo ago), licensed MIT. It adds 66 tokens to every session and 882 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

financial-planner

Your Personal Finance Manager for Canadians — an AI financial planning partner that conducts thorough financial interviews, builds complete plans, generates interactive dashboards, and provides ongoing coaching. Use this skill whenever someone asks about budgeting, saving, investing, debt strategy, retirement…

cjpatten/canadian-finance-planner-skill · 156 tokens

powerpoint-mcp

PowerPoint MCP Server skill for Windows presentation automation via a live PowerPoint desktop instance (COM/PIA). Use when an assistant needs rich MCP tools to create, open, build, format, and export PowerPoint (.pptx/.pptm) presentations — slides, shapes, text boxes, tables, native charts, images, audio, video…

sbroenne/mcp-server-powerpoint · 112 tokens

vibe-ship

Generates a complete, production-ready deployment setup for any app in one pass -- Dockerfile, docker-compose.yml, .dockerignore, CI/CD (GitHub Actions), scalability config (health checks, resource limits, K8s on request), and security hardening (non-root user, secrets, dependency scanning). Auto-detects the stack…

sudais-khalid/vibe-ship · 214 tokens

swarm

Run a multi-agent audit of a codebase by spawning specialized parallel subagents (security, performance, tests, architecture, dead-code), then synthesize their findings into a single prioritized action plan. Use this whenever the user runs /swarm, asks to "audit the repo," "review this codebase," "find issues across…

Zintellix/Claude-Skills · 138 tokens

log-correlation

Correlates and troubleshoots logs across OS (Linux/macOS), AWS (CloudWatch, CloudTrail, ALB, Lambda), application (JSON, logfmt), and web servers (Nginx, Apache).

RealDougEubanks/ClaudeMarketplace · 49 tokens

tools-unity-behavior-designer

Behavior Designer patterns for AI behavior trees including task creation, shared variables, conditionals, and debugging.

IdoCohen560/claude-unity-game-studio · 29 tokens