Guide

Agent Skills (SKILL.md) in every AI coding agent: Claude Code, Codex, Cline, Amp and OpenHands (2026)

Where does each AI coding agent look for SKILL.md skills, and can one skill folder work in all of them?

Every one of these agents reads a folder with a SKILL.md file whose YAML frontmatter has a name and a description. Claude Code uses .claude/skills/ and ~/.claude/skills/. Codex, Amp and OpenHands use .agents/skills/ in the repo and ~/.agents/skills/ for you. Cline uses .cline/skills/ and ~/.cline/skills/, and also reads .claude/skills/. Amp also reads .claude/skills/. So a skill in .agents/skills/ covers Codex, Amp and OpenHands, and a copy in .claude/skills/ covers Claude Code, Cline and Amp.

Also in: 简体中文 · 日本語 · 한국어 · Español · Português (Brasil)

Coding agent settings change often

Get one email a week when a setting, flag or permission rule changes, checked against the vendor docs.

Quick answer: skill folder locations

  • Claude Code: .claude/skills/NAME/SKILL.md (project) and ~/.claude/skills/NAME/SKILL.md (personal). Plugins ship skills too, invoked as /plugin-name:skill-name.
  • OpenAI Codex: .agents/skills in the folder where you launch Codex, its parent folders up to the repo root, ~/.agents/skills, /etc/codex/skills (admin) and bundled system skills.
  • Cline: .cline/skills/ (recommended), .clinerules/skills/ or .claude/skills/ in the project, and ~/.cline/skills/ globally.
  • Amp: .agents/skills/ and .claude/skills/ in the project and parent folders, ~/.config/agents/skills/, ~/.agents/skills/, ~/.config/amp/skills/, ~/.claude/skills/ and folders listed in amp.skills.path.
  • OpenHands: .agents/skills/NAME/SKILL.md in the repo (legacy .openhands/skills and .openhands/microagents still work) and ~/.agents/skills for the user.

One SKILL.md that works everywhere

All five agents accept the same minimal file: YAML frontmatter with name and description, then Markdown instructions. Keep the name equal to the folder name, because Cline and OpenHands require it to match.

.agents/skills/release-notes/SKILL.md

---
name: release-notes
description: Draft release notes from recent commits. Use when the user asks for release notes or a changelog.
---

1. Read the commits since the last tag.
2. Group changes into Features, Fixes and Other.
3. Write the notes in plain Markdown.
  • Put it in .agents/skills/release-notes/ for Codex, Amp and OpenHands.
  • Put the same folder in .claude/skills/ for Claude Code. Cline and Amp read that folder too.
  • Write the description as a trigger: what the skill does and when to use it. Claude Code, Codex, Cline and Amp decide whether to load a skill from that text.

How you run a skill

  • Claude Code: type /skill-name, or let Claude load it when your request matches the description. Text after the name fills $ARGUMENTS.
  • Codex: run /skills or type $ and the skill name, or let Codex pick it from the description.
  • Cline: type / and pick the skill, or let Cline load it when your request matches.
  • Amp: the model sees each skill's name and description and loads the full SKILL.md when the skill is invoked. Install skills with amp skill add <source>.
  • OpenHands: add a triggers list to the frontmatter to load a skill only when one of those keywords appears in a message.

Stop the agent from using a skill on its own

  • Claude Code: disable-model-invocation: true in the frontmatter. Only you can then run it.
  • Codex: policy.allow_implicit_invocation: false in agents/openai.yaml. Explicit $skill calls still work. To disable a skill fully, add a [[skills.config]] entry with enabled = false to ~/.codex/config.toml.
  • Cline: switch the skill off in the Skills tab of the menu with the scale icon below the chat.
  • Amp: set amp.skills.disableClaudeCodeSkills to skip the Claude-compatible folders.
  • OpenHands: use a triggers list so the skill loads only on matching keywords.

Which copy wins when names clash

  • Claude Code: enterprise beats personal, and personal beats project. A skill beats a .claude/commands/ file with the same name.
  • Codex: skills with the same name are not merged; both appear in the selector.
  • Cline: a global skill beats a project skill with the same name.
  • Amp: the first skill found in its search order wins.

Gotchas

  • Codex caps the initial skills list at 2% of the context window (8,000 characters if the size is unknown) and shortens descriptions first when you have many skills.
  • Cline suggests keeping SKILL.md under 5k tokens; each skill's metadata costs about 100 tokens at startup.
  • Amp does not reload skills in a running thread when you run amp skills list elsewhere. Ask Amp to reload your skills.
  • Claude Code merged custom commands into skills, so .claude/commands/*.md files still create /name commands.

Full skills guide for each agent

Get coding agent settings changes by email

When a setting, flag or permission rule in this guide changes, it goes in the weekly AgentAtlas update, checked against the vendor docs. One email a week.

Sources

Other guides

How to allow Cursor to run all commands: Run Everything, allowlist and sandboxHow to allow Claude Code to run all commands: permission modes, allow rules and skip permissionsClaude Code permissions: allow, ask and deny rules, rule syntax and allowed toolsCodex CLI: approval and sandbox modesGemini CLI: YOLO mode, auto_edit and allowing specific shell commandsCursor Privacy Mode: telemetry, training and data retentionClaude Code telemetry and data retention: what is sent and how to turn it offGemini CLI: turn off usage statistics and telemetryCLAUDE.md: where it goes, how it loads, and how it works with AGENTS.mdClaude Code hooks: format on save, block risky edits, get notifiedClaude Code subagents: create one, limit its tools, and call itAdd MCP servers to Cursor with mcp.json: Keep files out of Cursor with .cursorignore: Configure Codex with config.toml: Configure Gemini CLI with settings.json: Add MCP servers to Claude Code (claude mcp add, .mcp.json, scopes): Claude Code custom slash commands and skills (SKILL.md): GitHub Copilot custom instructions: Adding MCP servers to GitHub Copilot: Claude Code settings.json: file locations, precedence, and key settingsClaude Code plugins and marketplaces: install, create, and shareGemini CLI extensions and custom commands: Configuring OpenCode with opencode.json: Cline Rules: workspace, global, and conditional rulesKiro steering files: .kiro/steering, inclusion modes, and AGENTS.mdZed agent: instruction files, MCP servers, tool permissions, and ACP agentsCursor CLI: install, headless mode, permissions and CIAider: CONVENTIONS.md, .aider.conf.yml and API keysJunie guidelines, MCP and the Action Allowlist: Amp AGENTS.md, settings.json and MCP: Configure Goose extensions, hints, recipes and permissions: Customize OpenHands with skills, AGENTS.md, setup.sh and MCP: Configure Factory Droid CLI: AGENTS.md, settings.json, autonomy, custom droids and MCPConfigure Qwen Code: settings.json, providers, QWEN.md, MCP and approval modesCursor hooks: hooks.json, beforeShellExecution, afterFileEdit and exit codesCursor sandbox: sandbox.json, network allowlist and run modesCursor settings: settings.json, Cursor Settings and the ~/.cursor config filesCursor browser agent: @browser, browser automation and approval modesCursor subagents: .cursor/agents, frontmatter, built-in Explore and BrowserCursor telemetry and OpenTelemetry export (Privacy Mode, OTLP, Analytics API): Cursor rules setup: project, user and Team Rules, .mdc frontmatter, globs and AGENTS.mdClaude Code headless mode: claude -p, --output-format json, --bare and CI flagsClaude Code statusline: custom status bar in settings.json with context %, cost and git branchClaude Code /model: switch models, aliasesClaude Code /cost and /usage: check token spend, usage limits and reduce costsClaude Code VS Code extension: install, shortcuts, settings and /ideCodex AGENTS.md: global, project and override instruction files explainedCodex MCP servers: codex mcp add and [mcp_servers] in config.tomlCodex sandbox modes: read-only, workspace-write, danger-full-access and network accesscodex exec: run Codex non-interactively in scripts and CI with JSON outputCodex skills: create SKILL.md, skill folder locations and $skill invocationGEMINI.md in Gemini CLI: context file locations, imports and /memoryGemini CLI MCP servers: gemini mcp add and mcpServers in settings.jsonGemini CLI custom slash commands: TOML files, {{args}}, !{shell} and @{file}Gemini CLI headless mode: gemini -p, JSON output and exit codes for scripts and CIGemini CLI sandbox: enable Docker, Podman, macOS Seatbelt or gVisorcopilot-setup-steps.yml: set up the GitHub Copilot cloudGitHub Copilot CLI permissions: --allow-tool, --deny-tool, --allow-all-tools and trusted directoriesGitHub Copilot custom agents: .github/agents/*.agent.md profiles, tools and frontmatterGitHub Copilot code review settings: automatic PR reviews, rulesets, effort level and approvalsOpenCode MCP Server Setup: Local and Remote Servers in opencode.jsonOpenCode Permissions: Allow, Ask or Deny Bash, Edit and WebfetchOpenCode Custom Agents and Subagents: Markdown Files, Modes and @ MentionsCline MCP Setup: cline_mcp_settings.json for Local and Remote ServersCline Auto Approve and YOLO Mode: Run Commands and Edits Without PromptsCline Skills: SKILL.md Location, Format and Slash Command UseAmp MCP Setup: amp mcp add, amp.mcpServers and Workspace ApprovalAmp AGENTS.md: File Locations, @ Mentions and Glob-Scoped GuidanceAmp Skills: SKILL.md Folders, amp skill add and Search OrderKiro MCP Setup: .kiro/settings/mcp.json, autoApprove and OAuthKiro Hooks: .kiro/hooks JSON, PreToolUse, PostFileSave and StopKiro Permissions: permissions.yaml Allow, Ask and Deny RulesFactory Droid MCP Setup: droid mcp add, mcp.json Locations and /mcpFactory Droid Hooks: hooks.json, PreToolUse Matchers and Exit CodesFactory Droid Custom Droids (Subagents): .factory/droids Markdown FilesJunie MCP Setup: .junie/mcp/mcp.json for CLI and /mcp CommandJunie Brave Mode and Action Allowlist: Auto-Approve Commands in Junie CLIJunie Custom Slash Commands: .junie/commands Markdown Files and Argumentsgoose .goosehints and AGENTS.md: Global and Project Instructionsgoose Permission Modes: GOOSE_MODE auto, approve, smart_approve and chatgoose Recipes: recipe.yaml Format, Parameters and goose run --recipeZed Agent Tool Permissions: Auto-Approve Terminal Commands with tool_permissionsUse Claude, Codex and Gemini CLI in Zed: External Agents and agent_serversZed with Ollama, LM Studio and llama.cpp: Local Model Setup and Context LengthMCP 2026-07-28 Migration Guide: Stateless Protocol, No Sessions, server/discover, MRTR, and SDK v2 UpgradeSubagents and Custom Agents Compared: Claude Code vs Codex vs Cursor vs Gemini CLI vs GitHub CopilotAllow all commands in any AI coding agent: Cursor, Claude Code, Codex, Gemini CLI, Copilot CLI and 7 moreAdd an MCP server to any AI coding agent: Claude Code, Cursor, Codex, Gemini CLI, VS Code and 8 moreSettings file locations for every AI coding agent: Claude Code, Cursor, Codex, Gemini CLI, OpenCode, Qwen Code, Amp and Factory DroidRules and instruction files in every AI coding agent: .cursor/rules, CLAUDE.md, AGENTS.md, GEMINI.md, Copilot instructions and moreGemini CLI hooks: settings.json, BeforeTool, AfterTool, exit codes and /hooksGitHub Copilot hooks: .github/hooks/*.json for Copilot CLI and the cloud agentHooks in every AI coding agent: Claude Code, Cursor, Gemini CLI, GitHub Copilot, Kiro and Factory DroidHow to deploy a remote MCP server (Streamable HTTP): Cloudflare Workers, Vercel, Railway and moreHeadless mode in every AI coding agent: claude -p, codex exec, gemini -p, Cursor agent -p and copilot -p for scripts and CIClaude Code sandbox: /sandbox, sandbox.enabled, allowedDomains, excludedCommands and strict modeSandbox modes in every AI coding agent: Claude Code, Cursor, Codex and Gemini CLI compared

Reviewed Oct 18, 2026. Settings change often; the linked vendor docs are the source of truth.