Skip to main content

CODITECT Skill Validation Test Suite

Comprehensive tests to verify all 186 skills have correct SKILL.md structure, valid configuration, and proper documentation.

Run: python3 scripts/tests/test_skills.py python3 scripts/tests/test_skills.py -v # Verbose python3 scripts/tests/test_skills.py --skill api-design-patterns # Single skill

Author: CODITECT Team Version: 1.0.0 Created: 2025-12-22

File: test_skills.py

Classes

Colors

No description

TestResult

No description

SkillValidation

No description

SkillTestSuite

Comprehensive test suite for CODITECT skills

Functions

get_framework_root()

Get framework root directory

main()

No description

get_all_skills()

Get all SKILL.md files recursively

parse_frontmatter(content)

Parse YAML frontmatter from markdown content

get_skill_name(skill_path)

Extract skill name from path

test_has_frontmatter(content, skill_name)

Test that skill has YAML frontmatter

test_has_title(content, skill_name)

Test that skill has a title (H1 heading)

test_has_description(body, skill_name)

Test that skill has a description after the title

test_required_sections(body, skill_name)

Test that skill has required sections

test_has_code_examples(body, skill_name)

Test that skill has code examples

test_no_placeholders(content, skill_name)

Test that skill has no placeholder text outside code blocks

test_minimum_content(content, skill_name)

Test that skill has minimum content length

test_valid_markdown(content, skill_name)

Test that markdown is valid (basic checks)

test_directory_structure(skill_path, skill_name)

Test that skill follows directory conventions

validate_skill(skill_path)

Run all validation tests on a skill

Usage

python test_skills.py