Interface: SkillDefinition¶
Defined in: core/src/types/ast.ts:387
Typed representation of a skill in the
Skills¶
block.
Currently skills are stored as Record
Properties¶
agent?¶
optionalagent?:string
Defined in: core/src/types/ast.ts:405
Agent to use
allowedTools?¶
optionalallowedTools?:string[]
Defined in: core/src/types/ast.ts:399
Allowed tools
composedFrom?¶
optionalcomposedFrom?:ComposedPhase[]
Defined in: core/src/types/ast.ts:417
Metadata about composed phases (set by resolver, not by user)
content?¶
optionalcontent?:string|TextContent
Defined in: core/src/types/ast.ts:391
Skill content/instructions
context?¶
optionalcontext?:string
Defined in: core/src/types/ast.ts:403
Context mode
description¶
description:
string
Defined in: core/src/types/ast.ts:389
Skill description (required)
disableModelInvocation?¶
optionaldisableModelInvocation?:boolean
Defined in: core/src/types/ast.ts:401
Disable model invocation
examples?¶
optionalexamples?:Record\<string,ExampleDefinition>
Defined in: core/src/types/ast.ts:413
Structured examples for few-shot prompting
inputs?¶
optionalinputs?:Record\<string,SkillContractField>
Defined in: core/src/types/ast.ts:409
Runtime inputs the skill expects
outputs?¶
optionaloutputs?:Record\<string,SkillContractField>
Defined in: core/src/types/ast.ts:411
Outputs the skill produces
params?¶
optionalparams?:ParamDefinition[]
Defined in: core/src/types/ast.ts:393
Template parameters for parameterization
references?¶
optionalreferences?:string[]
Defined in: core/src/types/ast.ts:415
Reference files attached to skill context (paths resolved by resolver)
requires?¶
optionalrequires?:string[]
Defined in: core/src/types/ast.ts:407
Skills that must exist for this skill to work
trigger?¶
optionaltrigger?:string
Defined in: core/src/types/ast.ts:395
Trigger phrases
userInvocable?¶
optionaluserInvocable?:boolean
Defined in: core/src/types/ast.ts:397
Whether user can invoke directly