Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add GGbond-bo/MemOmics-Agent --skill cli-anythinggit clone --depth 1 https://github.com/GGbond-bo/MemOmics-AgentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ggbond-bo/memomics-agent/cli-anything)<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/cli-anything"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/cli-anything/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/cli-anything"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/cli-anything.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00131 | $0.07940 |
| Opus 5.5 | $0.00052 | $0.03176 |
| Sonnet 5.5 | $0.00026 | $0.01588 |
| Haiku 4.5 | $0.00013 | $0.00794 |
Grade C, and why
cli-anything scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
| `rmdir` / `rm -rf` 被执行层拦下("操作需确认") | 平台安全层识别删除关键词 | 只移动用 `mv`(不删);确实要删先向用户列出文件再确认 | How it starts
The opening of the file, as written. The whole thing — 332 lines — stays where its author put it; the contents beside it link to each section on GitHub.
⛔ MemOmics 强制规则(不可违反,优先级最高)
本 skill 已集成到 MemOmics-Agent 自进化平台。使用前必须先通过 skill_view 加载本文件。以下规则覆盖所有默认行为。
规则1: 写代码/下命令前 → 必须先查 --help,禁止凭记忆编命令
- CLI-Anything 的命令树是每个 harness 自己定义的,仓库里 71 个 harness 各不相同。
- 任何调用前先
cli-anything-<软件> --help和<子命令> --help,实测确认参数形态再写命令(2026-10-04 实测:mermaid harness 的project new/diagram set只接受选项不接受位置参数,凭直觉写diagram set "flowchart TD..."直接报Got unexpected extra argument)。 - 官方文档(HARNESS.md / 各 harness 的 SKILL.md)是唯一权威,不许照抄记忆里的命令。
规则2: 8步循环(每步必须走完整循环)
1. search_knowledge 查本步骤的方法和参数
2. skill_view 加载本 SKILL.md(获取命令模板+坑表)
3. check_env 检查环境(缺包按铁律 29 询问用户后装到项目内)
4. rail_review(pre) 前置审查(软件是否在跑?CLI 装了吗?输出路径合法吗?)
5. 写这一步的命令(先 --help 核实参数)
6. terminal 执行(分步执行,禁止 && 连接多步骤)
7. debate_analysis 多方辩论(涉及关键参数/批量改写用户文件时)
8. rail_review(post) 后置审查(产物真实存在吗?大小合理吗?用户文件有没有被改坏?)
规则3: 代码分段执行 — 写一步跑一步
- ❌ 禁止一次性写完整个流程用 && 连接执行
- ✅ 必须分步:查 help → 试跑 → 核对输出 → 下一步
规则4: 关键参数多参数尝试 + 辩论
- 涉及数值/批量改写参数(分辨率、字号、导出格式、批量范围)→ 至少尝试 2 个值
- 参数变更后调
debate_analysis辩论"这个参数合理吗?会不会改坏用户文件?" - 不确定的参数就辩论,不要自己拍脑袋;最多 3 轮
规则5: 执行后审查(强化版)
- 每步执行完调
rail_review(post),审查内容全部强制:- 产物检查:文件生成了吗?大小 > 0?是有效格式吗(SVG/PNG/PDF 头正确)?
- 用户资产保护:有没有动到用户已打开的文档?默认必须不保存(
SaveOptions.DONOTSAVECHANGES) - 退出码:非 0 / traceback → 必须记录
skill_evolution(action="record_error") - JSON 可解析:
--json输出必须能被json.loads解析(agent-native 的底线)
- 通过 →
skill_evolution(action="record_run");失败 → 记录错误 + 修复后重跑
规则6: 结果存储结构
results/<sid>/software_control/
├── cli_tests/ # Hub 装来的现成 CLI 的试跑产物
├── <软件>/agent-harness/ # 自建 harness 源码
└── logs/ # 命令与返回
规则7: 脚本出错/成功 → 必须调 skill_evolution(自进化)
| 时机 | action | 调 | 不调 |
|---|---|---|---|
| harness 报错+你找到根因并修复 | record_error | ✅ 如 CMYK Red 色板不存在(Error 1302) |
❌ 打字错误/路径不存在 |
| 命令成功+产物通过审查 | record_run | ✅ 真实产物落盘 | ❌ 只 --help 看一眼 |
CLI-Anything:把软件变成 agent-native CLI
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 332 lines · 131 tokens per session scan C 38be7786a36f
cli-anything is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 131 tokens to every session and 7,940 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.
cli-anything compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cli-anythingGGbond-bo/MemOmics-Agent | Skill | 33 | 14d ago | MIT | C | 131 | Claude Code, Codex |
| slackvercel-labs/agent-browser | Skill | 55k | 3d ago | Apache-2.0 | A | 88 | Claude Code |
| browser-usebrowser-use/browser-use | Skill | 122k | today | MIT | A | 54 | Claude Code, Codex |
| cli-anything-macrocliHKUDS/CLI-Anything | Skill | 68k | 10d ago | Apache-2.0 | A | 67 | Claude Code, Codex |
| ComputerUsedanielmiessler/LifeOS | Skill | 20k | 11d ago | MIT | A | 0 | Claude Code, Codex |
| Interceptordanielmiessler/LifeOS | Skill | 20k | 11d ago | MIT | A | 93 | Claude Code, Codex |
| agent-browseremdash-cms/emdash | Skill | 15k | today | MIT | A | 57 | Claude Code, Codex |