About agent-cli-creator
A skill that guides an AI coding agent through building a website-automation CLI backed by the kimi-webbridge browser daemon. Its process covers requirements, site API exploration, incremental implementation and verification, then creation of a companion skill.
Key features
- 01Check kimi-webbridge status
- 02Interview for site and feature requirements
- 03Explore and verify site APIs
- 04Implement and test the CLI incrementally
- 05Create a companion CLI skill
Use cases
- 01Plan an automation CLI for a target website
- 02Verify APIs in the browser session before coding
- 03Implement and validate CLI commands one at a time
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ better-world-ai/ x-cli --skill agent-cli-creatorAfter installing, type/agent-cli-creatorin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/go-layout.mdsite-exploration.mdcompanion-skill-template.mdlogin-handling.mdDetails
From the project READMEAgent 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.team/features/webbridge (中文: https://www.kimi.team/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:
- Target website URL (required)
- Programming language — Go (recommended if in this repo) / Python / Node.js / Other
- Login required? — Yes / No / Unknown (can skip for now)
- 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 archaeology for features you don't need yet wastes time. You can always add features later by re-running from Phase 3."
Phase 3: Site Archaeology (mandatory before writing any code)
This phase is non-negotiable. Do not write business logic until archaeology 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.
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:
- Project scaffold — see
references/go-layout.mdfor Go; adapt conventions for other languages login-statuscommand — if the site requires login; seereferences/login-handling.md- Read commands — no side effects; implement and test first
- 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/-hmust 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.