본문으로 건너뛰기
cccskills
무료GitHub에 공개

evo-search

Solves complex, open-ended problems using an evolutionary search mechanism inspired by genetic algorithms. Generates a diverse population of candidate answers, scores them against a rubric, then iteratively applies selection, crossover, and mutation to breed progressively better solutions. Use this skill whenever the user wants to explore a solution space deeply, asks for the "best" answer to a subjective or multi-dimensional problem, wants to evaluate competing approaches and distill the strongest, or uses any of these triggers: "evolutionary search", "genetic algorithm", "evolve an answer", "breed solutions", "population-based search", or phrases like "give me multiple approaches and refine the best one". Also trigger when the problem is complex, open-ended, or has no obvious single correct answer and the user wants a high-quality, well-explored result, not just a quick response.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Evo-Search

Runs a genetic-algorithm-style loop over candidate responses: generate a diverse initial population, score each against a rubric, then repeatedly select, crossover, and mutate to improve quality across generations. Output the top 3 final solutions.


Step 0: Problem Intake & Rubric

Identify problem type, constraints, audience, and scope. If ambiguous, ask one question.

Rubric Construction

Detect which mode applies:

ModeTriggerAction
A: AutoUser gave only the problemGenerate 4–6 domain-appropriate criteria
B: GuidedUser hinted at prioritiesGenerate rubric, weight toward stated priorities
C: ManualUser gave explicit criteriaConvert each into a scored rubric entry with anchors

In all modes: augment vague criteria into scorable definitions, and always add:

Overall Fitness (30%): "Would a knowledgeable expert prefer this over a competent but unremarkable response?" Scored holistically. Prevents narrow-criteria gaming.

Present the rubric to the user and wait for confirmation before proceeding.

Rubric format:

| Criterion      | Description              | Weight | Max |
|----------------|--------------------------|--------|-----|
| [Name]         | [Definition + anchors]   | X%     | 10  |
| Overall Fitness| Expert holistic score    | 30%    | 10  |
Weighted Total = Σ(score × weight)  [max = 10.00]

Step 1: Initial Population

Generate 6 candidates (default) using these diversity frames, one per candidate:

#Frame
1Conventional / mainstream
2Contrarian / challenges assumptions
3First-principles / bottom-up
4Analogy-led / draws from another domain
5Risk-focused / emphasizes what could go wrong
6Synthesis / combines multiple angles

Generate all candidates before scoring any. Then score each and display:

GENERATION 0
| # | Frame        | Fitness | Strength       | Weakness      |
|---|--------------|---------|----------------|---------------|
| 1 | Conventional | X.X     | [one phrase]   | [one phrase]  |

Step 2: Evolution Loop

Default: 5 iterations. Repeat until stopping criteria are met.

2.1 Selection

Tournament selection: sample 2 candidates, keep the higher scorer. Repeat to get 4 parents. Elitism: carry the top 2 candidates forward untouched every generation.

2.2 Crossover

Produce 4 offspring (pair parents: 1+2, 3+4, 1+3, 2+4). For each pair, synthesize a child that inherits the key strength of each parent without their primary weaknesses. Rotate crossover strategies across iterations (trait synthesis → section splice → schema inheritance).

2.3 Mutation

Apply mutation to each offspring with probability 0.2 (~1 of 4 offspring per generation).

ModeWhen to useWhat to do
Exploitative (~60%)Offspring has a diagnosable weak criterionTarget and fix that specific criterion
Exploratory (~40%)No clear weakness, or population is convergingRandom perturbation: swap rhetorical stance, domain lens, level of abstraction, or target audience

Multi-feature mutation: ~1 in 3 mutation events, mutate two features simultaneously. Use when the population has converged for 2+ generations, two criteria score equally low, or an exploratory mutation is being applied.

2.4 Evaluate & Merge

Score all offspring. Merge with current population. Keep top 6 by fitness score. Elites from 2.1 are guaranteed to survive.

2.5 Convergence Check

If top 3 candidates are within 0.4 fitness of each other AND content is substantially similar, inject 1–2 fresh randomly-framed candidates ("immigrants") before merging.

Display per-generation summary:

GENERATION [N]
| # | Origin        | Fitness | Δ   | Key Change         |
|---|---------------|---------|-----|--------------------|
| 1 | Elite         | X.X     | -   | -                  |
| 2 | Crossover A+B | X.X     | +Y  | [what changed]     |
Best: Candidate [N] (X.X)

Stopping Criteria

Stop early if any condition is met:

  • Max iterations reached (default: 5)
  • Best fitness ≥ 9.0
  • Best fitness improved less than 0.2 over 2 consecutive generations

Note the reason when stopping early.


Step 3: Output

3.1 Contrast Table (show before full answers)

TOP 3 SOLUTIONS
| Rank | Score | Defining Strength    | Best Used When              |
|------|-------|----------------------|-----------------------------|
| #1   | X.X   | [one phrase]         | [context where #1 wins]     |
| #2   | X.X   | [one phrase]         | [context where #2 wins]     |
| #3   | X.X   | [one phrase]         | [context where #3 wins]     |

3.2 Full Solutions

Output the top top_k solutions in full (default: 3), labeled with rank and score.

3.3 Evolution Trace

EVOLUTION SUMMARY
| Generation | Best Fitness | Key Improvement     |
|------------|--------------|---------------------|
| 0 (init)   | X.X          | [note]              |
| ...        | ...          | ...                 |
Final: X.X / 10.0

3.4 Rubric Breakdown

Show per-criterion scores for the #1 solution only.


Parameters

ParameterDefaultRangeEffect
population64–10Candidates per generation
iterations51–10Evolution cycles
mutation_rate0.20–1Fraction of offspring mutated
mutation_modemixedexploitative / exploratory / mixedMutation strategy bias
multi_mutationoccasionalnever / occasional / frequentHow often 2 features mutate at once
elites21–3Candidates preserved each generation
top_k31–5Final solutions shown in full
rubric_modeautoauto / guided / manualHow the rubric is built
show_tracetruetrue / falseShow evolution summary

Users set parameters in plain language. Examples:

  • "Quick run, 3 iterations" → iterations=3
  • "Large population, thorough search" → population=8–10
  • "Be more exploratory" → mutation_mode=exploratory
  • "Just show me the winner" → top_k=1

Scoring Guidance

Score honestly. A mediocre-but-coherent answer scores 5-6. Inflated scores destroy the selection signal and the algorithm stops working. The crossover step is where the most value is created. Synthesize genuine strengths; don't concatenate text.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Activates a structured decorator framework that modifies how Claude reasons, responds, and formats output. Trigger this skill whenever a prompt contains one or more markers prefixed with +++, such as +++Reasoning, +++StepByStep, +++Tone(style=formal), or any other +++ marker, regardless of what follows in the prompt. Also trigger when the user asks to activate, list, or clear decorators, references the prompt decorator framework, or uses phrases like "use decorator", "apply +++", or "what decorators are available". This skill must be active for any +++ marker to take effect.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

smkalami/skills102026년 3월 30일 업데이트

Solves complex, open-ended problems using a knockout tournament mechanism. Generates an initial population of diverse candidate answers, pairs them into head-to-head matches, produces a hybrid "child" solution from each pair, and advances the best of the three through a bracket until a winner emerges. Use this skill whenever the user wants to competitively select the best answer from a field of alternatives, asks for a "tournament" or "bracket" style search, wants a faster alternative to full evolutionary search, or uses phrases like: "run a tournament on this", "bracket-style search", "let solutions compete", "knockout search", "find the best answer by elimination", or "which solution wins?". Also trigger when the problem is open-ended and the user wants a clear winner quickly rather than a deep multi-generation refinement.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

smkalami/skills102026년 3월 30일 업데이트

smkalami의 스킬 모두 보기

이 스킬의 문제 신고