跳到正文
TakoAPI
返回技能列表

json-linter

由 wanng-ide 提供

Web & Frontend Development
481下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Validates JSON syntax across the workspace.

描述

该技能的功能

Recursively scans a workspace for .json files and validates each one using JSON.parse(). Returns a structured report listing which files passed, which failed, and the exact parse error for each failure.

Scanning the entire workspace in one command surfaces all JSON errors at once instead of discovering them one file at a time at runtime.

何时使用

  • Catching broken config files before a deployment
  • Auditing a repo after a bulk find-and-replace on JSON
  • Validating data asset files added by a non-technical teammate
  • Checking memory files for syntax errors after manual edits
  • Running a quick sanity check after merging multiple branches

示例工作流

输入

User asks: check all JSON files in the project for syntax errors

智能体
  1. 1

    Run the linter with no arguments to scan from the current working directory

  2. 2

    Recursively find all .json files in the workspace

  3. 3

    Parse each file with JSON.parse() and record any thrown errors

  4. 4

    Collect results into a summary with per-file error messages

  5. 5

    Return the full JSON report

输出

A JSON report showing 150 files scanned, 149 valid, 1 invalid, with the path and error message for the broken file

安装

clawhub install wanng-ide/json-linter

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接