Skip to content
Back to skills

Safe Async Json Packet Validator

ASecurity

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

  • 438 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
educationjavascriptjava

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill safe-async-json-packet-validator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safe Async Json Packet Validator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Safe Async Json Packet Validator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-safe-async-json-packet-validator/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-safe-async-json-packet-validator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "f8fa70b5-84d0-4e63-b135-ebf1e8913e59"
name: "Safe Async JSON Packet Validator"
description: "Validates if a data packet is valid JSON asynchronously without logging errors to the console."
version: "0.1.0"
tags:
  - "javascript"
  - "json"
  - "validation"
  - "async"
  - "error-handling"
triggers:
  - "validate json packet"
  - "check if json without errors"
  - "safe json parse"
  - "async json validation"
  - "prevent json parse error spam"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…