{
  "schemaVersion": "1.0",
  "item": {
    "slug": "json-repair-kit",
    "name": "Json Repair Kit",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/wanng-ide/json-repair-kit",
    "canonicalUrl": "https://clawhub.ai/wanng-ide/json-repair-kit",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/json-repair-kit",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=json-repair-kit",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "index.js",
      "package.json",
      "scripts/test.js"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/json-repair-kit"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/json-repair-kit",
    "agentPageUrl": "https://openagent3.xyz/skills/json-repair-kit/agent",
    "manifestUrl": "https://openagent3.xyz/skills/json-repair-kit/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/json-repair-kit/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "JSON Repair Kit",
        "body": "A utility to repair broken or \"loose\" JSON files (like those with trailing commas, single quotes, or unquoted keys) by parsing them as JavaScript objects and re-serializing as valid JSON."
      },
      {
        "title": "Usage",
        "body": "# Repair a file in place (creates .bak backup)\nnode skills/json-repair-kit/index.js --file path/to/broken.json\n\n# Repair and save to a new file\nnode skills/json-repair-kit/index.js --file broken.json --out fixed.json\n\n# Scan directory and repair all .json files (recursive)\nnode skills/json-repair-kit/index.js --dir config/ --recursive"
      },
      {
        "title": "Supported Repairs",
        "body": "Trailing Commas: {\"a\": 1,} -> {\"a\": 1}\nSingle Quotes: {'a': 'b'} -> {\"a\": \"b\"}\nUnquoted Keys: {key: \"value\"} -> {\"key\": \"value\"}\nComments: Removes JS-style comments // (if parser supports it, standard Node eval may strip them if they are line comments outside of strings).\nHex/Octal Numbers: 0xFF -> 255"
      },
      {
        "title": "Safety",
        "body": "Backup: Always creates a .bak file before overwriting (unless --no-backup is used, but default is safe).\nValidation: Verifies the repaired content is valid JSON before writing.\nEval Sandbox: Uses vm.runInNewContext to parse, ensuring no access to global scope or process. It is safer than eval()."
      }
    ],
    "body": "JSON Repair Kit\n\nA utility to repair broken or \"loose\" JSON files (like those with trailing commas, single quotes, or unquoted keys) by parsing them as JavaScript objects and re-serializing as valid JSON.\n\nUsage\n# Repair a file in place (creates .bak backup)\nnode skills/json-repair-kit/index.js --file path/to/broken.json\n\n# Repair and save to a new file\nnode skills/json-repair-kit/index.js --file broken.json --out fixed.json\n\n# Scan directory and repair all .json files (recursive)\nnode skills/json-repair-kit/index.js --dir config/ --recursive\n\nSupported Repairs\nTrailing Commas: {\"a\": 1,} -> {\"a\": 1}\nSingle Quotes: {'a': 'b'} -> {\"a\": \"b\"}\nUnquoted Keys: {key: \"value\"} -> {\"key\": \"value\"}\nComments: Removes JS-style comments // (if parser supports it, standard Node eval may strip them if they are line comments outside of strings).\nHex/Octal Numbers: 0xFF -> 255\nSafety\nBackup: Always creates a .bak file before overwriting (unless --no-backup is used, but default is safe).\nValidation: Verifies the repaired content is valid JSON before writing.\nEval Sandbox: Uses vm.runInNewContext to parse, ensuring no access to global scope or process. It is safer than eval()."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/wanng-ide/json-repair-kit",
    "publisherUrl": "https://clawhub.ai/wanng-ide/json-repair-kit",
    "owner": "wanng-ide",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/json-repair-kit",
    "downloadUrl": "https://openagent3.xyz/downloads/json-repair-kit",
    "agentUrl": "https://openagent3.xyz/skills/json-repair-kit/agent",
    "manifestUrl": "https://openagent3.xyz/skills/json-repair-kit/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/json-repair-kit/agent.md"
  }
}