تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

json-linter

بواسطة wanng-ide

Web & Frontend Development
481التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط