name: skill-creator description: | Create a new Mavis skill with a short eval-driven loop. Use when the user asks to create a skill, turn a repeated workflow into a skill, or build a new reusable procedure. Do not use for improving or fixing an existing skill (use skill-refiner instead), or when the user only wants to run a skill or learn what skills exist. descriptions: zh-Hans: "创建新的 Mavis skill,用短 eval 循环把重复工作流沉淀为可复用流程。" displayNames:
Turn a reusable workflow into a dense skill, then verify it against a real prompt.
Collect only the missing information:
If the user only has a vague idea, clarify the request before continuing. Do not invent a long interview flow inside this skill.
This skill intentionally keeps executable shell recipes OUT of SKILL.md. Before you run any command for this skill, select exactly one platform command reference and use only that file's recipes.
Router:
<agent-context>.platform.platform is win32:
references/commands-windows-powershell.md./tmp/..., mkdir -p, cat <<EOF, or python3 assumptions.platform is darwin or linux:
references/commands-macos-linux.md.platform is missing or unknown:
Never translate shell commands across platforms from memory. The platform reference files own every recipe this skill needs (run-lint, eval-scratch-dir, baseline-output-paths).
Check the <available_skills> block already in your context — it lists every skill's name and description. Call skill({ name: "<name>" }) to read a candidate in full.
If a nearby skill already covers the use case, do not create a duplicate. Instead, tell
the user to use skill-refiner to extend or improve the existing skill.
Use the three-question test to decide where the skill lives:
{{DATA_DIR}}/skills/){{DATA_DIR}}/agents/<name>/skills/)<repo>/.minimax/skills/ — the native workspace skill root; existing workspace skill roots also work)description, not in a When to use section.SKILL.md focused on execution rules: procedure, output contract, failure handling.references/.scripts/ only for deterministic local work.SKILL.md with high information density.references/skill-template.md, references/description-rubric.md, and references/anti-patterns.md.python3 references, add a ## Windows (win32) platform notes section with PowerShell equivalents or cross-platform alternatives. Pure-process skills (no shell commands) can skip this.Write the skill into the location determined in step 2:
{{DATA_DIR}}/skills/<skill-name>/
{{DATA_DIR}}/agents/<agent-name>/skills/<skill-name>/
<repo>/.minimax/skills/<skill-name>/
Use this structure only when needed:
<skill-root>/
├── SKILL.md
├── scripts/ # deterministic local work only
└── references/ # bulk material the main file should not inline
Do not create extra scaffolding by default: README.md, CHANGELOG.md, install.sh, .env, .env.example, .gitignore, assets/, or evals/.
For script bundling rules, see references/when-to-bundle-scripts.md.
First locate the skill-creator install directory: call skill({ name: "skill-creator" }) and take the directory of the returned Location: path. Then use the run-lint recipe from the selected platform command reference to run node scripts/lint-skill.js against the new skill path.
Check for complete frontmatter, matching kebab-case names, a useful description, main-file size,
forbidden files, and valid references/ links.
Do not move on until lint passes.
Eval compares "with-skill" vs "without-skill" on a real prompt.
Pick a real eval prompt first: a genuine user question that should trigger this skill.
Launch two Task tool calls (subagents) with run_in_background: true so they run in
parallel — foreground task calls execute sequentially. Use the
baseline-output-paths recipe from the platform command reference for the writable
scratch directory (do NOT hardcode /tmp/):
<SKILL_PATH>, use it to handle: <EVAL_PROMPT>.
Write your process and output to <scratch>/eval-<skill-name>/with-skill.md."<EVAL_PROMPT>.
Write your process and output to <scratch>/eval-<skill-name>/baseline.md."Both eval tasks write process and output files under the scratch directory, so each Desktop
Task call must use agent_name: worker. A background launch returns a task id immediately,
not the result — poll with task_query until both tasks reach a terminal state and collect
each result with task_output. Only then read the two files and write the comparison verdict
yourself, covering all 5 points:
SKILL.md or references/.Should a script be bundled? — check the producer's process for a repeated deterministic action; also sanity-check token use (with-skill should not burn 2x baseline tokens without a quality gain).
Iterate only if eval exposes a real weakness.
Read the comparison output, improve the skill, then repeat lint and eval.
Stop when any of these is true:
Deliver:
Input: "I just figured out how to check someone's availability in Feishu Calendar. Turn this into a skill."
Good path:
<available_skills> in context and find no existing availability-checking skill.SKILL.md with the procedure, lint it, run eval.Bad path: immediately create a brand-new skill without checking for overlap first, or try to extend an existing calendar skill in this creator instead of directing to skill-refiner.
references/commands-macos-linux.md - bash/zsh recipes (darwin/linux)references/commands-windows-powershell.md - PowerShell recipes (win32)references/skill-template.md - section skeletonreferences/description-rubric.md - description guidancereferences/anti-patterns.md - common failure modesreferences/when-to-bundle-scripts.md - script vs subagent vs direct procedurescripts/lint-skill.js - deterministic validation