Skills for MM agentic cli
翻譯準備中
技能Python · ShellGitHub @MetaMask自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
正在載入完整 README。 以下為已儲存的摘錄。
SKILLs for the MetaMask Agent CLI (@metamask/agent-wallet v7.0.0). These skills enable AI agents to authenticate, manage wallets, swap tokens, bridge across chains, trade perpetual futures, earn yield on DeFi vaults, and more using the MetaMask Agent Wallet CLI (mm).
This repository is also packaged as a plugin for Claude Code, Cursor, Codex, Antigravity CLI (agy), and Grok Build. The plugin ships the same skills plus a session-start hook that checks CLI readiness via mm doctor and records local install attribution.
Or use /plugin → Discover / Install inside Claude Code.檢視完整 README ↗SKILLs for the MetaMask Agent CLI (@metamask/agent-wallet v7.3.0). These skills enable AI agents to authenticate, manage wallets, swap tokens, bridge across chains, trade perpetual futures, earn yield on DeFi vaults, and more using the MetaMask Agent Wallet CLI (mm).
This repository is also packaged as a plugin for Claude Code, Cursor, Codex, Antigravity CLI (agy), and Grok Build. The plugin ships the same skills plus a session-start hook that checks CLI readiness via mm doctor and records local install attribution.
| Skill | Description |
|---|---|
metamask-agent-wallet | Full CLI skill that routes the agent to topic-specific reference docs (references/) for all MetaMask Agent CLI commands — auth, wallets, transfers, signing, swaps, bridges, perps, prediction markets, DeFi earn/yield vaults, market data, x402 payments, and calldata decoding — plus multistep workflow templates (workflows/) for onboarding, swaps, bridges, perps, prediction markets, and earn. |
claude plugin marketplace add MetaMask/agent-skills
claude plugin install metamask-agent-wallet@metamask
Or use /plugin → Discover / Install inside Claude Code.
Local development:
claude --plugin-dir /path/to/agent-skills
https://github.com/MetaMask/agent-skills.Or submit/browse via the Cursor Marketplace once listed.
codex plugin marketplace add MetaMask/agent-skills
codex plugin add metamask-agent-wallet@metamask
Or use /plugins inside Codex.
Local development:
codex plugin marketplace add /path/to/agent-skills
codex plugin add metamask-agent-wallet@metamask
Codex skips plugin-bundled hooks until you review and trust them. After that, a new session injects MetaMask readiness context the same way as Claude Code and Cursor.
agy)Install the repo root so skills and session-start hooks resolve:
agy plugin install /path/to/agent-skills
agy plugin install https://github.com/MetaMask/agent-skills
The slim .antigravity-plugin/ directory (rules only) is for validation; prefer the repo root so skills/ and hooks/session-start.sh are on the plugin path.
Restart agy after install, then agy plugin list. The extension rule routes wallet work to skills/metamask-agent-wallet/SKILL.md.
Install the repo directly (recommended):
grok plugin install MetaMask/agent-skills --trust
Local development:
grok plugin install /path/to/agent-skills --trust
Optional marketplace (for browsing; install by repo path if name lookup fails):
grok plugin marketplace add MetaMask/agent-skills
grok plugin marketplace add /path/to/agent-skills
Grok skips plugin-bundled hooks, MCP servers, and skills until you trust the plugin (--trust). After that, a new session injects MetaMask readiness context the same way as Claude Code and Cursor.
To pick up a newly installed plugin, press r in the Plugins tab or start a new session.
npx skills add MetaMask/agent-skills
Select any one of the SKILLs upon prompt.
On every new (or resumed) agent session the hook:
skills/metamask-agent-wallet/SKILL.md.~/.metamask/attribution.json with { installSource, pluginVersion, firstSeenAt, lastSeenAt } so analytics can attribute acquisition to this plugin. No email or personal identity is stored.mm is on PATH, runs mm doctor --json (≈15s timeout) and injects a short readiness summary into the session context (install / upgrade / login / init hints).mm is missing, injects guidance to ask the user before running npm install -g @metamask/agent-wallet@<pinned>.The hook never installs or upgrades the CLI itself. It always exits 0 and never blocks the session.
The plugin does not bundle mm. After the agent asks and the user consents:
npm install -g @metamask/agent-wallet@latest
# or pin to the skill's cliVersion, e.g.:
npm install -g @metamask/[email protected]
Requires a supported Node.js version. Then complete onboarding with mm login and mm init (see the skill workflows).
When the skill's cliVersion advances, the next session-start context (or mm doctor) will prompt an upgrade the same way.
| Data | Where | Purpose |
|---|---|---|
installSource, pluginVersion, timestamps | ~/.metamask/attribution.json (mode 0600) | First-touch acquisition channel for MetaMask product analytics after the user runs mm |
Host env (CLAUDECODE, CURSOR_AGENT, CODEX_THREAD_ID, ANTIGRAVITY_AGENT, GROK_PLUGIN_ROOT, …) | Read by mm at command time | Tag Segment events with the calling agent host |
Cursor user_email / other PII from hooks | Not written | — |
Product analytics from the CLI respect MM_TELEMETRY_DISABLED=1, DO_NOT_TRACK=1, and dashboard Osano consent.
When @metamask/agent-wallet ships a new major.minor:
metadata.cliVersion (and metadata.version) in skills/metamask-agent-wallet/SKILL.md.version in .claude-plugin/plugin.json, .claude-plugin/marketplace.json, .cursor-plugin/plugin.json, .codex-plugin/plugin.json, .grok-plugin/plugin.json, .grok-plugin/marketplace.json, and root plugin.json.Do not rename the plugin name (metamask-agent-wallet) after marketplace listing — it is an immutable slug.
.
├── plugin.json # Agent Plugins 1.0 (skills only)
├── hooks.json # Cursor sessionStart
├── .claude-plugin/
│ ├── plugin.json
│ └── marketplace.json
├── .cursor-plugin/
│ └── plugin.json
├── .codex-plugin/
│ └── plugin.json
├── .antigravity-plugin/ # Antigravity CLI (`agy`)
│ ├── plugin.json
│ ├── hooks.json
│ └── rules/
├── .grok-plugin/ # Grok Build
│ ├── plugin.json
│ └── marketplace.json
├── .agents/plugins/
│ └── marketplace.json # Codex / ChatGPT repo marketplace
├── hooks/
│ ├── hooks.json # Claude SessionStart
│ ├── codex-hooks.json # Codex SessionStart
│ ├── antigravity-hooks.json # Antigravity repo-root SessionStart
│ ├── grok-hooks.json # Grok Build SessionStart
│ └── session-start.sh
└── skills/
├── metamask-agent-wallet/
└── metamask-agent-workflows/
See docs/MARKETPLACE_SUBMISSION.md for Claude Code, Cursor, Codex, Antigravity CLI, and Grok Build submission steps (human review required after this repo is pushed).