Skip to main content

Devtool for creating, testing, and distributing Anthropic Agent Skills with lifecycle management and Skill ABI

Project description

Sutras

Devtool for Anthropic Agent Skills with lifecycle management.

Sutras Architecture

Sutras is a CLI tool and library for creating, validating, and managing Anthropic Agent Skills. It provides scaffolding, validation, and a standardized Skill ABI for better skill organization and quality.

PyPI - Version PyPI Downloads PyPI - Status Open Source maintenance-status License: MIT

Key Features

  • Scaffold: Generate skills with proper structure and best-practice templates
  • Validate: Check skill format, metadata, and quality standards
  • Discover: List and inspect available skills in your workspace
  • Manage: Organize skills with versioning and metadata

Why Sutras?

Creating Anthropic Skills manually requires:

  • Writing SKILL.md files with correct YAML frontmatter
  • Managing metadata and descriptions
  • Ensuring consistent structure
  • Validating format and quality

Sutras automates this with simple CLI commands.

Installation

pip install sutras

Or with uv:

uv pip install sutras

Quick Start

Create a New Skill

sutras new my-skill --description "What this skill does and when to use it"

This creates:

.claude/skills/my-skill/
├── SKILL.md           # Skill definition with YAML frontmatter
├── sutras.yaml        # Metadata (version, author, tests, etc.)
└── examples.md        # Usage examples

List Skills

sutras list

View Skill Details

sutras info my-skill

Validate a Skill

sutras validate my-skill

# Strict mode (warnings become errors)
sutras validate my-skill --strict

CLI Reference

# Create a new skill
sutras new <name> [--description TEXT] [--author TEXT] [--global]

# List skills
sutras list [--local/--no-local] [--global/--no-global]

# Show skill details
sutras info <name>

# Validate skill
sutras validate <name> [--strict]

Coming Soon

  • sutras test - Run skill tests
  • sutras eval - Evaluate with metrics
  • sutras build - Package for distribution
  • sutras publish - Share to registry

Skill Structure

Every skill contains:

SKILL.md (required)

Standard Anthropic Skills format with YAML frontmatter:

---
name: my-skill
description: What it does and when Claude should use it
allowed-tools: Read, Write  # Optional
---

# My Skill

Instructions for Claude on how to use this skill...

sutras.yaml (recommended)

Extended metadata for lifecycle management:

version: "1.0.0"
author: "Your Name"
license: "MIT"

capabilities:
  tools: [Read, Write]

distribution:
  tags: ["automation", "pdf"]
  category: "document-processing"

Supporting Files (optional)

  • examples.md - Usage examples
  • Additional resources as needed

Skill Locations

Skills are stored in:

  • Project: .claude/skills/ (shared via git)
  • Global: ~/.claude/skills/ (personal only)

Use --global flag with sutras new to create global skills.

Library Usage

from sutras import SkillLoader

loader = SkillLoader()
skills = loader.discover()           # Find all skills
skill = loader.load("my-skill")      # Load specific skill

print(skill.name)
print(skill.description)
print(skill.version)

Examples

See examples/skills/ for sample skills demonstrating best practices.

Contributing

Contributions welcome! See CONTRIBUTING.md for:

  • Development setup
  • Code style guidelines
  • Testing requirements
  • PR process

License

MIT License - see LICENSE

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

sutras-0.1.2.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

sutras-0.1.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file sutras-0.1.2.tar.gz.

File metadata

  • Download URL: sutras-0.1.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for sutras-0.1.2.tar.gz
Algorithm Hash digest
SHA256 151e32dd0ce81307064373a91641a6b84f0eabfb79760c74581a3393410c6b2c
MD5 5ae297de8d6df40a8eeba76110768500
BLAKE2b-256 8b74508e3c89155ebf22965012865c2c3584b912dd7ef40826b3a7551d028a41

See more details on using hashes here.

File details

Details for the file sutras-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sutras-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for sutras-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f07f917abddca6f37b83df66de37b5c593a24854fe6e330ee53454964cf97ee
MD5 eb3dec2b72900a51ffcb9bada62dc279
BLAKE2b-256 a8b06d5e24539aae601be294ceecc65958a9cd7be5f6b4cb2ad8561e4778b799

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