# Skill Authoring Example

version: "1"

defaults:
  agent: claude
  provider: local
  trials: 3
  timeout: 300
  threshold: 0.8

tasks:
  - name: fix-skill-draft
    agent: claude
    instruction: |
      Rewrite the existing `draft/SKILL.md` file in place so it follows the skill authoring standard.

      Keep the file lean and production-ready while preserving the draft's purpose.
      Requirements:
      - Use YAML frontmatter at the top of the file.
      - Include a non-empty `name`.
      - Include a non-empty `description`.
      - Include a clear "When to Use" section with trigger and negative-trigger guidance.
      - Include an "Error Handling" section.

    workspace:
      - src: fixtures/broken-skill/SKILL.md
        dest: draft/SKILL.md

    graders:
      - type: deterministic
        run: node graders/check-skill.js
        weight: 1
