Skip to main content

AgentSkillIO

@a16njs/models


@a16njs/models / AgentSkillIO

Interface: AgentSkillIO

Defined in: types.ts:75

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:26

Unique identifier for this item

Inherited from

AgentCustomization.id


sourcePath

sourcePath: string

Defined in: types.ts:30

Original file path where this was discovered

Inherited from

AgentCustomization.sourcePath


content

content: string

Defined in: types.ts:32

The actual prompt/rule content

Inherited from

AgentCustomization.content


metadata

metadata: Record<string, unknown>

Defined in: types.ts:34

Tool-specific extras that don't fit the standard model

Inherited from

AgentCustomization.metadata


type

type: AgentSkillIO

Defined in: types.ts:76

The type of customization

Overrides

AgentCustomization.type


name

name: string

Defined in: types.ts:79

Skill name (from frontmatter or directory name)


description

description: string

Defined in: types.ts:82

Description for activation matching (required)


resources?

optional resources: string[]

Defined in: types.ts:85

Optional: Resource file paths relative to skill directory


disableModelInvocation?

optional disableModelInvocation: boolean

Defined in: types.ts:88

Optional: If true, only invoked via /name


files

files: Record<string, string>

Defined in: types.ts:94

Map of additional files in the skill directory. Key: relative path, Value: file content