Skip to main content

Universal open standard for AI agent skills โ€” write once, run anywhere

Project description

ai-skills banner

๐Ÿง  ai-skills

The universal open standard for AI agent skills โ€” write once, run anywhere.

License: MIT Spec Version PRs Welcome


The Problem

AI agent frameworks are exploding โ€” LangChain, AutoGen, CrewAI, Semantic Kernel, and dozens more. But skills (tools, functions, actions) built for one framework don't work in another. Every developer rewrites the same skills over and over, just in different formats.

This is the same problem the web solved with HTML. We need a common language for AI skills.

The Solution

ai-skills is an open specification + SDK that lets you:

  1. Write a skill once in a simple skill.yaml file
  2. Publish it to the public registry
  3. Export it to any framework automatically
skill.yaml  โ†’  LangChain tool
            โ†’  AutoGen skill  
            โ†’  CrewAI tool
            โ†’  Semantic Kernel function
            โ†’  Raw API call

How This Compares

Wondering how this compares to LangChain Tools, OpenAPI, MCP, or SKILL.md? Read our detailed breakdown: How ai-skills Compares.


Quick Start

Install the CLI

pip install ai-skills-sdk

Development install: If you want to contribute or run from source, clone the repo and install in editable mode:

git clone https://github.com/davyjones7321/AI-skills.git
cd AI-skills
pip install -e .

Create your first skill

aiskills init my-skill
cd my-skill

This creates a skill.yaml:

skill:
  id: my-skill
  version: 1.0.0
  name: My Skill
  description: What this skill does
  inputs:
    - name: input_text
      type: string
      required: true
  outputs:
    - name: result
      type: string
  execution:
    type: prompt
    prompt_template: "Do something with: {input_text}"

Validate and audit

# Check against the v0.1 schema specification
aiskills validate skill.yaml

# Run static security analysis (catch secrets & dangerous imports)
aiskills validate --audit skill.yaml

Export to your framework

aiskills export --target langchain    # โ†’ langchain_tool.py
aiskills export --target autogen      # โ†’ autogen_skill.py
aiskills export --target crewai       # โ†’ crewai_tool.py

Run a skill locally

# Dry-run: shows formatted prompt without calling any API
aiskills run skill.yaml --input '{"text": "hello"}'

# Run a code-type skill (no API key needed)
aiskills run examples/word-frequency/skill.yaml --input-file input.json

# Live execution: actually calls the LLM (requires OPENAI_API_KEY)
aiskills run skill.yaml --input-file input.json --execute

Publish to the registry

# Authenticate via GitHub OAuth (one-time)
aiskills login

# Preview what would be published (optional)
aiskills publish skill.yaml --dry-run

# Publish your skill to the registry
# Note: You can also publish via web upload or guided form at /publish
aiskills publish skill.yaml

Install a skill

# Optional: override the default hosted registry for this shell
export AISKILLS_REGISTRY_URL=https://ai-skills-sdk.onrender.com

# Download a published skill to your local workspace
aiskills install ai-skills-team/summarize-document

# Download and immediately auto-export it to LangChain!
aiskills install ai-skills-team/summarize-document --export langchain

Use the registry web app (MVP)

cd registry/frontend
npm install
npm run dev

Then open http://localhost:3000:

  • / โ€” marketing + discovery homepage with 12-card category grid
  • /skills โ€” browse/search with category filters and pagination
  • /skills/{author}/{id} โ€” full skill detail page
  • /publish โ€” interactive publishing studio (upload YAML or guided form)

Project Structure

ai-skills/
โ”œโ”€โ”€ README.md               โ† You are here
โ”œโ”€โ”€ CONTRIBUTING.md         โ† Contribution guidelines
โ”œโ”€โ”€ CODE_OF_CONDUCT.md      โ† Community standards
โ”œโ”€โ”€ .github/
โ”‚   โ”œโ”€โ”€ workflows/ci.yml    โ† CI: validate all skills on push/PR
โ”‚   โ”œโ”€โ”€ ISSUE_TEMPLATE/     โ† Bug, feature, new skill templates
โ”‚   โ””โ”€โ”€ pull_request_template.md
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ SPEC.md             โ† The official v0.1 specification
โ”‚   โ”œโ”€โ”€ SECURITY.md         โ† Security model and audit tools
โ”‚   โ””โ”€โ”€ COMPARISON.md       โ† How we compare to MCP/LangChain/etc
โ”œโ”€โ”€ examples/               โ† 19 complete, working example skills (prompt, code, tool_call, chain)
โ”‚   โ”œโ”€โ”€ summarize-document/
โ”‚   โ”œโ”€โ”€ generate-sql/ 
โ”‚   โ”œโ”€โ”€ markdown-to-html/
โ”‚   โ””โ”€โ”€ ... (16 more)
โ”œโ”€โ”€ sdk/
โ”‚   โ”œโ”€โ”€ cli.py              โ† Main CLI entry point
โ”‚   โ”œโ”€โ”€ validator.py        โ† Schema validation
โ”‚   โ”œโ”€โ”€ security.py         โ† Security auditing
โ”‚   โ”œโ”€โ”€ runner.py           โ† Skill execution engine (run command)
โ”‚   โ”œโ”€โ”€ auth_config.py      โ† Authentication management
โ”‚   โ””โ”€โ”€ exporters/          โ† Framework adapters
โ””โ”€โ”€ registry/
    โ”œโ”€โ”€ api/                โ† FastAPI Registry Backend Server
    โ”‚   โ”œโ”€โ”€ categories.py   โ† 12-category fixed taxonomy
    โ”‚   โ””โ”€โ”€ utils.py        โ† Shared utils like make_json_safe
    โ”œโ”€โ”€ frontend/           โ† Next.js registry web app (homepage, browse, detail, publish)
    โ”‚   โ”œโ”€โ”€ lib/skill-categories.ts  โ† Shared category constants
    โ”‚   โ”œโ”€โ”€ lib/publish-utils.ts     โ† Web publishing form utilities
    โ”‚   โ””โ”€โ”€ components/registry/publish-studio.tsx โ† Interactive publish studio
    โ””โ”€โ”€ index.json          โ† Prototype registry index

Skill Types

Type Description Example
prompt LLM prompt template Summarize, classify, translate
tool_call External API/function call Web search, database query
chain Multiple steps in sequence Research โ†’ summarize โ†’ format
code Execute a code snippet Data processing, calculations

Why ai-skills?

ai-skills LangChain AutoGen Semantic Kernel
Framework-agnostic โœ… โŒ โŒ โŒ
Open standard โœ… โŒ โŒ โŒ
Public registry โœ… โŒ โŒ โŒ
Built-in benchmarks โœ… โŒ โŒ โŒ
Skill portability โœ… โŒ โŒ โŒ

Contributing

We're in early days โ€” contributions, feedback, and ideas are very welcome.

  • ๐Ÿ“– Read the Specification
  • ๐Ÿ› ๏ธ Check out example skills
  • ๐Ÿ’ฌ Open an issue to discuss ideas
  • ๐Ÿ” Submit a PR

License

MIT โ€” free to use, modify, and distribute.


Session Update โ€” 2026-03-26

GitHub OAuth implementation for the registry was completed in this session across the backend, frontend, and CLI. The backend now uses signed JWTs with proper verification, GitHub OAuth state validation, frontend callback redirects, stateless logout, and user email plus last-login persistence. The frontend now includes /login, /auth/callback, an auth context/provider, and dynamic signed-in header state. The CLI aiskills login flow was updated to complete browser-based auth without manual token paste, and registry/api/.env.example was added with the required auth variables.

Session Update โ€” 2026-03-27

The hosted registry configuration was tightened up in this session. The backend GitHub OAuth callback URL is now built from BASE_URL, so production callbacks point back to the backend itself instead of the frontend. The API docs and example env file were updated with BASE_URL, the backend CORS allowlist now includes https://ai-skills-omega.vercel.app, and the CLI registry commands now honor AISKILLS_REGISTRY_URL with a default fallback of https://ai-skills-sdk.onrender.com.

Session Update โ€” 2026-03-27 (Production Hardening)

A comprehensive production audit was run and 10 issues were fixed: insecure default secrets removed (now required fields), debug defaults to False, CORS origins simplified to settings.frontend_url, OAuth state moved from in-memory dict to a persistent DB table (OAuthState), getattr removed from the code sandbox, deprecated @app.on_event("startup") replaced with modern lifespan, health check no longer exposes environment in production, duplicate DEFAULT_REGISTRY_URL import consolidated, and .env.example updated with all production variables.

Session Update โ€” 2026-03-28 (Standalone CLI)

The SDK is now published to PyPI as ai-skills-sdk. Users can install it directly with pip install ai-skills-sdk โ€” no repo clone required. All documentation across README.md, OVERVIEW.md, CONTRIBUTING.md, registry/README.md, registry/api/README.md, and docs/LAUNCH_POST.md has been updated to reflect this. The frontend publish page now shows the correct install steps and includes a clone notice for development contributors. The auth context bug (header not updating after OAuth callback) was also fixed.

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

ai_skills_sdk-0.2.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

ai_skills_sdk-0.2.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file ai_skills_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: ai_skills_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ai_skills_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b953ed14773932182bbdd083711f188ef4dbac7544a4f0fea853b3db615e0d56
MD5 cc61feda9ef0961e7977da14898c9660
BLAKE2b-256 0e68b826ff524de1954ab3d2c70f02fa5d30cc7305ace8de1f0ece12d05bba64

See more details on using hashes here.

File details

Details for the file ai_skills_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ai_skills_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ai_skills_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8362a0f4438b54001f5d66f64700bd738aefc7f1f32a5a54a5978efe874fdb6f
MD5 6b46797f4352da296ace0982ea4f06e1
BLAKE2b-256 53d00e90f28614535a6f4fef3cd242dd6b582f34a23e63cb98caa83687ec3963

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