Skip to main content

A CLI tool for managing skills.

Project description

skills-cli

A CLI tool for managing Agent Skills - the open format for giving AI agents new capabilities.

Installation

I recommend installing globally with uv as a tool, which will make it available across your system.

uv tool install skills-cli

What are Agent Skills?

Agent Skills are folders containing a SKILL.md file with instructions, scripts, and resources that agents can discover and use. They allow you to package domain expertise into reusable capabilities for AI agents.

A skill directory looks like:

my-skill/
├── SKILL.md          # Required: instructions + metadata
├── scripts/          # Optional: executable code
├── references/       # Optional: documentation
└── assets/           # Optional: templates, resources

The SKILL.md file must contain YAML frontmatter with at least name and description:

---
name: my-skill
description: What this skill does and when to use it.
---

# My Skill

Instructions for the agent...

Commands

skills create

Create a new skill scaffold with the required structure.

skills create my-skill
skills create my-skill --path /path/to/directory

This creates:

  • SKILL.md with template frontmatter
  • scripts/, references/, and assets/ directories

skills validate

Validate a skill directory against the Agent Skills specification.

skills validate ./my-skill
skills validate ./my-skill/SKILL.md  # Also accepts SKILL.md directly

Checks for:

  • Valid YAML frontmatter
  • Required fields (name, description)
  • Name format (lowercase, hyphens only, no consecutive hyphens)
  • Name matches directory name
  • No unexpected frontmatter fields
  • Field length limits

skills read-properties

Read skill properties and output as JSON.

skills read-properties ./my-skill

Output:

{
  "name": "my-skill",
  "description": "What this skill does.",
  "license": "MIT",
  "metadata": {
    "author": "example"
  }
}

skills to-prompt

Generate available skills block for agent system prompts. Supports XML (default), YAML, and JSON formats.

skills to-prompt ./skill-a ./skill-b
skills to-prompt ./skill-a --format yaml
skills to-prompt ./skill-a -f json

XML output (default):

<available_skills>
<skill>
<name>
skill-a
</name>
<description>
Description of skill A.
</description>
<location>
/path/to/skill-a/SKILL.md
</location>
</skill>
</available_skills>

YAML output:

available_skills:
- name: skill-a
  description: Description of skill A.
  location: /path/to/skill-a/SKILL.md

JSON output:

{
  "available_skills": [
    {
      "name": "skill-a",
      "description": "Description of skill A.",
      "location": "/path/to/skill-a/SKILL.md"
    }
  ]
}

skills install

Install skills from a local directory, zip file, or GitHub repository.

# From local directory
skills install ./my-skill

# From zip file
skills install ./my-skill.zip

# From GitHub (whole repo)
skills install https://github.com/anthropics/skills

# From GitHub (specific path in repo)
skills install https://github.com/owner/repo/tree/main/skills/my-skill
skills install https://github.com/owner/repo --subpath skills/my-skill

# Specify destination (default: ~/.claude/skills or ~/.codex/skills)
skills install ./my-skill --dest ./local-skills

The install command:

  • Validates skills before installing
  • Searches up to 2 levels deep for skills in directories/repos
  • Overwrites existing skills with the same name

skills list

List installed skills.

skills list
skills list --path ./my-skills-dir

Output:

/Users/you/.claude/skills:
  my-skill: Description of my skill...
  another-skill: Another skill description...

skills zip

Package a skill into a zip file for distribution.

skills zip ./my-skill
skills zip ./my-skill --output ./dist/my-skill.zip

skills push

Upload a skill to your Anthropic account via the API.

# Requires ANTHROPIC_API_KEY environment variable
export ANTHROPIC_API_KEY=sk-ant-...

skills push ./my-skill
skills push ./my-skill --update  # Update existing skill

Skill Name Requirements

Skill names must:

  • Be lowercase
  • Contain only letters, numbers, and hyphens
  • Not start or end with a hyphen
  • Not contain consecutive hyphens (--)
  • Be 64 characters or less
  • Match the directory name

Valid: my-skill, data-analysis, pdf-reader Invalid: My-Skill, -skill, skill-, my--skill

Default Skill Directories

The CLI looks for installed skills in these locations (in order):

  1. ~/.claude/skills
  2. ~/.codex/skills

Environment Variables

Variable Description
ANTHROPIC_API_KEY Required for push command
ANTHROPIC_API_URL API base URL (default: https://api.anthropic.com)

Running Tests

uv run python tests/test_skills.py

License

MIT

Attribution

Validation and prompt generation logic adapted from skills-ref, licensed under Apache 2.0. Copyright Anthropic, PBC.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skills_cli-0.1.3.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skills_cli-0.1.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file skills_cli-0.1.3.tar.gz.

File metadata

  • Download URL: skills_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for skills_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ed2018162fe0af1e9948d47292cf24da6eb54da68c0295807c6828e9dc3cbbaf
MD5 b6b79c1af95a7bd77820b34d051c57f5
BLAKE2b-256 5fa821695b7d68f2bd118cc596251578528517e8bcab9ab6da55d3f21df378ac

See more details on using hashes here.

File details

Details for the file skills_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: skills_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for skills_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 30f8c6223a830c33ca23db70f52f6c66a2f54447700558dfb8559cd4348d19e9
MD5 9a3f2711aa66165d1c25b63204835ab4
BLAKE2b-256 cc2d533f7f532668f0a303a53fdd639c61102a01c70d8729fb01c16812c1f97b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page