Schema Updater
Overview
Use this skill to refresh an existing JSON Schema safely: research current best practices, compare against the artifact it validates, generate a TDD patch backlog, apply updates, and verify ecosystem integration.
When to Use
- Schema no longer matches the artifact structure it validates
- New fields added to skills/agents/hooks/workflows but schema not updated
- Reflection flags schema validation failures
- User asks to audit/refresh an existing schema
The Iron Law
Never update a schema blindly. Every refresh must be evidence-backed, TDD-gated, and integration-validated.
Workflow
Step 0: Evaluate Current State
- Read the schema file and understand what it validates
- Find the artifacts it validates (skills, agents, hooks, workflows)
- Compare schema required fields against actual artifact structure
- Identify gaps: missing fields, wrong types, stale descriptions
Step 1: Research Best Practices
- Read
.claude/schemas/CLAUDE.md for schema conventions
- Review similar schemas for patterns
- Check JSON Schema Draft-07 specification compliance
- Use
Skill({ skill: 'research-synthesis' }) if external research needed
Step 2: Generate Patch Backlog
- List specific changes needed
- Prioritize: required field additions > type corrections > description updates
- Ensure backward compatibility where possible
Step 3: Apply Updates
- Write or update validation tests first (RED phase)
- Apply schema changes (GREEN phase)
- Refactor for clarity (REFACTOR phase)
- Use
Edit tool — never rewrite the entire file
Step 4: Verify Integration
- Verify schema is valid JSON Schema Draft-07
- Verify
$id and $schema fields are present and correct
- Validate at least 3 existing artifacts against the updated schema
- Run
pnpm lint:fix && pnpm format
- Run schema validation tests
Step 5: Record
- Log changes via
MemoryRecord if significant
- Update CHANGELOG.md entry
Domain-Specific Validation
- Schema MUST be valid JSON Schema Draft-07 (
$schema: "http://json-schema.org/draft-07/schema#")
- Schema MUST have
$id field matching its file path
- Schema MUST be referenced by at least one validator or test
- Required fields MUST match actual artifact structure
- Default values MUST match framework conventions
Anti-Patterns
- Adding required fields that break existing valid artifacts
- Removing fields without checking all consumers
- Using features beyond Draft-07 (e.g., Draft-2020-12
prefixItems)
- Making the schema so strict it rejects valid edge cases
1---2name: schema-updater3description: Research-backed JSON Schema refresh workflow for updating existing schemas with validation checkpoints and cross-reference verification.4version: 1.0.05model: sonnet6invoked_by: both7user_invocable: true8tools: [Read, Write, Edit, Glob, Grep, Bash, Skill, MemoryRecord]9args: '--schema <name-or-path> [--trigger reflection|evolve|manual|stale] [--mode plan|execute]'10error_handling: graceful11streaming: supported12verified: true13lastVerifiedAt: '2026-04-07'14dependencies: [research-synthesis]15category: framework-management16tags: [schemas, updater, maintenance, framework, json-schema]17aliases: [update-schema, refresh-schema]18source: builtin19trust_score: 10020provenance_sha: 4865f95be2ca25db21metadata:22 source: https://skillmd.com/skills/oimiragieo/schema-updater23---2425# Schema Updater2627## Overview2829Use this skill to refresh an existing JSON Schema safely: research current best practices, compare against the artifact it validates, generate a TDD patch backlog, apply updates, and verify ecosystem integration.3031## When to Use3233- Schema no longer matches the artifact structure it validates34- New fields added to skills/agents/hooks/workflows but schema not updated35- Reflection flags schema validation failures36- User asks to audit/refresh an existing schema3738## The Iron Law3940Never update a schema blindly. Every refresh must be evidence-backed, TDD-gated, and integration-validated.4142## Workflow4344### Step 0: Evaluate Current State45461. Read the schema file and understand what it validates472. Find the artifacts it validates (skills, agents, hooks, workflows)483. Compare schema required fields against actual artifact structure494. Identify gaps: missing fields, wrong types, stale descriptions5051### Step 1: Research Best Practices52531. Read `.claude/schemas/CLAUDE.md` for schema conventions542. Review similar schemas for patterns553. Check JSON Schema Draft-07 specification compliance564. Use `Skill({ skill: 'research-synthesis' })` if external research needed5758### Step 2: Generate Patch Backlog59601. List specific changes needed612. Prioritize: required field additions > type corrections > description updates623. Ensure backward compatibility where possible6364### Step 3: Apply Updates65661. Write or update validation tests first (RED phase)672. Apply schema changes (GREEN phase)683. Refactor for clarity (REFACTOR phase)694. Use `Edit` tool — never rewrite the entire file7071### Step 4: Verify Integration72731. Verify schema is valid JSON Schema Draft-07742. Verify `$id` and `$schema` fields are present and correct753. Validate at least 3 existing artifacts against the updated schema764. Run `pnpm lint:fix && pnpm format`775. Run schema validation tests7879### Step 5: Record80811. Log changes via `MemoryRecord` if significant822. Update CHANGELOG.md entry8384## Domain-Specific Validation8586- Schema MUST be valid JSON Schema Draft-07 (`$schema: "http://json-schema.org/draft-07/schema#"`)87- Schema MUST have `$id` field matching its file path88- Schema MUST be referenced by at least one validator or test89- Required fields MUST match actual artifact structure90- Default values MUST match framework conventions9192## Anti-Patterns9394- Adding required fields that break existing valid artifacts95- Removing fields without checking all consumers96- Using features beyond Draft-07 (e.g., Draft-2020-12 `prefixItems`)97- Making the schema so strict it rejects valid edge cases