SkillDefinition
Defined in: core/src/types/ast.ts:766
Typed representation of a skill in the
Skills
block.
Currently skills are stored as Record<string, Value> in ObjectContent. This interface provides typed access for skill-specific properties.
Properties
agent?
optionalagent?:string
Defined in: core/src/types/ast.ts:784
Agent to use
allowedTools?
optionalallowedTools?:string[]
Defined in: core/src/types/ast.ts:778
Allowed tools
composedFrom?
optionalcomposedFrom?:ComposedPhase[]
Defined in: core/src/types/ast.ts:796
Metadata about composed phases (set by resolver, not by user)
content?
optionalcontent?:string|TextContent
Defined in: core/src/types/ast.ts:770
Skill content/instructions
context?
optionalcontext?:string
Defined in: core/src/types/ast.ts:782
Context mode
description
description:
string
Defined in: core/src/types/ast.ts:768
Skill description (required)
disableModelInvocation?
optionaldisableModelInvocation?:boolean
Defined in: core/src/types/ast.ts:780
Disable model invocation
examples?
optionalexamples?:Record<string,ExampleDefinition>
Defined in: core/src/types/ast.ts:792
Structured examples for few-shot prompting
inputs?
optionalinputs?:Record<string,SkillContractField>
Defined in: core/src/types/ast.ts:788
Runtime inputs the skill expects
outputs?
optionaloutputs?:Record<string,SkillContractField>
Defined in: core/src/types/ast.ts:790
Outputs the skill produces
params?
optionalparams?:ParamDefinition[]
Defined in: core/src/types/ast.ts:772
Template parameters for parameterization
references?
optionalreferences?:string[]
Defined in: core/src/types/ast.ts:794
Reference files attached to skill context (paths resolved by resolver)
requires?
optionalrequires?:string[]
Defined in: core/src/types/ast.ts:786
Skills that must exist for this skill to work
trigger?
optionaltrigger?:string
Defined in: core/src/types/ast.ts:774
Trigger phrases
userInvocable?
optionaluserInvocable?:boolean
Defined in: core/src/types/ast.ts:776
Whether user can invoke directly