📦 Json Linter — 技能工具
v1.0.0[自动翻译] Validates JSON syntax across the workspace. Use this skill to check for syntax errors in configuration files, memory files, or data assets.
1· 722·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidenceThe skill's code and runtime instructions match its stated purpose (recursively validating .json files) and there are no requests for unrelated credentials, network access, or unusual install steps.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/2/15
● 无害
安装命令
点击复制官方npx clawhub@latest install json-linter
🇨🇳 镜像加速npx clawhub@latest install json-linter --registry https://cn.longxiaskill.com
技能文档
A simple utility to recursively scan the workspace for .json files and validate their syntax using JSON.parse().
Usage
# Scan the entire workspace (from current working directory)
node skills/json-linter/index.js# Scan a specific directory
node skills/json-linter/index.js --dir path/to/dir
Output
JSON report containing:
scanned_at: Timestamptotal_files: Number of.jsonfiles scannedvalid_files: Number of valid filesinvalid_files: Number of invalid fileserrors: Array of error objects:
path: Relative path to file
- error: Error message (e.g., "Unexpected token } in JSON at position 42")Example Output
{
"scanned_at": "2026-02-14T21:45:00.000Z",
"total_files": 150,
"valid_files": 149,
"invalid_files": 1,
"errors": [
{
"path": "config/broken.json",
"error": "Unexpected token } in JSON at position 42"
}
]
}
数据来源:ClawHub ↗ · 中文优化:龙虾技能库