Index of every page on this site: llms.txt
All skills
mubeda avatar

/mstack-skill-creator

@448b591
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/mubeda/mstack/mstack-skill-creator

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈112 tokens for metadata: the name and description. ≈3.3k when used: this file. ≈13k more on demand in 57 files.

Description uses 5.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈450 characters, or 5.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill is a development tool for creating, testing, and benchmarking AI agent skills. It includes robust features for static analysis and private data scanning to help developers follow best practices and avoid leaking credentials. A minor security risk was identified in a report generation script that is vulnerable to cross-site scripting (XSS) if it processes malicious agent outputs, but this risk is explicitly documented with clear instructions for safe local use.

  • Socket5d

    1 alert: gptAnomaly

  • Snyk5d

    Risk: MEDIUM · 2 issues

Signed by skilld at 448b591. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last week

README badge

README badge for mubeda/mstack/mstack-skill-creator