Agent skill · software engineering · aiskillstore
html-structure-validate
Validate HTML5 structure and basic syntax. BLOCKING quality gate - stops pipeline if validation fails. Ensures deterministic output quality.
Why this skill is useful
Adds a validation script that ensures HTML5 compliance and proper structure, which the AI wouldn't reliably generate on its own.
What it needs
Requires python installed locally. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
HTML Structure Validate Skill Purpose This skill is a BLOCKING quality gate that ensures generated HTML meets minimum structural requirements. It is the first deterministic validation of probabilistic AI-generated output. The skill checks: HTML5 compliance - Proper DOCTYPE, tags Tag closure - All tags properly closed Required elements - Meta tags, stylesheet links Well-formedness - Valid structure If validation fails, the pipeline STOPS and triggers a hook to notify the user. This enforces the principle: Python validates, ensuring deterministic quality. What to Do 1. Load HTML file to validate Read 04pageXX.html generated by AI skill Verify file exists and is readable Confirm file is text (not binary) 2. Run validation checks Check HTML5 structure compliance Verify tag closure Validate head section Check required CSS link Validate page container structure 3. Generate validation report Document all checks performed List any errors found Note warnings (non-blocking) Record informational findings 4. Save validation report as JSON Save to: output/chapterXX/pageartifacts/pageYY/06validationstructure.json Include timestamp Include all check results 5. Exit with appropriate code Return 0 if VALID (continue pipeline) Return 1 if INVALID (STOP pipeline, trigger hook) Input Parameters Validation Checks Check 1: DOCTYPE Declaration Requirement: File must start with proper DOCTYPE Check: [ ] File contains <!DOCTYPE html> (case-insensitive) [ ] DOCTYPE appears before any tags [ ] DOCTYPE is on first line or near beginning Error if: Missing or incorrect DOCTYPE Check 2: HTML Tags Requirement: Proper <html> opening and closing tags Checks: [ ] <html> tag present [ ] </html> closing tag present [ ] Tags are properly paired [ ] No unclosed <html> tags Error if: Missing either tag or improperly paired Check 3: Head Section Requirement: Complete <head> section with metadata Checks: [ ] <head> and </head> tags present [ ] <meta charset="UTF-8"> present [ ] <meta name="viewport"> presen …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/html-structure-validate