npm.io
0.18.12 • Published yesterday

@agentforge/skills

Licence
MIT
Version
0.18.12
Deps
3
Size
276 kB
Vulns
0
Weekly
0
Stars
2

@agentforge/skills

Composable skill system for building modular AI agents in TypeScript, part of the AgentForge framework.

npm version TypeScript License

Installation

npm install @agentforge/skills
# or
pnpm add @agentforge/skills
# or
yarn add @agentforge/skills

Note: Requires @agentforge/core as 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.

Keywords