agentsclimarketplace

Json schema validation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/json-schema-validation

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill json-schema-validation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 14 stars14 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.

What its author says it does

Copied from the file, not written here

Use when after extracting tabular data into intermediate JSON representation (via tagging), or after manual JSON editing, and before converting to a target format (e.g., mwTab for Metabolomics Workbench).

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

7.2 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

JSON Schema Validation

Summary

Validate extracted or intermediate JSON data against formal JSON Schema specifications and custom protocol-dependent schemas to detect structural, type, and domain-specific errors before format conversion or deposition. This skill catches inconsistencies early in the data pipeline, reducing downstream failures during conversion to repository-preferred formats.

When to use

After extracting tabular data into intermediate JSON representation (via tagging), or after manual JSON editing, and before converting to a target format (e.g., mwTab for Metabolomics Workbench). Use this skill when you need confidence that your JSON conforms to the Experiment Description Specification, adheres to protocol-dependent constraints, or satisfies format-specific schema requirements. Particularly important when multiple contributors have tagged or edited JSON, or when the extraction rules are new or complex.

When NOT to use

  • Input JSON is already known to conform to the target schema and has been previously validated in the same workflow.
  • You are performing a quick data preview or exploratory analysis where schema conformance is not a hard requirement.
  • The JSON comes from a trusted, automated source with its own internal validation already in place (though re-validation is still recommended for critical pipelines).

Inputs

  • Intermediate JSON file extracted from tabular data
  • JSON Schema file (Experiment Description Specification)
  • Protocol Dependent Schema (PDS) JSON file (optional, project-specific)
  • Format-specific JSON Schema (e.g., mwTab schema)

Outputs

  • Validation report (errors and warnings list)
  • Pass/fail status per schema
  • Corrected intermediate JSON file (after fixing reported issues)

How to apply

Load your intermediate JSON file and one or more JSON Schema files: the built-in Experiment Description Specification schema, any Protocol Dependent Schema (PDS) you have created for your project, and the format-specific schema (e.g., mwTab schema). Use jsonschema to validate the JSON against each schema in sequence. Document all validation errors and warnings, then feed them back to the data source (raw tabular file or JSON editor) to fix structural issues, missing required fields, or type mismatches. Repeat extraction → validation → correction cycles until no errors remain. This iterative approach, combined with the ability to view record lineages, helps trace validation failures back to their source in the original data.

Related tools

  • jsonschema (Python library for validating JSON documents against JSON Schema specifications; used to check intermediate JSON against Experiment Description Specification, Protocol Dependent Schema, and format-specific schemas) — https://pypi.org/project/jsonschema/
  • MESSES (Command-line tool and Python package that integrates JSON schema validation as the 'validate' command; orchestrates validation workflows and integrates results with extraction and conversion steps) — https://github.com/MoseleyBioinformaticsLab/MESSES

Examples

messes validate json your_data.json --pds your_schema.json --format desired_format

Evaluation signals

  • JSON document passes validation against Experiment Description Specification without errors.
  • JSON document passes validation against Protocol Dependent Schema (if provided) with zero errors.
  • JSON document passes validation against format-specific schema (e.g., mwTab) with zero errors.
  • All required fields are present and populated with appropriate data types (string, number, array, object).
  • Record lineage can be traced back to source tabular data without gaps or missing references.

Limitations

  • Validation reports only flag schema violations; they do not verify semantic correctness or domain-specific logic (e.g., whether mass values are physically plausible). Custom validation rules beyond JSON Schema syntax must be implemented separately.
  • The initial schema design and Protocol Dependent Schema creation require significant effort and domain expertise; poorly designed schemas will produce false negatives or fail to catch real errors.
  • Validation does not fix errors automatically; all corrections must be made in the source data (tabular file) or intermediate JSON, and extraction/validation must be re-run.

Evidence

  • [readme] The validation step ensures the data that was extracted is valid against the Experiment Description Specification, the Protocol Dependent Schema, any additional JSON schema you wish to provide, and a built in schema specific for the format you wish to convert to.: "The validation step ensures the data that was extracted is valid against the Experiment Description Specification, the Protocol Dependent Schema, any additional JSON schema you wish to provide,"
  • [other] The validate command of MESSES supports validating JSON data using JSON Schema and custom schemas.: "The validate command of MESSES supports validating JSON data. This is done largely through utilizing JSON Schema"
  • [readme] Original data entry, manual tagging of tabular data, and even automated tagging facilities can be messy, generating errors in the extracted JSONized representation. So MESSES includes a validate command to help make sure your data is in line with your project parameters and data schema.: "original data entry, manual tagging of tabular data, and even automated tagging facilities can be messy, generating errors in the extracted JSONized representation. So MESSES includes a validate"
  • [readme] The expected workflow includes using the validate command to validate JSON based on your specific project schema, fixing errors and warnings in the original data, and repeating until there are no more errors.: "then use the "validate" command to validate the JSON based on your specific project schema, fix errors and warnings in the original data, repeat steps 1-3 until there are no more errors"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.