cli-agent-diagnose

Official

Pinpoint and fix CLI failures for agents.

Authorcli-agent-spec
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It turns opaque, failed CLI tool calls by AI agents into a classified CLI Agent Spec failure mode with a concrete workaround and guidance to prevent the same recurrence.

Core Features & Use Cases

  • Failure classification from a structured trace including command, stdout, stderr, and exit code.
  • Deterministic diagnosis with optional LLM-based classification for ambiguous cases.
  • Inline operational guidance: actionable workaround, limitation, and memory/skill patch output after successful matches.
  • Optional proactive interception via a Claude Code PreToolUse hook to warn before risky Bash calls.

Quick Start

Diagnose a failed CLI invocation by providing a trace JSON (command, stdout, stderr, exit_code) and running the classifier.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: cli-agent-diagnose
Download link: https://github.com/cli-agent-spec/cli-agent-spec/archive/main.zip#cli-agent-diagnose

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.