verify-archive
БесплатноБез исполняемых скриптовНе проверенVerify archive integrity with self-verifying SHA-256 checksums, generate VERIFY.md, and optionally create W3C PROV provenance
от jmagly★ 233 звезды на GitHubОб этом скилле
verify-archive
Detect bit rot, tampering, and transfer errors in media archives through cryptographic checksum verification. Maintain provenance records and fixity information for long-term preservation.
Purpose
Media archives degrade over time through:
- Bit rot: Silent data corruption in storage media
- Transfer errors: Corruption during network transfer or backup
- Tampering: Unauthorized modifications
- Media failure: Gradual deterioration of physical storage
This command generates self-verifying checksum manifests, performs integrity verification, and optionally creates W3C PROV provenance records with PREMIS fixity metadata.
Parameters
| Parameter | Required | Description |
|---|---|---|
archive_path |
Yes | Path to media archive directory |
--generate |
No | Generate new CHECKSUMS.sha256 manifest |
--verify |
No | Verify existing manifest against files |
--provenance |
No | Generate PROVENANCE.jsonld with PREMIS fixity |
--fix |
No | Regenerate manifest after archive changes |
Mutually exclusive modes: Use --generate for initial setup, --verify for routine checks, --fix after making changes.
CHECKSUMS.sha256 Format
Self-verifying manifest with cryptographic integrity protection:
# MANIFEST_HASH: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
# Generated: 2026-02-14T18:45:22.387654321Z
# Verify with: tail -n +4 CHECKSUMS.sha256 | sha256sum
1a2b3c4d... ./audio/episode-001.opus
5e6f7g8h... ./audio/episode-002.opus
9i0j1k2l... ./video/recording-2026-02-14.mp4
3m4n5o6p... ./playlists/favorites.m3u
7q8r9s0t... ./README.md
Format specification:
- Line 1:
# MANIFEST_HASH: <sha256>- SHA-256 hash of manifest content (lines 4+) - Line 2:
# Generated: <timestamp>- ISO 8601 UTC timestamp with nanosecond precision - Line 3:
# Verify with: tail -n +4 CHECKSUMS.sha256 | sha256sum- Self-verification command - Lines 4+:
<hash> <path>- File checksums in sha256sum format
Self-verification property: Modifying any hash entry invalidates the manifest hash. The manifest is tamper-evident.
Coverage: ALL files in the archive are checksummed:
- Audio files (opus, mp3, flac, m4a, aac)
- Video files (mp4, mkv, webm, avi)
- Images (jpg, png, webp, svg)
- Text files (md, txt, srt, vtt)
- Playlists (m3u, m3u8, pls)
- Scripts and metadata (json, yaml, sh)
Exclusions: Only CHECKSUMS.sha256 itself is excluded to prevent circular dependency.
Verification Procedures
Quick Verification (Manifest Integrity)
Verify manifest has not been tampered with (sub-second):
cd /path/to/archive
# Extract manifest hash from header
EXPECTED=$(grep '^# MANIFEST_HASH:' CHECKSUMS.sha256 | awk '{print $3}')
# Compute hash of manifest content (lines 4+)
ACTUAL=$(tail -n +4 CHECKSUMS.sha256 | sha256sum | awk '{print $1}')
# Compare
if [ "$EXPECTED" = "$ACTUAL" ]; then
echo "✓ Manifest integrity verified"
else
echo "✗ Manifest has been tampered with"
exit 1
fi
Use case: Daily automated checks to detect manifest corruption without verifying all files.
Full Verification (All Files)
Verify all files match their checksums (minutes to hours depending on archive size):
cd /path/to/archive
# First verify manifest integrity
EXPECTED=$(grep '^# MANIFEST_HASH:' CHECKSUMS.sha256 | awk '{print $3}')
ACTUAL=$(tail -n +4 CHECKSUMS.sha256 | sha256sum | awk '{print $1}')
if [ "$EXPECTED" != "$ACTUAL" ]; then
echo "✗ Manifest integrity check failed - stopping"
exit 1
fi
echo "✓ Manifest integrity verified"
# Then verify all files
tail -n +4 CHECKSUMS.sha256 | sha256sum -c
Use case: Weekly/monthly deep verification to detect bit rot.
Quiet Mode (Failures Only)
Show only files that failed verification:
cd /path/to/archive
tail -n +4 CHECKSUMS.sha256 | sha256sum -c --quiet
Exit codes:
0- All files verified successfully1- One or more files failed verification
Use case: Cron jobs and automated monitoring.
Timestamp Standard
All timestamps use ISO 8601 UTC with nanosecond precision:
Format: YYYY-MM-DDTHH:MM:SS.NNNNNNNNNZ
Example: 2026-02-14T18:45:22.387654321Z
Generation command:
date -u +%Y-%m-%dT%H:%M:%S.%NZ
Requirements:
- Always UTC (trailing
Z), never local timezone - Nanosecond precision (9 decimal places)
- ISO 8601 compliant
- Monotonic (later timestamps are lexicographically greater)
Workflow
Initial Setup (--generate)
aiwg verify-archive /path/to/archive --generate
Steps:
- Find all files recursively (excluding
CHECKSUMS.sha256) - Compute SHA-256 hash for each file
- Sort results by path (deterministic order)
- Generate timestamp in ISO 8601 UTC format
- Write checksums to temporary file
- Compute SHA-256 of checksum content
- Add self-verifying header with manifest hash
- Write final
CHECKSUMS.sha256 - Generate
Установить verify-archive в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл verify-archive?
Verify archive integrity with self-verifying SHA-256 checksums, generate VERIFY.md, and optionally create W3C PROV provenance
Как установить скилл verify-archive?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-archive запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic