Schema compliance testing
Skill HolobiomicsLab/asb-skill-collections/packs/metabolomics/lc-ms/skills/schema-compliance-testing
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill schema-compliance-testingAssembled 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
- npm (Execute JSON schema validation tests via npm run test command) — https://www.npmjs.com/
- GitHub (Host schema definition and validation test suite; track validation test failures via CI/CD workflow) — https://github.com/iomega/paired-data-form
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 testinapi/and/orapp/directory: "make sure the existing tests still work by runningnpm run testinapi/and/orapp/directory"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.