Whitespace character detection
Use when validating project JSON documents against the platform's schema (app/public/schema.json) and you need to ensure all URL-type fields conform to URL syntax rules. Specifically, use it when the schema designates certain fields as URL type (e.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill whitespace-character-detectionAssembled 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
6.1 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
whitespace-character-detection
Summary
Detect and flag URL fields in project JSON documents that contain whitespace characters (spaces, tabs, newlines), which are invalid in URLs and prevent proper data validation. This skill applies schema-based field validation to identify problematic URLs before they are stored or transmitted.
When to use
Apply this skill when validating project JSON documents against the platform's schema (app/public/schema.json) and you need to ensure all URL-type fields conform to URL syntax rules. Specifically, use it when the schema designates certain fields as URL type (e.g., project URLs, reference links, data repository links) and you want to detect malformed URLs that contain whitespace before they cause downstream issues.
When NOT to use
- Input JSON does not use the platform schema or does not define URL-type fields explicitly — the skill requires schema metadata to identify which fields to validate
- URLs have already been pre-processed or normalized to remove whitespace — validation would be redundant
- The goal is to fix malformed URLs rather than report them — this skill detects problems but does not auto-correct
Inputs
- Project JSON document conforming to app/public/schema.json
- JSON schema definition (app/public/schema.json) with field type annotations
Outputs
- Validation report listing flagged URLs with field name, offending URL value, and warning message
- Structured record of whitespace violations and their locations within the document
How to apply
Load a project JSON document from the platform and identify all fields designated as URL type in the schema. Iterate through each URL field and check for the presence of whitespace characters (spaces, tabs, newlines). For each URL containing whitespace, record the field name, the offending URL value, and generate a warning message. Compile validation results into a report listing all flagged URLs and their locations within the document. The rationale is that URLs are space-sensitive tokens; any embedded whitespace breaks URL parsing and transmission, so early detection prevents silent data corruption.
Related tools
- npm (Build and test framework used to run validation tests and verify whitespace detection logic)
Evaluation signals
- All URL-type fields from the schema are checked; no designated URL field is skipped
- Every URL containing spaces, tabs, or newlines is flagged in the validation report with correct field name and location
- No false positives: non-URL fields are not validated, and URLs without whitespace are not flagged
- Validation report is properly structured and human-readable, listing field name, offending value, and warning message for each violation
- Existing test suite still passes after implementation (npm run test in api/ and/or app/ directory)
Limitations
- The skill depends on the schema correctly marking all URL fields; if the schema is incomplete or mislabels fields, some malformed URLs may be missed
- Detection is syntactic only — it identifies whitespace presence but does not validate whether the URL is otherwise well-formed (e.g., correct protocol, valid domain structure)
- The skill reports violations but does not automatically correct them; human intervention or a separate correction step is required to fix the URLs
- The GitHub issue #75 notes that spaces in URLs were not being properly handled, indicating that user education or UI-level validation may also be needed alongside this detection step
Evidence
- [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.: "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"
- [other] Identify all fields designated as URL type in the schema (e.g., project URLs, reference links, data repository links). Iterate through each URL field and check for the presence of whitespace characters (spaces, tabs, newlines).: "Identify all fields designated as URL type in the schema (e.g., project URLs, reference links, data repository links). Iterate through each URL field and check for the presence of whitespace"
- [other] For each URL containing whitespace, record the field name, the offending URL value, and generate a warning message. Compile validation results into a report listing all flagged URLs and their locations within the document.: "record the field name, the offending URL value, and generate a warning message. Compile validation results into a report listing all flagged URLs and their locations within the document"
- [discussion] Warning to not include spaces in urls ([#75]: "Spaces in URLs not properly handled [section=discussion; evidence='Warning to not include spaces in urls ([#75]']"
- [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"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.