cli-agent-evaluate

Evaluate a CLI tool against one CLI Agent Spec failure mode with a scored check.

5|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/cli-agent-spec/cli-agent-spec --skill cli-agent-evaluate-cli-agent-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-agent-evaluate
Source: https://github.com/cli-agent-spec/cli-agent-spec/tree/main/skills/cli-agent-evaluate
Command: npx skills add https://github.com/cli-agent-spec/cli-agent-spec --skill cli-agent-evaluate-cli-agent-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents AI agents from using unreliable CLI tools by running a targeted check for one documented failure mode and capturing auditable evidence.

Core Features & Use Cases

  • Single failure-mode evaluation: evaluates exactly one CLI Agent Spec failure mode per run to pinpoint the root cause quickly.
  • Profile-aware execution: loads or creates an environment profile for consistent, non-interactive invocation of the CLI.
  • Scored results with actionable guidance: assigns a score (0–3, or ?/3 on timeout) and provides a workload-appropriate agent workaround when the score is below 3.
  • Persistent findings + traceability: saves compact findings plus a reproducible trace (commands, exit codes, stdout/stderr) under evaluations/<cli-name>/.

Quick Start

Use the cli-agent-evaluate skill to evaluate the CLI command gh against failure mode §10 by asking an AI agent to run it with that identifier and your target CLI context.

Frequently Asked Questions about cli-agent-evaluate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a CLI tool for a specific failure mode non-interactively?

You can evaluate a CLI tool against a single failure mode by running its self-contained check command non-interactively with timeouts, scoring the observed behavior against a spec rubric. This captures auditable evidence like exit codes and stdout/stderr for reliable agent testing.

What is CLI agent spec compliance evaluation?

CLI agent spec compliance evaluation targets one documented failure mode per run to pinpoint root causes quickly. It executes a profile-aware, non-interactive check and assigns an evidence-based score from 0 to 3 to prevent AI agents from using unreliable command-line tools.

How do I identify a CLI failure mode using a reference file or section number?

You can locate failure-mode reference sections for CLI testing using identifiers like section numbers (§N), keywords, or reference file paths. The evaluation targets exactly one failure mode per run to isolate the root cause and generate a reproducible trace artifact.

What happens when a CLI tool scores below 3 on a failure mode check?

When a CLI tool scores below 3 on a failure mode check, the evaluation returns an applicable agent workaround. It also persists compact findings and a reproducible trace under the evaluations directory to document the unreliable behavior.

Do I need an environment profile to run a CLI failure mode evaluation?

Yes, you must load or create an environment profile to ensure consistent, non-interactive invocation of the CLI tool. This profile-aware execution guarantees the check command runs reliably with timeouts to capture accurate exit codes and output streams.

Why does my CLI testing timeout during non-interactive execution?

CLI testing times out during non-interactive execution when the check command exceeds the configured timeout limit. This results in a score of ?/3, and the system persists the trace artifacts, including commands and output, to help diagnose the hanging behavior.