cli-anything-macrocli
यह क्या करती है
यह स्किल AI एजेंट को GUI मैक्रो सूचीबद्ध करने, देखने और चलाने देती है। मैक्रो सहेजे गए वर्कफ़्लो होते हैं जिनमें इनपुट सेट किए जा सकते हैं। यह उन लोगों के लिए है जो रोज़ के ऐप के काम भरोसेमंद कमांड से करवाना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि आपका एजेंट कोई सहेजा हुआ डेस्कटॉप वर्कफ़्लो तय सेटिंग्स के साथ चलाए।
- ✓जब आपको देखना है कि कौन से मैक्रो मौजूद हैं और हर एक के लिए कौन से इनपुट चाहिए।
- ✓जब आप किसी वर्कफ़्लो को बदलाव करने से पहले dry run से देखना चाहते हैं।
Skill का लिंक
https://github.com/HKUDS/CLI-Anything/blob/main/macrocli/agent-harness/cli_anything/macrocli/skills/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा एक्सपोर्ट मैक्रो Q3 रिपोर्ट पर चलाइए और नतीजा मेरे Documents फ़ोल्डर में सेव कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक कमांड से मैक्रो का नाम और उसके इनपुट भेजता है, और सिस्टम हर चरण को पूरा करने का सबसे अच्छा तरीका चुनता है। dry run से पहले चरण दिखाए जा सकते हैं।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या एजेंट खुद ऐप की स्क्रीन पर क्लिक करता है?
नहीं, स्किल के अनुसार एजेंट एक स्थिर कमांड लाइन से मैक्रो चलाते हैं, और हर चरण कैसे पूरा होगा यह रनटाइम तय करता है।
क्या मैं कुछ बदलने से पहले मैक्रो टेस्ट कर सकता हूँ?
हाँ, स्किल एक dry-run विकल्प बताती है, जो चरणों की नकल करता है और बाहरी असर नहीं छोड़ता।
इसके लिए क्या इंस्टॉल होना चाहिए?
स्किल को Python 3.10 या उसका नया वर्ज़न और कुछ सहायक Python पैकेज चाहिए, जो harness फ़ोल्डर से इंस्टॉल होते हैं।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 21/9/2026
कमेंट
- …
इस repository की और skills
cli-anything-3mf
58kयह आपके एजेंट को 3D प्रिंटिंग फ़ाइलों का निरीक्षण और सुधार करने देती है, जिसमें गोल छेद खोजना, उनका आकार बदलना, मेश ठीक करना और दो फ़ाइलों की तुलना शामिल है।
cli-anything-qgis
58kयह आपके एजेंट को टर्मिनल से QGIS मैप प्रोजेक्ट खोलने, संपादित करने और निर्यात करने देती है, जिसमें लेयर, फ़ीचर, प्रिंट लेआउट और प्रोसेसिंग टूल शामिल हैं।
cli-anything-adguardhome
58kयह आपके एजेंट को AdGuard Home, एक नेटवर्क-व्यापी ऐड ब्लॉकर, प्रबंधित करने देती है, जिसमें फ़िल्टर, DNS rewrites, क्लाइंट और क्वेरी लॉग शामिल हैं।
cli-anything-anygen
58kयह आपके एजेंट को लिखे गए प्रॉम्प्ट से AnyGen सेवा का उपयोग करके स्लाइड, दस्तावेज़, वेबसाइट और आरेख बनवाने देती है।
मिलती-जुलती skills
knowledge-automation
394kयह आपके एजेंट को एक नियमित काम सेट करने देती है जो समय-सारणी पर Knowledge vault में नई सामग्री जोड़ता है, फिर जांचता है कि काम चल रहा है।
knowledge-source-ingest
394kयह आपके एजेंट को चैट चैनल, फ़ीड या मेलबॉक्स से आई नई चीज़ों से Knowledge vault अपडेट रखने देती है, बिना वह दोबारा जोड़े जो पहले से है।
benchmark
280kयह आपके एजेंट को code की speed और performance नापने में मदद करता है। यह पक्का करने और धीमेपन की समस्याएँ ढूँढने में काम आता है।