shinka-run
Run existing ShinkaEvolve tasks with the `shinka_run` CLI from a task directory (`evaluate.py` + `initial.<ext>`). Use when an agent needs to launch async evolution runs quickly with required `--results_dir`, generation count, and strict namespaced keyword overrides.
What this skill does
# Shinka Run CLI Skill Run a batch of program mutations using ShinkaEvolve's CLI interface. ## When to Use Use this skill when: - `evaluate.py` and `initial.<ext>` already exist - The user wants to run code evolution using the ShinkaEvolve/Shinka library - You want configurable program evolution runs using explicit CLI args Do not use this skill when: - You need to scaffold a new task from scratch (use `shinka-setup`) ## 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 ## Workflow 1. Inspect task directory ```bash ls -la <task_dir> ``` Confirm `evaluate.py` and `initial.<ext>` exist. 2. Inspect CLI reference quickly ```bash shinka_run --help ``` 3. Check model availability before proposing a run ```bash shinka_models shinka_models --verbose ``` Validate the exact run config against `shinka_models`: - Mutation models: every entry in `evo.llm_models` must appear in the `llm` list. - Meta recommendation models: if `evo.meta_rec_interval` is set and `evo.meta_llm_models` is set, every meta model must appear in the `llm` list. - Prompt evolution models: if `evo.evolve_prompts=true`, use `evo.prompt_llm_models` when provided, otherwise `evo.llm_models`; every selected model must appear in the `llm` list. - Embedding model: if `evo.embedding_model` is set, it must appear in the `embedding` list. - Local OpenAI-compatible models are allowed for LLMs and embeddings via `local/<model>@http(s)://host[:port]/v1`, and these local models are not expected to appear in `shinka_models`. Important runtime rules: - Do not assume meta recommendations fall back to `evo.llm_models`. In the current runner, meta recommendations are only enabled when `evo.meta_llm_models` is explicitly set. - Prompt evolution does fall back to `evo.llm_models` when `evo.prompt_llm_models` is unset. - Treat `local/<model>@http(s)://host[:port]/v1` values as an explicit exception to the `shinka_models` membership check. Instead, confirm the local endpoint URL and serving status separately before running. - If any required model is missing from `shinka_models`, stop and ask the user to either change the config or set the missing credentials first. 4. Confirm first-batch configuration with the user - Minimum: budget scope, generation count, critical overrides. - Explicitly confirm the mutation LLMs, meta recommendation LLMs, prompt evolution LLMs, and embedding model after checking them against `shinka_models`. - If unclear, ask before running. - Do not override any non-confirmed arguments. 5. Launch main run with explicit knobs ```bash shinka_run \ --task-dir <task_dir> \ --results_dir <results_dir> \ --num_generations 40 \ --set db.num_islands=3 \ --set job.time=00:10:00 \ --set evo.task_sys_msg='<task-specific system message guiding search>'\ --set evo.llm_models='["gpt-5-mini","gpt-5-nano"]' \ --set evo.meta_llm_models='["gpt-5-mini"]' \ --set evo.prompt_llm_models='["gpt-5-mini"]' \ --set evo.embedding_model='text-embedding-3-small' \ # Concurrency settings for parallel sampling and evaluation --max-evaluation-jobs 2 \ --max-proposal-jobs 2 \ --max-db-workers 2 ``` 6. Verify outputs before handoff ```bash ls -la <results_dir> ``` Expect artifacts like run log, generation folders, and SQLite DBs. 7. Between-batch handoff (unless explicitly autonomous) - Summarize outcomes from the finished batch. - Ask user for the next batch config before running again. - Explicitly ask: "What new directions should we push next batch? Please include algorithm ideas, constraints, and failure modes to avoid." - Turn user feedback into a revised system prompt and pass it via `--set evo.task_sys_msg=...` in the next `shinka_run` call. - If the prompt is long/multiline, put it in a config file and use `--config-fname` instead of shell-escaping. - Unless the user explicitly wants a fresh run/fork, keep the same `--results_dir` for follow-up batches. Example next-batch command with feedback-driven prompt: ```bash shinka_run \ --task-dir <task_dir> \ --results_dir <results_dir> \ --num_generations 20 \ --set evo.task_sys_msg='<new system prompt derived from user feedback>' \ --set db.num_islands=3 ``` ## Batch Control Policy (Required) Treat one `shinka_run` invocation as one batch of program evaluations/generations. - Default mode: human-in-the-loop between batches. - After each batch and before the first, always ask the user what configuration to run next (budget, `--num_generations`, model/settings overrides, concurrency, islands, output path). - Do not start the next batch until the user confirms the next config. - Keep `--results_dir` fixed across continuation batches so Shinka can reload prior results. - Exception: if the user explicitly asks for fully autonomous execution, you may continue across batches without re-asking between runs.
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.