LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsSkills

Skills

Skills are reusable, modular capabilities that can be loaded into deep agents. They allow you to extend agent functionality in a composable way, similar to plugins.

Learn more: For creating and using skills, see the Skills documentation.

Overview

Skills provide a way to:

  • Package reusable capabilities that can be shared across agents
  • Extend agent functionality without modifying core agent code
  • Organize specialized tools and behaviors into cohesive units

Listing Available Skills

import { listSkills } from "deepagents";

const skills = await listSkills({
  directory: "./skills",
});

for (const skill of skills) {
  console.log(`${skill.name}: ${skill.description}`);
}

Loading Skills into an Agent

import { createDeepAgent, createSkillsMiddleware } from "deepagents";

const agent = createDeepAgent({
  middleware: [
    createSkillsMiddleware({
      skillsDirectory: "./skills",
    }),
  ],
});

API Reference

Functions

Function

listSkills

List skills from user and/or project directories.

Function

parseSkillMetadata

Parse YAML frontmatter from a SKILL.md file per Agent Skills spec.

Function

createSkillsMiddleware

Create backend-agnostic middleware for loading and exposing agent skills.

Interfaces

Interface

ListSkillsOptions

Options for listing skills.

Interface

SkillMetadata

Metadata for a skill per Agent Skills specification.

Interface

LoaderSkillMetadata

Metadata for a skill per Agent Skills spec.

Interface

SkillsMiddlewareOptions

Options for the skills middleware.