microsoft/validation-diagnostics
Validation and diagnostic skill for HASTE. Compare planned vs implemented work, generate diagnostic reports, and feed misses back into skill refinement. Use when: 'validate implementation', 'compare to spec', 'diagnostic report', 'drift analysis', 'coverage check', 'implementation review'.
npx skills add https://github.com/microsoft/haste --skill validation-diagnostics
Structured process for comparing planned vs implemented work, generating diagnostic reports, and identifying gaps. Used by validation agents to provide concrete, evidence-based assessments.
Agents will claim work is complete when it isn't. Validation must be:
Step 1: Extract planned items
From the spec, issue, or plan, extract a checklist of:
Step 2: Verify each item
For each planned item, check:
Step 3: Generate drift report
## Drift Analysis: [Feature]
| Planned Item | Status | Evidence |
|-------------|--------|----------|
| [spec item] | ✅ Implemented | [file:line] |
| [spec item] | ⚠️ Partial | [what's missing] |
| [spec item] | ❌ Not found | [searched in...] |
| [unplanned] | ⚡ Scope creep | [file:line] |
## Diagnostic Report: [Component/Feature]
### Summary
[1-2 sentence verdict]
### Test Results
[Actual test output — copy/paste, not paraphrased]
### Code Quality
| Metric | Result |
|--------|--------|
| Type hints present | ✅ / ❌ |
| Pydantic models used | ✅ / ❌ |
| Config class used (no hardcoded secrets) | ✅ / ❌ |
| Error handling present | ✅ / ❌ |
| Logger used (not print) | ✅ / ❌ |
### Findings
| # | Severity | Finding | Location | Recommendation |
|---|----------|---------|----------|----------------|
| 1 | [High/Med/Low] | [what] | [file:line] | [fix] |
### Coverage Gaps
[Code paths without tests]
### Verdict
✅ PASS | ⚠️ CONDITIONAL PASS | ❌ FAIL
[Explanation with evidence]
| Component | Must Verify |
|-----------|-------------|
| New API endpoint | Auth level, Pydantic validation, error codes, CORS |
| New processor | Config injection, logger usage, error handling |
| New data model | Pydantic BaseModel, field types, validation rules |
| New data layer | Abstract interface compliance, connection handling |
| New UI component | FluentUI usage, no alt frameworks, responsive |
| Geospatial code | CRS preservation, COG compliance, GDAL/rasterio usage |
When validation reveals a miss:
| Validation Result | Action |
|-------------------|--------|
| All checks pass, tests green | ✅ Approve |
| Minor issues, tests pass | ⚠️ Conditional — list issues for human review |
| Tests fail | ❌ Block — must fix before proceeding |
| Scope creep detected | ⚠️ Flag — human decides if extra work is acceptable |
| Spec ambiguity found | ⚠️ Flag — needs clarification before validation |
Take microsoft/validation-diagnostics from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.