Validating a skill
Validate a skill in Cloudera Agent Studio to find problems in its SKILL.md file before you publish the skill to the skill catalog.
The editor of a skill has a Validate button. When you click the button, Agent Studio applies your pending file edits to the workspace, checks the skill, and displays the Validation report dialog. The dialog is displayed when the skill passes and when the skill fails.
Agent Studio also validates a skill when you publish it. If the validation fails, the Validation report dialog is displayed, and Agent Studio does not publish the skill until you correct the issues or skip the validation. When you save a draft, Agent Studio does not validate the skill, because a draft can be incomplete. See Saving drafts and publishing a skill to the catalog.
The validation checks the following items in the SKILL.md file of the skill:
- The SKILL.md file exists.
- The frontmatter block starts at the first byte of the file.
- The frontmatter is valid YAML, and the frontmatter is a YAML mapping.
- The name field of the frontmatter is present and not blank.
- The description field of the frontmatter is present and not blank.
- Ensure that your user has the Admin or Builder role. See User roles and capabilities.
- Ensure that you have a skill in your authoring workspace. See Creating a skill or Uploading a skill artifact.
If the skill passes the validation, the Validation report dialog displays All checks passed. The validation does not publish the skill, and the skill stays in the My Drafts section.
If the validation fails, the report lists the issues. A skill with an Error issue fails the validation.
If the request fails, the Validation failed or the message of the server is displayed.
