json-helper

Tool for JSON formatting, validation, and field querying. Triggered when a user needs to format/beautify JSON, validate or check JSON structure, or extract/query fields from JSON.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "json-helper" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2c3254b2403e76b1c2b38d2931464df4b713919f96e5ce0b859953a70eaae42d. Verify the upstream source and version against https://skillhub.cn/skills/user_a251e2ea/wxy before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Tool for JSON formatting, validation, and field querying. Triggered when a user needs to format/beautify JSON, validate or check JSON structure, or extract/query fields from JSON.

0 Downloads

Introduction source: third_party · user_a251e2ea · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: json-helper
description: JSON格式化、验证和查询工具。Use when用户提到"格式化JSON"、"验证JSON"、"检查JSON格式"、"提取JSON字段"、"json格式对吗"、"美化json"或需要处理JSON数据时触发。

JSON Helper

帮助用户处理JSON数据,包括格式化、验证和字段提取。

Instructions

Step 1: 格式化JSON

当用户提供未格式化的JSON时,使用jq或Python进行美化输出:

echo '{"name":"test","value":123}' | python -m json.tool

Step 2: 验证JSON

检查JSON是否有效:

python -c "import json; json.loads('''YOUR_JSON''')" && echo "Valid JSON" || echo "Invalid JSON"

Step 3: 提取字段

从JSON中提取特定字段:

echo '{"name":"test","items":[1,2,3]}' | python -c "import json,sys; d=json.load(sys.stdin); print(d.get('name'))"

Examples

用户: 帮我格式化这个JSON {"name":"张三","age":25,"city":"北京"}

助手:

{
    "name": "张三",
    "age": 25,
    "city": "北京"
}

用户: 这个JSON对吗?{name: test}

助手: ❌ 无效JSON - 键名需要用双引号包围:{"name": "test"}

Troubleshooting

错误: JSONDecodeError: Expecting property name 原因: 键名没有用双引号 修复: 将 {name: value} 改为 {"name": "value"}

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 JSON 格式化、验证和字段提取三大核心功能,满足开发者和数据处理用户的通用需求
  • 功能实用性强,覆盖常见 JSON 处理场景
Trigger Precision85/100

Highlights

  • 触发词覆盖全面,包括格式化、验证、检查、提取、美化等关键词
  • 边界清晰,不易与其他 Skill 重叠
Structure and Standards90/100

Highlights

  • 结构完整,包含 Instructions、Examples、Troubleshooting 等必要章节
  • 步骤划分清晰,有端到端示例,frontmatter 完整
Execution Reliability85/100

Highlights

  • 工具来源明确(Python json.tool、json.loads、jq),参数正确
  • 覆盖了常见异常处理(JSONDecodeError)
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.