mstack

Portable engineering skills for Codex, Claude Code, OpenCode, pi, Grok,
Antigravity, Cursor, and T3 Code. One canonical skills/ tree feeds every
supported harness. The installer adapts harness metadata at install time, so
skill instructions stay free of vendor-specific paths and commands.

The bundle carries 61 skills: 57 adapted from
pstack, three
from mattpocock/skills, and the local
mstack-help entry skill. Source revisions and licenses live in
THIRD_PARTY_NOTICES.md.
Quick start
Node.js 18 or newer is required.
Install all 61 skills for every supported harness:
npx @3metajun/mstack --harness all
Or select specific harnesses and skills:
npx @3metajun/mstack --harness codex,claude
npx @3metajun/mstack --harness opencode,pi
npx @3metajun/mstack --harness antigravity,grok
npx @3metajun/mstack --harness all --skill writing-for-agents,codebase-design,diagnosing-bugs
Existing skill directories are preserved by default. Add --dry-run to preview
the plan. Add --replace to back up existing directories to a timestamped
.harness-skills-backups/ folder outside the skill discovery root before
writing.
Default install roots
Defined in profiles/harnesses.json and documented
in Harness adapter reference:
| Harness | Default user directory | Project directory (--project) | Override env var |
|---|
| Codex | ~/.agents/skills/ | .agents/skills/ | HARNESS_SKILLS_CODEX_DIR |
| Claude Code | ~/.claude/skills/ | .claude/skills/ | HARNESS_SKILLS_CLAUDE_DIR |
| OpenCode | ~/.agents/skills/ | .agents/skills/ | HARNESS_SKILLS_OPENCODE_DIR |
| pi | ~/.agents/skills/ | .agents/skills/ | HARNESS_SKILLS_PI_DIR |
| Grok | ~/.agents/skills/ | .agents/skills/ | HARNESS_SKILLS_GROK_DIR |
Antigravity (agy) | ~/.gemini/antigravity-cli/skills/ | .agents/skills/ | HARNESS_SKILLS_ANTIGRAVITY_DIR |
- Shared root: Codex, OpenCode, pi, Grok, and Cursor all read
~/.agents/skills/, so updating any of them refreshes the shared copy.
- Claude Code: Gets its own copy without frontmatter
name (Claude names
skills by directory; OpenCode 1 skips nameless copies, and OpenCode 2 prefers
~/.agents/skills/).
- Antigravity: Keeps its own canonical copy under
~/.gemini/antigravity-cli/skills/ because it does not scan
~/.agents/skills/ at user scope.
- T3 Code: Lists the skills discovered by each provider you run in it and
integrates natively with T3's delegation, PR watching, scheduling, and preview
tools via host references. See Use mstack in T3 Code.
Install into a project
Use --project when a harness reads skills from the repository working
directory (including per-thread git worktrees in T3 Code):
npx @3metajun/mstack --harness codex,claude,pi --project /path/to/repo --dry-run
npx @3metajun/mstack --harness codex,claude,pi --project /path/to/repo
- Skills only:
--artifact, --migrate, and --environment are refused with
--project.
- Copies directly (never symlinks) and ignores
HARNESS_SKILLS_*_DIR overrides.
- Refuses home directories, paths inside the mstack package,
.harness-skills-*
storage, or any discovery root (checked via physical paths).
--replace backups land beside the skill roots under
<repo>/.agents/.harness-skills-backups/ and
<repo>/.claude/.harness-skills-backups/. Add .harness-skills-* to
.gitignore. Commit project skills if new worktrees need them.
Claude Code, Claude Desktop, and T3 Code
Claude Code plugin
This repository is also a Claude Code plugin marketplace shipping all 61 skills,
both agents (mstack:meta-agent, mstack:comment-reviewer), tools/meta-mode/,
and an opt-out SessionStart routing hook ("sessionHook": false in
~/.config/mstack/models.json; see
Claude Code routing):
claude plugin marketplace add 3metaJun/mstack
claude plugin install mstack@mstack
Plugin skills are namespaced (for example /mstack:meta-mode). Pick either the
plugin or npx @3metajun/mstack --harness claude per machine; installing both
loads duplicate skills.
Claude Desktop chat, Cowork, and claude.ai