by-campaign-optimizer

by-campaign-optimizer is a skill for Claude Code from 001TMF/blatant-why. It costs 5 tokens per session (4,032 once invoked), scanned A, original, MIT.

An active-learning tool for protein-design campaigns. It studies scores from earlier designs with a Random Forest, a statistical model, to identify useful features and suggest settings for the next round.

In plain words
What is it for?
It is for ranking features, proposing thresholds and design counts, and improving later rounds after at least 10 designs have been scored.
Why use it?
It turns previous trial results into specific changes instead of choosing the next round by guesswork.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It is for ranking features, proposing thresholds and design counts, and improving later rounds after at least 10 designs have been scored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/001tmf/blatant-why/by-campaign-optimizer
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 001TMF/blatant-why --skill by-campaign-optimizer
Clone the repo
git clone --depth 1 https://github.com/001TMF/blatant-why

Made for: Claude Code.

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 by-campaign-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/001tmf/blatant-why/by-campaign-optimizer/github.svg)](https://agentmods.dev/skills/001tmf/blatant-why/by-campaign-optimizer)
Your own site
<a href="https://agentmods.dev/skills/001tmf/blatant-why/by-campaign-optimizer"><img src="https://agentmods.dev/badge/skills/001tmf/blatant-why/by-campaign-optimizer/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 by-campaign-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/001tmf/blatant-why/by-campaign-optimizer"><img src="https://agentmods.dev/badge/skills/001tmf/blatant-why/by-campaign-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,032 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00005 $0.04032
Opus 5 $0.00003 $0.02016
Sonnet 5 $0.00001 $0.00806
Haiku 4.5 $0.00001 $0.00403

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

Security

Grade A, and why

by-campaign-optimizer 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/optimize_from_csv.py, scripts/propose_next_round.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

templates/.claude/skills/by-campaign-optimizer/SKILL.md · 375 lines

How it starts

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

BY Campaign Optimizer (Active Learning)

Multi-round design campaigns generate scored designs at every iteration. This skill turns that scoring history into actionable parameter changes for the next round — training a lightweight Random Forest on the designs you already have, ranking which features actually discriminate good from bad, and proposing thresholds and design counts that target the most promising regions of feature space.

The optimizer is the iteration loop: it runs after the diagnosis step (by-failure-diagnosis) has identified which features matter, and decides what parameters to push or relax for the next round. Diagnosis answers "what went wrong?"; this skill answers "what should we try next?".


When to Use This Skill

Use this skill when:

  • A design round has completed and scores are written to *_scores.json files
  • The campaign has ≥10 scored designs total across all rounds
  • You are deciding how to configure the next round of a multi-round campaign
  • by-failure-diagnosis has identified discriminating features and you need concrete threshold values
  • You want a feature-importance ranking to decide what to optimize for
  • The user asks "what should I change for the next round?" or "tune my campaign"

Do NOT use this skill when:

  • The campaign has fewer than 10 scored designs → use rule-based defaults from by-campaign-manager instead
  • This is the first round (no prior scores exist) → use by-research and by-design-workflow to set initial parameters
  • Designs are failing for non-statistical reasons (e.g., compute errors, bad target structure) → run by-failure-diagnosis first to confirm the signal is real
  • The campaign is a single-shot screen with no planned iterations
  • You only need a "why did designs fail?" report → use by-failure-diagnosis (the diagnostic counterpart to this optimizer)

Quick Start

from proteus_cli.campaign.active_learning import (
    has_enough_data,
    suggest_from_campaign,
)

campaign_dir = "campaigns/tnfa/campaign_20260520_001"

if has_enough_data(campaign_dir):
    result = suggest_from_campaign(campaign_dir)
    print(f"Source: {result.source}")                  # "active_learning"
    print(f"Confidence: {result.confidence}")          # "high" if >30 designs
    print(f"Top feature: {result.feature_importances[0]}")
    print(f"Recommendations: {result.recommended_parameters}")

Read the full file on GitHub · 375 lines

Files

What ships with it

4 files 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. 10d ago First seen · 375 lines · 5 tokens per session scan A ff318b37d311

Subscribe to this mod's changes

by-campaign-optimizer is a skill published in the GitHub repository 001TMF/blatant-why (114 stars, last pushed 24d ago), licensed MIT. It adds 5 tokens to every session and 4,032 once invoked, about $0.0000 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

esm2

Skill for working with ESM2 protein language models from Meta FAIR. Use this skill whenever the user wants to generate protein embeddings or representations, score variant effects or predict mutation fitness, run contact prediction, or use ESMFold for structure prediction. Also trigger when the user mentions ESM2…

naity/FM4Life · 86 tokens

evo2

Skill for genomic sequence modeling and design with Evo2 from Arc Institute. Use this skill when a user wants to model or generate DNA sequences, score variant effects at single-nucleotide resolution, extract genomic embeddings, analyze mutations in non-coding or coding regions, design synthetic genomic elements…

naity/FM4Life · 153 tokens

alphafold

Skill for protein structure prediction and analysis with AlphaFold. Use this skill whenever a user wants to predict or fetch a protein 3D structure, download structures from the AlphaFold Database (AFDB), run ColabFold for novel proteins, parse pLDDT confidence scores or PAE (predicted aligned error) from AlphaFold…

naity/FM4Life · 141 tokens

prott5

Skill for protein embeddings using ProtTrans models (ProtT5, ProtBERT) from Rostlab. Use this skill whenever a user wants protein embeddings or representations for downstream ML tasks, protein classification (subcellular localization, membrane prediction, secondary structure annotation), similarity search, or…

naity/FM4Life · 146 tokens

multimodal-single-cell

Multi-modal single-cell analysis for CITE-seq, Multiome, TEA-seq, and DOGMA-seq including joint embedding, per-modality QC, and cross-modal integration.

inflexa-ai/inflexa · 43 tokens

deepchem

Molecular ML with diverse featurizers and pre-built datasets. Use for property prediction (ADMET, toxicity) with traditional ML or GNNs when you want extensive featurization options and MoleculeNet benchmarks. Best for quick experiments with pre-trained models, diverse molecular representations. For graph-first…

synthetic-sciences/openscience · 78 tokens