Package Validator Skill

Validate package JSON files against Pydantic models before database ingestion.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fstr21/sportsbot --skill package-validator-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Package Validator Skill
Source: https://github.com/fstr21/sportsbot/tree/main/.claude/skills/package-validator
Command: npx skills add https://github.com/fstr21/sportsbot --skill package-validator-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rich, and includes scripts (resource) components.

What problem does it solve?

Ingesting malformed or inconsistent data packages into the database can lead to corruption, errors, and unreliable data. This Skill ensures data quality at the packaging stage, preventing downstream issues and saving you from costly data cleanups.

Core Features & Use Cases

  • JSON Structure Validation: Scans and validates the JSON structure of package files for parseability and required fields.
  • Pydantic Model Checks: (If available) Checks package data against defined Pydantic models for strict schema adherence and data type correctness.
  • Consistency & Value Warnings: Compares package data to raw artifacts (for consistency) and warns about suspicious values (e.g., negative stats, unrealistic odds).
  • Use Case: Run this Skill before the database ingestion stage of your pipeline to catch and fix package errors early, ensuring only high-quality data enters your database.

Quick Start

Validate NFL packages for a specific date

python .claude/skills/package-validator/scripts/validate_packages.py --sport nfl --date 2025-10-23

Frequently Asked Questions about Package Validator Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate JSON package files before database ingestion?

Data package validation scans JSON files for structural integrity, required fields, and schema adherence using Pydantic models. Run the validator against your packages directory to catch malformed or inconsistent data before it corrupts your database, ensuring only high-quality data enters your pipeline.

Can I check package data against Pydantic models for type correctness?

Yes. The validator cross-checks package JSON against available Pydantic models to enforce strict schema compliance and validate data types. When models are unavailable, it gracefully skips model checks while continuing structural validation and reporting inconsistencies.

What happens when package validation detects missing or invalid data?

The validator generates explicit error and warning messages with a tabular summary showing which fields are missing, which values are invalid, and where data diverges from raw artifacts. All reporting is read-only and non-destructive, leaving packages untouched for manual review.

Does this tool work across multiple sports datasets?

Yes. The validator applies across sports by scanning the artifacts/{sport}/packages/{date} directory structure. Specify the sport and date as command-line arguments to validate packages for any sport in your dataset consistently.

Why should I validate packages before ingestion rather than after?

Early validation at the packaging stage prevents downstream corruption, reduces costly database cleanups, and catches consistency issues like negative stats or unrealistic odds before data enters your system, saving time and maintaining data reliability.

Can I use this validator if I don't have Pydantic models defined yet?

Yes. The validator handles missing models gracefully by focusing on JSON structure validation and required field checks. As you define Pydantic models, the validator automatically applies stricter schema validation without requiring any configuration changes.