‹ 首页

shinka-inspect

@sakanaai · 收录于 5 天前 · 上游提交 1 周前

Load top-performing Shinka programs into agent context using `shinka.utils.load_programs_to_df`, and emit a compact Markdown bundle for iteration planning.

适合你,如果正在开发或优化 Shinka 程序,需要快速回顾和规划迭代。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add sakanaai/shinkaevolve/shinka-inspect
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- sakanaai/shinkaevolve/shinka-inspect
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify sakanaai/shinkaevolve/shinka-inspect
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1288GitHub stars
~472最小装载
~472含声明引用
~2.4K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 b67a073 · 表述以原文为准
它做什么

它从Shinka运行结果目录中读取程序记录,按综合得分排序选出前k个正确程序,打包成包含元数据、排名、反馈和代码片段的Markdown文件,供后续迭代参考。

什么时候触发

当你有Shinka运行的结果目录和SQLite数据库,并想检查顶级程序时触发。

装好后可以这样说
默认k=5生成检查报告。
可调整k值和代码长度参数。
使用min-generation过滤。
技能原文 SKILL.md作者撰写 · Apache-2.0 · b67a073

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
  2. Default output path: <results_dir>/shinka_inspect_context.md
  3. Use it as the context artifact for next-step mutation planning
CLI Arguments
  • --results-dir: Path to run directory (or direct DB 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).
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。