Project metadata validation
Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/project-metadata-validation
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 project-metadata-validationAssembled 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 a user uploads a JSON project document to the Pairing Omics Data Platform, before accepting it into the repository or indexing it for search. Use this skill to catch missing required fields, incorrect field types, and constraint violations early in the submission workflow.
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.4 KB, 893 tokens by cl100k_base, as published. Nobody here has run it
project-metadata-validation
Summary
Validate uploaded JSON project documents against a formal JSON schema specification to ensure they conform to required structure and constraints for paired omics data storage. This skill enforces data quality and consistency before projects are persisted or indexed.
When to use
When a user uploads a JSON project document to the Pairing Omics Data Platform, before accepting it into the repository or indexing it for search. Use this skill to catch missing required fields, incorrect field types, and constraint violations early in the submission workflow.
When NOT to use
- Input is already known to be valid or has been validated by an earlier step
- The JSON schema file is missing, corrupted, or out of sync with the codebase
Inputs
- JSON project document (uploaded file)
- JSON Schema definition (app/public/schema.json)
Outputs
- Validation result (pass or fail)
- List of constraint violations (if any)
- List of missing required fields (if any)
How to apply
Load the candidate JSON project file from the upload input and the JSON Schema definition from app/public/schema.json. Pass both to a JSON Schema validator library (such as ajv for Node.js environments). Run validation and report the pass/fail outcome. If validation fails, enumerate all constraint violations and identify which required fields are missing or malformed. This ensures only projects conforming to the platform's paired omics data model (linking MS/MS mass spectra with genome, sample preparation, extraction, and instrumentation metadata) are stored.
Related tools
- ajv (JSON Schema validator used to perform schema validation of uploaded project documents)
- npm (Package manager and test runner for executing validation tests in the app/ and api/ directories)
Evaluation signals
- Validation passes without errors for well-formed project documents containing all required fields
- Validation fails and reports specific field names and constraint types for malformed or incomplete documents
- Missing required fields (e.g., genome identifier, MS/MS spectra reference, sample preparation metadata) are explicitly identified
- Type mismatches (e.g., string instead of array, or incorrect enum values) are flagged with field path and expected type
- Existing test suite continues to pass after validation logic is integrated (verified by running
npm run testin api/ and app/ directories)
Limitations
- Schema validation alone cannot catch semantic inconsistencies (e.g., a valid NCBI accession that does not actually exist)
- Spaces in URLs are not properly handled by the platform, which may cause validation or downstream processing to fail (#75)
- The schema does not currently provide descriptive help text for all fields, limiting user-facing documentation (#76)
- Validation does not verify that linked public identifiers (genome accessions, GNPS task IDs) are resolvable or correct
Evidence
- [other] A JSON schema file located at app/public/schema.json defines the required format for paired omics data projects in the platform.: "A JSON schema file located at app/public/schema.json defines the required format for paired omics data projects in the platform."
- [other] Load the candidate JSON project file from upload input. 2. Load the JSON Schema definition from app/public/schema.json. 3. Perform schema validation using a JSON Schema validator (e.g. ajv or similar library). 4. Report validation result (pass or fail) and enumerate any constraint violations or missing required fields.: "Load the candidate JSON project file from upload input. 2. Load the JSON Schema definition from app/public/schema.json. 3. Perform schema validation using a JSON Schema validator (e.g. ajv or similar"
- [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."
- [other] 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" - [intro] Links MS/MS mass spectra with genome, sample preparation, extraction method and instrumentation method: "Links MS/MS mass spectra with genome, sample preparation, extraction method and instrumentation method"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.