Diagnose and repair 'invalid high surrogate' API errors in Claude Code chat sessions. Use this skill when the user encounters API Error 400 with 'invalid high surrogate in string', 'not valid JSON', surrogate-related errors, or wants to fix/scan/repair a broken Claude Code JSONL chat file. Also use when a session refuses to resume due to JSON encoding errors, or when the user mentions request IDs (req_...) alongside JSON parse failures.
$npx -y skills add tebjan/agent-skills --skill fix-jsonl-surrogatesInstalls into the current project.
Run `npx skills use "https://github.com/tebjan/agent-skills" --skill "tebjan/agent-skills/fix-jsonl-surrogates"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/tebjan/agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/tebjan/agent-skills"` and select the relevant skills, then follow their instructions.