← All skill packs

Claude Code: Software Development Skills

Skill pack
2 skills0 selected
wan-huiyanSkills in this pack

Repair a Claude Code session whose transcript JSONL has an orphan servertooluse / toolresult content block, causing every API call (including /compact and claude --resume) to fail with HTTP 400 "unexpected tooluseid found in advisortoolresult blocks: srvtoolu... Each ... block must have a corresponding servertooluse block before it". Use when: (1) a Claude Code session dies mid-advisor call with "socket connection was closed unexpectedly", (2) resume / compact returns the 400 above naming srvtoolu..., (3) /remote-control (or any system event) activated mid-stream while the assistant was emitting an advisor response. Covers diagnosis via grouping JSONL lines by shared message.id, surgical deletion of the orphan pair (both halves), and the line-number-drift gotcha that occurs when the file grows between inspection and edit.

English

Repair a Claude Code session whose transcript JSONL has assistant messages containing a whitespace-only text block (typically {"type":"text","text":" "}), causing every API call (including new prompts, /compact, and claude --resume) to fail with HTTP 400 "messages: text content blocks must contain non-whitespace text". Use when: (1) a session refuses to accept new input with that exact 400, (2) /compact fails with the same 400 (since compact replays the full history first — it does NOT bypass the validator), (3) claude --resume immediately exits with the same error. Covers diagnosis via JSON-walking the message.content array (NOT plain grep — the empty block is often nested), the distinction between message.content (sent to API → must fix) and toolUseResult (local metadata → harmless, leave alone), the underlying cause (extended-thinking turn serialization emits a synthetic single-space placeholder before the thinking block), and an idempotent fixer script that replaces " " with "." while preserving message shape.

English

Includes Claude Code Session Jsonl Orphan Advisor Tool Result and Claude Code Session Jsonl Whitespace Text Block.

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Pack stats

Skills2CategorycontentStars0

What’s included

Claude Code Session Jsonl Orphan Advisor Tool Result

Repair a Claude Code session whose transcript JSONL has an orphan servertooluse / toolresult content block, causing every API call (including /compact and claude --resume) to fail with HTTP 400 "unexpected tooluseid found in advisortoolresult blocks: srvtoolu... Each ... block must have a corresponding servertooluse block before it". Use when: (1) a Claude Code session dies mid-advisor call with "socket connection was closed unexpectedly", (2) resume / compact returns the 400 above naming srvtoolu..., (3) /remote-control (or any system event) activated mid-stream while the assistant was emitting an advisor response. Covers diagnosis via grouping JSONL lines by shared message.id, surgical deletion of the orphan pair (both halves), and the line-number-drift gotcha that occurs when the file grows between inspection and edit.

Claude Code Session Jsonl Whitespace Text Block

Repair a Claude Code session whose transcript JSONL has assistant messages containing a whitespace-only text block (typically {"type":"text","text":" "}), causing every API call (including new prompts, /compact, and claude --resume) to fail with HTTP 400 "messages: text content blocks must contain non-whitespace text". Use when: (1) a session refuses to accept new input with that exact 400, (2) /compact fails with the same 400 (since compact replays the full history first — it does NOT bypass the validator), (3) claude --resume immediately exits with the same error. Covers diagnosis via JSON-walking the message.content array (NOT plain grep — the empty block is often nested), the distinction between message.content (sent to API → must fix) and toolUseResult (local metadata → harmless, leave alone), the underlying cause (extended-thinking turn serialization emits a synthetic single-space placeholder before the thinking block), and an idempotent fixer script that replaces " " with "." while preserving message shape.

Quick start

  1. Choose your skills. Select individual skills above, or choose the entire pack.
  2. Copy the install prompt. Use Copy install prompt above the list.
  3. Send it to your agent. Paste into your coding agent’s chat. Your agent reviews the source and guides the setup.

Try it with your agent

After installation, start with a request like:

Example request
Use the Claude Code Session Jsonl Orphan Advisor Tool Result skill to help with my task.
Ask me for the context you need before getting started.

Requirements & license

  • A coding agent that can access your project files and install skills.
  • Your agent checks each skill’s instructions, dependencies, and permissions during setup.
  • Reported license for the skills shown: MIT. The author’s terms apply.
Claude Code: Software Development Skills | Agent Skills Atlas