Skip to main content
A skill holds instructions for one kind of task. The model receives the name and description of each skill, and loads a skill’s instructions with the built-in load_skill tool when a task matches:
A skill name has up to 64 characters: lowercase letters and digits, in groups joined by single hyphens. skills() throws for an invalid name, an empty description, or a duplicate name. The model reads a skill’s files with the built-in read_skill_file tool.

Custom skill sources

To load skills from files, a repository, or a database, pass your own SkillSource with the async functions list, load, and optionally read. This source reads a folder with one subfolder per skill. Each subfolder holds a SKILL.md file, with the skill’s name and description in its frontmatter and the instructions after it, and the files that the instructions refer to:
  • Location. list returns each skill’s name, description, and location, here the skill’s folder. Restate Harness doesn’t send the location to the model. Restate Harness passes the skill with its location to load and read.
  • Journaled calls. Restate Harness journals each call. list runs once per run, so the skill list stays the same for the whole run, also on replay.
  • Skill files. The model gets read_skill_file only if the source implements read. Restate Harness rejects paths that start with / or contain a .. segment before it calls read.
  • Invalid skills. Restate Harness skips an invalid skill from a custom source and logs a warning.
This parser reads only single-line name and description fields. The skills lesson parses multiline frontmatter values, and the reference architecture reads skills from a GitHub repository.