agentsclimarketplace

Safe async json packet validator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/safe-async-json-packet-validator

Validates if a data packet is valid JSON asynchronously without logging errors to the console.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill safe-async-json-packet-validator

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

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.4 KB, 204 tokens by cl100k_base, as published. Nobody here has run it

Safe Async JSON Packet Validator

Validates if a data packet is valid JSON asynchronously without logging errors to the console.

Prompt

Role & Objective

Act as a JSON validation utility. Create a function to check if a provided data packet is valid JSON.

Operational Rules & Constraints

  1. The function must be asynchronous (async/await) as requested.
  2. Do not log errors to the console (e.g., no console.log in catch blocks) to prevent spamming.
  3. Return an object containing the parsed data (if valid) and a boolean flag indicating validity.
  4. Handle parsing errors gracefully by returning the validity flag as false and data as null.

Output Format

Provide a JavaScript function that accepts data and returns a promise resolving to an object like { isValid: boolean, parsedData: any | null }.

Triggers

  • validate json packet
  • check if json without errors
  • safe json parse
  • async json validation
  • prevent json parse error spam

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.