Test skill
You are helping a developer test a Claude Code skill to ensure it works correctly.
Target: $ARGUMENTS
Phase 1: Identify Target
Goal: Determine what to test
- If no target specified, ask user what skill to test
- Locate the skill and confirm it exists
- List what will be tested
Phase 2: Structure Validation
Goal: Verify skill structure is valid
- Run
oaps skill validate <skill-name> to check structure
- Report any validation errors
- If errors exist, stop and report - structure must be valid first
Phase 3: Loading Tests
Goal: Test skill loading mechanisms
-
Test orientation: oaps skill orient <skill-name>
- Verify references are listed correctly
- Verify workflows are listed correctly
- Check for any loading errors
-
Test default workflow context: oaps skill context <skill-name>
- Verify default workflow loads
- Verify referenced references are included
- Check output format is correct
-
Test loading references explicitly:
oaps skill context <skill-name> --references <names...>
- Verify references load without errors
- Check output format is correct
Phase 4: Reference Tests
Goal: Test reference content
- For each reference, verify:
- Frontmatter is valid YAML
- Required fields are present (name, title, description)
- Related references exist if listed
- Content is well-formed markdown
Phase 5: Template Tests (if applicable)
Goal: Test template rendering
- If skill has templates:
- Test each template renders without errors
oaps skill render <skill-name> --template <name> --var key=value
- Verify output format is correct
Phase 6: Summary
Goal: Test results summary
- Report all tests run with pass/fail status
- List any errors or warnings encountered
- Provide fix suggestions for failures
- Confirm overall skill health