Agent skill

pack-validate

Validates that a pack is complete, correctly structured, and navigable.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/Reneromero08/agent-governance-system/tree/main/CAPABILITY/SKILLS/utilities/pack-validate

SKILL.md

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

  1. Structure Validation

    • meta/ directory exists
    • repo/ directory exists
    • Required meta files present (PACK_INFO.json, REPO_STATE.json, FILE_INDEX.json)
  2. Manifest Integrity

    • All files in manifest exist in pack
    • File hashes match manifest
  3. Navigation Validation

    • START_HERE.md or ENTRYPOINTS.md accessible
    • Split files have correct naming (AGS-00_INDEX.md, etc.)
  4. Token Validation

    • CONTEXT.txt exists
    • Token warnings noted
  5. 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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results