sakanaai/shinkaevolve/shinka-setup
- community
Checking that the SKILL.md file is still in the repository.
Create ShinkaEvolve task scaffolds from a target directory and task description, producing `evaluate.py` and `initial.<ext>` (multi-language). Use when asked to set up new ShinkaEvolve tasks, evaluation harnesses, or baseline programs for ShinkaEvolve.
Install
npx vskill@latest install sakanaai/shinkaevolve/shinka-setupSKILL.md
Shinka Task Setup Skill
Create a setup scaffold consisting of an evaluation script and initial solution for an optimization problem given a user's task description. Both ingredients will be used within ShinkaEvolve, a framework combining LLMs with evolutionary algorithms to drive code optimization.
When to Use
Invoke this skill when the user:
- Wants to optimize code with LLM-driven code evolution (Shinka/ShinkaEvolve)
- No
evaluate.pyandinitial.<ext>exist in the working directory
User Inputs
- Task description + success criteria
- Target language for
initial.<ext>(if omitted, default to Python) - What parts of the script to optimize
- Evaluation metric(s) and score direction
- Number of eval runs / seeds
- Required assets or data files
- Dependencies or constraints (runtime, memory)
Workflow
- Check if all user inputs are provided and ask the user follow-up questions if not inferrable.
- Inspect working directory. Detect chosen language + extension. Avoid overwriting existing
evaluate.pyorinitial.<ext>without consent. - Write
initial.<ext>with a clear evolve region (EVOLVE-BLOCKmarkers or language-equivalent comments) and stable I/O contract. - Write
evaluate.py:
- Python
initial.py: callrun_shinka_evalwithexperiment_fn_name,get_experiment_kwargs,aggregate_metrics_fn,num_runs, and optionalvalidate_fn. - Non-Python
initial.<ext>: run candidate program directly (usually viasubprocess) and writemetrics.json+correct.json.
- Ensure candidate output schema matches evaluator expectations (tuple/dict for Python module eval, or file/CLI contract for non-Python).
- Validate draft
evaluate.pybefore handoff:
- Run a smoke test:
python evaluate.py --program_path initial.<ext> --results_dir /tmp/shinka_eval_smoke- Confirm evaluator runs without exceptions.
- Confirm a metrics
dictis produced (either fromaggregate_fnormetrics.json) with at least: combined_score(numeric),public(dict),private(dict),extra_data(dict),text_feedback(string, can be empty).- Confirm
correct.jsonexists withcorrect(bool) anderror(string) fields.
- Ask the user if they want to run the evolution themself or whether to use the
shinka-runskill:
- If the user wants to run evolution manually, add
run_evo.pyplus ashinka.yamlconfig with matching language +init_program_path. - Ask the user if they want to use the
shinka-runskill to perform optimization with the agent.
What is ShinkaEvolve?
A framework developed by SakanaAI that combines LLMs with evolutionary algorithms to propose program mutations, that are then evaluated and archived. The goal is to optimize for performance and discover novel scientific insights.
Repo and documentation: https://github.com/SakanaAI/ShinkaEvolve Paper: https://arxiv.org/abs/2212.04180
Evolution Flow
- Select parent(s) from archive/population
- LLM proposes patch (diff, full rewrite, or crossover)
- Evaluate candidate →
combined_score - If valid, insert into island archive (higher score = better)
- Periodically migrate top solutions between islands
- Repeat for N generations
Core Files To Generate
| File | Purpose | |
|---|---|---|
initial.<ext> | Starting solution in the chosen language with an evolve region that LLMs mutate | |
evaluate.py | Scores candidates and emits metrics/correctness outputs that guide selection | |
run_evo.py | (Optional) Launches the evolution loop | |
shinka.yaml | (Optional) Config: generations, islands, LLM models, patch types, etc. |
Quick Install (if Shinka is not set up yet)
Install once before creating/running tasks:
Language Support (initial.<ext>)
Shinka supports multiple candidate-program languages. Choose one, then keep extension/config/evaluator aligned.
evo_config.language | initial.<ext> | |
|---|---|---|
python | initial.py | |
julia | initial.jl | |
fortran | initial.f90 | |
cpp | initial.cpp | |
cuda | initial.cu | |
rust | initial.rs | |
swift | initial.swift | |
json / json5 | initial.json |
Rules:
evaluate.pystays the evaluator entrypoint.- Python candidates: prefer
run_shinka_eval+experiment_fn_name. - Non-Python candidates: evaluate via
subprocessand writemetrics.json+correct.json. - Always set both
evo_config.languageand matchingevo_config.init_program_path.
Template: initial.<ext> (Python example)
For non-Python initial.<ext>, keep the same idea: small evolve region + deterministic program interface consumed by evaluate.py.
Template: evaluate.py (Python run_shinka_eval path)
Template: evaluate.py (non-Python initial.<ext> path)
(Optional) Template: run_evo.py (async)
See skills/shinka-setup/scripts/run_evo.py for an example to edit.
(Optional) Template: shinka.yaml
See skills/shinka-setup/scripts/shinka.yaml for an example to edit.
Notes
- Keep evolve markers tight; only code inside the region should evolve.
- Keep evaluator schema stable (
combined_score,public,private,extra_data,text_feedback). - Python module path: ensure
experiment_fn_namematches function name ininitial.py. - Non-Python path: ensure evaluator/runtime contract matches
initial.<ext>CLI/I/O. - Higher
combined_scorevalues indicate better performance.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/shinka-setup/SKILL.md
Popularity
- Repository stars
- 1,141
- Repository forks
- 235
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sakanaai/shinkaevolve/shinka-setup)