validation-copier
Skill from fstr21/sportsbot
- Category: discovered
- Tags: github, community
- Version: 1.0.0
- Author: walid
- Downloads: 0
- Updated: 2025-11-22
Download the latest version (v1.0.0) from this page.
SKILL.md
# Validation Copier Skill **Purpose**: Copy validation/logging improvements from one sport to another (e.g., NFL → NHL). ## When Claude Should Use This Skill Use this skill when: - User asks to "make NHL work like NFL" or "copy NFL improvements to NHL" - User asks to "extend validation to other sports" - Working on TODO items about copying validation across sports - User wants to "apply NFL patterns to NCAAF/Soccer" - User mentions "make all sports consistent" - Scaling improvements from one sport to multiple sports ## What This Skill Does 1. **Analyzes** the source sport's scripts (e.g., NFL) to identify patterns 2. **Identifies** what needs to be copied: - Structured logging setup - Tenacity retry decorators - Pydantic validation models - Pre-write validation in packaging scripts 3. **Applies** same patterns to target sport (e.g., NHL) 4. **Preserves** sport-specific logic (don't blindly copy/paste) 5. **Tests** that target sport scripts still run without errors 6. **Reports** what was changed and what's different ## Critical Constraints **MUST follow these rules**: - DO NOT blindly copy/paste - preserve sport-specific logic - Use Pydantic v1 syntax ONLY (user has v1.10.23) - NO emoji in code (Windows environment - use ASCII) - Test each script after modification (verify it runs) - Create backups before modifying files - Never modify files in `artifacts/` directory ## How to Use This Skill **Example 1**: User says "make NHL capture scripts like NFL" - Claude analyzes: NFL capture scripts (01-03) - Claude identifies: Structured logging, retry logic, validation - Claude applies: Same patterns to NHL capture scripts - Claude tests: Run NHL scripts to verify no breakage - Claude reports: "Updated 3 NHL scripts with logging + retry logic" **Example 2**: User says "extend validation to all sports" - Claude runs: Copy NFL validation models to NHL/NCAAF/Soccer - Claude adapts: Sport-specific field names (e.g., NHL has periods not quarters) - Claude tests: Validate sample data for each sport - Claude reports: "All 4 sports now have Pydantic validation" ## Expected Outcome After using this skill: - Target sport has same quality improvements as source sport - All sports are consistent in how they log, validate, and retry - User doesn't have to manually copy improvements across 4 sports - User has confidence that all sports work the same way - TODO items about "extend to other sports" are completed ## Technical Details The validation-copier script: - Compares source vs target sport scripts - Identifies missing patterns (logging, retry, validation) - Uses `pipeline-logger` skill to add logging - Copies Pydantic models with sport-specific adaptations - Creates backups before modifying - Runs basic smoke tests after changes ## Success Criteria Script is successful if: - Target sport scripts have same patterns as source sport - Sport-specific logic is preserved (not blindly copied) - All modified scripts run without errors - Backups created for all modified files - User gets summary of what was changed - TODO items can be marked complete