Skip to main content

Universal AI Skill Manager for GitHub Copilot, Claude, Cursor

Project description

AgentSkill ๐Ÿ› ๏ธ

PyPI version Python 3.8+ License: MIT

Universal AI Skill Manager โ€” Create, manage, and share coding rules for AI assistants like GitHub Copilot, Claude Code, and Cursor.


๐ŸŽฏ What is AgentSkill?

AgentSkill is a CLI tool that helps you create and manage skills (coding rules and best practices) that AI coding assistants follow when helping you write code.

The Problem

  • You want AI to follow your coding standards consistently
  • You have to repeat the same instructions in every project
  • Different AI tools (Copilot, Claude, Cursor) need different file formats
  • Sharing coding standards with your team is difficult

The Solution

AgentSkill lets you:

  • โœ… Create skills once, use everywhere
  • โœ… Install skills in any project with one command
  • โœ… Auto-detect and support multiple AI tools
  • โœ… Share skills with your team via export/import
  • โœ… Update skills across all projects instantly

๐Ÿš€ Installation

pip install agentskill-cli

After installation, both agentskill and ask (short) commands are available.


๐Ÿ“– Use Cases

1. Enforce Coding Standards

Create a skill to enforce your team's coding standards:

agentskill create python-standards -l python

Edit the skill to add your rules:

## Python Standards
- Use type hints for all function parameters and return values
- Use `pathlib` instead of `os.path`
- Prefer f-strings over .format()
- All functions must have docstrings
- Maximum line length: 88 characters (Black formatter)

2. Framework-Specific Rules

Create skills for specific frameworks with built-in templates:

# React component rules
agentskill create react-rules -l javascript -f react

# Django API rules  
agentskill create django-api -l python -f django

# Flutter widget rules
agentskill create flutter-app -l dart -f flutter

3. Project-Specific Instructions

Create skills for specific project requirements:

agentskill create myproject-rules

Add project-specific rules:

## MyProject Rules
- Use PostgreSQL for all database operations
- All API endpoints must be versioned (/api/v1/...)
- Use Redis for caching
- JWT tokens for authentication
- Follow company naming conventions

4. Team Collaboration

Share skills across your team:

# Export skill
agentskill export react-rules
# Creates: react-rules.skill.zip

# Team member imports
agentskill import react-rules.skill.zip

5. Multi-Project Consistency

Install the same skill in multiple projects:

cd ~/project-1
agentskill install python-standards

cd ~/project-2  
agentskill install python-standards

cd ~/project-3
agentskill install python-standards

Update skill once, sync everywhere:

agentskill edit python-standards  # Make changes
agentskill update python-standards  # Sync to all projects

๐Ÿ“‹ Quick Start

Step 1: Create a Skill

agentskill create my-rules -l python -f django

Step 2: Edit the Skill (optional)

agentskill edit my-rules

Step 3: Install in Your Project

cd /path/to/your/project
agentskill install my-rules

Step 4: Done!

AI assistants will now follow your rules when working in this project.


๐Ÿ”ง Commands

Command Short Description
agentskill create <name> ask create Create new skill
agentskill install <name> ask install Install skill in current project
agentskill list ask list Show all skills
agentskill show <name> ask show View skill details
agentskill edit <name> ask edit Open skill in editor
agentskill update <name> ask update Sync skill to all projects
agentskill delete <name> ask delete Remove skill
agentskill export <name> ask export Export skill as zip
agentskill import <zip> ask import Import skill from zip
agentskill init ask init Create AI folders in project
agentskill where ask where Show skills storage location

๐ŸŽจ Creating Skills

Basic Skill

agentskill create my-rules

With Language & Framework Templates

# Python + Django
agentskill create django-api -l python -f django

# JavaScript + React
agentskill create react-component -l javascript -f react

# TypeScript + Next.js
agentskill create nextjs-app -l javascript -f nextjs

# Dart + Flutter
agentskill create flutter-widget -l dart -f flutter

# Go + Gin
agentskill create go-api -l go -f gin

# Rust + Actix
agentskill create rust-api -l rust -f actix

Supported Templates

Language Frameworks
Python django, fastapi, flask
JavaScript/TypeScript react, nextjs, node
Dart flutter
Go gin, fiber
Rust actix, axum

๐Ÿ“ Skill Structure

my-skill/
โ”œโ”€โ”€ SKILL.md          # Main instructions (loaded by AI)
โ”œโ”€โ”€ skill.yaml        # Metadata (language, framework, version)
โ”œโ”€โ”€ instructions.md   # Legacy format for compatibility
โ”œโ”€โ”€ scripts/          # Helper scripts
โ”œโ”€โ”€ references/       # Additional documentation
โ”‚   โ””โ”€โ”€ examples.md   # Code examples
โ””โ”€โ”€ assets/           # Templates, boilerplate code

SKILL.md Format

---
name: my-skill
description: 'Rules for Python Django development'
---

# My Skill

## When to Use
- Working on Django projects
- Building REST APIs

## Rules
- Use class-based views for complex logic
- Always use Django ORM
- Keep business logic in services

## Examples
Check `./references/examples.md` for code examples.

๐Ÿ”Œ Supported AI Tools

Tool Folder Auto-Detected
GitHub Copilot .github/skills/ โœ…
Claude Code .claude/skills/ โœ…
Cursor .cursor/skills/ โœ…

Install for Specific Tool

# GitHub Copilot only
agentskill install my-skill -t copilot

# Claude only
agentskill install my-skill -t claude

# Cursor only
agentskill install my-skill -t cursor

# All tools
agentskill install my-skill -t all

๐Ÿ—๏ธ How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        AgentSkill Flow                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                 โ”‚
โ”‚  1. CREATE                    2. STORE                          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”               โ”‚
โ”‚  โ”‚ agentskill      โ”‚         โ”‚ ~/.agentskill/  โ”‚               โ”‚
โ”‚  โ”‚ create my-skill โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚   skills/       โ”‚               โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ”‚     my-skill/   โ”‚               โ”‚
โ”‚                              โ”‚       SKILL.md  โ”‚               โ”‚
โ”‚                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚
โ”‚                                      โ”‚                          โ”‚
โ”‚  3. INSTALL                          โ”‚                          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                 โ”‚                          โ”‚
โ”‚  โ”‚ agentskill      โ”‚                 โ–ผ                          โ”‚
โ”‚  โ”‚ install my-skillโ”‚         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”               โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ”‚ your-project/   โ”‚               โ”‚
โ”‚                              โ”‚   .github/      โ”‚               โ”‚
โ”‚         COPY โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถโ”‚     skills/     โ”‚               โ”‚
โ”‚                              โ”‚       my-skill/ โ”‚               โ”‚
โ”‚                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚
โ”‚                                      โ”‚                          โ”‚
โ”‚  4. AI READS                         โ–ผ                          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”               โ”‚
โ”‚  โ”‚ GitHub Copilot  โ”‚โ—€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚ Follows your    โ”‚               โ”‚
โ”‚  โ”‚ Claude Code     โ”‚         โ”‚ coding rules!   โ”‚               โ”‚
โ”‚  โ”‚ Cursor          โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                            โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ก Tips & Best Practices

Writing Effective Skills

  1. Be Specific: Use clear, actionable rules
  2. Add Examples: Include code examples in references/examples.md
  3. Keep It Focused: One skill per domain/framework
  4. Use Trigger Words: AI finds skills by matching keywords in descriptions

Skill Organization

# Recommended skill structure
agentskill create company-standards     # General company rules
agentskill create python-backend        # Python backend rules
agentskill create react-frontend        # React frontend rules
agentskill create api-design            # API design rules

Team Workflow

# 1. Create shared skills repository
mkdir team-skills && cd team-skills
git init

# 2. Export skills
agentskill export python-standards
agentskill export react-rules

# 3. Commit and push
git add .
git commit -m "Add team skills"
git push

# 4. Team members import
git clone <repo>
agentskill import python-standards.skill.zip
agentskill import react-rules.skill.zip

๐Ÿ”„ Updating Skills

Edit and Update

# Edit the skill
agentskill edit my-skill

# Update in all projects where it's installed
agentskill update my-skill

Version Tracking

Skills have version numbers in skill.yaml:

name: my-skill
version: 1.0

๐Ÿ—‘๏ธ Managing Skills

Delete a Skill

agentskill delete my-skill

# Force delete (no confirmation)
agentskill delete my-skill -f

View Storage Location

agentskill where
# Output: ~/.agentskill/skills/

๐Ÿ“ฆ Sharing Skills

Export

agentskill export my-skill
# Creates: my-skill.skill.zip

Import

agentskill import my-skill.skill.zip

๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ™ Acknowledgments

  • Inspired by the need for consistent AI-assisted coding
  • Built with Typer for the CLI
  • Supports GitHub Copilot, Claude Code, and Cursor

๐Ÿ“ง Author

  • Parth Kher

Made with โค๏ธ for developers who want AI to follow their rules.

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

agentskill_cli-1.0.1.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

agentskill_cli-1.0.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file agentskill_cli-1.0.1.tar.gz.

File metadata

  • Download URL: agentskill_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for agentskill_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 60221d0610bf532198a4edd08b542e443d78f4be3966d0403deef647a8e1d196
MD5 70accb2a01aa3c6e8749e0cd5997e3cd
BLAKE2b-256 545816e7f94ea025f7e8b09d4059379b861b6307bb340c759c6bc660ccfb7962

See more details on using hashes here.

File details

Details for the file agentskill_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: agentskill_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for agentskill_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82ec8c6d260d44ca3d2bd09dc76cdf4f2da126f3ed19fc8d76da7e63eb18cfaf
MD5 14cbddf7a957602e4e69c422d7421c2f
BLAKE2b-256 a0eb0c5700b67a4246bb59c4dcc2e9cdddd5246eb3b94db46c6fad0f96366d5c

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