MaxCarlson avatar

agent-skills

Manage and discover skills for AI coding assistants. Register skills, sync to CLIs, scan for candida

作者 MaxCarlson|オープンソース
<!-- version: 0.1.0 -->

Agent Skills

Universal skill manager for AI coding assistants (Codex CLI, Claude Code, Cursor, Gemini CLI).

Includes reference documentation from upstream specs to help AI agents discover and create skills.

Installation

pip install -e /path/to/agent_skills

Quick Start

# Scan for skills in your projects
skills scan ~/scripts/modules

# Auto-register any found skills
skills auto ~/scripts/modules --sync

# List what's registered
skills list

# Sync to all CLIs
skills sync

How It Works

  1. Central directory: Skills registered at ~/.local/share/agent-skills/
  2. Symlinks: Each skill is a symlink to the actual project
  3. CLI sync: Creates symlinks in each CLI's skill directory
  4. SKILL.md: Standard format all CLIs understand

CLI Reference

CommandDescription
skills listList registered skills
skills add <path>Add skill from directory with SKILL.md
skills remove <name>Remove a skill
skills sync [cli]Sync to CLI directories
skills scan <path>Find SKILL.md files
skills auto <path>Auto-register found skills
skills info <name>Show skill details

Supported CLIs

  • Codex CLI: ~/.codex/skills/
  • Claude Code: ~/.claude/skills/
  • Cursor: ~/.cursor/skills/

What Makes a Good Skill?

When scanning a codebase, look for modules that:

CriteriaWhy It Matters
Has a CLI interfaceAI can invoke it directly
Solves a specific problemFocused purpose = better skill
Works standaloneNo complex dependencies
Fills a gapDoes something AI can't do natively

Good Candidates

  • CLI tools with argparse/click entry points
  • Wrappers around external tools (ffmpeg, yt-dlp)
  • API clients for services AI can't access
  • Local/network tools (accessing LAN URLs)

Weak Candidates

  • Pure libraries with no CLI
  • UI-only code
  • Simple utility functions

Creating Skills

Any project can become a skill by adding SKILL.md:

---
name: my-tool
description: Short description
metadata:
  version: 1.0.0
compatibility:
  - codex-cli
  - claude-code
---

# My Tool

Instructions for AI assistants...

## Commands

\`\`\`bash
my-tool --help
my-tool do-something --flag value
\`\`\`

## When to Use

- Use when: <scenarios>
- Do not use when: <anti-patterns>

SKILL.md vs AGENTS.md

SKILL.mdAGENTS.md
PurposeDefine a capabilityDefine agent behavior
ScopePer-module/toolPer-repo or global
LoadingOn-demandAlways in context

Reference Documentation

This module includes upstream specs as git submodules:

Directory Structure

agent_skills/
├── agent_skills/       # Python module (CLI + discovery)
├── refs/
│   ├── agentskills/    # Anthropic spec (submodule)
│   └── openai-skills/  # OpenAI catalog (submodule)
├── docs/               # Usage guides
├── tests/              # Pytest tests
├── AGENTS.md           # Instructions for AI agents
├── SKILL.md            # This module as a skill
└── README.md           # This file

License

MIT