Skip to content

defineSkill

function defineSkill(config): SkillLike;

Authors a skill inline, with no filesystem involved.

Validated against the same rules as a SKILL.md on disk — an inline skill that would be rejected as a file is rejected here too, so moving one to agents/<id>/skills/ later cannot start failing.

Parameter Type

config

DefineSkillConfig

SkillLike