Data type constraint verification
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 data-type-constraint-verificationAssembled 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 ingesting or updating MassBank records in plain-text or structured format, and you need to verify that metadata fields (accession, name, formula, mass, spectrum peaks) comply with type definitions, presence requirements, and allowed value ranges.
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.8 KB, 933 tokens by cl100k_base, as published. Nobody here has run it
data-type-constraint-verification
Summary
Automated validation of MassBank record content against defined data-type and value-range constraints to ensure conformance to the MassBank format specification. This skill applies the MassBank Validator's rule engine to individual records during CI/CD workflows, catching schema violations, missing fields, and out-of-range values before data publication.
When to use
When ingesting or updating MassBank records in plain-text or structured format, and you need to verify that metadata fields (accession, name, formula, mass, spectrum peaks) comply with type definitions, presence requirements, and allowed value ranges. Trigger this skill as part of automated record submission or continuous integration pipelines to catch conformance errors early.
When NOT to use
- Records that have already been validated and archived in a stable release (use only for new submissions or updates)
- When performing semantic validation (e.g., checking chemical formula plausibility or spectrum-to-mass consistency); this skill validates syntax and type conformance only
- If you need to validate records not in MassBank format or against alternative schemas
Inputs
- MassBank record file (plain-text or structured format)
- Record metadata fields (accession, name, formula, mass, spectrum peaks)
Outputs
- Validation report listing passed checks
- Validation report listing failed checks with specific error messages
- Workflow status badge (pass/fail) for GitHub Actions
How to apply
Load the MassBank record from the input file or string, then parse its metadata fields according to the MassBank format specification. Invoke the MassBank-web Validator.java component, which applies a ruleset checking field presence, data type (e.g., numeric vs. string), value ranges, and format constraints (e.g., valid accession patterns). Collect all validation errors or warnings for each failed rule and generate a validation report listing passed and failed checks with specific error messages. The GitHub Actions workflow automatically runs this validation on all pull requests and commits to the main and dev branches.
Related tools
- MassBank-web Validator (Implements and executes the validation rules for field presence, data type, value range, and format constraints on individual records) — https://github.com/MassBank/MassBank-web/blob/main/MassBank-Project/MassBank-lib/src/main/java/massbank/cli/Validator.java
- GitHub Actions (Orchestrates automated invocation of the Validator on all records with each commit/pull request to the main and dev branches) — https://github.com/MassBank/MassBank-data
Evaluation signals
- Validation report indicates 100% of checked fields pass their respective data-type and format constraints
- No validation errors or warnings are reported for a given record
- GitHub Actions workflow badge shows 'passing' status for both main and dev branches
- All mandatory fields (accession, name, formula, mass) are present and conform to their declared types
- Numeric fields (e.g., mass, m/z values in spectrum peaks) are parseable as numbers and fall within expected ranges
Limitations
- The Validator checks syntax and type conformance only; it does not validate semantic correctness (e.g., chemical formula plausibility or spectrum-to-mass agreement)
- Validation rules are defined by the MassBank format specification; if the specification is incomplete or ambiguous, some errors may not be caught
- The skill relies on GitHub Actions infrastructure; validation will not run without a configured workflow file in the repository
Evidence
- [other] Parse the record's metadata fields (accession, name, formula, mass, spectrum peaks, etc.) according to MassBank format specification.: "Parse the record's metadata fields (accession, name, formula, mass, spectrum peaks, etc.) according to MassBank format specification."
- [other] Apply the validation rules implemented in MassBank-web Validator.java (field presence, data type, value range, format constraints).: "Apply the validation rules implemented in MassBank-web Validator.java (field presence, data type, value range, format constraints)."
- [other] Collect validation errors or warnings for each failed rule.: "Collect validation errors or warnings for each failed rule."
- [other] Generate a validation report listing passed and failed checks with specific error messages.: "Generate a validation report listing passed and failed checks with specific error messages."
- [readme] uses GitHub Actions to validate the content of all records with the Validator from MassBank-web: "uses GitHub Actions to validate the content of all records with the Validator from MassBank-web"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.