@agentforge/skills
v0.18.5
Published
Composable skill system for building modular TypeScript AI agents: author skills, register capabilities, and compose behaviors.
Downloads
1,802
Maintainers
Readme
@agentforge/skills
Composable skill system for building modular AI agents in TypeScript, part of the AgentForge framework.
Installation
npm install @agentforge/skills
# or
pnpm add @agentforge/skills
# or
yarn add @agentforge/skillsNote: Requires
@agentforge/coreas a peer dependency.
Overview
@agentforge/skills provides Agent Skill discovery, registration, access, and trust policy enforcement for AgentForge agents. Within Agent Skill access, Skill activation loads trusted instructions while resource access loads supporting files. It implements the Agent Skills Specification for composable, modular agent capabilities.
Full source code and API will be available after ST-07002 (Move Skills Source Files). See the AgentForge docs for usage guides and tutorials.
Agent Skill Access
Access Agent Skill instructions and supporting resources through the Tools bound
to a SkillRegistry:
import { SkillRegistry } from '@agentforge/skills';
const registry = new SkillRegistry({
enabled: true,
skillRoots: [{ path: '.agentskills', trust: 'workspace' }],
});
const [activateSkill, readSkillResource] = registry.toActivationTools();resolveResourcePath remains exported for compatibility, but it is deprecated
and planned for removal in the next major release. Use the
read-skill-resource Tool for Agent Skill resource access instead.
License
MIT — see LICENSE for details.
