changed-file-validation
Runs an opt-in, bounded validation pass over the files one work batch changed. Collects project-scoped paths manually, deduplicates them per session, and checks each supported file once: PowerShell parsing and PSScriptAnalyzer in an owned, time-bounded worker process, and markdown through a real markdownlint plus a partial four-rule native structure check. A receipt names the plan identity, each validator with its version and config, and the SHA-256 of the exact bytes read, so changed content, a changed plan, or a tampered receipt cannot inherit a pass. Missing tools, oversized input, and timeouts stay unavailable and unverified. USE FOR: validate the files changed in this batch, collect changed paths for a later check, read or revalidate a receipt, see what is still unverified. DO NOT USE FOR: replacing immediate tests or the full build gate, formatting files, whole-project linting after every edit, deployment health checks, debugging a failing build (use sampler-build-debug).
- Compatibility
- Windows PowerShell 5.1 or PowerShell 7 or later. PSScriptAnalyzer is optional and reported as unavailable when absent. Markdown lint coverage needs an already-installed markdownlint-cli executable; nothing is downloaded or installed and no network call is made.
Pinned to revision 7a186c5dfcf8, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/changed-file-validation/SKILL.md
- skills/changed-file-validation/evals/validation-cases.json
- skills/changed-file-validation/scripts/Add-ChangedFile.ps1
- skills/changed-file-validation/scripts/ChangedFileValidationCommon.ps1
- skills/changed-file-validation/scripts/Clear-ChangedFileBatch.ps1
- skills/changed-file-validation/scripts/Get-ChangedFileBatch.ps1
- skills/changed-file-validation/scripts/Invoke-ChangedFileValidation.ps1
- skills/changed-file-validation/scripts/Invoke-ChangedFileValidationWorker.ps1
Every link opens the file at its source, pinned to the revision this page describes.