What skills contain
A skill tells the agent how to approach a specific type of question. A well-written skill includes these elements.- Trigger description. A short statement that tells the agent when to load this skill, helping it decide whether the skill is relevant to the user’s question.
- Data model guidance. Instructions on which views to query and which properties are important. The agent can discover the schema at runtime, but explicit guidance reduces errors on frequently-used query patterns.
-
Vocabulary mappings. A mapping between the terms users are likely to use and the field values stored in CDF. Vocabulary mappings are one of the most effective ways to improve agent accuracy because ambiguous terminology is a common source of incorrect queries.
- Tool sequencing instructions. The order in which the agent should call tools when answering questions in this skill’s domain. For example, when a question asks about sensor trends, the agent should query the knowledge graph to identify the relevant time series, retrieve data points, and then analyze them if the user asks about trends or anomalies.
- Response templates. Instructions on what a complete answer looks like, including which fields to include and how to format the output.
- Examples. A small set of diverse examples covering distinct question patterns. A few well-chosen examples are more effective than a long list of similar ones.