cli-anything

Control desktop software (GIMP, Blender, LibreOffice, etc.) through CLI-Anything generated command-line interfaces. Calls real application backends — much more reliable than GUI automation via desktop_* tools.

1,592 stars

Best use case

cli-anything is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Control desktop software (GIMP, Blender, LibreOffice, etc.) through CLI-Anything generated command-line interfaces. Calls real application backends — much more reliable than GUI automation via desktop_* tools.

Teams using cli-anything should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/cli-anything/SKILL.md --create-dirs "https://raw.githubusercontent.com/openakita/openakita/main/skills/system/cli-anything/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/cli-anything/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How cli-anything Compares

Feature / Agentcli-anythingStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Control desktop software (GIMP, Blender, LibreOffice, etc.) through CLI-Anything generated command-line interfaces. Calls real application backends — much more reliable than GUI automation via desktop_* tools.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# CLI-Anything - 桌面软件 CLI 控制

通过 [CLI-Anything](https://github.com/HKUDS/CLI-Anything) 生成的 CLI 接口控制桌面软件。
直接调用软件后端 API,比 pyautogui/UIA 的 GUI 自动化可靠得多。

## 核心优势

- **调用真实后端** — GIMP 真实处理图片,LibreOffice 真实生成 PDF
- **结构化 JSON 输出** — `--json` 和 `--help` 标准支持
- **比 GUI 自动化可靠 100x** — 不依赖像素位置、窗口状态

## 何时使用 CLI-Anything(优先于 desktop_* 工具)

| 场景 | 推荐工具 | 原因 |
|------|---------|------|
| 操作有 CLI 的桌面软件 | `cli_anything_run` | 确定性,JSON 输出 |
| 无 CLI 的桌面软件 | `desktop_*` 工具 | 降级到 GUI 自动化 |
| 查看可用工具 | `cli_anything_discover` | 扫描 PATH |
| 了解命令参数 | `cli_anything_help` | 获取 --help 文档 |

## 工具

### cli_anything_discover — 发现已安装工具

```python
cli_anything_discover()
```

### cli_anything_run — 执行命令

```python
cli_anything_run(app="gimp", subcommand="image resize", args=["--width", "800", "input.png"])
cli_anything_run(app="libreoffice", subcommand="document export-pdf", args=["report.docx"])
```

### cli_anything_help — 查看帮助文档

```python
cli_anything_help(app="gimp")
cli_anything_help(app="gimp", subcommand="image resize")
```

## 安装 CLI-Anything 工具

```bash
# 从 CLI-Hub 安装已有的 CLI
pip install cli-anything-gimp
pip install cli-anything-blender
pip install cli-anything-libreoffice

# 为新软件生成 CLI(需要 Claude Code)
/cli-anything ./your-software
```

## 支持的软件

CLI-Anything 社区已支持 9+ 软件:

- **创意工具**: GIMP, Blender, Inkscape, Audacity, OBS Studio
- **办公软件**: LibreOffice
- **AI 平台**: Stable Diffusion, ComfyUI
- **开发工具**: Jenkins, Gitea, pgAdmin

## 决策路径

```
需要控制桌面软件?
├─ 有 cli-anything CLI → cli_anything_run(首选)
├─ 无 CLI + Windows → desktop_* 工具(GUI 自动化)
└─ 无 CLI + 非 Windows → run_shell 尝试命令行工具
```

## 相关技能

- `desktop_click` / `desktop_type` — 无 CLI 时的降级 GUI 方案
- `run_shell` — 直接执行命令行

Related Skills

openakita/skills@yuque-skills

1592
from openakita/openakita

Manage Yuque (语雀) knowledge bases, documents, and team collaboration through API integration. Supports personal search, weekly reports, knowledge base management, document CRUD, and group collaboration workflows. Based on yuque/yuque-skills.

openakita/skills@youtube-summarizer

1592
from openakita/openakita

Summarize YouTube videos by extracting transcripts and generating structured notes. Use when the user wants to summarize a YouTube video, extract key points from a talk, create study notes from a lecture, or get timestamps for important moments. Supports multiple URL formats and languages.

openakita/skills@xlsx

1592
from openakita/openakita

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

openakita/skills@xiaohongshu-creator

1592
from openakita/openakita

Create engaging Xiaohongshu (RED/小红书) content including titles, body text, hashtags, and image style recommendations. Supports multiple content types such as product reviews, tutorials, lifestyle sharing, and shopping guides with platform-specific optimization.

openakita/skills@wechat-article

1592
from openakita/openakita

Create and format WeChat Official Account (公众号) articles with proper Markdown-to-WeChat HTML conversion, rich formatting, cover image guidance, and both API and manual publishing workflows.

openakita/skills@webapp-testing

1592
from openakita/openakita

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

openakita/skills@web-artifacts-builder

1592
from openakita/openakita

Suite of tools for creating elaborate, multi-component interactive HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

openakita/skills@video-downloader

1592
from openakita/openakita

Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.

openakita/skills@translate-pdf

1592
from openakita/openakita

Translate PDF documents while preserving original layout, styling, tables, images, and formatting. Supports Simplified Chinese, Traditional Chinese, English, Japanese, Korean, and more. Page-by-page translation with structure preservation.

openakita/skills@todoist-task

1592
from openakita/openakita

Manage Todoist tasks, projects, sections, labels, and filters via REST API v2. Supports task CRUD, due dates, priorities, recurring tasks, project organization, and advanced filtering. Based on doggy8088/agent-skills/todoist-api, using curl + jq.

openakita/skills@theme-factory

1592
from openakita/openakita

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

write-file

1592
from openakita/openakita

Write content to file, creating new or overwriting existing. When you need to create new files, update file content, or save generated code/data.