Write a Skill manually
The main Agent Skills workflow is to capture task runs and let Zep compile the Skills, as the Agent Skills quickstart shows. Manual Skills are a secondary feature.
You can write a Skill manually. Use this to start a task family with a procedure that your team already has, before your agent has verified runs. You can also use it to correct a compiled Skill. A manual Skill has the maturity authored, and it does not cite captured runs.
Write a Skill definition
A definition needs name, description, task_family, use_when, and procedure. Each procedure step has an instruction, and can have a decision and a list of expect results.
Create the Skill
A Skill create request needs an Idempotency-Key header with a UUIDv4 value. A project API key or a member can create a Skill.
Approve the Skill
A new Skill is a candidate. Search does not return a candidate. The approval mode for the task family of the Skill controls who can approve a written Skill:
With auto approval and a list of auto_approval_task_families, Zep uses manual approval for each task family that is not in the list. When a project API key cannot approve the Skill, the API returns 409 Conflict.
To approve a written Skill:
- Read the Skill, and get its
current_version. - If the approval mode for the task family is
manual, use a member bearer token for the next request. - Call
client.agent.skill.approvewith thecurrent_versionasexpected_versionand a UUIDv4 idempotency key.
Change a Skill
Skill versions are immutable. To change a Skill, create a new version with the complete new definition and the current version number as expected_version. If another write added a version first, the API returns a conflict. The new version is a candidate and must pass admission again. The earlier versions stay in the version history.
You can also restore an earlier version.
Retire a Skill
Retire a Skill to remove it from search. The request needs the current version as expected_version. The version history stays available. A later version must pass admission before search returns the Skill again.