Platform matrix
Last verified: 2026-09-30. This is this guide’s reference for paths, fields, and config shapes; other pages point here. The tables cover the fields this guide uses plus each platform’s main extras. For the full field lists, see the official sources.
~ means your home directory (C:\Users\<you> on Windows). Always write paths inside skills and configs with forward slashes.
Skills
Section titled “Skills”| Claude Code | claude.ai / Claude Desktop | Claude API | Cursor | |
|---|---|---|---|---|
| Project location | .claude/skills/<name>/SKILL.md |
n/a | n/a | .cursor/skills/, .agents/skills/, and also .claude/skills/, .codex/skills/ |
| Personal location | ~/.claude/skills/<name>/ |
Uploaded as a ZIP in Customize → Skills (needs “Code execution and file creation” turned on; on Team and Enterprise plans an admin must enable Skills first) | Uploaded via the Skills API | ~/.cursor/skills/, ~/.agents/skills/, and also ~/.claude/skills/, ~/.codex/skills/ |
| Plugins | Yes (plugin skills/ folder) |
n/a | n/a | Yes (Cursor plugins) |
| Scoped to files | paths: globs, or a nested .claude/skills/ folder (scoped to that subtree) |
n/a | n/a | paths: globs, or a nested .cursor/skills/ folder |
| Auto-invocation | From description |
From description |
From description (needs the code execution tool) |
From description |
| Manual invocation | /skill-name (browse with /skills) |
Ask for it by name | n/a | /skill-name, or as a Custom Mode for a whole session |
| Picks up edits | Live, no restart needed | Re-upload the ZIP | Upload a new version | Reload if a change doesn’t show |
| Reserved names | ~/.claude/skills/synced/ and the skill name anthropic-skills |
n/a | n/a | ~/.cursor/skills-cursor/ holds Cursor’s built-ins (reported by users, not in Cursor’s docs at the time of writing; don’t write there) |
Cross-platform tip: a skill in .claude/skills/ (project) or ~/.claude/skills/ (personal) is picked up by both Claude Code and Cursor. .agents/skills/ is a shared convention that Cursor, Codex, and other tools read. The Agent Skills spec itself defines no locations, and Claude Code doesn’t read .agents/skills/, so a skill placed only there is invisible to Claude Code users.
SKILL.md frontmatter
Section titled “SKILL.md frontmatter”Legend: ✓ supported · – ignored (no effect, no error) · ✗ rejected (the upload fails).
| Field | Spec | claude.ai / Skills API upload | Claude Code | Cursor | Notes |
|---|---|---|---|---|---|
name |
Required | ✓ | ✓ | ✓ (must match the folder name) | ≤64 chars, a-z 0-9 -, no leading or trailing hyphen, no --; must not contain anthropic or claude |
description |
Required | ✓ | ✓ | ✓ | ≤1,024 chars, no XML tags; say what and when. claude.ai’s help article still says 200 characters at the time of writing; if an upload rejects a longer description, shorten it |
license |
Optional | ✓ | ✓ | – | Licence name or a bundled licence file |
compatibility |
Optional | ✓ | ✓ | – | Environment requirements, free text |
metadata |
Optional | ✓ | ✓ | ✓ | String-to-string map |
allowed-tools |
Optional (experimental) | ✓ | ✓ | – | Pre-approves the listed tools, only for the turn that invokes the skill |
disable-model-invocation |
✗ | ✓ | ✓ | true = runs only when invoked explicitly |
|
user-invocable |
✗ | ✓ | – | false hides it from the / menu, so only Claude can invoke it |
|
when_to_use |
✗ | ✓ | – | Extra trigger guidance alongside description |
|
argument-hint, arguments |
✗ | ✓ | – | Hint and named arguments for /skill-name <args> |
|
model |
✗ | ✓ | – | Override the model while the skill runs (sonnet, opus, haiku, fable, inherit, or a model ID) |
|
effort |
✗ | ✓ | – | Reasoning effort while the skill runs | |
context, agent |
✗ | ✓ | – | context: fork runs the skill in a subagent; agent picks the subagent type |
|
background |
✗ | ✓ | – | Runs the skill in the background | |
hooks |
✗ | ✓ | – | Hooks scoped to the skill | |
disallowed-tools |
✗ | ✓ | – | Tools the skill must not use | |
shell |
✗ | ✓ | – | Shell used for the skill’s inline commands | |
paths (legacy globs) |
✗ | ✓ | ✓ | Only offer the skill for matching files | |
icon, color |
✗ | – | ✓ | Custom Mode badge |
Portability: claude.ai uploads and the Skills API accept only name, description, license, compatibility, metadata, and allowed-tools. Any other key fails the upload with “Unexpected key(s) in SKILL.md frontmatter”. Only Claude Code and Cursor ignore fields they don’t support. If a skill must work everywhere, use only those six fields. If you need host-specific fields such as disable-model-invocation (Claude Code and Cursor only), keep a separate copy of the skill for upload.
Subagents (file-based)
Section titled “Subagents (file-based)”| Claude Code | Cursor | |
|---|---|---|
| Project location | .claude/agents/<name>.md |
.cursor/agents/, and also .claude/agents/, .codex/agents/ |
| Personal location | ~/.claude/agents/ |
~/.cursor/agents/, and also ~/.claude/agents/, ~/.codex/agents/ |
| Precedence | Project over user | Project over user; .cursor/ over .claude/ and .codex/ |
| Create | Ask Claude to create one, or add a file to .claude/agents/ |
The Subagents section of Cursor’s settings, or a file in .cursor/agents/ (a /create-subagent command is reported but isn’t in Cursor’s docs at the time of writing) |
| List | The @ typeahead. Since v2.1.198, /agents no longer creates or lists subagents |
The Subagents section of Cursor’s settings |
| Invoke | Automatic (from description), or explicitly with @agent-<name>. “Use the X subagent” asks for it but doesn’t guarantee delegation |
Automatic, /name, or “use the X subagent” |
| Runs | In the background by default (background: true field) |
Blocks the parent unless is_background: true |
| Starts with | Its system prompt and the task, plus CLAUDE.md/AGENTS.md and a git-status snapshot. The fork type inherits the whole conversation |
Its prompt and the task |
| Built-ins | Explore, Plan, general-purpose, claude, statusline-setup, claude-code-guide |
explore, bash, browser |
| Nesting | Subagents can spawn subagents, up to 3 layers deep by default (CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH) |
Direct subagents can spawn one more level |
Subagent frontmatter
Section titled “Subagent frontmatter”| Field | Claude Code | Cursor | Notes |
|---|---|---|---|
name |
✓ required | ✓ (defaults to filename) | Lowercase and hyphens; match the filename |
description |
✓ required | ✓ | Drives delegation. “Use proactively when…” encourages automatic use |
tools |
✓ comma-separated allowlist (omit to inherit all) | ✗ not supported: subagents inherit all parent tools | Use readonly in Cursor to restrict |
disallowedTools |
✓ denylist | – | Removes tools from the inherited set |
model |
sonnet, opus, haiku, fable, inherit, or a full model ID |
inherit or a model ID (options in brackets, for example [effort=high]) |
|
effort |
✓ | – | Reasoning effort |
maxTurns |
✓ | – | Caps the subagent’s agentic turns |
background |
✓ | – | Runs without blocking the parent |
mcpServers |
✓ | – | MCP servers available to this subagent |
hooks |
✓ | – | Hooks scoped to this subagent |
memory |
✓ | – | Persistent memory for the subagent |
isolation |
✓ | – | Runs the subagent in an isolated workspace (such as a git worktree) |
permissionMode, skills, color |
✓ | – | Claude Code extras |
readonly |
– | ✓ blocks edits and state-changing shell commands | Test and lint runs that write caches may be refused |
is_background |
– | ✓ doesn’t block the parent |
Cross-platform tip: a subagent in .claude/agents/ with only name, description, and model: inherit works in both. If you add tools:, Claude Code honours it and Cursor ignores it, so don’t rely on tools for safety in Cursor.
Programmatic agents (SDKs and CLIs)
Section titled “Programmatic agents (SDKs and CLIs)”| Claude | Cursor | |
|---|---|---|
| CLI (headless) | claude -p "prompt" |
agent -p "prompt" --output-format json |
| TypeScript SDK | @anthropic-ai/claude-agent-sdk (Node.js 18+) |
@cursor/sdk (Node.js ≥ 22.13) |
| Python SDK | claude-agent-sdk (import claude_agent_sdk, Python 3.10+) |
cursor-sdk (import cursor_sdk, Python ≥ 3.10) |
| Auth | ANTHROPIC_API_KEY, or Amazon Bedrock, Google Vertex AI, Microsoft Foundry, or Claude Platform on AWS (each through its own environment settings) |
CURSOR_API_KEY (from Cursor Dashboard → API Keys) |
| Loads project config | By default, user, project, and local settings, the same as the CLI. Pass settingSources: [] for reproducible CI |
Local: only with local.settingSources; Cloud: always |
| Cloud / remote runs | Claude Managed Agents (hosted by Anthropic), or your own infrastructure | Cursor Cloud Agents (SDK or REST API) |
Claude Agent SDK permissions:
allowedToolsonly auto-approves the listed tools; every other tool stays available. For a hard restriction, use thetoolsoption,disallowedTools, orallowedToolscombined withpermissionMode: "dontAsk".permissionMode: "acceptEdits"auto-approves edits to any file, plusrm,mv,cp, andsed. Locked-down headless agents should usedontAsk.- MCP tools must be allowed explicitly, for example
allowedTools: ["mcp__notes__*"]. Without that, the agent sees the tools but can’t call them. - Set a cost ceiling with
maxBudgetUsdand a timeout withabortController. claude -p --bareis recommended for CI, but it skips.claude/agents/, so pass any subagents another way.
MCP clients
Section titled “MCP clients”| Cursor | Claude Code | Claude Desktop | claude.ai (web) | |
|---|---|---|---|---|
| Project config | .cursor/mcp.json |
.mcp.json (project root) |
n/a | n/a |
| User config | ~/.cursor/mcp.json |
~/.claude.json (via claude mcp add --scope user) |
%APPDATA%\Claude\claude_desktop_config.json (Windows) / ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) |
Customize → Connectors |
| Add via CLI/UI | Edit mcp.json, or use the MCP section of Cursor’s settings (check Cursor’s docs for the current menu name) |
claude mcp add |
Settings → Developer → Edit Config, or install a .mcpb bundle |
Customize → Connectors → “Add custom connector” (remote URL only). On Team and Enterprise plans only Owners add connectors, under Organization settings |
| Transports | stdio, SSE, Streamable HTTP | stdio, HTTP (SSE is deprecated in favour of HTTP) | stdio (local), remote via connectors | Remote servers only (Streamable HTTP / SSE) |
type field |
"type": "stdio" on stdio entries (Cursor’s docs mark it required) |
"type": "http" on remote entries in .mcp.json |
Not needed | n/a |
| Env interpolation | ${env:NAME}, ${workspaceFolder}, ${userHome} |
${NAME}, ${NAME:-default} in .mcp.json |
Use literal values in env (interpolation isn’t documented at the time of writing) |
n/a |
| OAuth | Dynamic + static (auth object) |
Yes (/mcp to authenticate) |
Via connectors | Yes |
| Connected status | The server shows green in Cursor’s MCP settings | “✔ Connected” in /mcp or claude mcp list |
The server’s tools appear in the chat | The connector’s tools appear in the chat |
| Logs | Output panel → “MCP Logs” | claude --debug=mcp (--mcp-debug is gone), /mcp |
%APPDATA%\Claude\logs\mcp*.log (Windows) / ~/Library/Logs/Claude/mcp*.log (macOS) |
n/a |
All of the file-based configs use the same top-level key:
{ "mcpServers": { "<server-name>": { "command": "...", "args": [] } } }Notes for Claude hosts:
- Remote servers used by Claude must accept the OAuth callback
https://claude.ai/api/mcp/auth_callback, plus the loopback URLshttp://localhost/callbackandhttp://127.0.0.1/callbackon any port. See Security and production. - Claude Code warns when a tool’s output passes 10,000 tokens and caps it at 25,000 (
MAX_MCP_OUTPUT_TOKENS). It defers tools through tool search, so not every tool schema sits in context.
MCP SDKs
Section titled “MCP SDKs”| Current (stable) | Previous | |
|---|---|---|
| Spec | 2026-07-28 | 2025-06-18 / 2025-11-25 (legacy)¹ |
| TypeScript | @modelcontextprotocol/server 2.x (plus /client, /express, /hono, /fastify, /node), Zod 4 |
@modelcontextprotocol/sdk 1.x, Zod 3 |
| Python | mcp 2.x: from mcp.server.mcpserver import MCPServer |
mcp 1.x: from mcp.server.fastmcp import FastMCP |
| Inspector | npx @modelcontextprotocol/inspector (needs Node.js 22.19+) · Python: mcp dev server.py |
same |
¹ The v2 SDKs serve both eras: 2026-07-28 clients and legacy clients that open with initialize. In TypeScript, start the server with serveStdio(createServer) from @modelcontextprotocol/server/stdio; StdioServerTransport with server.connect() serves only legacy clients.
Both MCP templates target the current versions.
Protocol versions
Section titled “Protocol versions”- Current (2026-07-28): there’s no
initializehandshake and no protocol sessions. Clients discover a server withserver/discover, and the protocol version travels with each request. Elicitation arrives through aninput_requiredtool result. - Legacy (2025 revisions): clients open with
initialize→notifications/initialized. Both current SDKs (TypeScript@modelcontextprotocol/server2.2 and Pythonmcp2.2) still serve these clients. - Deprecated: Sampling, Roots, and Logging (SEP-2577). They stay in the spec for at least 12 months (earliest removal 2027-07-28), and servers no longer send requests to the client, so don’t build new features on them. Client-to-server progress is also deprecated, and
pingis removed. Log to stderr instead of using the Logging capability.
Rules and memory (for context)
Section titled “Rules and memory (for context)”| Claude Code | Cursor | |
|---|---|---|
| Project instructions | CLAUDE.md or .claude/CLAUDE.md (root and subfolders); v2.1.277+ reads AGENTS.md when no CLAUDE.md exists |
AGENTS.md (root and subfolders), .cursor/rules/*.mdc |
| Project rules | .claude/rules/*.md |
.cursor/rules/*.mdc |
| Personal | ~/.claude/CLAUDE.md, ~/.claude/rules/ |
User Rules (in Cursor’s settings) |
| Rule types | Always loaded, or path-scoped (paths: globs in a rule’s frontmatter) |
Always / file globs / intelligent (description) / manual (@rule) |
Hooks (for context)
Section titled “Hooks (for context)”| Claude Code | Cursor | |
|---|---|---|
| Location | .claude/settings.json → hooks (also ~/.claude/settings.json) |
.cursor/hooks.json, ~/.cursor/hooks.json |
| Key events | PreToolUse, PostToolUse, UserPromptSubmit, Stop, SubagentStop, SessionStart |
preToolUse, postToolUse, beforeShellExecution, beforeMCPExecution, afterFileEdit, subagentStart, stop, … |
| Block an action | Exit code 2 |
Exit code 2 |
Cursor can also load Claude Code hooks.
Official sources
Section titled “Official sources”Re-verify against these when updating the matrix:
- Agent Skills open standard: https://agentskills.io
- Claude Code docs (skills, subagents, MCP, hooks, and memory): https://code.claude.com/docs/en/overview
- Claude Agent Skills (API and best practices): https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview
- Claude Agent SDK: https://platform.claude.com/docs/en/agent-sdk/overview
- Cursor docs: Skills · Subagents · MCP · Rules · Hooks · CLI · TypeScript SDK · Python SDK
- Model Context Protocol spec and SDKs: https://modelcontextprotocol.io
- MCP registry: https://registry.modelcontextprotocol.io
- MCP Inspector: https://github.com/modelcontextprotocol/inspector