shinka-inspect
Load top-performing Shinka programs into agent context using `shinka.utils.load_programs_to_df`, and emit a compact Markdown bundle for iteration planning.
How do I install this agent skill?
npx skills add https://github.com/sakanaai/shinkaevolve --skill shinka-inspectIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is functional and generally safe, but it possesses an indirect prompt injection surface by design as it aggregates external code and feedback into the agent's context.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1/2 files flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
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_dfto read program records - Ranks programs by
combined_score - Selects top-
kcorrect programs (fallback to top-koverall if no correct rows) - Writes one Markdown bundle with metadata, ranking table, feedback, and code snippets
Workflow
- Confirm run artifacts exist
ls -la <results_dir>
- Generate context bundle
python skills/shinka-inspect/scripts/inspect_best_programs.py \
--results-dir <results_dir> \
--k 5
- 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
- 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 readsprograms.sqlite, or the database the run wrote under a customdb_pathor 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 (default5)--out: Output markdown path (default under results dir)--max-code-chars: Per-program code truncation cap (default4000)--min-generation: Optional lower bound on generation--include-feedback/--no-include-feedback: Includetext_feedbackblocks
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
shinkainstalled 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 thatshinka.database.run_db_pathimports), the script reads<results_dir>/programs.sqlite, orevolution_db.sqlitewhen only that exists, without checking that the file holds programs. With neither, it takes the only other.sqliteor.dbfile in the directory (notprompts.sqlite) and stops when there are several: pass the database file path then.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/sakanaai/shinkaevolve/shinka-inspect">View shinka-inspect on skillZs</a>