360 Secure SkillHub
360 安全技能中心

openclaw-kilo-agent

该 Skill 通过命令行调用 Kilo CLI,把重构、多文件修改等重型编码任务以及基于 Puppeteer MCP 的浏览器自动化任务交给外部代理执行;支持列出、继续和 fork 会话,并建议用宿主的 process 工具轮询长时间运行的任务。它定位为 OpenClaw 的执行层组件,Kilo 自身配置位于其配置目录。

sabyaghosh
sabyaghosh
热度 46.35
最近更新 2026-05-18 12:31:14
分类:开发依赖:代码执行 / MCP 服务 / 联网浏览搜索 / 内部调用大模型应用场景:代码生成 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-kilo-agent
Metadata
name
openclaw-kilo-agent
description
High-performance coding agent and browser automation orchestrator using the Kilo CLI. Use when you need to: (1) Offload heavy-duty coding tasks (refactoring, multi-file edits, complex implementations), (2) Execute browser automation workflows (scraping, form-filling, navigating websites), (3) Manage sessions and context across different Kilo runs, (4) Use MCP servers for extended capabilities (Puppeteer, GitHub, FileSystem). This skill is the 'hands' for OpenClaw's 'brain'.

OpenClaw-Kilo-Agent

This skill coordinates the Kilo CLI to perform complex execution tasks, from deep codebase refactoring to automated browser interactions.

Core Capabilities

  • Heavy-Lifting Coding: Offload file-intensive tasks to the specialized Kilo agent.
  • Browser Automation: Control web browsers via Puppeteer MCP integration.
  • Session Continuity: Resume or fork existing Kilo sessions to maintain context.
  • Autonomous Execution: Run Kilo with --auto for hands-free automation in OpenClaw.

Setting Up Kilo

If Kilo is not yet configured, follow the instructions in setup-guide.md.

Key Config Location: ~/.config/kilo/kilo.json

Workflow Pattern

For a detailed breakdown of the "Brain and Hands" execution strategy, see workflow.md.

1. Basic Task Execution

To run a one-shot task with Kilo:

kilo run --model <model> --auto "<prompt>"

2. Browser Automation Task

To run a browser-based task using the Puppeteer MCP:

kilo run --model <model> --auto "Use your puppeteer MCP tool to navigate to <URL>, <actions>, and report back <results>."

3. Session Management

To list, continue, or fork sessions:

# List all sessions
kilo session list

# Continue the last session
kilo run --continue --model <model> --auto "<next task>"

# Fork a specific session
kilo run --session <sessionID> --fork --model <model> --auto "<experimental task>"

4. Monitoring Progress

If a task takes a long time, use the process tool to poll the Kilo run.

Best Practices

  • Specify the Model: Always use --model <provider/model> to ensure consistency (e.g., kilo/minimax/minimax-m2.5:free).
  • Use Auto-Approval: Always include the --auto flag when running Kilo from OpenClaw to avoid hanging on permission prompts.
  • Prompt Engineering: Be specific about the desired output. Kilo is powerful but benefits from clear, structured instructions.
  • Check Stats: Use kilo stats to monitor token usage and costs.