AgentSkillIO
@a16njs/models / AgentSkillIO
Interface: AgentSkillIO
Defined in: types.ts:86
Full AgentSkills.io standard skill. Supports multiple resource files in the skill directory.
NOTE: Hooks are NOT part of AgentSkills.io and are not supported. Skills with hooks should be skipped during discovery with a warning.
Use this type for skills that include:
- Resource files (checklists, configs, scripts)
- Multiple files in a skill directory
Extends
Properties
id
id:
string
Defined in: types.ts:31
Unique identifier for this item
Inherited from
version
version:
string
Defined in: types.ts:35
IR version (required, e.g., 'v1beta1')
Inherited from
sourcePath?
optionalsourcePath:string
Defined in: types.ts:37
Original file path where this was discovered (optional, omitted in IR format)
Inherited from
relativeDir?
optionalrelativeDir:string
Defined in: types.ts:39
Relative directory path for preserving directory structure (optional)
Inherited from
AgentCustomization.relativeDir
content
content:
string
Defined in: types.ts:41
The actual prompt/rule content
Inherited from
metadata
metadata:
Record<string,unknown>
Defined in: types.ts:43
Tool-specific extras that don't fit the standard model (transient, not serialized in IR)
Inherited from
type
type:
AgentSkillIO
Defined in: types.ts:87
The type of customization
Overrides
name
name:
string
Defined in: types.ts:90
Skill name (from frontmatter or directory name)
description
description:
string
Defined in: types.ts:93
Description for activation matching (required)
resources?
optionalresources:string[]
Defined in: types.ts:96
Optional: Resource file paths relative to skill directory
disableModelInvocation?
optionaldisableModelInvocation:boolean
Defined in: types.ts:99
Optional: If true, only invoked via /name
files
files:
Record<string,string>
Defined in: types.ts:105
Map of additional files in the skill directory. Key: relative path, Value: file content