"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
refactor: rename openclaw-skill → macrocli throughout
haorui-harry9db82326e585
diff --git a/openclaw-skill/SKILL.md b/macrocli/SKILL.mdsimilarity index 100%rename from openclaw-skill/SKILL.mdrename to macrocli/SKILL.mddiff --git a/openclaw-skill/agent-harness/OPENCLAW.md b/macrocli/agent-harness/MACROCLI.mdsimilarity index 89%rename from openclaw-skill/agent-harness/OPENCLAW.mdrename to macrocli/agent-harness/MACROCLI.mdindex 4cfddd711..e2c684c68 100644--- a/openclaw-skill/agent-harness/OPENCLAW.md+++ b/macrocli/agent-harness/MACROCLI.md@@ -1,12 +1,12 @@-# OpenClaw Macro System — Agent Harness SOP+# MacroCLI — Agent Harness SOP## What Is This?-**OpenClaw Macro System** is a layered CLI that turns valuable GUI workflows into+**MacroCLI** is a layered CLI that turns valuable GUI workflows intoparameterized, agent-callable macros. The agent sends one command:```bash-cli-anything-openclaw macro run export_png --param output=/tmp/out.png --json+cli-anything-macrocli macro run export_png --param output=/tmp/out.png --json```The system handles everything else: parameter validation, precondition checks,@@ -17,7 +17,7 @@ result output. The agent never touches the GUI directly.```Agent- └─▶ cli-anything-openclaw macro run <name> --param k=v --json (L6: CLI)+ └─▶ cli-anything-macrocli macro run <name> --param k=v --json (L6: CLI)│MacroRuntime (L5)│ 1. Validate params against MacroDefinition schema@@ -35,8 +35,8 @@ Agent| Layer | Name | Implementation ||-------|------|---------------|-| L7 | Agent Task Interface | Caller (OpenClaw or any agent) |-| L6 | Unified CLI Entry | `openclaw_cli.py` — Click CLI |+| L7 | Agent Task Interface | Caller (any AI agent) |+| L6 | Unified CLI Entry | `macrocli_cli.py` — Click CLI || L5 | Macro Execution Runtime | `core/runtime.py` || L4 | Parameterized Macro Model | `core/macro_model.py` + `macro_definitions/*.yaml` || L3 | Backend Routing Engine | `core/routing.py` |@@ -58,7 +58,7 @@ is unavailable it walks down the priority list.## Macro Definition Format-Macros live in `cli_anything/openclaw/macro_definitions/` as YAML files:+Macros live in `cli_anything/macrocli/macro_definitions/` as YAML files:```yamlname: export_png@@ -113,11 +113,11 @@ agent_hints:## Package Layout```-openclaw-skill/+macrocli/└── agent-harness/- ├── setup.py entry_point: cli-anything-openclaw- └── cli_anything/openclaw/- ├── openclaw_cli.py Main Click CLI+ ├── setup.py entry_point: cli-anything-macrocli+ └── cli_anything/macrocli/+ ├── macrocli_cli.py Main Click CLI├── macro_definitions/ YAML macro registry│ ├── manifest.yaml│ └── examples/@@ -147,7 +147,7 @@ openclaw-skill/## Installation```bash-cd openclaw-skill/agent-harness+cd macrocli/agent-harnesspip install -e .```@@ -161,8 +161,8 @@ pip install -e .## Running Tests```bash-cd openclaw-skill/agent-harness-python3 -m pytest cli_anything/openclaw/tests/ -v -s+cd macrocli/agent-harness+python3 -m pytest cli_anything/macrocli/tests/ -v -s# 64 passed```diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/README.md b/macrocli/agent-harness/cli_anything/macrocli/README.mdsimilarity index 72%rename from openclaw-skill/agent-harness/cli_anything/openclaw/README.mdrename to macrocli/agent-harness/cli_anything/macrocli/README.mdindex 195869bdb..a0bd73eec 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/README.md+++ b/macrocli/agent-harness/cli_anything/macrocli/README.md@@ -1,6 +1,6 @@-# OpenClaw Macro System+# MacroCLI-**OpenClaw Macro System** is a layered CLI that converts GUI workflows into+**MacroCLI** is a layered CLI that converts GUI workflows intoparameterized, agent-callable macros. Agents call `macro run <name>` througha stable CLI; the system routes execution to the right backend (native plugin,file transform, semantic UI, or compiled GUI replay) — invisible to the agent.@@ -17,36 +17,36 @@ pip install -e .```bash# List available macros-cli-anything-openclaw macro list --json+cli-anything-macrocli macro list --json# Inspect a macro-cli-anything-openclaw macro info export_file --json+cli-anything-macrocli macro info export_file --json# Execute a macro-cli-anything-openclaw macro run transform_json \+cli-anything-macrocli macro run transform_json \--param file=/tmp/config.json \--param key=theme --param value=dark --json# Dry run-cli-anything-openclaw --dry-run macro run export_file \+cli-anything-macrocli --dry-run macro run export_file \--param output=/tmp/out.txt --json# Interactive REPL-cli-anything-openclaw+cli-anything-macrocli```## Run Tests```bash-cd openclaw-skill/agent-harness+cd macrocli/agent-harnesspip install -e ".[dev]"-python -m pytest cli_anything/openclaw/tests/ -v -s+python -m pytest cli_anything/macrocli/tests/ -v -s```## Architecture```-cli-anything-openclaw (CLI)+cli-anything-macrocli (CLI)└─▶ macro run <name> --param key=value│MacroRuntime@@ -68,8 +68,8 @@ cli-anything-openclaw (CLI)## Adding a Macro-1. Create `cli_anything/openclaw/macro_definitions/my_macro.yaml`+1. Create `cli_anything/macrocli/macro_definitions/my_macro.yaml`2. Add it to `macro_definitions/manifest.yaml`-3. Verify: `cli-anything-openclaw macro validate my_macro --json`+3. Verify: `cli-anything-macrocli macro validate my_macro --json`See `skills/SKILL.md` (installed with the package) for full macro YAML schema.diff --git a/macrocli/agent-harness/cli_anything/macrocli/__init__.py b/macrocli/agent-harness/cli_anything/macrocli/__init__.pynew file mode 100644index 000000000..f659e5ca1--- /dev/null+++ b/macrocli/agent-harness/cli_anything/macrocli/__init__.py@@ -0,0 +1 @@+# cli_anything/macrocli packagediff --git a/macrocli/agent-harness/cli_anything/macrocli/__main__.py b/macrocli/agent-harness/cli_anything/macrocli/__main__.pynew file mode 100644index 000000000..155bf0be5--- /dev/null+++ b/macrocli/agent-harness/cli_anything/macrocli/__main__.py@@ -0,0 +1,5 @@+"""Enable: python3 -m cli_anything.macrocli"""+from cli_anything.macrocli.macrocli_cli import cli++if __name__ == "__main__":+ cli()diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/__init__.py b/macrocli/agent-harness/cli_anything/macrocli/backends/__init__.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/__init__.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/__init__.pydiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/base.py b/macrocli/agent-harness/cli_anything/macrocli/backends/base.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/base.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/base.pydiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/file_transform.py b/macrocli/agent-harness/cli_anything/macrocli/backends/file_transform.pysimilarity index 98%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/file_transform.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/file_transform.pyindex 879110149..ec14a9935 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/file_transform.py+++ b/macrocli/agent-harness/cli_anything/macrocli/backends/file_transform.py@@ -37,8 +37,8 @@ import osimport timefrom pathlib import Path-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.core.macro_model import MacroStep, substitute+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.core.macro_model import MacroStep, substituteclass FileTransformBackend(Backend):diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/gui_macro.py b/macrocli/agent-harness/cli_anything/macrocli/backends/gui_macro.pysimilarity index 98%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/gui_macro.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/gui_macro.pyindex 3dcbe9eca..ff1fb7c63 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/gui_macro.py+++ b/macrocli/agent-harness/cli_anything/macrocli/backends/gui_macro.py@@ -34,8 +34,8 @@ import jsonimport timefrom pathlib import Path-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.core.macro_model import MacroStep, substitute+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.core.macro_model import MacroStep, substituteclass GUIMacroBackend(Backend):diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/native_api.py b/macrocli/agent-harness/cli_anything/macrocli/backends/native_api.pysimilarity index 97%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/native_api.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/native_api.pyindex 8cc2d5b20..8c3ca51d1 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/native_api.py+++ b/macrocli/agent-harness/cli_anything/macrocli/backends/native_api.py@@ -24,8 +24,8 @@ import subprocessimport timefrom typing import Any-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.core.macro_model import MacroStep, substitute+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.core.macro_model import MacroStep, substituteclass NativeAPIBackend(Backend):diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/recovery.py b/macrocli/agent-harness/cli_anything/macrocli/backends/recovery.pysimilarity index 97%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/recovery.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/recovery.pyindex 8af918e48..bc25b83ac 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/recovery.py+++ b/macrocli/agent-harness/cli_anything/macrocli/backends/recovery.py@@ -25,8 +25,8 @@ from __future__ import annotationsimport time-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.core.macro_model import MacroStep, substitute+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.core.macro_model import MacroStep, substituteclass RecoveryBackend(Backend):diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/semantic_ui.py b/macrocli/agent-harness/cli_anything/macrocli/backends/semantic_ui.pysimilarity index 98%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/semantic_ui.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/semantic_ui.pyindex 33e1c9b44..38f143221 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/semantic_ui.py+++ b/macrocli/agent-harness/cli_anything/macrocli/backends/semantic_ui.py@@ -59,8 +59,8 @@ import subprocessimport timefrom typing import Optional-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.core.macro_model import MacroStep, substitute+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.core.macro_model import MacroStep, substitute_SYSTEM = platform.system()@@ -306,8 +306,8 @@ class SemanticUIBackend(Backend):elif _SYSTEM == "Darwin":# Use pynput (cross-platform) or AppleScript key code- from cli_anything.openclaw.backends.visual_anchor import VisualAnchorBackend- from cli_anything.openclaw.core.macro_model import MacroStep as MS+ from cli_anything.macrocli.backends.visual_anchor import VisualAnchorBackend+ from cli_anything.macrocli.core.macro_model import MacroStep as MSva = VisualAnchorBackend()step = MS(id="x", backend="visual_anchor", action="hotkey", params={"keys": keys})result = va._hotkey({"keys": keys}, context)@@ -333,7 +333,7 @@ class SemanticUIBackend(Backend):return {"typed": len(text), "method": "xdotool"}# macOS / Windows: fall through to visual_anchor type_text- from cli_anything.openclaw.backends.visual_anchor import VisualAnchorBackend+ from cli_anything.macrocli.backends.visual_anchor import VisualAnchorBackendva = VisualAnchorBackend()return va._type_text(p, context)diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/visual_anchor.py b/macrocli/agent-harness/cli_anything/macrocli/backends/visual_anchor.pysimilarity index 99%rename from openclaw-skill/agent-harness/cli_anything/openclaw/backends/visual_anchor.pyrename to macrocli/agent-harness/cli_anything/macrocli/backends/visual_anchor.pyindex cfecc158d..e2078ef1a 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/backends/visual_anchor.py+++ b/macrocli/agent-harness/cli_anything/macrocli/backends/visual_anchor.py@@ -69,8 +69,8 @@ import timefrom pathlib import Pathfrom typing import Optional-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.core.macro_model import MacroStep, substitute+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.core.macro_model import MacroStep, substitute# ── lazy imports (only needed when backend is actually used) ──────────────────diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/__init__.py b/macrocli/agent-harness/cli_anything/macrocli/core/__init__.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/__init__.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/__init__.pydiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.py b/macrocli/agent-harness/cli_anything/macrocli/core/gemini_assist.pysimilarity index 99%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/gemini_assist.pyindex e4066e904..6780105b6 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/gemini_assist.py+++ b/macrocli/agent-harness/cli_anything/macrocli/core/gemini_assist.py@@ -29,7 +29,7 @@ The "description" field in click_image / wait_image / scroll tells the userwhat template image to capture with 'macro record' or 'capture_region'.Usage:- cli-anything-openclaw macro define my_export --assist \+ cli-anything-macrocli macro define my_export --assist \--goal "Export the current diagram as PNG to /tmp/out.png" \--screenshot current # takes a fresh screenshot--screenshot /path/to/img.png # use existing imagediff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/macro_model.py b/macrocli/agent-harness/cli_anything/macrocli/core/macro_model.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/macro_model.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/macro_model.pydiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/recorder.py b/macrocli/agent-harness/cli_anything/macrocli/core/recorder.pysimilarity index 99%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/recorder.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/recorder.pyindex 378c3a79d..40afe6f8c 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/recorder.py+++ b/macrocli/agent-harness/cli_anything/macrocli/core/recorder.py@@ -1,7 +1,7 @@"""Macro recorder — record GUI interactions and generate macro YAML.Usage:- cli-anything-openclaw macro record my_workflow+ cli-anything-macrocli macro record my_workflowWhat it does:1. Starts listening for mouse clicks and keyboard events (pynput)diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/registry.py b/macrocli/agent-harness/cli_anything/macrocli/core/registry.pysimilarity index 97%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/registry.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/registry.pyindex 8735af349..91f76a9ab 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/registry.py+++ b/macrocli/agent-harness/cli_anything/macrocli/core/registry.py@@ -4,7 +4,7 @@ The registry scans a macros/ directory (and subdirectories) for *.yaml files,optionally guided by a manifest.yaml index.Usage:- from cli_anything.openclaw.core.registry import MacroRegistry+ from cli_anything.macrocli.core.registry import MacroRegistryregistry = MacroRegistry("/path/to/macros")macro = registry.load("export_file")all_macros = registry.list_all()@@ -21,7 +21,7 @@ try:except ImportError as e:raise ImportError("PyYAML is required: pip install PyYAML") from e-from cli_anything.openclaw.core.macro_model import MacroDefinition, load_from_yaml+from cli_anything.macrocli.core.macro_model import MacroDefinition, load_from_yamlclass MacroRegistry:diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/routing.py b/macrocli/agent-harness/cli_anything/macrocli/core/routing.pysimilarity index 87%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/routing.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/routing.pyindex cf198e744..1658dbd6a 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/routing.py+++ b/macrocli/agent-harness/cli_anything/macrocli/core/routing.py@@ -15,14 +15,14 @@ the priority list.from __future__ import annotations-from cli_anything.openclaw.backends.base import Backend, BackendContext, StepResult-from cli_anything.openclaw.backends.native_api import NativeAPIBackend-from cli_anything.openclaw.backends.file_transform import FileTransformBackend-from cli_anything.openclaw.backends.semantic_ui import SemanticUIBackend-from cli_anything.openclaw.backends.gui_macro import GUIMacroBackend-from cli_anything.openclaw.backends.visual_anchor import VisualAnchorBackend-from cli_anything.openclaw.backends.recovery import RecoveryBackend-from cli_anything.openclaw.core.macro_model import MacroStep+from cli_anything.macrocli.backends.base import Backend, BackendContext, StepResult+from cli_anything.macrocli.backends.native_api import NativeAPIBackend+from cli_anything.macrocli.backends.file_transform import FileTransformBackend+from cli_anything.macrocli.backends.semantic_ui import SemanticUIBackend+from cli_anything.macrocli.backends.gui_macro import GUIMacroBackend+from cli_anything.macrocli.backends.visual_anchor import VisualAnchorBackend+from cli_anything.macrocli.backends.recovery import RecoveryBackend+from cli_anything.macrocli.core.macro_model import MacroStep_BACKEND_PRIORITY: dict[str, int] = {diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/runtime.py b/macrocli/agent-harness/cli_anything/macrocli/core/runtime.pysimilarity index 97%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/runtime.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/runtime.pyindex fb76a9ba7..1c66efea0 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/runtime.py+++ b/macrocli/agent-harness/cli_anything/macrocli/core/runtime.py@@ -23,16 +23,16 @@ import timefrom dataclasses import dataclass, fieldfrom typing import Any, Optional-from cli_anything.openclaw.core.macro_model import (+from cli_anything.macrocli.core.macro_model import (MacroCondition,MacroDefinition,MacroStep,substitute,)-from cli_anything.openclaw.core.registry import MacroRegistry-from cli_anything.openclaw.core.routing import RoutingEngine-from cli_anything.openclaw.core.session import ExecutionSession, RunRecord-from cli_anything.openclaw.backends.base import BackendContext, StepResult+from cli_anything.macrocli.core.registry import MacroRegistry+from cli_anything.macrocli.core.routing import RoutingEngine+from cli_anything.macrocli.core.session import ExecutionSession, RunRecord+from cli_anything.macrocli.backends.base import BackendContext, StepResult# ── Result types ─────────────────────────────────────────────────────────────diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/core/session.py b/macrocli/agent-harness/cli_anything/macrocli/core/session.pysimilarity index 97%rename from openclaw-skill/agent-harness/cli_anything/openclaw/core/session.pyrename to macrocli/agent-harness/cli_anything/macrocli/core/session.pyindex 5c7f38a1f..75a8eb00c 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/core/session.py+++ b/macrocli/agent-harness/cli_anything/macrocli/core/session.py@@ -1,6 +1,6 @@"""ExecutionSession — tracks macro run history and telemetry.-Persists run records to ~/.openclaw-macro/sessions/ so agents can inspect+Persists run records to ~/.macrocli/sessions/ so agents can inspectwhat was run, what succeeded, and what the outputs were."""@@ -12,7 +12,7 @@ import timefrom pathlib import Pathfrom typing import Optional-SESSION_DIR = Path.home() / ".openclaw-macro" / "sessions"+SESSION_DIR = Path.home() / ".macrocli" / "sessions"MAX_HISTORY = 200diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/examples/export_file.yaml b/macrocli/agent-harness/cli_anything/macrocli/macro_definitions/examples/export_file.yamlsimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/examples/export_file.yamlrename to macrocli/agent-harness/cli_anything/macrocli/macro_definitions/examples/export_file.yamldiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/examples/transform_json.yaml b/macrocli/agent-harness/cli_anything/macrocli/macro_definitions/examples/transform_json.yamlsimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/examples/transform_json.yamlrename to macrocli/agent-harness/cli_anything/macrocli/macro_definitions/examples/transform_json.yamldiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/examples/undo_last.yaml b/macrocli/agent-harness/cli_anything/macrocli/macro_definitions/examples/undo_last.yamlsimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/examples/undo_last.yamlrename to macrocli/agent-harness/cli_anything/macrocli/macro_definitions/examples/undo_last.yamldiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/manifest.yaml b/macrocli/agent-harness/cli_anything/macrocli/macro_definitions/manifest.yamlsimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/macro_definitions/manifest.yamlrename to macrocli/agent-harness/cli_anything/macrocli/macro_definitions/manifest.yamldiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/openclaw_cli.py b/macrocli/agent-harness/cli_anything/macrocli/macrocli_cli.pysimilarity index 94%rename from openclaw-skill/agent-harness/cli_anything/openclaw/openclaw_cli.pyrename to macrocli/agent-harness/cli_anything/macrocli/macrocli_cli.pyindex 48a062e7f..6f9fa396e 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/openclaw_cli.py+++ b/macrocli/agent-harness/cli_anything/macrocli/macrocli_cli.py@@ -1,18 +1,18 @@#!/usr/bin/env python3-"""OpenClaw CLI — agent-callable interface for the Macro System.+"""MacroCLI — agent-callable interface for the Macro System.-This CLI is the L6 "Unified CLI Entry" in the OpenClaw Macro System.+This CLI is the L6 "Unified CLI Entry" in the MacroCLI.It provides a stable, machine-readable interface for AI agents andpower users to invoke macros without touching the GUI.Usage (one-shot):- cli-anything-openclaw macro run export_file --param output=/tmp/out.png --json- cli-anything-openclaw macro list --json- cli-anything-openclaw macro info export_file --json+ cli-anything-macrocli macro run export_file --param output=/tmp/out.png --json+ cli-anything-macrocli macro list --json+ cli-anything-macrocli macro info export_file --jsonUsage (REPL):- cli-anything-openclaw # enters interactive REPL- cli-anything-openclaw repl+ cli-anything-macrocli # enters interactive REPL+ cli-anything-macrocli repl"""import sys@@ -21,9 +21,9 @@ import jsonimport clickfrom typing import Optional-from cli_anything.openclaw.core.registry import MacroRegistry-from cli_anything.openclaw.core.runtime import MacroRuntime-from cli_anything.openclaw.core.session import ExecutionSession+from cli_anything.macrocli.core.registry import MacroRegistry+from cli_anything.macrocli.core.runtime import MacroRuntime+from cli_anything.macrocli.core.session import ExecutionSession# ── Global state ─────────────────────────────────────────────────────────────@@ -139,13 +139,13 @@ def _parse_params(param_tuples: tuple) -> dict:@click.option("--session-id", default=None, help="Resume or create a named session.")@click.pass_contextdef cli(ctx, json_flag, dry_run_flag, session_id):- """OpenClaw Macro System — run GUI workflows as CLI commands.+ """MacroCLI — run GUI workflows as CLI commands.\bQuick start:- cli-anything-openclaw macro list- cli-anything-openclaw macro info <name>- cli-anything-openclaw macro run <name> --param key=value+ cli-anything-macrocli macro list+ cli-anything-macrocli macro info <name>+ cli-anything-macrocli macro run <name> --param key=valueEnter interactive REPL by running without arguments."""@@ -418,7 +418,7 @@ def macro_record(name, output_dir, timeout):Requires: pip install mss Pillow pynput"""try:- from cli_anything.openclaw.core.recorder import MacroRecorder+ from cli_anything.macrocli.core.recorder import MacroRecorderexcept ImportError as e:click.echo(f"Error: {e}", err=True)sys.exit(1)@@ -486,7 +486,7 @@ def macro_assist(name, goal, screenshot, output, api_key, model):--api-key $GEMINI_API_KEY"""try:- from cli_anything.openclaw.core.gemini_assist import generate_macro+ from cli_anything.macrocli.core.gemini_assist import generate_macroexcept ImportError as e:click.echo(f"Error: {e}", err=True)sys.exit(1)@@ -537,9 +537,9 @@ def macro_capture_template(output_path, x, y, width, height):Requires: pip install mss Pillow"""try:- from cli_anything.openclaw.backends.visual_anchor import VisualAnchorBackend- from cli_anything.openclaw.backends.base import BackendContext- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.backends.visual_anchor import VisualAnchorBackend+ from cli_anything.macrocli.backends.base import BackendContext+ from cli_anything.macrocli.core.macro_model import MacroStepexcept ImportError as e:click.echo(f"Error: {e}", err=True)sys.exit(1)@@ -660,8 +660,8 @@ def repl(ctx):global _repl_mode_repl_mode = True- from cli_anything.openclaw.utils.repl_skin import ReplSkin- skin = ReplSkin("openclaw", version="1.0.0")+ from cli_anything.macrocli.utils.repl_skin import ReplSkin+ skin = ReplSkin("macrocli", version="1.0.0")skin.print_banner()runtime = get_runtime()@@ -714,7 +714,7 @@ def repl(ctx):try:ctx_obj = cli.make_context(- "cli-anything-openclaw",+ "cli-anything-macrocli",args,standalone_mode=False,parent=ctx,diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/skills/SKILL.md b/macrocli/agent-harness/cli_anything/macrocli/skills/SKILL.mdsimilarity index 83%rename from openclaw-skill/agent-harness/cli_anything/openclaw/skills/SKILL.mdrename to macrocli/agent-harness/cli_anything/macrocli/skills/SKILL.mdindex c5e09d1b6..8970de1d2 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/skills/SKILL.md+++ b/macrocli/agent-harness/cli_anything/macrocli/skills/SKILL.md@@ -1,17 +1,17 @@----name: cli-anything-openclaw+name: cli-anything-macroclidescription: >Use when the agent wants to define, list, inspect, or execute GUI macros- via the OpenClaw Macro System CLI. Macros are parameterized, CLI-callable+ via the MacroCLI CLI. Macros are parameterized, CLI-callableworkflows — the agent invokes `macro run <name>` and the system handlesbackend routing (plugin, file transform, accessibility, compiled GUI replay).----# OpenClaw Macro System CLI+# MacroCLI CLI## What It Is-The OpenClaw Macro System converts valuable GUI workflows into parameterized,+The MacroCLI converts valuable GUI workflows into parameterized,CLI-callable macros. Agents **never touch the GUI directly** — they call macrosthrough this stable CLI, and the runtime routes execution to the best availablebackend (native plugin/API, file transformation, semantic UI control, or@@ -20,7 +20,7 @@ precompiled GUI macro replay).## Installation```bash-cd openclaw-skill/agent-harness+cd macrocli/agent-harnesspip install -e .```@@ -30,21 +30,21 @@ pip install -e .```bash# 1. See what macros are available-cli-anything-openclaw macro list --json+cli-anything-macrocli macro list --json# 2. Inspect a macro's parameters-cli-anything-openclaw macro info export_file --json+cli-anything-macrocli macro info export_file --json# 3. Dry-run to check params without side effects-cli-anything-openclaw --dry-run macro run export_file \+cli-anything-macrocli --dry-run macro run export_file \--param output=/tmp/test.txt --json# 4. Execute a macro-cli-anything-openclaw macro run export_file \+cli-anything-macrocli macro run export_file \--param output=/tmp/result.txt --json# 5. See what backends are available-cli-anything-openclaw backends --json+cli-anything-macrocli backends --json```## Command Reference@@ -80,7 +80,7 @@ cli-anything-openclaw backends --json### `backends````bash-cli-anything-openclaw backends --json+cli-anything-macrocli backends --json# Shows: native_api, file_transform, semantic_ui, gui_macro, recovery# and whether each is available in the current environment.```@@ -90,7 +90,7 @@ cli-anything-openclaw backends --jsonPass parameters with `--param key=value`. Repeat for multiple:```bash-cli-anything-openclaw macro run transform_json \+cli-anything-macrocli macro run transform_json \--param file=/path/to/data.json \--param key=settings.theme \--param value=dark \@@ -136,12 +136,12 @@ Backends are selected automatically based on the macro step definition:## Writing Macros-Macros are YAML files in `cli_anything/openclaw/macro_definitions/`.+Macros are YAML files in `cli_anything/macrocli/macro_definitions/`.Scaffold one with:```bash-cli-anything-openclaw macro define my_macro --output \- cli_anything/openclaw/macro_definitions/examples/my_macro.yaml+cli-anything-macrocli macro define my_macro --output \+ cli_anything/macrocli/macro_definitions/examples/my_macro.yaml```Minimal schema:@@ -197,19 +197,19 @@ agent_hints:```bash# Step 1: What's available?-cli-anything-openclaw macro list --json+cli-anything-macrocli macro list --json# Step 2: What params does transform_json need?-cli-anything-openclaw macro info transform_json --json+cli-anything-macrocli macro info transform_json --json# Step 3: Test safely-cli-anything-openclaw --dry-run macro run transform_json \+cli-anything-macrocli --dry-run macro run transform_json \--param file=/tmp/config.json \--param key=theme \--param value=dark --json# Step 4: Execute for real-cli-anything-openclaw macro run transform_json \+cli-anything-macrocli macro run transform_json \--param file=/tmp/config.json \--param key=theme \--param value=dark --jsondiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/tests/__init__.py b/macrocli/agent-harness/cli_anything/macrocli/tests/__init__.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/tests/__init__.pyrename to macrocli/agent-harness/cli_anything/macrocli/tests/__init__.pydiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/tests/test_core.py b/macrocli/agent-harness/cli_anything/macrocli/tests/test_core.pysimilarity index 82%rename from openclaw-skill/agent-harness/cli_anything/openclaw/tests/test_core.pyrename to macrocli/agent-harness/cli_anything/macrocli/tests/test_core.pyindex e68b018dd..54fde8c27 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/tests/test_core.py+++ b/macrocli/agent-harness/cli_anything/macrocli/tests/test_core.py@@ -1,4 +1,4 @@-"""Unit tests for OpenClaw Macro System core modules.+"""Unit tests for MacroCLI core modules.Covers: MacroDefinition, MacroRegistry, MacroRuntime, backends, routing.All tests use synthetic data and do not require external software.@@ -50,7 +50,7 @@ def write_macro(tmp_path: Path, name: str, content: str) -> Path:class TestMacroModel:def test_load_from_yaml(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))assert m.name == "test_macro"@@ -60,47 +60,47 @@ class TestMacroModel:assert m.steps[0].backend == "native_api"def test_load_missing_file(self):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlwith pytest.raises(FileNotFoundError):load_from_yaml("/nonexistent/path.yaml")def test_validate_params_required(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))errors = m.validate_params({})assert any("output" in e for e in errors)def test_validate_params_type_error(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))errors = m.validate_params({"output": "/tmp/x", "count": "not_an_int"})assert any("count" in e for e in errors)def test_validate_params_range(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))errors = m.validate_params({"output": "/tmp/x", "count": 200})assert any("count" in e for e in errors)def test_validate_params_ok(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))errors = m.validate_params({"output": "/tmp/x"})assert errors == []def test_resolve_params_defaults(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))resolved = m.resolve_params({"output": "/tmp/x"})assert resolved["count"] == 1def test_structural_validation_no_steps(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlyaml_content = "name: bad\nsteps: []\n"p = write_macro(tmp_path, "bad", yaml_content)m = load_from_yaml(str(p))@@ -108,7 +108,7 @@ class TestMacroModel:assert any("steps" in e for e in errors)def test_structural_validation_bad_backend(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlyaml_content = textwrap.dedent("""\name: badsteps:@@ -122,7 +122,7 @@ class TestMacroModel:assert any("fake_backend" in e for e in errors)def test_to_dict(self, tmp_path):- from cli_anything.openclaw.core.macro_model import load_from_yaml+ from cli_anything.macrocli.core.macro_model import load_from_yamlp = write_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)m = load_from_yaml(str(p))d = m.to_dict()@@ -133,23 +133,23 @@ class TestMacroModel:class TestSubstitute:def test_string_substitution(self):- from cli_anything.openclaw.core.macro_model import substitute+ from cli_anything.macrocli.core.macro_model import substituteresult = substitute("hello ${name}", {"name": "world"})assert result == "hello world"def test_nested_list(self):- from cli_anything.openclaw.core.macro_model import substitute+ from cli_anything.macrocli.core.macro_model import substituteresult = substitute(["echo", "${output}"], {"output": "/tmp/x"})assert result == ["echo", "/tmp/x"]def test_nested_dict(self):- from cli_anything.openclaw.core.macro_model import substitute+ from cli_anything.macrocli.core.macro_model import substituteresult = substitute({"path": "${output}", "other": 42}, {"output": "/out"})assert result["path"] == "/out"assert result["other"] == 42def test_missing_key_left_as_is(self):- from cli_anything.openclaw.core.macro_model import substitute+ from cli_anything.macrocli.core.macro_model import substituteresult = substitute("${missing}", {})assert result == "${missing}"@@ -158,20 +158,20 @@ class TestSubstitute:class TestMacroRegistry:def test_load_macro(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry+ from cli_anything.macrocli.core.registry import MacroRegistrywrite_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)reg = MacroRegistry(str(tmp_path))m = reg.load("test_macro")assert m.name == "test_macro"def test_load_missing_raises(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry+ from cli_anything.macrocli.core.registry import MacroRegistryreg = MacroRegistry(str(tmp_path))with pytest.raises(KeyError):reg.load("nonexistent_macro")def test_list_all(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry+ from cli_anything.macrocli.core.registry import MacroRegistrywrite_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)write_macro(tmp_path, "another", SIMPLE_MACRO_YAML.replace("test_macro", "another"))reg = MacroRegistry(str(tmp_path))@@ -180,7 +180,7 @@ class TestMacroRegistry:assert "another" in namesdef test_manifest_index(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry+ from cli_anything.macrocli.core.registry import MacroRegistrysub = tmp_path / "sub"sub.mkdir()write_macro(sub, "alpha", SIMPLE_MACRO_YAML.replace("test_macro", "alpha"))@@ -191,8 +191,8 @@ class TestMacroRegistry:assert m.name == "alpha"def test_register_programmatic(self):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.macro_model import MacroDefinition, MacroStep+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.macro_model import MacroDefinition, MacroStepreg = MacroRegistry("/nonexistent")macro = MacroDefinition(name="inline_macro",@@ -202,7 +202,7 @@ class TestMacroRegistry:assert reg.load("inline_macro").name == "inline_macro"def test_info(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry+ from cli_anything.macrocli.core.registry import MacroRegistrywrite_macro(tmp_path, "test_macro", SIMPLE_MACRO_YAML)reg = MacroRegistry(str(tmp_path))info = reg.info()@@ -214,22 +214,22 @@ class TestMacroRegistry:class TestNativeAPIBackend:def _make_context(self, params=None):- from cli_anything.openclaw.backends.base import BackendContext+ from cli_anything.macrocli.backends.base import BackendContextreturn BackendContext(params=params or {})def _make_step(self, action, step_params):- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.core.macro_model import MacroStepreturn MacroStep(id="test", backend="native_api", action=action, params=step_params)def test_run_command_success(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("run_command", {"command": ["echo", "hello"]})result = b.execute(step, {}, self._make_context())assert result.successdef test_run_command_fails_bad_exit(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("run_command", {"command": ["false"]})result = b.execute(step, {}, self._make_context())@@ -237,14 +237,14 @@ class TestNativeAPIBackend:assert "exit" in result.error.lower() or "failed" in result.error.lower()def test_run_command_not_found(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("run_command", {"command": ["__nonexistent_cmd__"]})result = b.execute(step, {}, self._make_context())assert not result.successdef test_find_executable_found(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("find_executable", {"name": "echo"})result = b.execute(step, {}, self._make_context())@@ -252,7 +252,7 @@ class TestNativeAPIBackend:assert "executable" in result.outputdef test_find_executable_missing(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("find_executable", {"name": "__nonexistent__",@@ -263,8 +263,8 @@ class TestNativeAPIBackend:assert "brew install" in result.errordef test_dry_run_does_not_execute(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend- from cli_anything.openclaw.backends.base import BackendContext+ from cli_anything.macrocli.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.base import BackendContextb = NativeAPIBackend()step = self._make_step("run_command", {"command": ["false"]})ctx = BackendContext(params={}, dry_run=True)@@ -273,14 +273,14 @@ class TestNativeAPIBackend:assert result.output.get("dry_run")def test_param_substitution_in_command(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("run_command", {"command": ["echo", "${msg}"]})result = b.execute(step, {"msg": "substituted"}, self._make_context({"msg": "substituted"}))assert result.successdef test_unknown_action(self):- from cli_anything.openclaw.backends.native_api import NativeAPIBackend+ from cli_anything.macrocli.backends.native_api import NativeAPIBackendb = NativeAPIBackend()step = self._make_step("unknown_action", {})result = b.execute(step, {}, self._make_context())@@ -290,12 +290,12 @@ class TestNativeAPIBackend:class TestFileTransformBackend:def _make_context(self):- from cli_anything.openclaw.backends.base import BackendContext+ from cli_anything.macrocli.backends.base import BackendContextreturn BackendContext(params={})def test_json_set_and_get(self, tmp_path):- from cli_anything.openclaw.backends.file_transform import FileTransformBackend- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.backends.file_transform import FileTransformBackend+ from cli_anything.macrocli.core.macro_model import MacroStepb = FileTransformBackend()ctx = self._make_context()@@ -316,8 +316,8 @@ class TestFileTransformBackend:assert data["settings"]["theme"] == "dark"def test_text_replace(self, tmp_path):- from cli_anything.openclaw.backends.file_transform import FileTransformBackend- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.backends.file_transform import FileTransformBackend+ from cli_anything.macrocli.core.macro_model import MacroStepb = FileTransformBackend()ctx = self._make_context()@@ -336,8 +336,8 @@ class TestFileTransformBackend:assert result.output["replacements"] == 1def test_copy_file(self, tmp_path):- from cli_anything.openclaw.backends.file_transform import FileTransformBackend- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.backends.file_transform import FileTransformBackend+ from cli_anything.macrocli.core.macro_model import MacroStepb = FileTransformBackend()ctx = self._make_context()@@ -354,8 +354,8 @@ class TestFileTransformBackend:assert dst.read_text() == "content"def test_unknown_action(self):- from cli_anything.openclaw.backends.file_transform import FileTransformBackend- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.backends.file_transform import FileTransformBackend+ from cli_anything.macrocli.core.macro_model import MacroStepb = FileTransformBackend()step = MacroStep(id="x", backend="file_transform", action="unknown_op", params={})result = b.execute(step, {}, self._make_context())@@ -364,7 +364,7 @@ class TestFileTransformBackend:class TestStepResult:def test_to_dict(self):- from cli_anything.openclaw.backends.base import StepResult+ from cli_anything.macrocli.backends.base import StepResultr = StepResult(success=True, output={"key": "val"}, backend_used="native_api")d = r.to_dict()assert d["success"] is True@@ -376,23 +376,23 @@ class TestStepResult:class TestRoutingEngine:def test_select_native_api(self):- from cli_anything.openclaw.core.routing import RoutingEngine- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.core.routing import RoutingEngine+ from cli_anything.macrocli.core.macro_model import MacroStepengine = RoutingEngine()step = MacroStep(id="x", backend="native_api", action="run_command")backend = engine.select(step)assert backend.name == "native_api"def test_select_file_transform(self):- from cli_anything.openclaw.core.routing import RoutingEngine- from cli_anything.openclaw.core.macro_model import MacroStep+ from cli_anything.macrocli.core.routing import RoutingEngine+ from cli_anything.macrocli.core.macro_model import MacroStepengine = RoutingEngine()step = MacroStep(id="x", backend="file_transform", action="json_set")backend = engine.select(step)assert backend.name == "file_transform"def test_describe(self):- from cli_anything.openclaw.core.routing import RoutingEngine+ from cli_anything.macrocli.core.routing import RoutingEngineengine = RoutingEngine()desc = engine.describe()assert "native_api" in desc@@ -400,9 +400,9 @@ class TestRoutingEngine:assert "recovery" in descdef test_execute_step_native_api(self):- from cli_anything.openclaw.core.routing import RoutingEngine- from cli_anything.openclaw.core.macro_model import MacroStep- from cli_anything.openclaw.backends.base import BackendContext+ from cli_anything.macrocli.core.routing import RoutingEngine+ from cli_anything.macrocli.core.macro_model import MacroStep+ from cli_anything.macrocli.backends.base import BackendContextengine = RoutingEngine()step = MacroStep(id="x", backend="native_api", action="run_command",params={"command": ["echo", "hello"]})@@ -415,8 +415,8 @@ class TestRoutingEngine:class TestMacroRuntime:def _make_runtime(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntime# Register a real macro that just echoesyaml_content = textwrap.dedent("""\name: echo_macro@@ -449,8 +449,8 @@ class TestMacroRuntime:assert "not found" in result.error.lower()def test_execute_param_validation_failure(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeyaml_content = textwrap.dedent("""\name: required_param_macroparameters:@@ -472,8 +472,8 @@ class TestMacroRuntime:assert "output" in result.errordef test_precondition_failure(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeyaml_content = textwrap.dedent("""\name: precond_macropreconditions:@@ -493,8 +493,8 @@ class TestMacroRuntime:assert "precondition" in result.error.lower()def test_postcondition_failure(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeyaml_content = textwrap.dedent("""\name: postcond_macrosteps:@@ -532,8 +532,8 @@ class TestMacroRuntime:assert errors == []def test_on_failure_skip(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeyaml_content = textwrap.dedent("""\name: skip_macrosteps:@@ -562,7 +562,7 @@ class TestMacroRuntime:class TestExecutionSession:def test_record_and_retrieve(self):- from cli_anything.openclaw.core.session import ExecutionSession, RunRecord+ from cli_anything.macrocli.core.session import ExecutionSession, RunRecordsess = ExecutionSession(session_id="test_sess")rec = RunRecord("m1", {}, True, {}, "", 100.0, ["native_api"], 1)sess.record(rec)@@ -570,7 +570,7 @@ class TestExecutionSession:assert len(sess.history()) == 1def test_stats(self):- from cli_anything.openclaw.core.session import ExecutionSession, RunRecord+ from cli_anything.macrocli.core.session import ExecutionSession, RunRecordsess = ExecutionSession()sess.record(RunRecord("m1", {}, True, {}, "", 100.0, [], 1))sess.record(RunRecord("m2", {}, False, {}, "err", 50.0, [], 0))@@ -580,11 +580,11 @@ class TestExecutionSession:assert stats["success_rate"] == 0.5def test_save_and_load(self, tmp_path, monkeypatch):- from cli_anything.openclaw.core import session as sess_mod- import cli_anything.openclaw.core.session as sess_module+ from cli_anything.macrocli.core import session as sess_mod+ import cli_anything.macrocli.core.session as sess_module# Redirect SESSION_DIR to tmp_pathmonkeypatch.setattr(sess_module, "SESSION_DIR", tmp_path)- from cli_anything.openclaw.core.session import ExecutionSession, RunRecord+ from cli_anything.macrocli.core.session import ExecutionSession, RunRecordsess = ExecutionSession(session_id="save_test")sess.record(RunRecord("m1", {"k": "v"}, True, {}, "", 200.0, ["native_api"], 1))sess.save()diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/tests/test_full_e2e.py b/macrocli/agent-harness/cli_anything/macrocli/tests/test_full_e2e.pysimilarity index 91%rename from openclaw-skill/agent-harness/cli_anything/openclaw/tests/test_full_e2e.pyrename to macrocli/agent-harness/cli_anything/macrocli/tests/test_full_e2e.pyindex d7cde9a94..9c089b50d 100644--- a/openclaw-skill/agent-harness/cli_anything/openclaw/tests/test_full_e2e.py+++ b/macrocli/agent-harness/cli_anything/macrocli/tests/test_full_e2e.py@@ -1,4 +1,4 @@-"""End-to-end integration tests for the OpenClaw Macro System.+"""End-to-end integration tests for the MacroCLI.Tests the full lifecycle: macro discovery → runtime execution → CLI subprocess.Uses real file I/O and subprocess calls (echo, cat, etc.) as the "target apps".@@ -27,9 +27,9 @@ def _resolve_cli(name: str) -> list[str]:return [path]if force:raise RuntimeError(f"{name} not found in PATH. Install with: pip install -e .")- module = "cli_anything.openclaw.openclaw_cli"+ module = "cli_anything.macrocli.macrocli_cli"print(f"[_resolve_cli] Falling back to: {sys.executable} -m {module}")- return [sys.executable, "-m", "cli_anything.openclaw"]+ return [sys.executable, "-m", "cli_anything.macrocli"]# ── Helpers ───────────────────────────────────────────────────────────────────@@ -45,9 +45,9 @@ def write_macro(tmp_path: Path, name: str, content: str) -> Path:class TestFileTransformE2E:def test_json_set_and_verify(self, tmp_path):"""Write a JSON file, transform it, verify the result."""- from cli_anything.openclaw.core.macro_model import MacroDefinition, MacroStep, MacroCondition, MacroOutput- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.macro_model import MacroDefinition, MacroStep, MacroCondition, MacroOutput+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimejson_file = tmp_path / "settings.json"json_file.write_text('{"version": 1}', encoding="utf-8")@@ -100,9 +100,9 @@ class TestFileTransformE2E:class TestNativeAPIE2E:def test_run_real_command_and_capture(self, tmp_path):"""Run a real shell command and capture its stdout."""- from cli_anything.openclaw.core.macro_model import MacroDefinition- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.macro_model import MacroDefinition+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeoutput_file = tmp_path / "result.txt"yaml_content = textwrap.dedent(f"""\@@ -141,8 +141,8 @@ class TestNativeAPIE2E:def test_step_failure_aborts_macro(self, tmp_path):"""A failing step with on_failure=fail should abort the macro."""- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeyaml_content = textwrap.dedent("""\name: fail_abort@@ -171,8 +171,8 @@ class TestNativeAPIE2E:def test_step_failure_skip_continues(self, tmp_path):"""A failing step with on_failure=skip should allow the macro to continue."""- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeyaml_content = textwrap.dedent("""\name: fail_skip@@ -201,8 +201,8 @@ class TestNativeAPIE2E:class TestPostconditionE2E:def test_postcondition_file_exists_passes(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeoutput_file = tmp_path / "output.txt"yaml_content = textwrap.dedent(f"""\@@ -231,8 +231,8 @@ class TestPostconditionE2E:print(f"\n Output file: {output_file} ({output_file.stat().st_size} bytes)")def test_postcondition_file_size_gt(self, tmp_path):- from cli_anything.openclaw.core.registry import MacroRegistry- from cli_anything.openclaw.core.runtime import MacroRuntime+ from cli_anything.macrocli.core.registry import MacroRegistry+ from cli_anything.macrocli.core.runtime import MacroRuntimeoutput_file = tmp_path / "output.txt"output_file.write_text("x" * 200, encoding="utf-8")@@ -265,7 +265,7 @@ class TestPostconditionE2E:# ── CLI subprocess tests ──────────────────────────────────────────────────────class TestCLISubprocess:- CLI_BASE = _resolve_cli("cli-anything-openclaw")+ CLI_BASE = _resolve_cli("cli-anything-macrocli")def _run(self, args: list[str], check: bool = True) -> subprocess.CompletedProcess:return subprocess.run(@@ -309,7 +309,7 @@ class TestCLISubprocess:result = self._run(["--json", "--dry-run","macro", "run", "export_file",- "--param", "output=/tmp/test_openclaw_e2e.txt",+ "--param", "output=/tmp/test_macrocli_e2e.txt",])assert result.returncode == 0, f"stderr: {result.stderr}"data = json.loads(result.stdout)diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/utils/__init__.py b/macrocli/agent-harness/cli_anything/macrocli/utils/__init__.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/utils/__init__.pyrename to macrocli/agent-harness/cli_anything/macrocli/utils/__init__.pydiff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/utils/repl_skin.py b/macrocli/agent-harness/cli_anything/macrocli/utils/repl_skin.pysimilarity index 100%rename from openclaw-skill/agent-harness/cli_anything/openclaw/utils/repl_skin.pyrename to macrocli/agent-harness/cli_anything/macrocli/utils/repl_skin.pydiff --git a/openclaw-skill/agent-harness/setup.py b/macrocli/agent-harness/setup.pysimilarity index 84%rename from openclaw-skill/agent-harness/setup.pyrename to macrocli/agent-harness/setup.pyindex c3df342e0..5326e4b8c 100644--- a/openclaw-skill/agent-harness/setup.py+++ b/macrocli/agent-harness/setup.py@@ -1,22 +1,22 @@#!/usr/bin/env python3"""-setup.py for cli-anything-openclaw+setup.py for cli-anything-macrocliInstall with: pip install -e ."""from setuptools import setup, find_namespace_packages-with open("cli_anything/openclaw/README.md", "r", encoding="utf-8") as fh:+with open("cli_anything/macrocli/README.md", "r", encoding="utf-8") as fh:long_description = fh.read()setup(- name="cli-anything-openclaw",+ name="cli-anything-macrocli",version="1.0.0",author="cli-anything contributors",author_email="",description=(- "OpenClaw Macro System — A layered CLI that converts GUI workflows into "+ "MacroCLI — A layered CLI that converts GUI workflows into ""parameterized, agent-callable macros. Requires: PyYAML, click, prompt-toolkit."),long_description=long_description,@@ -65,11 +65,11 @@ setup(},entry_points={"console_scripts": [- "cli-anything-openclaw=cli_anything.openclaw.openclaw_cli:cli",+ "cli-anything-macrocli=cli_anything.macrocli.macrocli_cli:cli",],},package_data={- "cli_anything.openclaw": ["skills/*.md", "macro_definitions/*.yaml", "macro_definitions/examples/*.yaml"],+ "cli_anything.macrocli": ["skills/*.md", "macro_definitions/*.yaml", "macro_definitions/examples/*.yaml"],},include_package_data=True,zip_safe=False,diff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/__init__.py b/openclaw-skill/agent-harness/cli_anything/openclaw/__init__.pydeleted file mode 100644index 58d9139ae..000000000--- a/openclaw-skill/agent-harness/cli_anything/openclaw/__init__.py+++ /dev/null@@ -1 +0,0 @@-# cli_anything/openclaw packagediff --git a/openclaw-skill/agent-harness/cli_anything/openclaw/__main__.py b/openclaw-skill/agent-harness/cli_anything/openclaw/__main__.pydeleted file mode 100644index 720ddd9e5..000000000--- a/openclaw-skill/agent-harness/cli_anything/openclaw/__main__.py+++ /dev/null@@ -1,5 +0,0 @@-"""Enable: python3 -m cli_anything.openclaw"""-from cli_anything.openclaw.openclaw_cli import cli--if __name__ == "__main__":- cli()diff --git a/registry.json b/registry.jsonindex ddcba5913..d4f3ced2a 100644--- a/registry.json+++ b/registry.json@@ -898,16 +898,16 @@]},{- "name": "openclaw-macro",- "display_name": "OpenClaw Macro System",+ "name": "macrocli",+ "display_name": "MacroCLI","version": "1.0.0",- "description": "Layered CLI that converts GUI workflows into parameterized, agent-callable macros — with backend routing across native APIs, file transforms, accessibility controls, and compiled GUI replay",+ "description": "Layered macro runtime that converts GUI workflows into parameterized, agent-callable macros — record once, run anywhere via CLI with backend routing across native APIs, file transforms, accessibility controls, and visual template matching","requires": null,- "homepage": "https://github.com/HKUDS/CLI-Anything",+ "homepage": "https://github.com/HKUDS/CLI-Anything/tree/main/macrocli","source_url": null,- "install_cmd": "pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=openclaw-skill/agent-harness",- "entry_point": "cli-anything-openclaw",- "skill_md": "openclaw-skill/agent-harness/cli_anything/openclaw/skills/SKILL.md",+ "install_cmd": "pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=macrocli/agent-harness",+ "entry_point": "cli-anything-macrocli",+ "skill_md": "macrocli/agent-harness/cli_anything/macrocli/skills/SKILL.md","category": "automation","contributors": [{diff --git a/skills/cli-anything-openclaw/SKILL.md b/skills/cli-anything-macrocli/SKILL.mdsimilarity index 83%rename from skills/cli-anything-openclaw/SKILL.mdrename to skills/cli-anything-macrocli/SKILL.mdindex 57da8b9b6..f2679d31e 100644--- a/skills/cli-anything-openclaw/SKILL.md+++ b/skills/cli-anything-macrocli/SKILL.md@@ -1,17 +1,17 @@----name: "cli-anything-openclaw"+name: "cli-anything-macrocli"description: >Use when the agent wants to define, list, inspect, or execute GUI macros- via the OpenClaw Macro System CLI. Macros are parameterized, CLI-callable+ via the MacroCLI System CLI. Macros are parameterized, CLI-callableworkflows — the agent invokes `macro run <name>` and the system handlesbackend routing (plugin, file transform, accessibility, compiled GUI replay).----# OpenClaw Macro System CLI+# MacroCLI System CLI## What It Is-The OpenClaw Macro System converts valuable GUI workflows into parameterized,+The MacroCLI System converts valuable GUI workflows into parameterized,CLI-callable macros. Agents **never touch the GUI directly** — they call macrosthrough this stable CLI, and the runtime routes execution to the best availablebackend (native plugin/API, file transformation, semantic UI control, or@@ -20,7 +20,7 @@ precompiled GUI macro replay).## Installation```bash-cd openclaw-skill/agent-harness+cd macrocli-skill/agent-harnesspip install -e .```@@ -30,21 +30,21 @@ pip install -e .```bash# 1. See what macros are available-cli-anything-openclaw macro list --json+cli-anything-macrocli macro list --json# 2. Inspect a macro's parameters-cli-anything-openclaw macro info export_file --json+cli-anything-macrocli macro info export_file --json# 3. Dry-run to check params without side effects-cli-anything-openclaw --dry-run macro run export_file \+cli-anything-macrocli --dry-run macro run export_file \--param output=/tmp/test.txt --json# 4. Execute a macro-cli-anything-openclaw macro run export_file \+cli-anything-macrocli macro run export_file \--param output=/tmp/result.txt --json# 5. See what backends are available-cli-anything-openclaw backends --json+cli-anything-macrocli backends --json```## Command Reference@@ -80,7 +80,7 @@ cli-anything-openclaw backends --json### `backends````bash-cli-anything-openclaw backends --json+cli-anything-macrocli backends --json# Shows: native_api, file_transform, semantic_ui, gui_macro, recovery# and whether each is available in the current environment.```@@ -90,7 +90,7 @@ cli-anything-openclaw backends --jsonPass parameters with `--param key=value`. Repeat for multiple:```bash-cli-anything-openclaw macro run transform_json \+cli-anything-macrocli macro run transform_json \--param file=/path/to/data.json \--param key=settings.theme \--param value=dark \@@ -136,12 +136,12 @@ Backends are selected automatically based on the macro step definition:## Writing Macros-Macros are YAML files in `cli_anything/openclaw/macro_definitions/`.+Macros are YAML files in `cli_anything/macrocli/macro_definitions/`.Scaffold one with:```bash-cli-anything-openclaw macro define my_macro --output \- cli_anything/openclaw/macro_definitions/examples/my_macro.yaml+cli-anything-macrocli macro define my_macro --output \+ cli_anything/macrocli/macro_definitions/examples/my_macro.yaml```Minimal schema:@@ -197,19 +197,19 @@ agent_hints:```bash# Step 1: What's available?-cli-anything-openclaw macro list --json+cli-anything-macrocli macro list --json# Step 2: What params does transform_json need?-cli-anything-openclaw macro info transform_json --json+cli-anything-macrocli macro info transform_json --json# Step 3: Test safely-cli-anything-openclaw --dry-run macro run transform_json \+cli-anything-macrocli --dry-run macro run transform_json \--param file=/tmp/config.json \--param key=theme \--param value=dark --json# Step 4: Execute for real-cli-anything-openclaw macro run transform_json \+cli-anything-macrocli macro run transform_json \--param file=/tmp/config.json \--param key=theme \--param value=dark --json