A minimal implementation of agent skills - a lightweight, open format for extending AI agents with specialized capabilities.
Written by Aman, Claude, and Cursor
Agent skills are markdown files (SKILL.md) that give AI agents specialized knowledge and workflows. Each skill contains:
- YAML frontmatter: Name, description, metadata
- Markdown instructions: Detailed guidelines for the agent
When a user's task matches a skill, the agent automatically activates it to provide expert assistance.
# Install
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Configure
cp .env.example .env
# Add your OPENAI_API_KEY to .env
# Run
python -m agent.chatOr use the run script:
./run.sh- code-review: Reviews code for bugs, security issues, and best practices
- git-helper: Git workflows, commit messages, and troubleshooting
- file-organizer: Intelligent file organization strategies
- api-tester: Makes actual HTTP requests to APIs and analyzes responses (GET, POST, PUT, PATCH, DELETE)
- Discovery: Scans
skills/directory forSKILL.mdfiles - Loading: Parses YAML frontmatter (name, description)
- Activation: When user's task matches, loads full skill instructions
- Execution: Agent follows skill guidelines to complete task
mkdir -p skills/my-skillCreate skills/my-skill/SKILL.md:
---
name: my-skill
description: What this skill does
version: 1.0.0
---
# My Skill
You are an expert at [skill domain].
## Guidelines
1. Step one
2. Step two
3. Step three
## Examples
Show examples of using this skill effectively.That's it! The skill will be automatically discovered.
agent-skills/
├── agent/
│ ├── skills_manager.py # Skill discovery & loading
│ ├── llm_client.py # OpenAI client
│ ├── chat.py # Terminal interface
│ └── code_executor.py # Code execution for skills
├── skills/ # Skills directory
│ ├── code-review/
│ ├── git-helper/
│ ├── file-organizer/
│ └── api-tester/
├── requirements.txt
└── run.sh
- AgentSkills.io - Official standard and documentation
- Claude Skills - Anthropic's skill examples
Tutorial: Building Agent Skills from Scratch - Detailed guide on how this implementation works
Repository: github.com/onlyoneaman/agent-skills
MIT