name: skill-creator
A skill for authoring and iteratively improving local ZCode skills.
At a high level, the loop is:
Your job when this skill is loaded is to figure out where the user is in this loop and help them progress. They might say "I want a skill for X" (start at the top), or they might already have a draft (jump to evaluate/iterate). Be flexible — if the user says "just vibe with me, no formal evaluation," do that.
People using this skill range from seasoned skill authors to first-timers. Pay attention to context cues. In doubt, briefly explain a term ("an eval prompt is just a test message you'd send the model to see how the skill behaves") rather than assuming familiarity.
Start by understanding what the user wants. If the current conversation already shows a workflow worth capturing (e.g., the user has been doing the same thing manually a few times and says "turn this into a skill"), extract answers from the conversation history first — the tools they used, the order of steps, corrections they made, input/output formats. Confirm gaps with the user before drafting.
Useful questions:
ZCode discovers skills in these directories (highest priority first):
<project>/.zcode/skills/<name>/SKILL.md<project>/.agents/skills/<name>/SKILL.md~/.zcode/skills/<name>/SKILL.md~/.agents/skills/<name>/SKILL.mdDefault to creating new skills under .agents/skills/ — it's the standard, cross-tool location for new skills. Note that .zcode/skills still takes priority during discovery: if the same skill name exists in both, the .zcode/skills copy wins, so .zcode/skills is the place to override a skill. Pick the <project> path for skills that only make sense in this repo; pick the ~/ (user) path for personal skills you want everywhere.
Every skill is a directory containing a SKILL.md with YAML frontmatter and markdown body:
my-skill/
├── SKILL.md (required)
└── (optional)
├── references/ (extra docs the model reads on demand)
├── scripts/ (helper scripts the model can invoke)
└── assets/ (templates, fixtures, etc.)
Required frontmatter:
name — the skill's identifier. Lowercase kebab-case, 1–64 chars. Must match the directory name.description — when this skill should trigger and what it does. This is the primary triggering signal — both what the skill does and in what contexts belong here, not in the body. Models tend to under-trigger skills, so write descriptions a little bit pushy: instead of "How to build a dashboard for internal data," write "How to build a fast dashboard for internal data. Use whenever the user mentions dashboards, data visualization, internal metrics, or wants to display any company data — even if they don't explicitly say 'dashboard'."Optional (reserved) frontmatter fields are listed in the ZCode skill spec; for most skills you only need name and description.
ZCode loads skills in three layers:
references/, scripts/, assets/) are read on demand. Unlimited size in principle.If the body is getting long, split domain-specific detail into reference files and have the SKILL.md tell the model when to read them. For example:
cloud-deploy/
├── SKILL.md (workflow + selection)
└── references/
├── aws.md
├── gcp.md
└── azure.md
The SKILL.md then says "if the target is AWS, read references/aws.md before proceeding."
Prefer the imperative form ("Read the file before editing"). Explain why something matters when the rule isn't obvious — modern models follow guidance better when they understand the reason. If you find yourself writing all-caps MUSTs and NEVERs, that's usually a sign the rule needs better explanation rather than louder enforcement.
Examples beat rules. If the skill produces structured output, include a literal example of the format. If a specific tool should be used, show the call.
After writing the draft, come up with 2–3 realistic test prompts — the kind of thing a user would actually type, with concrete file paths, column names, casual phrasing, even typos. Share them with the user: "Here are a few cases I want to try. Anything to add or change?"
Then run them: load the draft skill, hand the model the test prompt, and inspect what happens. ZCode does not currently spawn parallel evaluation subagents, so do this one prompt at a time and look at each result with the user.
For each test prompt:
/skill <name> <prompt> to force-load it.Note both the result and the trace: if the skill caused the model to do a bunch of busywork (re-reading the same files, writing a throwaway script, going in circles), the skill is probably over-prescribing or unclear. That's a signal to cut, not to add more rules.
This is the heart of the loop. You ran the test prompts, the user reviewed the outputs, now make the skill better.
How to think about improvements:
Generalize from feedback. You and the user are iterating on a handful of examples for speed, but the skill needs to work for inputs neither of you has seen. If a stubborn issue resists targeted edits, try a different framing or metaphor instead of layering more constraints. Fiddly overfit rules and oppressive MUSTs make the skill worse over time.
Keep the prompt lean. Remove things that aren't pulling their weight. If the model is wasting tokens on busywork the skill encouraged, delete the offending guidance and see what happens.
Explain the why. Today's models reason well when given context. Even if the user's feedback is terse or frustrated, work out what they actually want and transmit that understanding into the instructions. Reframing usually beats more enforcement.
Look for repeated work. If every test run independently wrote the same helper script or took the same multi-step approach, bundle the script under scripts/ and have the skill point at it. Write it once instead of having the model reinvent it every time.
Then loop:
If the user wants to update an existing installed skill rather than create one:
name and directory name. If the installed skill is research-helper, the updated version is still research-helper, not research-helper-v2.~/.agents/skills/<name>/, edit there, and let user-priority discovery override the original.Good luck.