---
name: mstack-skill-creator
description: Use when the user wants to create a new agent skill, write or fix a SKILL.md, improve, test or benchmark an existing skill, turn a workflow they keep repeating into a skill, or add a skill as a plugin to an mstack-style marketplace repository, in Claude Code, Codex, OpenCode or Cursor, even if they only say "make this a skill". Produces one skill folder that all four hosts load, with evidence from a run with and without it.
title: mstack-skill-creator
canonical_url: https://skilld.dev/gh/mubeda/mstack/mstack-skill-creator
last_updated: 2026-11-15T15:07:53.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 80 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/mubeda/mstack/mstack-skill-creator/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install mubeda/mstack/mstack-skill-creator`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/mstack-skill-creator`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/mubeda/mstack/mstack-skill-creator) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/mstack-skill-creator`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/mstack-skill-creator --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/mstack-skill-creator --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# mstack skill creator

You create or improve one agent skill: a folder with a `SKILL.md` that Claude Code, Codex, OpenCode and Cursor all load. You test it against a baseline before you call it finished. In a repository laid out like mstack you also package it as a plugin. You never commit, push or publish.

## Host tools

This file is the same on every host. It names roles. The table says which tool plays each role, and the host file in `references/` has the detail.

| Role | Claude Code | Codex | OpenCode | Cursor |
|---|---|---|---|---|
| Your question tool | `AskUserQuestion`, or a numbered round in chat | A numbered round in chat, then wait | A numbered round in chat, then wait | A numbered round in chat, then wait |
| Your subagent tool | `Agent`, with `model` and `effort` from `mstack-best-model-for` set on every call | The session's agent tool, or a separate `codex exec` run | None: use the fresh-session command | None: use the fresh-session command |
| Loading a skill | The Skill tool | Read its SKILL.md and follow it | The `skill` tool | By its description, or `/<name>` |
| The fresh-session command | `claude -p` | `codex exec` | `opencode run` | `cursor-agent -p` |
| The cross-vendor reviewer | Codex (skill-codex `codex` skill) | Claude (agent-bridges `claude-review`) | An agent-bridges plugin of another vendor | An agent-bridges plugin of another vendor |
| The host file | `references/host-claude-code.md` | `references/host-codex.md` | `references/host-opencode.md` | `references/host-cursor.md` |
| The skill folder | The base directory shown when this skill loaded | The folder of this SKILL.md | The folder of this SKILL.md | The folder of this SKILL.md |

Read your host file once in Phase 0. On a host the table does not list, follow the portable path (no subagents, a numbered round for questions, the comparison test handed to the user) and say which parts were untested there.

In Claude Code and Codex, before the first subagent or fresh-session run, load `mstack-best-model-for` in called mode once, for this host's vendor and the tiers `standard` (the comparison and test runs) and `most capable` (a same-vendor fallback reviewer), and set the returned model and effort on each of them.

## Files in this skill

| File | Read in |
|---|---|
| The host file for this host (table above) | Phase 0, and wherever a phase says "the host file" |
| `references/workflow-steps.md` | Phases 0, 1 and 2: optional steps, the existing-skill check, the mstack skills per step and their fallbacks |
| `references/writing-rules.md` | Phase 3, and before Phase 9 |
| `references/testing.md` | Phases 5 and 6 |
| `references/plugin-packaging.md` | Phase 0 for a plugin target, Phases 7 and 8 (package, then review) |
| `scripts/check-skill.mjs` | Phase 4: `node <skill-folder>/scripts/check-skill.mjs <created-skill-folder>` |
| `scripts/scan-private.mjs` | Phase 4, for a public repository: `node <skill-folder>/scripts/scan-private.mjs <folder>` |
| `scripts/vendor/anthropic-skill-creator/` | Phase 6, the benchmark and review page, copied unchanged from Anthropic's skill creator |

## Ground rules

1. **Confirm the target before you write.** No file of the created skill exists until the user confirmed where it goes.
2. **Evidence before "finished".** A skill is finished only after the static check passed and a comparison test ran and its result was shown. Otherwise call it untested.
3. **Use what is installed.** When an mstack skill covers a step and the host file lists it as supported here, run it. Otherwise use the fallback in `references/workflow-steps.md`, and say so.
4. **Self-contained.** Everything the created skill uses sits in its own folder. Other skills are named, never pointed at by path. The one exception is an agent definition of a plugin skill, which Claude Code loads only from the plugin's `agents/` folder: the skill names it by its listed type and states what it does without it.
5. **Copy nothing unlicensed.** Adapted text is rewritten and credited inside the created skill's folder.
6. **No private data in a public repository.** Names of people and companies, home paths, private hosts and credentials stay out.
7. **Never overwrite without a yes.** An existing folder at the target location is shown to the user first.
8. **No outward action.** Never commit, push, open a pull request or publish. Offer the next step.

## When the request does not fit

- A rule, command, subagent or hook, not a skill: say it is out of scope, and offer to write a skill that does the same job.
- A name that breaks the rules or is longer than 64 characters: propose a valid one and ask.
- A target folder you cannot write to: report the error, and write nothing anywhere else without asking.
- A host that is none of the four: follow the portable path, and say which parts are untested there.
- No network: report research, the public search, install offers and a reviewer of another vendor as not run, and continue the local steps.
- An interrupted session: continue from the files already written, and offer `mstack-handoff` when it is installed.

## Phases

| Phase | Work | Gate |
|---|---|---|
| 0. Start | Read the host file. Detect the target, confirm it, and ask the setup questions | The user confirmed the target. Nothing is written yet |
| 1. Existing-skill check | Look for a skill that already does the job | The user chose use, improve or create |
| 2. Understand | The interview, and research, spec and plan when they run | Purpose, triggers, inputs, outputs and at least one test task are agreed |
| 3. Write | The skill folder, by the writing rules and the host file | The files exist at the confirmed place |
| 4. Check | The static check, and the private-data scan for a public repository | Both pass, or every remaining line is shown to the user |
| 5. Comparison test | Run the test tasks with and without the skill | Both runs have results, or the skill is reported as untested |
| 6. Benchmark and page | Plugin target, or accepted for a local one | The page exists, or the report says why not |
| 7. Package | Plugin target only | The repository's checks pass, or their failing output is in the report |
| 8. Review | Plugin target, or accepted for a local one | Every finding is fixed, rejected with a reason, or listed, and the checks pass again after the fixes |
| 9. Report | The outcome of every step | The report is sent and nothing was committed |

### 0. Start

1. Read the host file for this host. In Claude Code and Codex, then check the three shared skills this skill calls, `mstack-find-skills`, `mstack-best-model-for` and `mstack-research`, as `references/workflow-steps.md` › Required shared skills says. A missing one stops the run there. In OpenCode and Cursor this check does not apply.
2. Detect the target as `references/plugin-packaging.md` describes: a plugin target (both registries exist) or a local target.
3. Ask in one round with your question tool, skipping what the user already said:
   - Create a new skill, or improve an existing one (which)?
   - The target, with your detection as the recommendation. For a plugin target, show the repository's rules and checks you found.
   - For a local target, the scope (this project or the user's home) and the hosts (recommend all four).
   - For a local target, the optional steps of `references/workflow-steps.md` › Optional steps, and the public search, in the same question.
4. When the host file names a native skill creator and it is installed, name it and offer its host-only tools for the steps they cover (for example its description optimizer in Claude Code). When none is installed, make no offer.
5. Wait for the answers. Write nothing before the target is confirmed.

### 1. Existing-skill check

In Claude Code and Codex, load `mstack-find-skills` in called mode: say that `mstack-skill-creator` is calling, give the agreed purpose as one work item, and add the line `Also read: <every folder of the target repository that holds a SKILL.md>`, so a skill that sits in the repository and is not installed is still found. Add the line `Online search: off (the user declined the public search)` unless the user accepted it. Report its result block. In OpenCode and Cursor, follow `references/workflow-steps.md` › Existing-skill check, and run its public search only if the user accepted it. On a match, ask whether to use it, improve it or create a new skill, and wait.

### 2. Understand

1. Interview the user until these are settled: what the skill does, the situations and phrases that should trigger it, its inputs and outputs, what it must never do, the hosts, and at least one realistic test task (two or three for a plugin). Ask in numbered rounds, each question with your recommendation.
2. The interview runs for every target, even when the user declined every optional step. A plugin target always runs research, a written spec and a plan. A local target runs them only when accepted. Use the mstack skill for each step when installed and supported here (`references/workflow-steps.md`), otherwise its fallback.
3. For a workflow the user already did in this conversation, take the steps, tools and corrections from the conversation first, and ask only for the gaps.

### 3. Write

1. For an improvement, copy the current version to a snapshot outside its folder before the first edit (`references/testing.md` › The baseline).
2. Choose the location. A local skill goes to `.agents/skills/<name>/` at the chosen scope, which Codex, OpenCode and Cursor load, plus a link from `.claude/skills/<name>` when Claude Code is one of the hosts. A plugin skill goes in `<plugin>/skills/<name>/`. Details are in each host file.
3. If a folder with that name already exists there, show what is in it and ask. Never overwrite it without a yes.
4. Write the files by `references/writing-rules.md`: two frontmatter fields by default, a "Use when" description with triggers first and no step summary, a host table only when a step needs a host tool, everything inside the folder (ground rule 4 names the one exception), adapted text rewritten and credited.

### 4. Check

1. Run `node <skill-folder>/scripts/check-skill.mjs <created-skill-folder>`. Fix every FAIL line and run it again. Tell the user about each WARN line.
2. When the target repository is public, run `node <skill-folder>/scripts/scan-private.mjs <created-skill-folder>` and fix every hit. Check public or private with the hosting service's command-line tool when one is available (for GitHub, `gh repo view --json visibility`), otherwise ask. Unknown counts as public. Then read the skill for names of people, companies, customers and internal products, which no pattern finds, and compare with the names you met in this session.
3. Read the description once more. If it lists the skill's steps, rewrite it.

### 5. Comparison test

Follow `references/testing.md`. Use the first method the host allows: the subagent tool, then the fresh-session command in the host file, then a prompt the user runs. Show the user both results and what the skill changed. A prompt handed to the user counts only once the results come back.

### 6. Benchmark and review page

For a plugin target, or when the user accepted it: grade every run, then build the benchmark and the static review page with the copied tools, as `references/testing.md` › Benchmark and review page describes. Give the user the page's path. Without Python 3, grade inline and say the page was not produced.

### 7. Package

Plugin target only. Add every file the repository requires, set the versions, and run the repository's checks until they pass, as `references/plugin-packaging.md` describes. When one still fails, the skill is not ready to commit.

### 8. Review

For a plugin target, or when the user accepted it: get a read-only review from the cross-vendor reviewer of everything the earlier phases wrote, packaging included, as `references/plugin-packaging.md` › Cross-vendor review describes. Verify every finding against the files before acting. With no reviewer of another vendor, warn the user and record a same-vendor review. After fixing findings, run the static check, the scan and, for a plugin target, the repository's checks again.

### 9. Report

Check the created skill against `references/writing-rules.md` › Before you finish. Then report:

1. The skill's name, its folder and the hosts it is for, in one line, and whether it is finished, untested or not ready to commit.
2. Every phase with its outcome, or "not run" and the reason. Name each step that used a built-in fallback, and each host that was not tested.
3. The static check and scan result lines, the comparison test results, and the review page's path when there is one.
4. The review findings and what happened to each.
5. For a plugin target, the repository's check result lines.
6. The next step, offered and not taken: install the skill for more hosts, commit, or open a pull request, only when the user asks.
