본문으로 건너뛰기
cccskills
무료GitHub에 공개

agent-cli-creator

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(8)

  • SKILL.md4.1 KB
  • LICENSE1.0 KB
  • README_EN.md2.8 KB
  • README.md2.7 KB
  • references/companion-skill-template.md2.8 KB
  • references/go-layout.md4.5 KB
  • references/login-handling.md3.0 KB
  • references/site-exploration.md5.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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
ResultAction
running: true + extension_connected: trueProceed
Command not foundTell user to visit https://www.kimi.com/features/webbridge (中文: https://www.kimi.com/zh-cn/features/webbridge) to install
running: false or extension_connected: falseInvoke 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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고