CLI Yes Automation Skill

Automate AI CLI interactions with auto-response, crash recovery, and idle exit.

28|13|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/snomiao/claude-yes --skill cli-yes-automation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CLI Yes Automation Skill
Source: https://github.com/snomiao/claude-yes/tree/main/.
Command: npx skills add https://github.com/snomiao/claude-yes --skill cli-yes-automation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bun-pty, from-node-stream, and includes references (resource) components.

What problem does it solve?

This Skill eliminates the repetitive manual interaction required when using various AI CLI tools, such as constantly typing 'Yes' to confirmation prompts. It ensures your AI assistant runs continuously without interruption, saving you time and reducing the cognitive load of managing AI workflows.

Core Features & Use Cases

  • Multi-CLI Support: Works seamlessly with Claude, Gemini, Codex, Copilot, Cursor, Grok, and Qwen CLI tools.
  • Auto-Response & Continuous Operation: Automatically handles "Yes" prompts and keeps the AI running until your task is complete, or exits gracefully when idle.
  • Crash Recovery: Automatically restarts crashed AI processes, ensuring your automation tasks are robust.
  • Use Case: Imagine you need to refactor a large codebase using Claude Code. Instead of constantly monitoring and confirming prompts, activate this skill to let Claude run autonomously, making progress while you focus on other tasks or even rest.

Quick Start

To run Claude Code to solve all TODOs in your codebase, automatically confirming prompts: cli-yes claude -- help me solve all todos in my codebase To use Grok to generate unit tests and exit after 60 seconds of inactivity: cli-yes grok --exit-on-idle=60s "generate unit tests for the current file"

Frequently Asked Questions about CLI Yes Automation Skill

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

FAQPage Schema
How do I automate confirmation prompts when running AI CLI tools like Claude or Grok?

Automate confirmation prompts by wrapping your AI CLI command with cli-yes, which auto-responds to 'Yes' prompts and keeps the process running continuously. For example: cli-yes claude -- help me solve all todos in my codebase automatically confirms each step without manual intervention.

Can I use CLI automation to keep AI assistants running without stopping for idle timeouts?

Yes. CLI Yes Automation handles idle detection and graceful exit—you set an inactivity threshold (e.g., --exit-on-idle=60s) and the process terminates automatically after that period, eliminating manual monitoring while ensuring the AI doesn't run indefinitely.

Does this work with multiple AI CLI tools, or just Claude?

CLI Yes Automation supports Claude, Gemini, Codex, Copilot, Cursor, Grok, and Qwen. A single wrapper command works across all these tools, enabling multi-AI workflows without tool-specific configuration changes.

What happens if an AI CLI process crashes during automation?

Crash recovery is built in—the automation restarts the failed AI process automatically, ensuring your long-running tasks remain robust without manual intervention or lost progress.

Can I use CLI automation in CI/CD pipelines or scripted workflows?

Yes. CLI Yes Automation is designed for automation scripts and CI/CD pipelines, enabling unattended AI-assisted batch processing with queue and lock management for reliable multi-step deployments.