Description
Add an optional triggers: list to SKILL.md frontmatter — a few example queries that should activate the skill. The matcher computes embeddings for each trigger at startup and includes them as additional vectors pointing to the same skill. This improves recall for skills whose description is abstract but whose trigger examples are concrete.
---
name: code-review
description: Perform structured code review with actionable feedback
triggers:
- "review this code"
- "what's wrong with my implementation"
- "check my PR for issues"
---
Motivation
AutoSkill's trigger_set field enables retrieval via example-query matching in addition to description matching. Most useful at scale (>200 skills) where description ambiguity increases. Backward compatible — existing skills without triggers work unchanged.
Acceptance Criteria
References
Description
Add an optional
triggers:list to SKILL.md frontmatter — a few example queries that should activate the skill. The matcher computes embeddings for each trigger at startup and includes them as additional vectors pointing to the same skill. This improves recall for skills whose description is abstract but whose trigger examples are concrete.Motivation
AutoSkill's
trigger_setfield enables retrieval via example-query matching in addition to description matching. Most useful at scale (>200 skills) where description ambiguity increases. Backward compatible — existing skills withouttriggerswork unchanged.Acceptance Criteria
triggers: Vec<String>optional field in SKILL.md frontmatter (empty = no change to current behavior)triggersfieldReferences
specs/060-autoskill-trigger-sets/spec.md