← 返回 Skills 市场
pearjelly

cliany-site

作者 shawn · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
129
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cliany-site
功能描述
Use when the user wants to automate web workflows into CLI commands via Chrome CDP and LLM. Supports exploring pages, generating adapters, and replaying acti...
使用说明 (SKILL.md)

cliany-site Skill

Use this skill when the user wants to automate web workflows into callable CLI commands using cliany-site.

cliany-site converts any web workflow into an executable CLI command. It connects to Chrome via CDP, captures page accessibility trees (AXTree), uses an LLM to plan actions, and generates Python/Click command-line adapters.

When to Use

  • User wants to automate a web workflow (form submission, search, navigation, etc.)
  • User wants to turn a web operation into a repeatable CLI command
  • User wants to check if cliany-site environment is ready
  • User wants to manage web sessions or login states
  • User wants to list or run previously generated adapters
  • User mentions "cliany-site", "web automation", "CDP", "browser CLI", or "web CLI"

Prerequisites

Before using cliany-site, verify the environment:

  1. Python 3.11+ with cliany-site installed
  2. Chrome with CDP enabled (auto-managed or manual --remote-debugging-port=9222)
  3. LLM API Key — at least one of:
    • CLIANY_ANTHROPIC_API_KEY (recommended)
    • CLIANY_OPENAI_API_KEY
    • Legacy ANTHROPIC_API_KEY (still supported)

Run the doctor command to verify all prerequisites:

cliany-site doctor --json

Expected output on success:

{
  "success": true,
  "data": {"cdp": true, "llm": true, "adapters_dir": "/Users/you/.cliany-site/adapters"},
  "error": null
}

Installation

# Clone and install
git clone https://github.com/pearjelly/cliany.site.git
cd cliany.site
pip install -e .

# Verify
cliany-site --version
cliany-site doctor --json

LLM Configuration

Set up via environment variables or .env file:

# Anthropic (recommended)
export CLIANY_LLM_PROVIDER=anthropic
export CLIANY_ANTHROPIC_API_KEY="sk-ant-..."

# OpenAI alternative
export CLIANY_LLM_PROVIDER=openai
export CLIANY_OPENAI_API_KEY="sk-..."

Configuration file locations (priority low to high):

  1. ~/.config/cliany-site/.env
  2. ~/.cliany-site/.env
  3. Project .env
  4. System environment variables

Commands Reference

doctor — Environment Check

cliany-site doctor [--json]

Checks all prerequisites: CDP connection, LLM key, adapter directory structure.

Output fields:

  • cdp (bool): Chrome CDP available
  • llm (bool): LLM API key configured
  • adapters_dir (str): adapter storage path

Always run doctor first before any other operation to ensure the environment is ready.

login — Website Login

cliany-site login \x3Curl> [--json]

Opens the specified URL, waits for the user to complete manual login, then saves the session to ~/.cliany-site/sessions/.

When to use: Before exploring workflows that require authentication.

explore — Explore and Generate Workflow

cliany-site explore \x3Curl> \x3Cworkflow_description> [--json]

This is the core command. It:

  1. Connects to Chrome via CDP
  2. Captures the page AXTree
  3. Sends the tree to the LLM with the workflow description
  4. LLM plans and executes actions step by step
  5. Generates a Click CLI adapter at ~/.cliany-site/adapters/\x3Cdomain>/

Parameters:

  • url: Target web page URL
  • workflow_description: Natural language description of the workflow

Example:

cliany-site explore "https://github.com" "Search for cliany.site repository and view README" --json

After success, a github.com adapter is auto-registered as a subcommand.

list — List Adapters

cliany-site list [--json]

Lists all generated adapters by domain name.

Execute Adapter Commands

cliany-site \x3Cdomain> \x3Ccommand> [args...] [--json]

Runs a specific command from a generated adapter.

Example:

cliany-site github.com search --query "browser-use" --json

tui — Terminal UI Manager

cliany-site tui

Visual terminal interface for managing adapters, viewing logs, and configuration.

Output Format

All commands output a standard JSON envelope when --json is passed:

{
  "success": true,
  "data": { "..." },
  "error": null
}

On failure:

{
  "success": false,
  "data": null,
  "error": {
    "code": "ERROR_CODE",
    "message": "Error description"
  }
}

Error codes:

Code Meaning
CDP_UNAVAILABLE Chrome not running or port 9222 not open
LLM_KEY_MISSING No LLM API key configured
COMMAND_NOT_FOUND Unknown command or adapter not found
EXPLORE_FAILED Workflow exploration failed

Exit codes:

  • 0: success
  • 1: failure (details in JSON error field)

Typical Workflow

Follow this sequence when automating a new website:

Step 1: Verify Environment

cliany-site doctor --json

If cdp is false, Chrome will be auto-started. If llm is false, configure API keys first.

Step 2: Login (if needed)

cliany-site login "https://target-site.com" --json

Wait for the user to complete manual login in the browser.

Step 3: Explore Workflow

cliany-site explore "https://target-site.com" "describe the workflow here" --json

The LLM analyzes the page and generates adapter commands.

Step 4: Use Generated Commands

cliany-site list --json
cliany-site target-site.com \x3Cgenerated-command> [args] --json

Step 5: Re-explore if Needed

Run explore again on the same domain to add more commands. Existing adapters are merged incrementally — existing commands are preserved.

Automation Script Example

#!/bin/bash
set -e

# Check environment
result=$(cliany-site doctor --json)
if ! echo "$result" | python3 -c "import sys,json; d=json.loads(sys.stdin.read()); exit(0 if d['success'] else 1)"; then
  echo "Environment not ready"
  exit 1
fi

# Explore workflow
cliany-site explore "https://example.com" "submit the contact form" --json

# Execute generated command
cliany-site example.com submit --name "Test" --email "[email protected]" --json

Architecture Notes

  • Adapter storage: ~/.cliany-site/adapters/\x3Cdomain>/ (commands.py + metadata.json)
  • Session storage: ~/.cliany-site/sessions/
  • AXTree-based selectors: Fuzzy element matching survives minor UI changes
  • Incremental merging: Re-exploring the same domain adds new commands without breaking existing ones
  • Atomic commands: Reusable operations (login, search) extracted and shared across adapters

Security & Privacy

  • cliany-site connects to a local Chrome instance via CDP on localhost:9222
  • LLM API calls send page AXTree (accessibility structure, no visual content) to the configured provider
  • Session cookies are stored locally under ~/.cliany-site/sessions/
  • Generated adapters contain only Click CLI code and metadata — no credentials are embedded
  • No data is sent to external endpoints other than the configured LLM API

External Endpoints

Endpoint Purpose Data Sent
Configured LLM API (Anthropic/OpenAI) Workflow analysis and action planning Page AXTree structure, workflow description
localhost:9222 Chrome CDP connection CDP protocol commands

Trust Statement

By using this skill, page accessibility tree data is sent to your configured LLM provider (Anthropic or OpenAI) for workflow analysis. Only install and use if you trust your LLM provider with the structural content of pages you browse.

Model Invocation Note

This skill is designed for autonomous invocation by AI agents. When installed, the agent may automatically call cliany-site commands (doctor, login, explore, list) based on user intent without explicit per-command confirmation. This is standard behavior for agent skills. To disable autonomous invocation, remove the skill from the agent's skill directory.

Troubleshooting

Issue Solution
CDP_UNAVAILABLE Run cliany-site doctor to auto-start Chrome, or manually start with --remote-debugging-port=9222
LLM_KEY_MISSING Set CLIANY_ANTHROPIC_API_KEY or CLIANY_OPENAI_API_KEY
Explore produces no commands Provide more specific workflow description; ensure the page has loaded fully
Adapter command fails Page structure may have changed; re-run explore to regenerate
Login session expired Re-run cliany-site login \x3Curl>
安全使用建议
This skill appears internally consistent with its stated purpose, but review the following before installing: - LLM API key: the skill requires an LLM API key (primaryEnv lists CLIANY_ANTHROPIC_API_KEY). SKILL.md also supports CLIANY_OPENAI_API_KEY or legacy ANTHROPIC_API_KEY — confirm which provider you intend to use and supply only that key. Limit the key's scope where possible and rotate it if you stop using the skill. - Local artifacts: cliany-site stores sessions and generated adapters under ~/.cliany-site (sessions/, adapters/). These may contain authentication cookies or automated scripts; treat those directories as sensitive and inspect their contents. - cliany-site CLI dependency: the skill's runtime assumes you have the cliany-site Python package and Chrome with CDP access. Before letting an agent run this skill, run cliany-site doctor --json yourself to confirm environment and review what the tool will do. - Installer behavior: the included scripts/install.sh only copies SKILL.md into common skill directories (no network activity). Still review the upstream cliany-site project (pip package and GitHub repo) if you plan to install the underlying tool — the skill delegates real automation to that software. - Autonomous invocation: the skill can be invoked by the agent (default). If you are uncomfortable with an agent using your LLM key or interacting with sites autonomously, either do not install the skill or remove/limit the API key before enabling it. - Minor metadata mismatch: registry metadata requires only CLIANY_ANTHROPIC_API_KEY while SKILL.md documents multiple supported LLM keys; this appears to be a documentation/registry mismatch rather than malicious behavior, but you may want to confirm which env var your deployment requires. If you trust the upstream cliany-site project and are comfortable providing an LLM key and local Chrome/CDP access, the skill is coherent with its description. If not, inspect the cliany-site codebase and the contents of ~/.cliany-site before using it with sensitive accounts.
功能分析
Type: OpenClaw Skill Name: cliany-site Version: 0.1.1 The skill bundle provides an interface for the 'cliany-site' tool, which automates web workflows via Chrome CDP and LLMs. The 'scripts/install.sh' script is a local utility that copies the 'SKILL.md' documentation to various AI tool configuration directories (e.g., ~/.claude, ~/.openclaw). The documentation in 'SKILL.md' is transparent about data handling, explicitly stating that page accessibility trees (AXTree) are sent to configured LLM providers (Anthropic/OpenAI) and that session cookies are stored locally. No evidence of malicious intent, unauthorized data exfiltration, or obfuscated code was found.
能力评估
Purpose & Capability
Name/description (web workflow -> CLI via Chrome CDP + LLM) match the declared requirements and instructions. The skill legitimately needs an LLM API key and access to Chrome/CDP and local storage for adapters/sessions.
Instruction Scope
SKILL.md instructs the agent to call the cliany-site CLI (doctor, login, explore, list, run adapters). It references expected local paths (~/.cliany-site/adapters, ~/.cliany-site/sessions) which are appropriate for the purpose. It does not instruct access to unrelated system files or to exfiltrate data to unexpected endpoints.
Install Mechanism
No risky download/install steps. The included scripts/install.sh only copies SKILL.md into known agent skill directories (OpenCode, Claude, OpenClaw, Codex, .agents). No external network endpoints are contacted and nothing is extracted or executed by the installer itself.
Credentials
Declared primaryEnv is CLIANY_ANTHROPIC_API_KEY which aligns with LLM usage. SKILL.md also documents alternatives (CLIANY_OPENAI_API_KEY, legacy ANTHROPIC_API_KEY). Minor inconsistency: registry metadata lists only CLIANY_ANTHROPIC_API_KEY as required while runtime docs accept multiple provider keys. All requested credentials are proportional to an LLM-driven automation tool; no unrelated secrets are requested.
Persistence & Privilege
always is false. The skill does not request permanent elevated presence or modify other skills' configs. The installer writes its own SKILL.md into skill directories (expected). Autonomous invocation is allowed (default) but that is normal for skills and not uniquely privileged here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cliany-site
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cliany-site 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Initial publish: web workflow automation via Chrome CDP and LLM
元数据
Slug cliany-site
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

cliany-site 是什么?

Use when the user wants to automate web workflows into CLI commands via Chrome CDP and LLM. Supports exploring pages, generating adapters, and replaying acti... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 129 次。

如何安装 cliany-site?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cliany-site」即可一键安装,无需额外配置。

cliany-site 是免费的吗?

是的,cliany-site 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cliany-site 支持哪些平台?

cliany-site 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cliany-site?

由 shawn(@pearjelly)开发并维护,当前版本 v0.1.1。

💬 留言讨论