cli-anything-macrocli
하는 일
이 스킬은 AI 에이전트가 설정 가능한 입력이 있는 저장된 워크플로인 GUI 매크로를 나열하고, 확인하고, 실행하게 합니다. 일상적인 앱 작업을 안정적인 명령으로 처리하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓에이전트가 특정 설정으로 저장된 데스크톱 워크플로를 실행하기를 원할 때.
- ✓어떤 매크로가 있고 각각 어떤 입력을 받는지 확인해야 할 때.
- ✓워크플로가 무엇을 할지 바꾸지 않고 먼저 보고 싶을 때, 드라이 런을 쓰고 싶을 때.
스킬 링크
https://github.com/HKUDS/CLI-Anything/blob/main/macrocli/agent-harness/cli_anything/macrocli/skills/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Q3 보고서에 제 내보내기 매크로를 실행하고, 결과를 문서 폴더에 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 매크로 이름과 입력을 담아 명령 하나를 호출하며, 시스템이 각 단계를 수행하는 가장 좋은 방법을 고릅니다. 드라이 런은 실행 전에 단계를 보여 줄 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
MacroCLI CLI
What It Is
The MacroCLI converts valuable GUI workflows into parameterized, CLI-callable macros. Agents never touch the GUI directly — they call macros through this stable CLI, and the runtime routes execution to the best available backend (native plugin/API, file transformation, semantic UI control, or precompiled GUI macro replay).
Installation
cd macrocli/agent-harness
pip install -e .
Requirements: Python 3.10+, PyYAML, click, prompt-toolkit.
Quick Start (for agents)
# 1. See what macros are available
cli-anything-macrocli macro list --json
# 2. Inspect a macro's parameters
cli-anything-macrocli macro info export_file --json
# 3. Dry-run to check params without side effects
cli-anything-macrocli --dry-run macro run export_file \
--param output=/tmp/test.txt --json
# 4. Execute a macro
cli-anything-macrocli macro run export_file \
--param output=/tmp/result.txt --json
# 5. See what backends are available
cli-anything-macrocli backends --json
Command Reference
Global Flags
| Flag | Description |
|---|---|
--json |
Machine-readable JSON output on stdout |
--dry-run |
Simulate all steps, skip side effects |
--session-id <id> |
Resume or create a named session |
macro group
| Command | Description |
|---|---|
macro list |
List all available macros |
macro info <name> |
Show macro schema (parameters, steps, conditions) |
macro run <name> --param k=v |
Execute a macro |
macro dry-run <name> --param k=v |
Simulate without side effects |
macro validate [name] |
Structural validation |
macro define <name> |
Scaffold a new macro YAML |
session group
| Command | Description |
|---|---|
session status |
Show session statistics |
session history |
Show recent run history |
session save |
Persist session to disk |
session list |
List all saved sessions |
backends
cli-anything-macrocli backends --json
# Shows: native_api, file_transform, semantic_ui, gui_macro, recovery
# and whether each is available in the current environment.
Macro Parameters
Pass parameters with --param key=value. Repeat for multiple:
cli-anything-macrocli macro run transform_json \
--param file=/path/to/data.json \
--param key=settings.theme \
--param value=dark \
--json
Output Format (--json)
All commands output JSON when --json is set:
{
"success": true,
"macro_name": "export_file",
"output": {
"exported_file": "/tmp/result.txt"
},
"error": "",
"telemetry": {
"duration_ms": 312,
"steps_total": 2,
"steps_run": 2,
"backends_used": ["native_api"],
"dry_run": false
}
}
On failure ("success": false), read the "error" field for the reason.
Exit code is 1 on failure.
Execution Backends
Backends are selected automatically based on the macro step definition:
| Backend | Triggered by | Use case |
|---|---|---|
native_api |
backend: native_api |
Subprocess / shell command |
file_transform |
backend: file_transform |
XML, JSON, text file editing |
semantic_ui |
backend: semantic_ui |
Accessibility / keyboard shortcuts |
gui_macro |
backend: gui_macro |
Precompiled coordinate replay |
recovery |
backend: recovery |
Retry / fallback orchestration |
Writing Macros
Macros are YAML files in cli_anything/macrocli/macro_definitions/.
Scaffold one with:
cli-anything-macrocli macro define my_macro --output \
cli_anything/macrocli/macro_definitions/examples/my_macro.yaml
Minimal schema:
name: my_macro
version: "1.0"
description: What this macro does.
parameters:
output:
type: string
required: true
description: Where to write results.
example: /tmp/result.txt
preconditions:
- file_exists: /path/to/input
steps:
- id: step1
backend: native_api
action: run_command
params:
command: [my-app, --export, "${output}"]
timeout_ms: 30000
on_failure: fail # or: skip, continue
postconditions:
- file_exists: ${output}
- file_size_gt: [${output}, 100]
outputs:
- name: result_file
path: ${output}
agent_hints:
danger_level: safe # safe | moderate | dangerous
side_effects: [creates_file]
reversible: true
Agent Usage Rules
- Always use
--jsonfor programmatic output. - Use
--dry-runto validate params
자주 묻는 질문
에이전트가 앱 화면을 직접 클릭하나요?
아닙니다. 스킬에 따르면 에이전트는 안정적인 명령줄을 통해 매크로를 호출하고, 런타임이 각 단계를 수행하는 방법을 정합니다.
변경 전에 매크로를 테스트할 수 있나요?
네. 스킬은 단계를 시뮬레이션하고 부작용을 건너뛰는 드라이 런 옵션을 설명합니다.
사용하려면 무엇이 설치되어야 하나요?
Python 3.10 이상과, 하네스 폴더에서 설치하는 몇 가지 Python 패키지가 필요합니다.
상세 정보
작성자의 원본 설명
Use when the agent wants to define, list, inspect, or execute GUI macros via the MacroCLI CLI. Macros are parameterized, CLI-callable workflows — the agent invokes `macro run <name>` and the system handles backend routing (plugin, file transform, accessibility, compiled GUI replay).
repo: HKUDS/CLI-Anything
인기도
- GitHub 스타
- 58k
- 순위
- #3221
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
cli-anything-3mf
58k에이전트가 3D 프린팅 파일을 검사하고 고치도록 돕습니다. 둥근 구멍 찾기, 크기 조정, 메시 수리, 두 파일 비교가 가능합니다.
cli-anything-qgis
58k에이전트가 터미널에서 QGIS 지도 프로젝트를 열고 편집하고 내보내도록 돕습니다. 레이어, 피처, 인쇄 레이아웃, 처리 도구를 포함합니다.
cli-anything-adguardhome
58k에이전트가 네트워크 전체의 광고 차단기인 AdGuard Home을 관리하도록 돕습니다. 필터, DNS 재작성, 클라이언트, 쿼리 로그를 포함합니다.
cli-anything-anygen
58k에이전트가 AnyGen 서비스를 이용해 글로 된 프롬프트로 슬라이드, 문서, 웹사이트, 다이어그램을 만들도록 돕습니다.