hook-json-error-recovery

Community

Detect and recover from JSON/YAML parse errors.

Authorxuezhaojun
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This hook helps teams quickly identify and recover from JSON and YAML parsing errors in tool outputs, reducing debugging time and preventing repeated mistakes.

Core Features & Use Cases

  • Detects common parse errors in JSON and YAML outputs and suggests concrete fixes.
  • Provides structured recovery hints that guide the next assistant message to correct syntax.
  • Use case: when a tool returns invalid JSON, automatically injects a recovery step to repair structure and retry.

Quick Start

Run the json-error-recovery hook in your hook pipeline to automatically inject recovery hints when parse errors are detected.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hook-json-error-recovery
Download link: https://github.com/xuezhaojun/oh-your-opencode/archive/main.zip#hook-json-error-recovery

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.