CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

shinka-inspect

This skill reads program records from a Shinka run, ranks them by `combined_score`, and selects the top correct programs, falling back to top-scoring programs when none are marked correct. It provides commands and options for generating a Markdown bundle with metadata, rankings, feedback, and code snippets. The bundle can support planning mutations for a subsequent run.

Quality

71%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skills/shinka-inspect/SKILL.md
SKILL.md
Quality
Evals
Security

Shinka Inspect Skill

Extract the strongest programs from a Shinka run and package them into a context file that coding agents can load directly.

When to Use

Use this skill when:

  • A run already produced a results directory and SQLite database
  • You want to inspect top-performing programs before launching the next batch
  • You want a compact context artifact instead of manually browsing the DB

Do not use this skill when:

  • You still need to scaffold a task (shinka-setup)
  • You need to run evolution batches (shinka-run)

What it does

  • Uses shinka.utils.load_programs_to_df to read program records
  • Ranks programs by combined_score
  • Selects top-k correct programs (fallback to top-k overall if no correct rows)
  • Writes one Markdown bundle with metadata, ranking table, feedback, and code snippets

Workflow

  1. Confirm run artifacts exist
ls -la <results_dir>
  1. Generate context bundle
python skills/shinka-inspect/scripts/inspect_best_programs.py \
  --results-dir <results_dir> \
  --k 5
  1. Optional tuning knobs
python skills/shinka-inspect/scripts/inspect_best_programs.py \
  --results-dir <results_dir> \
  --k 8 \
  --max-code-chars 5000 \
  --min-generation 10 \
  --out <results_dir>/inspect/top_programs.md
  1. Load output into agent context
  • Default output path: <results_dir>/shinka_inspect_context.md
  • Use it as the context artifact for next-step mutation planning

CLI Arguments

  • --results-dir: Path to run directory (or direct DB file path). In a run directory the script reads programs.sqlite, or the database the run wrote under a custom db_path or a first-release name (evolution_db.sqlite). If the directory holds several program databases under other names, it stops and asks for the file path.
  • --k: Number of programs to include (default 5)
  • --out: Output markdown path (default under results dir)
  • --max-code-chars: Per-program code truncation cap (default 4000)
  • --min-generation: Optional lower bound on generation
  • --include-feedback / --no-include-feedback: Include text_feedback blocks

Notes

  • Ranking metric is combined_score.
  • If no correct rows exist, script falls back to top-score rows and labels fallback in output.
  • Script is read-only for run artifacts (writes only the markdown bundle).
  • With a shinka installed from PyPI at 0.0.8 or earlier, which has no shared database lookup (a source checkout can report 0.0.8 too and have it: check that shinka.database.run_db_path imports), the script reads <results_dir>/programs.sqlite, or evolution_db.sqlite when only that exists, without checking that the file holds programs. With neither, it takes the only other .sqlite or .db file in the directory (not prompts.sqlite) and stops when there are several: pass the database file path then.
Repository

SakanaAI/ShinkaEvolve

Path

skills/shinka-inspect/SKILL.md

Last updated
First committed
Purpose
DevelopmentData analysisDocumentationPlanning
Form
WorkflowRulesReference
Commands
lspython

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.