Skip to main content

Langchain adapters to support skills in your agent

Project description

Langchain Skills Adapters

Langchain adapters to support skills in your agent.

Features

Installation

uv:

uv add langchain-skills-adapters

pip:

pip install langchain-skills-adapters

Skills Format

Skills must follow the Anthropic Open Standard for Skills. This includes having frontmatter with at minimum the name and skill description.

---
name: My Skill
description: This is my skill
---

# My Skill

Skill content

The skill directory must be in the following format to be loaded correctly:

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

Usage

As a Tool

from langchain.agents import create_agent
from langchain_community.tools.file_management.read import ReadFileTool

from langchain_skills_adapters import SkillsTool

# Create the SkillsTool pointed to your skills directory
skills_dir = "examples/skills"
skills_tool = SkillsTool(skills_dir)
print(skills_tool.description)

# Optional: Add a file reading tool. Recommended if your agent needs to read resources from your skill directory (scripts, assets, etc.)
read_file_tool = ReadFileTool(root_dir=skills_dir)

# Create the agent
tools = [skills_tool, read_file_tool]
agent = create_agent("openai:gpt-5", tools=tools)
response = agent.invoke(input={"messages": {"role": "user", "content": "What skills do you have?"}})
print(response)

As Middleware

COMING SOON

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

langchain_skills_adapters-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

langchain_skills_adapters-0.1.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file langchain_skills_adapters-0.1.1.tar.gz.

File metadata

File hashes

Hashes for langchain_skills_adapters-0.1.1.tar.gz
Algorithm Hash digest
SHA256 89eff53649bc69817afbbe27b7bc890f7df57b17521074c99041f83095afb6db
MD5 2490b431669a1c0b6a8b799fcd6b8bc0
BLAKE2b-256 2ed586937d1957e6712879b8b771c0b91a1b936549e94cff701e8320d8f7d8ad

See more details on using hashes here.

File details

Details for the file langchain_skills_adapters-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_skills_adapters-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44e37e1bc1140b71f3c94eb20ddbcfec3a4f5d496f55eff948cb5064cc190e6f
MD5 79f9f95c76f35131e0590232ca89612c
BLAKE2b-256 33e366ff7001e30cf02bc68ef83581822906bd60b311202daf11162cf7a80bc3

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