AgentSkillsCN

bundle-integrity

验证制品包的完整性和一致性。检查清单文件、SHA256 哈希值、必要文件以及 Schema 合规性。

SKILL.md
--- frontmatter
name: bundle-integrity
version: 1.0.0
description: >
  Validate artifact bundle completeness and integrity.
  Checks manifest, SHA256 hashes, required files, and schema compliance.
author: briancl2
tags: [optimizer, validation, integrity, bundle]

Bundle Integrity Skill

Purpose

Validate that optimizer output bundles contain all required artifacts with correct structure and content integrity. Used after every optimization run to ensure no artifacts are missing or corrupted.

When to Use

  • After optimizer generates PATCH_PACK/
  • Before committing optimization results
  • In CI to validate optimizer output

Scripts

ScriptPurpose
scripts/validate-bundle.shCheck bundle completeness + SHA256 integrity

Usage

bash
bash .agents/skills/bundle-integrity/scripts/validate-bundle.sh <output_dir>

Required Bundle Contents

FileRequired?Description
OPTIMIZATION_PLAN.mdYESHuman-readable optimization report
OPTIMIZATION_SCORECARD.jsonYESMachine-readable results
PATCH_PACK/*.patchOnly if --patchUnified diff patches
manifest.jsonYESBundle manifest with file list + hashes