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.
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click Assets > Skill Catalog.
    The Skills page is displayed. Your draft skills are listed in the My Drafts section.
  3. Optional: To display the skills in a table, click List view at the top right of the page.
  4. In the row of the skill, click Actions, and then click Edit.
    The menu contains the items View details, Edit, Publish, Download, and Delete. The editor of the skill opens. The title is the name of the skill, and the Files panel lists the folder of the skill and the SKILL.md file. The Save, Test, and Validate buttons are displayed at the top right of the editor. See Editing a skill.
  5. Click Validate.
    The Validation report dialog is displayed.
  6. Review the report.
    • If the skill passes, the message All checks passed and the text No issues reported. are displayed.
    • If the skill fails, the message Validation found issues is displayed. Each issue has the following details:
      • The Error or Warning tag.
      • The rule of the issue, for example AUTH-SKILL.
      • The path of the file, and the field of the file when the issue is about a field, for example SKILL.md:description.
      • The message of the issue.
  7. Click Close.
    The editor is displayed. To return to the catalog, click Back to catalog next to the name of the skill.
  8. If the validation fails, correct the issues in the editor, and then repeat steps 5 to 7.

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.