mutation-and-perturbation-operators

mutation-and-perturbation-operators is a skill for Claude Code from hajibabaie/combinatorial-optimization-skills. It costs 131 tokens per session (11,221 once invoked), scanned A, original, MIT.

A guide to mutation and perturbation moves used to change candidate solutions during search algorithms. The right move depends on whether a solution is a bit string, number vector, permutation, route, or schedule.

In plain words
What is it for?
Use it to implement bit flips, numeric changes, swaps, insertions, reversals, scrambling, destroy-and-repair moves, and other changes. It supports genetic algorithms, local search, simulated annealing, and related methods.
Why use it?
It helps choose changes that keep solutions valid and are neither too weak to matter nor so large that useful progress is lost. It also helps adjust move strength during a search.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the combinatorial-optimization plugin — 76 skills shipped together

Good fit Use it to implement bit flips, numeric changes, swaps, insertions, reversals, scrambling, destroy-and-repair moves, and other changes. It supports genetic algorithms, local search, simulated annealing, and related methods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators
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 hajibabaie/combinatorial-optimization-skills --skill mutation-and-perturbation-operators
Clone the repo
git clone --depth 1 https://github.com/hajibabaie/combinatorial-optimization-skills

Made for: Claude Code.

Or install combinatorial-optimization, the plugin that ships this one along with the rest of its 76 skills.

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 mutation-and-perturbation-operators

README.md
[![agentmods](https://agentmods.dev/badge/skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators/github.svg)](https://agentmods.dev/skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators)
Your own site
<a href="https://agentmods.dev/skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators"><img src="https://agentmods.dev/badge/skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators/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 mutation-and-perturbation-operators

Your own site · 80×15
<a href="https://agentmods.dev/skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators"><img src="https://agentmods.dev/badge/skills/hajibabaie/combinatorial-optimization-skills/mutation-and-perturbation-operators.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,221 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.00131 $0.11221
Opus 5.5 $0.00052 $0.04488
Sonnet 5.5 $0.00026 $0.02244
Haiku 4.5 $0.00013 $0.01122

Measured 3mo ago against content hash 28a145a1c9da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mutation-and-perturbation-operators 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 3mo 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/mutation-and-perturbation-operators/SKILL.md · 646 lines

How it starts

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

Mutation and Perturbation Operators

You are an expert in variation-operator design for combinatorial and continuous metaheuristics. This skill is the reference catalog for unary operators: mutation inside evolutionary algorithms, kick moves inside iterated local search, proposal moves inside simulated annealing, and destroy-style perturbations inside ruin-and-recreate loops. Use the framework below to pick the operator that matches the encoding and the problem structure, implement it correctly in vectorized numpy, calibrate its strength, and adapt that strength during the run.

Initial Assessment

Establish these points before recommending or writing any operator:

  • Encoding. Binary string, integer vector, real vector, permutation, or a structured object (routes, schedules)? The encoding fixes the admissible operator family. If the encoding itself is still open, settle it first (see solution-encodings).
  • Role of the operator. Three distinct roles use the same mechanics with different strengths:
    • Variation in a population method (GA/ES): small, applied to every offspring, rate-controlled.
    • Kick in a trajectory method (ILS): medium, applied once per local-search round, must escape the local-search neighborhood.
    • Proposal in an acceptance-based method (SA): small, applied every iteration, evaluated via delta.
  • What structure the objective rewards. Adjacency (TSP edges), absolute position (QAP assignments), relative order (scheduling precedence), or subset membership (knapsack)? Pick the operator that perturbs the rewarded structure least per unit of randomization, unless the explicit goal is diversification.
  • Feasibility. Does the operator preserve constraints (permutation operators preserve permutation feasibility) or can it produce infeasible offspring (bit-flip under a capacity constraint)? If infeasible, decide repair vs penalty before coding.
  • Evaluation cost. If the objective supports O(1) or O(n) delta evaluation for a move, the same move doubles as a local-search neighborhood; design the operator so the delta formula applies.
  • Strength budget. What disruption level is wanted: expected Hamming distance, number of tour edges changed, sigma as a fraction of variable range? Every operator must expose exactly one strength knob.
  • Adaptation requirements. Fixed strength, deterministic schedule, feedback-driven adaptation, or self-adaptation encoded in the genome? Match the choice to run length and tuning budget.
  • Population vs single solution. Population methods justify fully vectorized operators over an (m, n) array; trajectory methods need fast single-solution variants.
  • Reproducibility. One np.random.default_rng(seed) per run, passed into every operator; never module-level np.random.* calls.
  • Time budget for tuning. A fixed rate of 1/n is the right default when there is no budget; adaptive schemes pay off on long runs and unknown instances.

Read the full file on GitHub · 646 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. 3mo ago First seen · 646 lines · 131 tokens per session scan A 28a145a1c9da

Subscribe to this mod's changes

mutation-and-perturbation-operators is a skill published in the GitHub repository hajibabaie/combinatorial-optimization-skills (23 stars, last pushed 5mo ago), licensed MIT. It adds 131 tokens to every session and 11,221 once invoked, about $0.0005 per session on Opus 5.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-31.

Related

mutation-and-perturbation-operators compared with skills from other repositories

mutation-and-perturbation-operators next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mutation-and-perturbation-operatorshajibabaie/combinatorial-optimization-skillsSkill235mo agoMITA131Claude Code
top-designwondelai/skillsSkill2.9k4d agoMITA113Claude Code, Codex
design-everyday-thingswondelai/skillsSkill2.9k4d agoMITA132Claude Code
traction-eoswondelai/skillsSkill2.9k4d agoMITA147Claude Code, Codex
create-appwondelai/skillsSkill2.9k4d agoMITA217Claude Code
improve-appwondelai/skillsSkill2.9k4d agoMITA236Claude Code
cold-start-problemwondelai/skillsSkill2.9k4d agoMITA168Claude Code