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.
Walks you through drafting, testing, evaluating and tuning a skill for OpenCode, from an intake interview to description optimization.
$ npx skills add antongulin/opencode-skill-creator --skill opencode-skill-creator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install antongulin/opencode-skill-creator opencode-skill-creator --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/antongulin/opencode-skill-creator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skill .claude/skills/opencode-skill-creator && 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 "opencode-skill-creator" agent skill from https://github.com/antongulin/opencode-skill-creator/tree/main/plugin/skill into .claude/skills/opencode-skill-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-skill-creator", 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/antongulin/opencode-skill-creator/tree/main/plugin/skillType 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 antongulin/opencode-skill-creator --skill opencode-skill-creator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install antongulin/opencode-skill-creator opencode-skill-creator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antongulin/opencode-skill-creator.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugin/skill .agents/skills/opencode-skill-creator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "opencode-skill-creator" agent skill from https://github.com/antongulin/opencode-skill-creator/tree/main/plugin/skill into .agents/skills/opencode-skill-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-skill-creator", 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 antongulin/opencode-skill-creator --skill opencode-skill-creator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install antongulin/opencode-skill-creator opencode-skill-creator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antongulin/opencode-skill-creator.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugin/skill .cursor/skills/opencode-skill-creator && 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 "opencode-skill-creator" agent skill from https://github.com/antongulin/opencode-skill-creator/tree/main/plugin/skill into .cursor/skills/opencode-skill-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-skill-creator", 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/antongulin/opencode-skill-creator.git --path plugin/skill--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 antongulin/opencode-skill-creator --skill opencode-skill-creator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install antongulin/opencode-skill-creator opencode-skill-creator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antongulin/opencode-skill-creator.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugin/skill .gemini/skills/opencode-skill-creator && 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 "opencode-skill-creator" agent skill from https://github.com/antongulin/opencode-skill-creator/tree/main/plugin/skill into .gemini/skills/opencode-skill-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-skill-creator", 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 antongulin/opencode-skill-creator opencode-skill-creatorInstalls 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 antongulin/opencode-skill-creator --skill opencode-skill-creator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/antongulin/opencode-skill-creator.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugin/skill .github/skills/opencode-skill-creator && 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 "opencode-skill-creator" agent skill from https://github.com/antongulin/opencode-skill-creator/tree/main/plugin/skill into .github/skills/opencode-skill-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-skill-creator", 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 antongulin/opencode-skill-creator --skill opencode-skill-creator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install antongulin/opencode-skill-creator opencode-skill-creator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antongulin/opencode-skill-creator.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugin/skill .opencode/skills/opencode-skill-creator && 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 "opencode-skill-creator" agent skill from https://github.com/antongulin/opencode-skill-creator/tree/main/plugin/skill into .opencode/skills/opencode-skill-creator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-skill-creator", 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.
opencode-skill-creatorWalks you through drafting, testing, evaluating and tuning a skill for OpenCode, from an intake interview to description optimization.
This skill guides the whole life of an OpenCode skill. It works out where you are in the process, then helps you decide what the skill should do, draft it, write test prompts, run them with the skill available, and review the results both by eye and through quantitative benchmarks. Feedback goes back into a rewrite, and the loop repeats before the test set is widened.
For a new skill the intake interview is mandatory: the agent asks at least three to five targeted questions first, treating you as the domain expert and itself as a new hire learning the workflow. If you ask to skip it, the agent warns once and needs your explicit confirmation. A plugin tool serves a review page for the results, and a separate optimization loop tool tunes the skill's description so it triggers reliably.
Bundled files include analyzer, comparator and grader agent prompts, a schemas reference and an HTML template for reviewing evals. It targets OpenCode only and is not meant for generic Claude Code or Superpowers skills unless you want that workflow ported to OpenCode.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f943062. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json and markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
OpenCode Skill Creator loads about 8.1k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 121 tokens; SKILL.md has 4,427 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 no risky patterns in SKILL.md.
Automated 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 antongulin/opencode-skill-creator at commit f943062, republished under its Apache-2.0 licence (© antongulin). 4,427 words, ~8,066 tokens.
.claude/skills/opencode-skill-creator/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.A skill for creating new skills and iteratively improving them.
At a high level, the process of creating a skill goes like this:
skill_serve_review tool to show the user the results for them to look at, and also let them look at the quantitative metricsYour job when using this skill is to figure out where the user is in this process and then jump in and help them progress through these stages. So for instance, maybe they're like "I want to make a skill for X". You can help narrow down what they mean, write a draft, write the test cases, figure out how they want to evaluate, run all the prompts, and repeat.
On the other hand, maybe they already have a draft of the skill. In this case you can go straight to the eval/iterate part of the loop.
For new skill creation, the intake interview is mandatory. Ask at least 3-5 targeted questions before drafting anything (ask more if the workflow is complex). Treat this as shadowing a teammate: the user is the domain expert and existing employee, and the agent is the new hire that must learn and mirror the real workflow.
You can still be flexible about eval depth and iteration speed after intake. If the user asks to skip intake, warn once that skill quality and workflow match will be worse, get explicit confirmation, and then proceed with best effort.
Then after the skill is done (but again, the order is flexible), you can also run the skill description optimizer (skill_optimize_loop tool), which we have a whole separate tool for, to optimize the triggering of the skill.
Cool? Cool.
The skill creator is liable to be used by people across a wide range of familiarity with coding jargon. If you haven't heard (and how could you, it's only very recently that it started), there's a trend now where the power of AI coding agents is inspiring plumbers to open up their terminals, parents and grandparents to google "how to install npm". On the other hand, the bulk of users are probably fairly computer-literate.
So please pay attention to context cues to understand how to phrase your communication! In the default case, just to give you some idea:
It's OK to briefly explain terms if you're in doubt, and feel free to clarify terms with a short definition if you're unsure if the user will get it.
For new skills, this step is mandatory and cannot be skipped. Do not draft SKILL.md, evals, or other files until this interview is complete and the user confirms your summary.
Start by understanding the user's intent. The current conversation might already contain part of the workflow the user wants to capture (e.g., they say "turn this into a skill"). Extract that first: tools used, sequence of steps, corrections, inputs/outputs, and success criteria. Then fill the gaps with questions.
Ask at least 3-5 targeted questions (more when needed). Cover these minimum areas:
Before moving on, summarize your understanding in plain language and ask the user to confirm or correct it.
If the user explicitly asks to skip intake, warn that final quality and workflow fit will likely be worse. Proceed only after explicit confirmation.
Proactively ask questions about edge cases, input/output formats, example files, success criteria, and dependencies. Use a buddy/shadowing stance: mirror the user's real workflow, terminology, handoffs, and decision points. Wait to write test prompts until you've got this part ironed out.
Check available MCPs — if useful for research (searching docs, finding similar skills, looking up best practices), research in parallel via the Task tool (using general or explore subagent types) if available, otherwise inline. Come prepared with context to reduce burden on the user.
For new skills, default to a staging location instead of the current repo/worktree. Use the system temp directory unless the user explicitly requests another path (for example: Unix/macOS /tmp/opencode-skills/<skill-name>/, $TMPDIR/opencode-skills/<skill-name>/; Windows %TEMP%\\opencode-skills\\<skill-name>\\). This avoids cluttering unrelated repositories during skill development.
Based on the user interview, fill in these components:
^[a-z0-9]+(-[a-z0-9]+)*$)skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter (name, description required)
│ └── Markdown instructions
└── Bundled Resources (optional)
├── scripts/ - Executable code for deterministic/repetitive tasks
├── references/ - Docs loaded into context as needed
└── assets/ - Files used in output (templates, icons, fonts)The skill directory name must match the name field in the frontmatter.
Skills use a three-level loading system:
These word counts are approximate and you can feel free to go longer if needed.
Key patterns:
Domain organization: When a skill supports multiple domains/frameworks, organize by variant:
cloud-deploy/
├── SKILL.md (workflow + selection)
└── references/
├── aws.md
├── gcp.md
└── azure.mdOpenCode reads only the relevant reference file.
This goes without saying, but skills must not contain malware, exploit code, or any content that could compromise system security. A skill's contents should not surprise the user in their intent if described. Don't go along with requests to create misleading skills or skills designed to facilitate unauthorized access, data exfiltration, or other malicious activities. Things like a "roleplay as an XYZ" are OK though.
Prefer using the imperative form in instructions.
Defining output formats — You can do it like this:
## Report structure
ALWAYS use this exact template:
# [Title]
## Executive summary
## Key findings
## RecommendationsExamples pattern — It's useful to include examples. You can format them like this (but if "Input" and "Output" are in the examples you might want to deviate a little):
## Commit message format
**Example 1:**
Input: Added user authentication with JWT tokens
Output: feat(auth): implement JWT-based authenticationTry to explain to the model why things are important in lieu of heavy-handed musty MUSTs. Use theory of mind and try to make the skill general and not super-narrow to specific examples. Start by writing a draft and then look at it with fresh eyes and improve it.
After writing the skill draft, come up with 2–3 realistic test prompts — the kind of thing a real user would actually say. Share them with the user: [you don't have to use this exact language] "Here are a few test cases I'd like to try. Do these look right, or do you want to add more?" Then run them.
Save test cases to evals/evals.json. Don't write assertions yet — just the prompts. You'll draft assertions in the next step while the runs are in progress.
{
"skill_name": "example-skill",
"evals": [
{
"id": 1,
"prompt": "User's task prompt",
"expected_output": "Description of expected result",
"files": []
}
]
}See references/schemas.md for the full schema (including the assertions field, which you'll add later).
This section is one continuous sequence — don't stop partway through. Do NOT use /skill-test or any other testing skill.
Put results in <skill-name>-workspace/ next to the staged skill directory in the system temp area (for example: Unix/macOS /tmp/opencode-skills/<skill-name>-workspace/; Windows %TEMP%\\opencode-skills\\<skill-name>-workspace\\). Within the workspace, organize results by iteration (iteration-1/, iteration-2/, etc.) and within that, each test case gets a directory (eval-0/, eval-1/, etc.). Don't create all of this upfront — just create directories as you go.
For each test case, spawn two Task tool invocations (using general subagent type) in the same turn — one with the skill, one without. This is important: don't spawn the with-skill runs first and then come back for baselines later. Launch everything at once so it all finishes around the same time.
With-skill run:
Execute this task:
- Skill path: <path-to-skill>
- Task: <eval prompt>
- Input files: <eval files if any, or "none">
- Save outputs to: <workspace>/iteration-<N>/eval-<ID>/with_skill/outputs/
- Outputs to save: <what the user cares about — e.g., "the .docx file", "the final CSV">Baseline run (same prompt, but the baseline depends on context):
without_skill/outputs/.cp -r <skill-path> <workspace>/skill-snapshot/), then point the baseline Task tool invocation at the snapshot. Save to old_skill/outputs/.Write an eval_metadata.json for each test case (assertions can be empty for now). Give each eval a descriptive name based on what it's testing — not just "eval-0". Use this name for the directory too. If this iteration uses new or modified eval prompts, create these files for each new eval directory — don't assume they carry over from previous iterations.
{
"eval_id": 0,
"eval_name": "descriptive-name-here",
"prompt": "The user's task prompt",
"assertions": []
}Don't just wait for the runs to finish — you can use this time productively. Draft quantitative assertions for each test case and explain them to the user. If assertions already exist in evals/evals.json, review them and explain what they check.
Good assertions are objectively verifiable and have descriptive names — they should read clearly in the benchmark viewer so someone glancing at the results immediately understands what each one checks. Subjective skills (writing style, design quality) are better evaluated qualitatively — don't force assertions onto things that need human judgment.
Update the eval_metadata.json files and evals/evals.json with the assertions once drafted. Also explain to the user what they'll see in the viewer — both the qualitative outputs and the quantitative benchmark.
When each Task tool invocation completes, you receive a notification containing total_tokens and duration_ms. Save this data immediately to timing.json in the run directory:
{
"total_tokens": 84852,
"duration_ms": 23332,
"total_duration_seconds": 23.3
}This is the only opportunity to capture this data — it comes through the task notification and isn't persisted elsewhere. Process each notification as it arrives rather than trying to batch them.
Once all runs are done:
Before launching review, enforce this gate: every eval must have paired comparison outputs (with_skill plus one baseline: without_skill or old_skill). Do not continue to review if pairs are missing unless the user explicitly asks to proceed with partial data.
Grade each run — spawn a grader Task (using general subagent type), or grade inline, that reads agents/grader.md and evaluates each assertion against the outputs. Save results to grading.json in each run directory. The grading.json expectations array must use the fields text, passed, and evidence (not name/met/details or other variants) — the viewer depends on these exact field names. For assertions that can be checked programmatically, write and run a script rather than eyeballing it — scripts are faster, more reliable, and can be reused across iterations.
Aggregate into benchmark — use the skill_aggregate_benchmark tool:
Call skill_aggregate_benchmark with:
benchmarkDir: <workspace>/iteration-N
skillName: <name>This produces benchmark.json and benchmark.md with pass_rate, time, and tokens for each configuration, with mean ± stddev and the delta. If generating benchmark.json manually, see references/schemas.md for the exact schema the viewer expects.
Put each with_skill version before its baseline counterpart.
Do an analyst pass — read the benchmark data and surface patterns the aggregate stats might hide. See agents/analyzer.md (the "Analyzing Benchmark Results" section) for what to look for — things like assertions that always pass regardless of skill (non-discriminating), high-variance evals (possibly flaky), and time/token tradeoffs.
Launch the viewer with both qualitative outputs and quantitative data using the skill_serve_review tool:
Call skill_serve_review with:
workspace: <workspace>/iteration-N
skillName: "my-skill"
benchmarkPath: <workspace>/iteration-N/benchmark.json
allowPartial: falseFor iteration 2+, also pass previousWorkspace: <workspace>/iteration-<N-1>.
If benchmarkPath is omitted, the tool auto-generates benchmark.json and benchmark.md inside the workspace before opening the viewer.
The default is strict (allowPartial: false): it fails fast when eval pairs are incomplete. Use allowPartial: true only when the user explicitly accepts incomplete comparisons.
Headless environments: Use the skill_export_static_review tool to write a standalone HTML file instead of starting a server. Feedback will be downloaded as a feedback.json file when the user clicks "Submit All Reviews". After download, copy feedback.json into the workspace directory for the next iteration to pick up.
Note: please use the skill_serve_review or skill_export_static_review tools to create the viewer; there's no need to write custom HTML.
The "Outputs" tab shows one test case at a time:
The "Benchmark" tab shows the stats summary: pass rates, timing, and token usage for each configuration, with per-eval breakdowns and analyst observations.
Navigation is via prev/next buttons or arrow keys. When done, they click "Submit All Reviews" which saves all feedback to feedback.json.
When the user tells you they're done, read feedback.json:
{
"reviews": [
{"run_id": "eval-0-with_skill", "feedback": "the chart is missing axis labels", "timestamp": "..."},
{"run_id": "eval-1-with_skill", "feedback": "", "timestamp": "..."},
{"run_id": "eval-2-with_skill", "feedback": "perfect, love this", "timestamp": "..."}
],
"status": "complete"
}Empty feedback means the user thought it was fine. Focus your improvements on the test cases where the user had specific complaints.
Stop the viewer server when you're done with it by calling the skill_stop_review tool.
This is the heart of the loop. You've run the test cases, the user has reviewed the results, and now you need to make the skill better based on their feedback.
Generalize from the feedback. The big picture thing that's happening here is that we're trying to create skills that can be used a million times (maybe literally, maybe even more who knows) across many different prompts. Here you and the user are iterating on only a few examples over and over again because it helps move faster. The user knows these examples in and out and it's quick for them to assess new outputs. But if the skill you and the user are codeveloping works only for those examples, it's useless. Rather than put in fiddly overfitty changes, or oppressively constrictive MUSTs, if there's some stubborn issue, you might try branching out and using different metaphors, or recommending different patterns of working. It's relatively cheap to try and maybe you'll land on something great.
Keep the prompt lean. Remove things that aren't pulling their weight. Make sure to read the transcripts, not just the final outputs — if it looks like the skill is making the model waste a bunch of time doing things that are unproductive, you can try getting rid of the parts of the skill that are making it do that and seeing what happens.
Explain the why. Try hard to explain the why behind everything you're asking the model to do. Today's LLMs are smart. They have good theory of mind and when given a good harness can go beyond rote instructions and really make things happen. Even if the feedback from the user is terse or frustrated, try to actually understand the task and why the user is writing what they wrote, and what they actually wrote, and then transmit this understanding into the instructions. If you find yourself writing ALWAYS or NEVER in all caps, or using super rigid structures, that's a yellow flag — if possible, reframe and explain the reasoning so that the model understands why the thing you're asking for is important. That's a more humane, powerful, and effective approach.
Look for repeated work across test cases. Read the transcripts from the test runs and notice if the Task tool invocations all independently wrote similar helper scripts or took the same multi-step approach to something. If all 3 test cases resulted in the agent writing a create_docx.py or a build_chart.py, that's a strong signal the skill should bundle that script. Write it once, put it in scripts/, and tell the skill to use it. This saves every future invocation from reinventing the wheel.
This task is pretty important (we are trying to create billions a year in economic value here!) and your thinking time is not the blocker; take your time and really mull things over. I'd suggest writing a draft revision and then looking at it anew and making improvements. Really do your best to get into the head of the user and understand what they want and need.
After improving the skill:
iteration-<N+1>/ directory, including baseline runs. If you're creating a new skill, the baseline is always without_skill (no skill) — that stays the same across iterations. If you're improving an existing skill, use your judgment on what makes sense as the baseline: the original version the user came in with, or the previous iteration.skill_serve_review tool, passing previousWorkspace pointing at the previous iterationKeep going until:
For situations where you want a more rigorous comparison between two versions of a skill (e.g., the user asks "is the new version actually better?"), there's a blind comparison system. Read agents/comparator.md and agents/analyzer.md for the details. The basic idea is: give two outputs to an independent agent without telling it which is which, and let it judge quality. Then analyze why the winner won.
This is optional, requires the Task tool (using general subagent type), and most users won't need it. The human review loop is usually sufficient.
The description field in SKILL.md frontmatter is the primary mechanism that determines whether OpenCode invokes a skill. After creating or improving a skill, offer to optimize the description for better triggering accuracy.
Create 20 eval queries — a mix of should-trigger and should-not-trigger. Save as JSON:
[
{"query": "the user prompt", "should_trigger": true},
{"query": "another prompt", "should_trigger": false}
]The queries must be realistic and something an OpenCode user would actually type. Not abstract requests, but requests that are concrete and specific and have a good amount of detail. For instance, file paths, personal context about the user's job or situation, column names and values, company names, URLs. A little bit of backstory. Some might be in lowercase or contain abbreviations or typos or casual speech. Use a mix of different lengths, and focus on edge cases rather than making them clear-cut (the user will get a chance to sign off on them).
Bad: "Format this data", "Extract text from PDF", "Create a chart"
Good: "ok so my boss just sent me this xlsx file (its in my downloads, called something like 'Q4 sales final FINAL v2.xlsx') and she wants me to add a column that shows the profit margin as a percentage. The revenue is in column C and costs are in column D i think"
For the should-trigger queries (8–10), think about coverage. You want different phrasings of the same intent — some formal, some casual. Include cases where the user doesn't explicitly name the skill or file type but clearly needs it. Throw in some uncommon use cases and cases where this skill competes with another but should win.
For the should-not-trigger queries (8–10), the most valuable ones are the near-misses — queries that share keywords or concepts with the skill but actually need something different. Think adjacent domains, ambiguous phrasing where a naive keyword match would trigger but shouldn't, and cases where the query touches on something the skill does but in a context where another tool is more appropriate.
The key thing to avoid: don't make should-not-trigger queries obviously irrelevant. "Write a fibonacci function" as a negative test for a PDF skill is too easy — it doesn't test anything. The negative cases should be genuinely tricky.
Present the eval set to the user for review using the HTML template:
templates/eval-review.html (located in the opencode-skill-creator skill directory, alongside this SKILL.md)__EVAL_DATA_PLACEHOLDER__ → the JSON array of eval items (no quotes around it — it's a JS variable assignment)__SKILL_NAME_PLACEHOLDER__ → the skill's name__SKILL_DESCRIPTION_PLACEHOLDER__ → the skill's current description/tmp/eval_review_<skill-name>.html) and open it: open /tmp/eval_review_<skill-name>.html~/Downloads/eval_set.json — check the Downloads folder for the most recent version in case there are multiple (e.g., eval_set (1).json)This step matters — bad eval queries lead to bad descriptions.
Tell the user: "This will take some time — I'll run the optimization loop and check on it periodically."
Save the eval set to the workspace, then use the skill_optimize_loop tool:
Call skill_optimize_loop with:
evalSetPath: <path-to-trigger-eval.json>
skillPath: <path-to-skill>
model: <model-id-powering-this-session>
maxIterations: 5Use the model ID from your system prompt (the one powering the current session) so the triggering test matches what the user actually experiences.
This handles the full optimization loop automatically. It splits the eval set into 60% train and 40% held-out test, evaluates the current description (running each query 3 times to get a reliable trigger rate), then calls OpenCode to propose improvements based on what failed. It re-evaluates each new description on both train and test, iterating up to 5 times. When it's done, it returns JSON with best_description — selected by test score rather than train score to avoid overfitting.
Understanding the triggering mechanism helps design better eval queries. Skills appear in OpenCode's available_skills list with their name + description, and OpenCode decides whether to consult a skill based on that description. The important thing to know is that OpenCode only consults skills for tasks it can't easily handle on its own — simple, one-step queries like "read this PDF" may not trigger a skill even if the description matches perfectly, because OpenCode can handle them directly with basic tools. Complex, multi-step, or specialized queries reliably trigger skills when the description matches.
This means your eval queries should be substantive enough that OpenCode would actually benefit from consulting a skill. Simple queries like "read file X" are poor test cases — they won't trigger skills regardless of description quality.
Take best_description from the JSON output and update the skill's SKILL.md frontmatter. Show the user before/after and report the scores.
After the skill is created and validated, help the user install it. Skills can be installed in two locations:
.opencode/skills/<skill-name>/SKILL.md — available only in this project~/.config/opencode/skills/<skill-name>/SKILL.md — available in all projectsCopy the skill directory to the desired location. The directory name must match the name field in the SKILL.md frontmatter.
Keep all draft/eval artifacts in the staging location; only copy the final validated skill directory into project/global install paths.
You can validate the skill before installation by calling the skill_validate tool.
The opencode-skill-creator plugin provides these custom tools that are available during your session:
skill_validate — Validate a skill's SKILL.md structure and frontmatterskill_parse — Parse a SKILL.md and return its name, description, and content lengthskill_eval — Test trigger accuracy for a set of eval queriesskill_improve_description — LLM-powered description improvement based on eval failuresskill_optimize_loop — Full eval→improve optimization loop with train/test splitskill_aggregate_benchmark — Aggregate grading.json files into benchmark statisticsskill_generate_report — Generate HTML optimization reportskill_serve_review — Start the eval review viewer (HTTP server + browser)skill_stop_review — Stop a running review serverskill_export_static_review — Generate standalone HTML review (no server)The agents/ directory contains instructions for specialized tasks (used via the Task tool). Read them when you need to spawn the relevant task.
agents/grader.md — How to evaluate assertions against outputsagents/comparator.md — How to do blind A/B comparison between two outputsagents/analyzer.md — How to analyze why one version beat anotherThe references/ directory has additional documentation:
references/schemas.md — JSON structures for evals.json, grading.json, etc.Repeating one more time the core loop here for emphasis:
skill_aggregate_benchmark) and launch the viewer (via skill_serve_review) to help the user review themPlease add steps to your TodoList (using the todowrite tool), if you have such a thing, to make sure you don't forget. Please specifically put "Create evals JSON and launch the eval viewer (via skill_serve_review) so human can review test cases" in your TodoList to make sure it happens.
Good luck!
© antongulin, Apache-2.0. 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 5 other files (references) in plugin/skill of antongulin/opencode-skill-creator.
Open the folder on GitHubat commit f943062
OpenCode Skill Creator 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 |
|---|---|---|---|---|---|---|
| OpenCode Skill Creator this skillantongulin/opencode-skill-creator | 172 | — | ~8.1k | Automated safety check: Pass | Apache-2.0 | |
| Darwin Skill Optimizeralchaincyf/darwin-skill | 6.2k | 1 repos | ~4.7k | Automated safety check: Pass | MIT | |
| Open-Science Skill Creatoraipoch/open-science | 5.4k | — | ~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 | |
| Skill Release Gaterohitg00/ai-engineering-from-scratch | 65k | — | ~1k | Automated safety check: Pass | MIT | |
| Skill Creatorzhayujie/CowAgent | 47k | — | ~4.7k | Automated safety check: Notes | MIT |
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.
rohitg00/ai-engineering-from-scratch
Evaluates an Agent Skill bundle before release for structure, trigger quality, artifact improvement, script correctness, safety, installed-tree integrity and host portability.
zhayujie/CowAgent
Guides creating, installing and updating agent skills in a workspace: SKILL.md frontmatter, bundled scripts and references, with scripts to scaffold, validate and package.
shareAI-lab/Kode-CLI
Evaluates the design quality of an agent skill against official specifications and patterns from existing examples, scoring it and suggesting improvements.
Categories
Walks you through drafting, testing, evaluating and tuning a skill for OpenCode, from an intake interview to description optimization. This skill guides the whole life of an OpenCode skill. It works out where you are in the process, then helps you decide what the skill should do, draft it, write test prompts, run them with the skill available, and review the results both by eye and through quantitative benchmarks.
OpenCode Skill Creator fits situations like: creating a new OpenCode skill from a rough idea; running evals and benchmarks on an existing OpenCode SKILL.md; improving how reliably an OpenCode skill's description triggers; porting a Claude Code skill workflow to OpenCode.
Run `npx skills add antongulin/opencode-skill-creator --skill opencode-skill-creator -a claude-code`. Or copy the skill folder (plugin/skill in antongulin/opencode-skill-creator) into .claude/skills/opencode-skill-creator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add antongulin/opencode-skill-creator --skill opencode-skill-creator -a codex`. Or copy the skill folder (plugin/skill in antongulin/opencode-skill-creator) into .agents/skills/opencode-skill-creator 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 antongulin/opencode-skill-creator --skill opencode-skill-creator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opencode-skill-creator, .gemini/skills/opencode-skill-creator, .github/skills/opencode-skill-creator and .opencode/skills/opencode-skill-creator in your project.
SKILL.md names no scripts, command-line tools or credentials: OpenCode Skill Creator is instructions for the agent only. Our summary lists: OpenCode with the opencode-skill-creator plugin installed.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
OpenCode Skill Creator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 8.1k tokens (SKILL.md is roughly 32k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with OpenCode Skill Creator: Darwin Skill Optimizer (alchaincyf/darwin-skill, 6.2k stars), Open-Science Skill Creator (aipoch/open-science, 5.4k stars), Skill Quality Reviewer (Galaxy-Dawn/claude-scholar, 5.7k stars) and Skill Release Gate (rohitg00/ai-engineering-from-scratch, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
antongulin (a GitHub user) maintains it in antongulin/opencode-skill-creator, which has 172 GitHub stars. The repository was last updated on October 1, 2026.
Source: antongulin/opencode-skill-creator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.