Darwin Skill Optimizer
alchaincyf/darwin-skill
Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.
Collects evidence from a failed or confusing skill-driven task and triggers skvm jit-optimize to propose concrete fixes to that skill's files.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install SJTU-IPADS/SkVM skvm-jit --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/SJTU-IPADS/SkVM.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skvm-jit .claude/skills/skvm-jit && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "skvm-jit" agent skill from https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jit into .claude/skills/skvm-jit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skvm-jit", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jitType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install SJTU-IPADS/SkVM skvm-jit --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SJTU-IPADS/SkVM.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/skvm-jit .agents/skills/skvm-jit && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "skvm-jit" agent skill from https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jit into .agents/skills/skvm-jit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skvm-jit", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install SJTU-IPADS/SkVM skvm-jit --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SJTU-IPADS/SkVM.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/skvm-jit .cursor/skills/skvm-jit && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "skvm-jit" agent skill from https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jit into .cursor/skills/skvm-jit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skvm-jit", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/SJTU-IPADS/SkVM.git --path skills/skvm-jit--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install SJTU-IPADS/SkVM skvm-jit --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SJTU-IPADS/SkVM.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/skvm-jit .gemini/skills/skvm-jit && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "skvm-jit" agent skill from https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jit into .gemini/skills/skvm-jit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skvm-jit", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install SJTU-IPADS/SkVM skvm-jitInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/SJTU-IPADS/SkVM.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/skvm-jit .github/skills/skvm-jit && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "skvm-jit" agent skill from https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jit into .github/skills/skvm-jit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skvm-jit", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install SJTU-IPADS/SkVM skvm-jit --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SJTU-IPADS/SkVM.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/skvm-jit .opencode/skills/skvm-jit && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "skvm-jit" agent skill from https://github.com/SJTU-IPADS/SkVM/tree/main/skills/skvm-jit into .opencode/skills/skvm-jit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skvm-jit", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skvm-jitCollects evidence from a failed or confusing skill-driven task and triggers skvm jit-optimize to propose concrete fixes to that skill's files.
It only fires after finishing a task that a skill loaded from disk actually drove, and only when the task failed or ended partial in a way a clearer skill plausibly would have avoided, or when a concrete problem surfaced in the skill's own instructions, such as an ambiguity, a missing step, an incorrect claim or an unnecessary detour. It works on any skill the host harness can load, not just one compiled by SkVM itself, since the optimizer only needs the skill's folder on disk.
It skips clean successful runs, failures that were purely the user's fault, tasks that didn't use a real skill at all, and any run already happening inside SkVM's own benchmark flow, which owns its own optimization loop. The first step is locating the skill's absolute directory by checking a reference file that lists each supported harness's search order and probing those paths until one contains the right SKILL.md, which then gets passed to the optimizer as the target directory.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 632cefe. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlshnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
skillvm.aiFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENROUTER_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
SkVM Skill Optimization Trigger loads about 2.9k tokens when it runs. Until then it costs about 127 tokens; SKILL.md has 1,543 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
the user to re-run the skvm installer (`curl -fsSL https://skillvm.ai/install.sh | sh` or `npm i -g @ipads-skvm/skvm`) rAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from SJTU-IPADS/SkVM at commit 632cefe, republished under its MIT licence (© SJTU-IPADS). 1,543 words, ~2,913 tokens.
.claude/skills/skvm-jit/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.When you finish a task that was driven by a skill, and the skill's own instructions appear to have caused problems, collect a short structured record of what happened and invoke skvm jit-optimize. The optimizer reads that evidence, proposes improvements to the skill's files, and stores them as a proposal you can inspect with skvm proposals show <id>.
This skill is not a human review workflow. Its job is to turn task evidence into a concrete optimization run.
This works for any skill the host harness can load — it does not need to have been produced by SkVM's compiler. jit-optimize only needs the skill folder on disk; it does not require SkVM-specific artifacts.
Run this skill only when both of the following hold:
Do not run this skill when:
skvm bench or any other SkVM-orchestrated flow — bench owns its own optimization loop, do not double-submitThe skill directory contains a SKILL.md file. You need the absolute path to pass as --skill=<dir> in Step 3.
Each agent harness installs skills in well-known locations. Read adapter-skill-paths.md (sibling file in this skill's directory) and look up the section matching the harness you are currently running inside — it lists the search order for Claude Code, opencode, openclaw, hermes, jiuwenclaw, and bare-agent. Probe the listed paths in order and pick the first one that contains a SKILL.md for the skill name you are looking for.
If none of the listed paths contains the skill, or the reference file marks your harness as "confirm with user", ask the user for the path — do not guess.
Pick one of the two formats below. Save it anywhere (e.g. a temp file); you'll pass its path as --logs=<path> in Step 3.
Save as report.json:
{
"task": "<what the user asked, one or two sentences>",
"outcome": "pass" | "fail" | "partial",
"issues": [
"short description of each problem you hit",
"another problem"
],
"skill_feedback": "concrete suggestion for how the SKILL.md could be clearer or more correct"
}Keep issues focused on things the skill's instructions could prevent or clarify. Do not include issues that were purely user-side (typos in the prompt, missing credentials, network failures).
The JSON key is still named skill_feedback because that is the current report schema consumed by jit-optimize; treat it as an optimization hint for the engine, not as human-directed feedback.
When outcome is fail or partial, the optimizer treats the issues and skill_feedback as failure reasons attached to a synthetic "agent-reported" criterion. When outcome is pass, the report still enters the optimizer but with no failures, letting it notice what worked well.
Save as conv-log.jsonl, one JSON object per line:
{"type":"request","ts":"<iso8601>","text":"<user prompt>"}
{"type":"response","ts":"<iso8601>","text":"<your reply or summary of the step>"}
{"type":"tool","ts":"<iso8601>","text":"<tool call summary>","toolCalls":[...]}Only include entries that matter for diagnosing the skill's quality. Redact secrets.
skvm jit-optimize --detach \
--skill=<skill-directory> \
--task-source=log \
--logs=<path-to-report.json-or-conv-log.jsonl> \
--target-model=<id-the-task-ran-on> \
--optimizer-model=openrouter/z-ai/glm-5.1--detach is what lets this skill stay snappy. Without it the optimizer runs in-process and blocks the agent for the full optimization pass (often a minute or more); with it the CLI returns in well under a second after spawning a background worker. Always pass it from this skill.
Required parameters:
--skill — path to the skill directory (the one containing SKILL.md)--task-source=log — tells jit-optimize to analyze a conversation log without rerunning anything. This is the only task source valid from this post-task optimization flow — real and synthetic sources rerun tasks against a live model, which a post-hoc report cannot do.--logs — path to the report file you wrote in Step 2--target-model=<id> — required for every skvm jit-optimize invocation, including --task-source=log. In log mode the target model is not used for execution — it is the storage key that decides which folder under proposals/<harness>/<target-model>/<skill>/ the proposal lands in, so proposals stay grouped by the model the skill is tuned for. Use the prefixed model id of the model that just ran the task — that is you, the agent reading this skill. Every id must carry a <provider>/ prefix that matches a route in the user's providers.routes; read your own model id out of your system prompt / harness environment and prepend the right provider (Claude Code exposes it as the "exact model ID", e.g. map claude-opus-4-6 → anthropic/claude-opus-4.6 when Anthropic-routed, or openrouter/anthropic/claude-opus-4.6 when OR-routed; opencode/openclaw/hermes similarly). If you genuinely cannot determine your own model id or provider, ask the user once and stop — do not substitute a placeholder.--optimizer-model=<id> — the LLM that drives the optimizer agent. Every id must carry a <provider>/ prefix; openrouter/z-ai/glm-5.1 is a good cheap default (needs OPENROUTER_API_KEY).Optional:
--target-adapter=<name> — purely informational in log mode (default: bare-agent). Set it if the log came from a non-default adapter (e.g., openClaw, Hermes, jiuwenclaw) so the proposal is filed under the right harness folder.--failures=<path,...> — structured failure-reasons JSON, one path per corresponding entry in --logs. Pass only when you already have a cleaner per-criterion breakdown than the report file itself; the count must match --logs. Skip it for single-report cases.What NOT to pass in log mode (the CLI will error if you do):
--tasks, --test-tasks — these belong to --task-source=real--synthetic-count, --synthetic-test-count — these belong to --task-source=synthetic--runs-per-task, --convergence, --baseline — the log mode does not rerun the task, so there is no loop to configureWith --detach, the CLI returns in well under a second. Stdout ends with a block like:
Proposal: <harness>/<safeTargetModel>/<skill>/<timestamp>
Proposal dir: <absolute-path>
Detached; watch with 'skvm proposals show <id>'The optimization continues in a background worker process; its progress is recorded in <proposal-dir>/run-status.json (phase: queued | running | done | failed) and detailed log output goes to <proposal-dir>/run.log. Both are surfaced when the user runs skvm proposals show <id>.
Capture the id from the line starting with Proposal: only — everything after Proposal: up to the newline is the id. Do not parse Proposal dir: or the Detached; watch with line. Note the middle segment is safeTargetModel (derived from --target-model), not the optimizer model.
If skvm jit-optimize exits non-zero with no Proposal: line, the worker failed before it could allocate a proposal id. Read the stderr message and stop — do not retry blindly. The most common cause is another optimization is in progress for <skill>, which means a prior detach for the same skill+model is still running.
Print one line with the proposal id you captured:
Triggered
skvm jit-optimizefor<skill>. Review withskvm proposals show <id>; accept withskvm proposals accept <id>.
Do not accept or deploy the proposal yourself unless the user explicitly asks you to. If the user asks you to deploy, run skvm proposals accept <id> and report the deployed file list.
$SKVM_PROPOSALS_DIR (default ~/.skvm/proposals/); only skvm proposals accept writes back into the skill.skvm is not on PATH, report it to the user and stop — do not install anything. If skvm jit-optimize fails with "opencode not found", tell the user to re-run the skvm installer (curl -fsSL https://skillvm.ai/install.sh | sh or npm i -g @ipads-skvm/skvm) rather than installing opencode yourself. skvm bundles its own private opencode copy and manages it through the installer.OPENROUTER_API_KEY must be set in the environment for the optimizer to run. If it is missing, the background worker will fail and skvm proposals show <id> will display run: FAILED with the reason. The parent CLI cannot detect this in advance because the API key is only used inside the detached worker.skvm jit-optimize --detach validates the flags, then forks a background worker that does all the heavy work (creating the proposal directory, acquiring a per-skill lock, running the optimizer agent, snapshotting rounds). Once the worker has the lock and a proposal id, it tells the parent over an IPC channel; the parent prints Proposal: <id> and exits. The worker keeps running independently and writes its phase to <proposal>/run-status.json (queued → running → done | failed) so skvm proposals show <id> can report progress at any time.
The optimizer agent reads your report, inspects the skill folder, diagnoses a root cause, and edits files in a temp workspace (SKILL.md and/or bundle files). The edited folder is snapshotted as round-1/ inside the proposal. round-0/ is a copy of the original skill. The user can later diff the two with skvm proposals show <id> or reject the proposal if the root cause looks wrong. Proposals are keyed by (harness, target-model, skill-name), which is why --target-model is required even in log mode and why concurrent detached runs for the same triple are rejected with a clean error rather than left to clobber each other.
© SJTU-IPADS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/skvm-jit of SJTU-IPADS/SkVM.
Open the folder on GitHubat commit 632cefe
SkVM Skill Optimization Trigger next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| SkVM Skill Optimization Trigger this skillSJTU-IPADS/SkVM | 561 | — | ~2.9k | Automated safety check: Warn | MIT | |
| Darwin Skill Optimizeralchaincyf/darwin-skill | 6.2k | 1 repos | ~4.7k | Automated safety check: Pass | MIT | |
| Open-Science Skill Creatoraipoch/open-science | 5.5k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Skill Quality ReviewerGalaxy-Dawn/claude-scholar | 5.7k | 1 repos | ~3k | Automated safety check: Pass | MIT | |
| Autocontext for Hermesgreyhaven-ai/autocontext | 1.3k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| OpenCode Skill Creatorantongulin/opencode-skill-creator | 171 | — | ~8.1k | Automated safety check: Pass | Apache-2.0 |
alchaincyf/darwin-skill
Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.
aipoch/open-science
Creates, revises, evaluates and publishes skills in the Open-Science app through its native host.skills composer, with optional test prompts and benchmarks.
Galaxy-Dawn/claude-scholar
Scores a skill across description, content organization, writing style and structure, then produces letter grades and a prioritized improvement plan.
greyhaven-ai/autocontext
Lets a Hermes agent run Autocontext scenarios, inspect Hermes curator state, export reusable knowledge and prepare local MLX or CUDA training data through the autoctx CLI.
antongulin/opencode-skill-creator
Walks you through drafting, testing, evaluating and tuning a skill for OpenCode, from an intake interview to description optimization.
affaan-m/ECC
Measures whether agents actually follow a skill, rule or agent definition by generating scenarios at three strictness levels and scoring tool-call traces.
Categories
Collects evidence from a failed or confusing skill-driven task and triggers skvm jit-optimize to propose concrete fixes to that skill's files. It only fires after finishing a task that a skill loaded from disk actually drove, and only when the task failed or ended partial in a way a clearer skill plausibly would have avoided, or when a concrete problem surfaced in the skill's own instructions, such as an ambiguity, a missing step, an incorrect claim or an unnecessary detour. It works on any skill the host harness can load, not just one compiled by SkVM itself, since the optimizer only needs the skill's folder on disk.
SkVM Skill Optimization Trigger fits situations like: A skill-driven task just failed or went sideways; A skill's instructions caused confusion or an unnecessary detour; proposing a concrete fix to a skill's own files after a rough run.
Run `npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a claude-code`. Or copy the skill folder (skills/skvm-jit in SJTU-IPADS/SkVM) into .claude/skills/skvm-jit in your project. Claude Code loads it when a task matches its description.
Run `npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a codex`. Or copy the skill folder (skills/skvm-jit in SJTU-IPADS/SkVM) into .agents/skills/skvm-jit in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SJTU-IPADS/SkVM --skill skvm-jit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skvm-jit, .gemini/skills/skvm-jit, .github/skills/skvm-jit and .opencode/skills/skvm-jit in your project.
Going by SKILL.md and its folder, SkVM Skill Optimization Trigger needs the command-line tools its instructions call (curl, sh and npm) and credentials named OPENROUTER_API_KEY. Our summary lists: The `skvm` CLI.
SKILL.md names 1 domain. In commands or code: skillvm.ai; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 1 warning(s): pipes a downloaded script straight into a shell. Read the flagged lines before installing; the check is not a guarantee either way.
SkVM Skill Optimization Trigger is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with SkVM Skill Optimization Trigger: Darwin Skill Optimizer (alchaincyf/darwin-skill, 6.2k stars), Open-Science Skill Creator (aipoch/open-science, 5.5k stars), Skill Quality Reviewer (Galaxy-Dawn/claude-scholar, 5.7k stars) and Autocontext for Hermes (greyhaven-ai/autocontext, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
SJTU-IPADS (a GitHub organization) maintains it in SJTU-IPADS/SkVM, which has 561 GitHub stars. The repository was last updated on September 10, 2026.
Source: SJTU-IPADS/SkVM on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.