Skills
Use skills with AI SDK harnesses.
Skills are reusable instruction bundles that can
be useful for project conventions, workflow guidance, domain-specific procedures,
or any other instructions that should be discoverable by the underlying harness
runtime. You can configure skills for a HarnessAgent or replace them between
completed turns.
Define Skills
Pass skills to HarnessAgent with the skills setting:
Each skill has:
name: stable identifier for the skill.description: short model-facing summary.content: full instruction content.files: optional additional text files bundled with the skill.
Additional files use skill-relative POSIX paths, for example
reference.md, references/codes.md, or templates/config.json. Reference
those paths from content when the agent should read them.
When to Use Skills
Use skills for reusable instructions that should be available on demand, instead of
always being loaded into the agent's context like regular instructions.
Use instructions for broad agent behavior and current-session priorities.
Skills can be changed between completed turns using callOptionsSchema and
prepareCall. See Change Settings Between Turns
for details.