agentsclimarketplace

Schema compliance testing

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/schema-compliance-testing

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 schema-compliance-testing

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 when uploading or ingesting a new paired omics project JSON document into the Pairing Omics Data Platform, or when programmatically submitting projects via the OpenAPI interface. Apply this skill before persisting the document to disk or indexing it for search.

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

5.7 KB, 831 tokens by cl100k_base, as published. Nobody here has run it

schema-compliance-testing

Summary

Validate paired omics project documents against a JSON schema to ensure structural and format compliance before storage or submission. This skill detects schema violations early, preventing corrupted or malformed data from entering the platform.

When to use

When uploading or ingesting a new paired omics project JSON document into the Pairing Omics Data Platform, or when programmatically submitting projects via the OpenAPI interface. Apply this skill before persisting the document to disk or indexing it for search.

When NOT to use

  • Document has already been validated and stored in the platform database
  • Raw mass spectrometry or genomic data files (use file format validation instead)
  • Legacy projects in older schema versions without migration to current schema

Inputs

  • Paired omics project JSON document (user-submitted or programmatic)
  • JSON schema definition (app/public/schema.json)

Outputs

  • Validation pass/fail status
  • Structured validation report with violation details
  • Error messages and schema constraint violations (if any)
  • Compliance status document

How to apply

Load the paired omics project JSON document and the canonical JSON schema from app/public/schema.json. Apply JSON schema validation using the npm test framework (npm run test in the app/ or api/ directory) to check the document against all schema constraints, including structural requirements, field types, and format specifications. Capture validation results including pass/fail status, any schema violations, and detailed error messages. Generate a structured validation report documenting compliance status and listing specific violations (e.g., missing required fields, incorrect data types, value constraint breaches). Reject documents with violations and provide actionable error output to the submitter.

Related tools

Examples

npm run test

Evaluation signals

  • Validation returns pass status for conformant documents with no schema violations reported
  • Validation correctly identifies and reports specific schema violations (missing required fields, wrong data types, invalid values) in non-conformant documents
  • Error messages in validation report are actionable and point to exact field or constraint that failed
  • npm test suite runs successfully and all existing schema compliance tests pass without regression
  • Documents that pass validation can be successfully stored and retrieved from the platform

Limitations

  • Schema validation only checks structural and format compliance; it does not validate semantic correctness (e.g., whether a GenBank identifier actually exists or whether MS/MS spectra and genome truly pair biologically)
  • JSON schema validation does not perform cross-document or historical consistency checks
  • Validation errors may require schema updates if the platform evolves to support new paired omics data types or formats

Evidence

  • [other] The application uses a JSON schema file located at app/public/schema.json that defines the structural and format requirements for paired omics data projects.: "The application uses a JSON schema file located at app/public/schema.json that defines the structural and format requirements for paired omics data projects."
  • [other] Apply JSON schema validation using npm test framework to check the document against all schema constraints.: "Apply JSON schema validation using npm test framework to check the document against all schema constraints."
  • [other] Capture validation results including pass/fail status, any schema violations, and error messages.: "Capture validation results including pass/fail status, any schema violations, and error messages."
  • [readme] The JSON schema (app/public/schema.json) describes the format of an project.: "The JSON schema (app/public/schema.json) describes the format of an project."
  • [readme] make sure the existing tests still work by running npm run test in api/ and/or app/ directory: "make sure the existing tests still work by running npm run test in api/ and/or app/ directory"

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 326,984. 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.