Schema validated records
Skill KyleBrierley/agent-ops-skills/skills/schema-validated-records
Convert evidence into machine-readable records with provenance, confidence, history, and deterministic schema validation before downstream use.From its SKILL.md
npx -y skills add KyleBrierley/agent-ops-skills --skill schema-validated-recordsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, 461 tokens by cl100k_base, as published. Nobody here has run it
Schema-validated records
Use this skill when research or operational state must become a stable machine-readable contract without losing source provenance or uncertainty.
Inputs
- A JSON Schema or equivalent explicit contract.
- Source evidence or normalized facts.
- Allowed enums, identifiers, and update rules.
- Existing records when history must be preserved.
Outputs
- A record conforming to the supplied schema.
- A deterministic validation report.
- A change summary describing additions, replacements, removals, and confidence changes.
- Any unresolved evidence-to-field mapping questions.
See examples/widget-record.schema.json and
examples/widget-record.json.
Workflow
- Read the schema before transforming data.
- Map each evidence-backed fact to a field and preserve its source reference.
- Use only allowed identifiers and enum values.
- Represent uncertainty explicitly rather than omitting it deceptively.
- Preserve history:
- mark replaced or previous values;
- do not destructively erase meaningful transitions;
- omit dates that are unknown rather than substituting source-publication dates.
- Validate with the project’s deterministic validator.
- Check cross-record invariants such as unique identifiers and documented categories.
- Compare the record back to the evidence and report any unsupported fields.
Validation order
- Parseability.
- Schema conformance.
- Identifier and filename consistency.
- Enum and category consistency.
- Cross-record uniqueness.
- Provenance completeness.
- Human review of semantic accuracy.
Failure handling
- On schema failure, return the exact field path and validator message.
- On missing evidence, leave the field absent or explicitly unknown; do not guess.
- On conflicting evidence, retain both claims where the schema permits or escalate the mapping decision.
- On an incompatible schema change, stop and propose a migration rather than silently rewriting records.
Boundaries
- Passing schema validation does not prove factual truth.
- Do not label inferred data as confirmed.
- Do not use source publication date as an adoption or transition date.
- Do not delete historical state merely to simplify the current record.
- Do not publish a record before its evidence and semantic meaning are reviewed.
What ships with it: 2 files
1.2 KB alongside SKILL.md