返回顶部
j

json-linter

Validates JSON syntax across the workspace. Use this skill to check for syntax errors in configuration files, memory files, or data assets.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
743
下载量
1
收藏
概述
安装方式
版本历史

json-linter

# JSON Linter A simple utility to recursively scan the workspace for `.json` files and validate their syntax using `JSON.parse()`. ## Usage ```bash # 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`: Timestamp - `total_files`: Number of `.json` files scanned - `valid_files`: Number of valid files - `invalid_files`: Number of invalid files - `errors`: Array of error objects: - `path`: Relative path to file - `error`: Error message (e.g., "Unexpected token } in JSON at position 42") ## Example Output ```json { "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" } ] } ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 json-linter-1776420061 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 json-linter-1776420061 技能

通过命令行安装

skillhub install json-linter-1776420061

下载 Zip 包

⬇ 下载 json-linter v1.0.0

文件大小: 3.46 KB | 发布时间: 2026-4-17 18:35

v1.0.0 最新 2026-4-17 18:35
Initial release of json-linter.

- Scans `.json` files recursively in the workspace or a specified directory.
- Validates JSON syntax using `JSON.parse()`.
- Generates a JSON summary report including scan time, file counts, and error details for invalid files.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部