Skip to content
Back to skills

Skill Test Generation

ASecurity

Use when generating test cases for skills.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
testingpythontesting

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill skill-test-generation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Test Generation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Test Generation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-skill-test-generation/badge)](https://www.skillsdirectory.com/skills/loopyluci-skill-test-generation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-test-generation
description: "Use when generating test cases for skills."
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
  hermes:
    tags: [skill-testing, test-generation, validation, meta, quality]
    related_skills: [skill-code-validation, skill-quality-standards, skill-testing-automation]
---

# Skill Test Generation

Generating and managing test cases for Hermes skills — from automated test generation based on skill content through validation of code examples and verification checklists.

## When to Use

- Creating test suites for skill code examples
- Validating that skill patterns actually work
- Ensuring verification checklist items are testable
- Automating regression testing across skill inventory

## Test Generator

```python
from typing import Dict, List

class SkillTestGenerator:
    """Generate test cases from skill content."""
    
    def extract_code_tests(self, skill_md: str) -> List[Dict]:
        """Extract code blocks and generate test expectations."""
        import re
        blocks = re.findall(r'```python\n(.*?)\n```', skill_md, re.DOTALL)
        tests = []
        for i, block in enumerate(blocks):
            tests.append({
                'id': f'test_code_block_{i}',
                'code': block,
                'expected': 'SyntaxError' if 'SyntaxError' in block else 'runs_successfully',
            })
        return tests
    
    def extract_checklist_tests(self, skill_md: str) -> List[str]:
        """Convert checklist items into testable assertions."""
        import re
        items = re.findall(r'- \[ \] (.*)', skill_md)
        return [{'checklist_item': item, 'testable': len(item) > 10} for item in items]
```

## Verification Checklist

- [ ] Code blocks extracted and syntax-validated
- [ ] Checklist items converted to test assertions
- [ ] Test generator handles multiple code languages
- [ ] Edge cases: empty code blocks, malformed markdown
- [ ] Tests are idempotent (can run repeatedly)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.