agentsclimarketplace

Json schema output verification

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

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-output-verification

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 form or after applying matrix conversion directives (e.

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.0 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

json-schema-output-verification

Summary

Validate converted JSON data against the Experiment Description Specification and format-specific JSON schemas to ensure structural and semantic correctness before repository submission. This skill catches extraction, tagging, and conversion errors early in the MESSES workflow.

When to use

After extracting tabular data into intermediate JSON form or after applying matrix conversion directives (e.g., collate='assignment') to measurement records, verify that the resulting JSON conforms to the Experiment Description Specification and any protocol-dependent or format-specific schemas before proceeding to final format conversion or deposition.

When NOT to use

  • Input data is already in the target final format (e.g., already mwTab)—skip validation and proceed directly to deposition.
  • JSON structure is known to deviate intentionally from the Experiment Description Specification and no schema is provided to accommodate the deviation.
  • Validation is deferred: if raw tabular data has not yet been extracted or tagged, extract and validate before attempting to apply conversion directives.

Inputs

  • Intermediate JSON file (output of extract command)
  • Converted JSON file (output of matrix conversion directives)
  • Protocol Dependent Schema (PDS) JSON file
  • Target format identifier (e.g., 'mwtab')
  • Optional: additional custom JSON schemas

Outputs

  • Validation report (errors, warnings, pass/fail status)
  • Validated JSON data (passed schema checks)
  • Error/warning log for data correction

How to apply

Use the MESSES validate command with the extracted or converted JSON file, specifying the Protocol Dependent Schema (PDS) and the target output format (e.g., 'mwtab'). The validator uses jsonschema to check structural compliance with the Experiment Description Specification, custom project schemas, and built-in format-specific schemas. Compare the validated output against expected schema structure—for example, when applying collate='assignment' to IC-FTMS measurement records, verify that records sharing the same metabolite assignment are correctly grouped into single dictionaries and that all sample intensity data is merged without loss. Address any reported errors or warnings by returning to the original tabular data, correcting tags or values, and re-extracting until validation passes without errors.

Related tools

Examples

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

Evaluation signals

  • Validation exits with status 0 (no errors) and reports zero critical errors
  • All extracted records conform to the Experiment Description Specification structure (required fields, data types, nested objects)
  • Format-specific schema validation passes for the target format (e.g., mwTab schema compliance)
  • When collate='assignment' is applied: verify grouped records merge sample intensity data correctly—e.g., two measurement records with the same assignment are consolidated into one dictionary containing both samples' intensity values
  • Comparison of output JSON structure against documented schema examples in the MESSES documentation confirms expected field names, nesting, and value types match

Limitations

  • Validation catches structural and schema-level errors but does not verify semantic correctness of metabolite identifications, assignment accuracy, or biological plausibility.
  • Custom schemas must be manually provided and maintained; the validator only enforces schemas explicitly supplied.
  • Errors and warnings must be manually addressed by returning to the original tabular data and correcting tags or values—the validator does not auto-correct.
  • The Experiment Description Specification and Protocol Dependent Schemas are fixed; deviations from the specification require custom schema overrides.

Evidence

  • [other] The validate command of MESSES supports validating JSON data. This is done largely through utilizing JSON Schema: "The validate command of MESSES supports validating JSON data. This is done largely through utilizing JSON Schema"
  • [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] When a matrix directive with collate='assignment' is applied to measurement records containing multiple samples for the same metabolite assignment, does the directive correctly group records by assignment and merge their sample intensity data into a single dictionary?: "matrix directive with collate='assignment' is applied to measurement records containing multiple samples for the same metabolite assignment, does the directive correctly group records by assignment"
  • [other] Compare the resulting output against the expected JSON structure documented in the Collate section to verify correctness.: "Compare the resulting output against the expected JSON structure documented in the Collate section to verify correctness."
  • [readme] The extraction step adds a layer of tags to your raw tabular data, which may be automatable, and then extracts it into a JSONized form that it is more interoperable and more standardized.: "The extraction step adds a layer of tags to your raw tabular data, which may be automatable, and then extracts it into a JSONized form that it is more interoperable and more standardized."

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.