Agent CLI Creator

VerifiedCaution

Guide for building a website-automating CLI tool using kimi-webbridge. Includes phases for prerequisites, requirements, site exploration, and implementation.

Sby Skills Guide Bot
DevelopmentAdvanced
9/4/2026
Claude Code
#cli-generation#browser-automation#webbridge#api-exploration#code-scaffolding

Recommended for

Automated summary

Guides a coding agent through building a CLI tool that automates interactions on a specific website, backed by the kimi-webbridge browser daemon.

Strengths

  • Runs a clear phased workflow: prerequisites, requirements interview, site exploration, implementation, and verification.
  • Makes site exploration mandatory before any business logic, with a protocol for capturing endpoints, headers, and a working evaluate call.
  • Enforces a universal CLI contract (--help everywhere, {ok,data}/{ok,error} output, non-zero exit on failure) across languages.
  • Includes generating a companion skill so a future agent knows how to operate the finished CLI.

Limitations

  • Fully dependent on the kimi-webbridge daemon and browser extension being installed and connected.
  • Only Go has a canonical layout template; other languages must be adapted without a provided reference.
  • The explore-and-verify loop makes it a slow, iterative process rather than a one-shot generator.
When to use it

Use it when you want a website turned into a scriptable CLI and you want an agent to handle exploration, implementation, and per-command verification.

When not to use it

Avoid it when kimi-webbridge is unavailable, the target site blocks automation, or a one-off script without a CLI contract is enough.

Security analysis

Caution
Quality score78/100

The skill is a legitimate development guide for building browser-automation CLIs. It does not contain destructive, obfuscated, or exfiltrating instructions (no curl|sh, rm -rf, base64 payloads, or safety-disabling). However, it directs the agent to run bash, install/use an external browser daemon and extension, and automate authenticated browser sessions—powerful capabilities with meaningful attack surface—so 'caution' is appropriate rather than 'safe'.

Findings
  • •Requires installing and running a third-party browser-bridge daemon (kimi-webbridge) and a browser extension from an external site (https://www.kimi.com/features/webbridge)
  • •Automates interactions with websites inside a live browser session, potentially including logged-in accounts, cookies, and authenticated pages
  • •Instructs the agent to invoke another skill and to write files into ~/.claude/skills, plus run bash status/build/verify commands
  • •Handles login-status and session handling for target sites, which touches credentials/sessions, though no explicit secret exfiltration is instructed
  • •Depends on external reference files (site-exploration.md, login-handling.md, etc.) whose contents are not included and cannot be audited here
How this analysis is made

Examples

CLI for a forum site
Create a CLI for news.ycombinator.com that can list the front page, search stories, and show a user's profile. Use Go and include a login-status command.
Automate a social site in Python
Build a tool to automate posting and liking on this site: https://example.com — I'd like it in Python, and start with just the read commands first.
Extend an existing CLI
The my-cli tool already has read commands working; re-run from Phase 3 to add bookmark and comment write commands, then update the companion skill.

name: agent-cli-creator description: Use when the user wants to build a CLI tool to automate browser interactions on a specific website using kimi-webbridge. Invoke when user says "create a CLI for X site", "build a tool to automate X", or wants to control a website programmatically via an AI agent.

Agent CLI Creator

Guide an AI Coding Agent to build a website-automating CLI tool backed by the kimi-webbridge browser daemon.

Phase 1: Prerequisites

~/.kimi-webbridge/bin/kimi-webbridge status

| Result | Action | |--------|--------| | running: true + extension_connected: true | Proceed | | Command not found | Tell user to visit https://www.kimi.com/features/webbridge (中文: https://www.kimi.com/zh-cn/features/webbridge) to install | | running: false or extension_connected: false | Invoke the kimi-webbridge skill → references/operations.md |

Phase 2: Requirements Interview

Ask the user in one message, wait for reply:

  1. Target website URL (required)
  2. Programming language — Go (recommended; references/go-layout.md is the canonical template) / Python / Node.js / Other
  3. Login required? — Yes / No / Unknown (can skip for now)
  4. First 1–3 features — pick from common categories:
    • Read: home feed, search, profile page, post/item detail
    • Write: create post, like/unlike, comment, bookmark/save
    • Account: login-status, user info

Explain iterative development to the user:

"We'll start with 1–3 features to validate the approach end-to-end before adding more. Site exploration for features you don't need yet wastes time. You can always add features later by re-running from Phase 3."

Phase 3: Site Exploration (mandatory before writing any code)

This phase is non-negotiable. Do not write business logic until exploration is complete.

For each planned feature, run the full protocol in references/site-exploration.md.

The protocol yields: API endpoint, required headers, response shape, and a verified evaluate call that proves the API works inside the browser session.

Sanity-check every limitation before you write it down: would a human clicking through the same flow in their own browser hit it too? If not, the difference is in your automation setup — tab visibility, event timing, hydration — not in the site. A real one: "search caps out at 20 results", when a human scrolling that page gets 200 — see references/site-exploration.md → The Background Tab Trap.

Only proceed to Phase 4 when you have a working evaluate call for every planned feature.

Phase 4: Implement

Order matters — do not skip ahead:

  1. Project scaffold — see references/go-layout.md for Go; adapt conventions for other languages
  2. login-status command — if the site requires login; see references/login-handling.md
  3. Read commands — no side effects; implement and test first
  4. Write commands — side effects (post, like, etc.); implement after reads work

After each command is implemented, immediately verify before moving on:

{platform}-cli {command} --help          # --help must work
{platform}-cli {command} [args]          # must return {"ok": true, "data": ...}

For write commands, also verify the error path (e.g., wrong ID, missing flag) returns {"ok": false, ...} with non-zero exit.

If verification fails, fix before implementing the next command.

Universal CLI contract (all languages):

  • --help / -h must work on every command
  • All output: {"ok": true, "data": ...} or {"ok": false, "error": {"code": "...", "message": "..."}}
  • Non-zero exit code on error

Go: 用 go mod init {platform}-cli 初始化独立 module,按 references/go-layout.md 的结构搭建,包含自己的轻量 browser client 和 output helper。

Phase 5: Write Companion Skill

After the CLI works, create ~/.claude/skills/{platform}-cli/SKILL.md using the template in references/companion-skill-template.md.

Purpose: tells a future AI agent how to use the CLI, not how to build it. The two skills serve different audiences at different times.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/agent-cli-creator-mtmi9ale' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/agent-cli-creator-mtmi9ale/download' --output '.skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md.part' && mv '.skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md.part' '.skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md' && test -s '.skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/agent-cli-creator' && cp -R '.skill-downloads/agent-cli-creator-mtmi9ale' '.claude/skills/agent-cli-creator'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/agent-cli-creator-mtmi9ale'

openskills read 'agent-cli-creator-mtmi9ale'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/agent-cli-creator-mtmi9ale/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills