required_canon_version: >=3.0.0
Skill: pack-validate
Version: 0.1.0
Status: Active
Purpose
Validates that a pack is complete, correctly structured, and navigable.
Checks Performed
- •
Structure Validation
- •
meta/directory exists - •
repo/directory exists - •Required meta files present (PACK_INFO.json, REPO_STATE.json, FILE_INDEX.json)
- •
- •
Manifest Integrity
- •All files in manifest exist in pack
- •File hashes match manifest
- •
Navigation Validation
- •START_HERE.md or ENTRYPOINTS.md accessible
- •Split files have correct naming (AGS-00_INDEX.md, etc.)
- •
Token Validation
- •CONTEXT.txt exists
- •Token warnings noted
- •
PRUNED Validation (if PRUNED/ exists)
- •PRUNED/PACK_MANIFEST_PRUNED.json exists and has valid schema
- •PRUNED/meta/PRUNED_RULES.json exists
- •Manifest entries include path, hash, and size
- •Hashes and sizes match actual files
- •Manifest entries are in canonical (lexicographic) order
- •No staging directories (.pruned_staging_*) or backup directories (PRUNED._old) present
Inputs
- •
pack_path: Path to the pack directory to validate
Outputs
- •
valid: Boolean - whether pack passes all checks - •
errors: List of validation errors - •
warnings: List of warnings (non-fatal) - •
stats: Pack statistics (file count, bytes, tokens)
required_canon_version: >=3.0.0