agentsclimarketplace

Url format constraint checking

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/url-format-constraint-checking

Use when ingesting or validating project JSON documents against a schema (such as app/public/schema.json in the Pairing Omics Data Platform) that designates certain fields as URL type (e.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill url-format-constraint-checking

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

  • 15 stars15 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 file declares

Copied from the file, not written here

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.1 KB, 842 tokens by cl100k_base, as published. Nobody here has run it

url-format-constraint-checking

Summary

Validate URL fields in JSON project documents by detecting and flagging embedded whitespace characters that violate URL syntax. This skill ensures data quality in omics platforms that store structured project metadata with URL references.

When to use

Apply this skill when ingesting or validating project JSON documents against a schema (such as app/public/schema.json in the Pairing Omics Data Platform) that designates certain fields as URL type (e.g., project URLs, reference links, data repository links) and you need to flag invalid entries before storage or publication.

When NOT to use

  • Input documents that have already passed upstream URL validation (to avoid redundant checks)
  • URL fields that are intentionally permitted to contain encoded whitespace (%20 sequences) — this skill detects literal whitespace only, not properly encoded equivalents

Inputs

  • project JSON document (e.g., output from web form submission or programmatic API call)
  • JSON schema file defining field types and constraints (e.g., app/public/schema.json)

Outputs

  • validation report listing flagged URLs with field names, offending values, and document locations
  • warning/error messages for each URL containing whitespace

How to apply

Load a project JSON document and cross-reference it against the platform's JSON schema to identify all fields designated as URL type. Iterate through each URL field value and check for the presence of whitespace characters (spaces, tabs, newlines), which are invalid in URLs according to RFC 3986. For each URL containing whitespace, record the field name, the offending URL value, and the location within the document. Compile validation results into a report listing all flagged URLs and their field paths. This prevents silent data corruption and supports data quality assurance workflows, as documented in the platform's issue tracking where spaces in URLs have been flagged as a known problem.

Related tools

  • npm (test runner and build tool for executing validation logic in api/ and app/ directories using npm run test commands)

Evaluation signals

  • All URL-type fields from the JSON schema are checked (coverage = 100% of designated URL fields)
  • Every whitespace character (space, tab, newline) present in any URL field is detected and reported
  • Flagged URLs are accompanied by correct field path and original value (no truncation or encoding)
  • Validation report is machine-readable and can be consumed downstream (e.g., by CI/CD pipelines or review workflows)
  • No false positives on properly formatted URLs without whitespace

Limitations

  • Detects only literal whitespace characters; does not validate other URL format constraints (e.g., invalid characters, malformed schemes, domain syntax)
  • Requires that the input document is valid JSON and that the schema file is present and correctly formatted
  • Does not validate that URLs are reachable or that linked resources exist; scope is syntactic only

Evidence

  • [other] Identify all fields designated as URL type in the schema (e.g., project URLs, reference links, data repository links): "Identify all fields designated as URL type in the schema (e.g., project URLs, reference links, data repository links)."
  • [other] check for the presence of whitespace characters (spaces, tabs, newlines): "Iterate through each URL field and check for the presence of whitespace characters (spaces, tabs, newlines)."
  • [other] The platform stores paired omics data projects using a JSON schema format (app/public/schema.json) that defines project structure, which serves as the basis for implementing field-level validation rules including URL format constraints.: "The platform stores paired omics data projects using a JSON schema format (app/public/schema.json) that defines project structure, which serves as the basis for implementing field-level validation"
  • [discussion] Warning to not include spaces in urls: "Spaces in URLs not properly handled [section=discussion; evidence='Warning to not include spaces in urls ([#75]']"
  • [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."

What ships with it

Read from the repository

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

Keep looking

Skills are one crate of 325,949. 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.