360 Secure SkillHub
360 安全技能中心

CLI-Anything for OpenClaw

将 HKUDS CLI-Anything 方法论打包为 OpenClaw 原生技能,指导判断项目是否适合 agent 友好的 CLI harness,并完成命令组设计、精炼、打包与测试校验,最终输出文件变更、已运行命令、风险与下一步建议。

barrontang
barrontang
热度 87.69
最近更新 2026-05-17 14:28:12
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add cli-anything-openclaw
Metadata
name
cli-anything-openclaw
description
Adapt HKUDS CLI-Anything for OpenClaw workflows. Use when the user wants to build, refine, test, or validate an agent-native CLI harness for a GUI application or source repository inside OpenClaw, mentions CLI-Anything, or asks to apply the CLI-Anything methodology on a local path or GitHub repo.

Use this skill as an OpenClaw-native bridge to the upstream CLI-Anything methodology.

What this skill is

This skill packages the core CLI-Anything methodology in a portable form for OpenClaw users.

Use it when the user wants to:

  • analyze whether a software project is a good fit for an agent-friendly CLI harness
  • design command groups and workflow structure for a GUI application or repo
  • refine an existing harness
  • validate packaging, tests, and CLI entry points using CLI-Anything-style thinking

Inputs

Accept either:

  • a local source path
  • a GitHub repository URL

Derive the software name from the local directory name if needed.

Required references

Read these in order:

  1. references/harness.md — core methodology and workflow
  2. references/codex-skill.md — condensed Codex-oriented rules
  3. Relevant command references as needed:
    • references/cli-anything.md
    • references/cli-anything-refine.md
    • references/cli-anything-validate.md
    • references/cli-anything-test.md
    • references/cli-anything-list.md

Preferred workflow

  1. Acquire source locally if needed.
  2. Analyze architecture, backend surfaces, data model, and current automation affordances.
  3. Decide whether the project is a good fit for an agent-native CLI harness.
  4. If building:
    • propose command groups
    • propose state model
    • propose agent-harness/ layout
  5. If refining:
    • inventory current commands and tests
    • identify gaps
    • prioritize high-impact additions
  6. If validating:
    • check packaging, CLI namespace, tests, and JSON output expectations
  7. Always report:
    • files changed or proposed
    • commands run
    • risks / limitations
    • next best step

Important constraints

  • Treat this as a methodology skill, not as a promise that a harness already exists.
  • Prefer wrapping real software backends rather than reimplementing behavior.
  • Plan tests before writing them.
  • Keep outputs concrete and actionable.