mskills is a CLI tool to manage "Agent Skills" for various AI agents (Claude, Codex, Gemini, Copilot, Antigravity) in a centralized way.
npm install -g mskillsgit clone https://github.com/yurakawa/mskills.git
cd mskills
npm install
npm run build
npm linkRegister a skill directory to mskills. mskills validates the skill directory based on the Agent Skills specification.
- A
SKILL.mdfile must exist in the root of the skill directory. SKILL.mdmust start with YAML frontmatter containingnameanddescription.- The
nameinSKILL.mdmust match the parent directory name. - For more details, see the official specification.
mskills add <skill-name> <path/to/skill>Example:
mskills add hello-world ./examples/hello-worldSelect which agents you want to apply the skills to.
mskills agents add <agent-names...>Tip
See Supported Agents for the list of available agent names (e.g., claude, cursor, github-copilot-cli).
Example:
# Enable for Claude and GitHub Copilot
mskills agents add claude github-copilot-cliSync your configured skills to the enabled agents' configuration directories.
mskills applyThis will create symbolic links (default) or copies of your skills in the agent's skills directory (e.g., ~/.claude/skills/hello-world).
Generate an XML block of available skills to be injected into an AI agent's system prompt.
mskills promptThis will output an XML block like:
<available_skills>
<skill>
<name>hello-world</name>
<description>A simple hello world skill</description>
<location>/Users/yurakawa/.mskills/skills/hello-world/SKILL.md</location>
</skill>
</available_skills>| Command | Description |
|---|---|
mskills add <name> <path> |
Register a skill. |
mskills remove <names...> |
Remove registered skills. |
mskills list |
List registered skills. |
mskills agents add <names...> |
Enable target agents. |
mskills agents remove <names...> |
Disable target agents. |
mskills agents list |
List enabled agents. |
mskills apply |
Apply skills to enabled agents. |
mskills apply --force |
Force overwrite existing skills. |
mskills prompt |
Generate XML prompt for AI agents. |
mskills stores its configuration and data in the following directory:
- Config File:
~/.mskills/config.json - Internal Skills Cache:
~/.mskills/skills(used for internal management)
| Agent | CLI Name | Skills Directory |
|---|---|---|
| Claude | claude |
~/.claude/skills |
| Cursor | cursor |
~/.cursor/skills |
| Codex | codex |
~/.codex/skills |
| Gemini | gemini |
~/.gemini/skills |
| GitHub Copilot CLI | github-copilot-cli |
~/.copilot/skills |
| Antigravity | antigravity |
~/.gemini/antigravity/skills |
A demo skill is included in examples/hello-world.
# 1. Add the demo skill
mskills add hello-world ./examples/hello-world
# 2. Enable an agent (e.g., Claude)
mskills agents add claude
# 3. Apply
mskills apply
# 4. Check result
ls -l ~/.claude/skills/hello-world