360 Secure SkillHub
360 安全技能中心

OpenClaw Boot Camp

通过交互向导或非交互参数扫描已安装的 OpenClaw CLI,汇总顶层命令、子命令、参数和 JSON 支持情况,生成 Markdown 参考文档;可选联网从 OpenClaw 文档站补充版本信息。

dank-varley
dank-varley
热度 46.93
最近更新 2026-05-11 17:41:45
分类:知识依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 笔记整理 / 模板

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add bootcamp
Metadata
name
bootcamp
description
Auto-generates a CLI reference doc so your agent stops guessing OpenClaw commands and starts working. Discovers all commands, subcommands, and flags from your installed version.
metadata
{"openclaw":{"emoji":"🎓","category":"utility"}}

OpenClaw Boot Camp — Agent CLI Training

Every OpenClaw agent wastes tokens fumbling with CLI syntax. The --help command is broken on most subcommands. Flags get guessed wrong. Commands that don't exist get tried.

Boot Camp fixes that by discovering your actual CLI commands and generating a clean reference your agent can read.

Usage

bash bootcamp.sh

Follow the wizard. Your agent gets a cheat sheet at ~/.openclaw/workspace/notes/openclaw-cli-reference.md.

Modes

  • Local Only (Quickest) — Discovers commands from your CLI. No internet, no API calls, no token cost.
  • Local + Enrich (Recommended) — Local discovery + searches docs.openclaw.ai for your version. Still free.

What It Discovers

  • All top-level commands with descriptions
  • Every subcommand per command
  • Every flag per command
  • Which commands support --json
  • Doc links for key commands (Enrich mode)
  • Tips and gotchas baked in

Non-Interactive Mode

bash bootcamp.sh --yes --enrich

Version Management

Detects existing reference docs and offers to overwrite or keep both versions side-by-side.

Requirements

  • OpenClaw installed and in PATH
  • Bash 4+
  • No other dependencies