Skip to content

Understanding AI Agent Skills

AI coding agents are great at writing code, but they don’t always know your specific workflows or best practices. This is where Skills come in.

Think of a “Skill” as a plug-and-play recipe. It tells your agent exactly how to do a specific task—like running a security audit, formatting docs, or deploying infrastructure—so it gets it right every single time.

Most tools use a straightforward folder structure for skills:

  • A SKILL.md file: This is the core instruction file containing metadata (YAML frontmatter) and the exact markdown instructions for the AI.
  • Helper Scripts/Examples: Any extra files the agent might need to run the skill.

Instead of overwhelming the agent by loading every skill at once, it only pulls in the instructions it actually needs based on what you’re asking it to do.


Skills are quickly becoming the standard way to customize agents. Here’s a quick look at how a few popular tools handle them:

Directory: .cursor/rules/

Cursor rules and skills function by giving the AI precise, project-specific contexts. When you trigger a specific action or work in a designated folder, Cursor can read specialized instruction sets to guide its completions and multi-file edits.

Directory: .agent/skills/

Google’s internal agentic coding assistant, Antigravity, uses a robust skill ecosystem. Skills extend the agent’s capabilities for highly specialized tasks. Antigravity dynamically reads the SKILL.md file to understand the task logic and executes the contained instructions flawlessly within the workspace.

Directory: .opencode/skills/

OpenCode utilizes “Agent Skills” to standardize repetitive workflows. As an open-source terminal agent, you can easily share skill directories with your team. When OpenCode initializes in a project (via /init), it actively identifies relevant skills, allowing you to trigger complex builds, tests, or code audits with a simple command.

Directory: .claude/skills/

Claude Code natively supports integrating with standard skill registries. It allows you to invoke specific workflows directly into its terminal context securely. Using Claude Code, you can trigger specific skills to orchestrate CI/CD pipelines, generate boilerplate UI components, and audit systems without leaving your shell.

Directory: Defined via URL

The Google AI Edge Gallery (powered by Gemma 4) brings the concept of AI skills to mobile devices. Instead of local files, skills are often loaded via URL from GitHub repositories. These skills allow Gemma 4 to perform actions like hardware interaction, web requests, and visualization within the mobile app’s sandbox.


How to Add or Create a Skill (Step-by-Step)

Section titled “How to Add or Create a Skill (Step-by-Step)”

While the exact setup varies slightly depending on your tool, creating a skill usually follows these three basic steps:

Navigate to your project’s target configuration folder (usually .agent/skills/ or a similar directory structure) and create a designated folder for your skill.

Terminal window
mkdir -p .agent/skills/security-audit

Within your new folder, create the primary instruction file. This serves as the core “brain” and entry-point for the skill.

Terminal window
touch .agent/skills/security-audit/SKILL.md

Step 3: Write the Instructions & Frontmatter

Section titled “Step 3: Write the Instructions & Frontmatter”

Open SKILL.md and define the skill’s capabilities using YAML frontmatter, followed by the explicit markdown instructions you want the agent to logically follow.

---
name: Security Audit Helper
description: Audits the current project directory for hardcoded secrets and structural vulnerabilities.
---
When the user asks you to perform a security audit, follow these exhaustive instructions:
1. Run a generic recursive search for .env patterns.
2. Flag any hardcoded API keys found in src/ files.
3. Review package.json for outdated or insecure dependencies.

Once saved, your agent will dynamically read this file whenever you trigger the skill, allowing it to execute complex logic tailored strictly to your project.


The ecosystem for sharing AI skills is rapidly growing. Here are the best places to explore and install skills for your agents:

  • skills.sh: An open-source platform acting as a central registry and marketplace for agent skills. It functions much like npm, allowing developers to install portable AI capabilities that work across multiple agents (Claude Code, OpenCode, Cursor, etc.).
  • Claude Skills: Anthropic’s official hub for Claude-specific skills. These are plug-and-play workflows that Claude can apply automatically across your chats and Projects to ensure it adheres to your preferred methodologies.

I maintain collections of specific skills I use in my daily workflows. You can check them out, fork them, and modify them for your own agents here: