cli-anything-n8n
它能做什么
这个技能让 AI 智能体控制一台 n8n 服务器。n8n 可以连接各种应用并运行自动化工作流。适合搭建或监控自动化流程、希望由智能体处理日常工作的人。
适用场景
- ✓当你想开启或关闭一个 n8n 工作流的时候。
- ✓当你需要检查最近一次工作流运行是否失败的时候。
- ✓当你想重试失败的运行,或更新某个工作流标签的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/n8n/agent-harness/cli_anything/n8n/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我看看过去一天哪些 n8n 工作流失败了,并重试其中安全的那些。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用服务器地址和 API 密钥向你的 n8n 服务器发送请求。它会读取和修改工作流、运行记录和设置,然后以结构化形式返回结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
cli-anything-n8n
CLI harness for n8n workflow automation — built with the CLI-Anything pattern. Verified against n8n OpenAPI spec v1.1.1.
Installation
pip install cli-anything-n8n
Configuration
cli-anything-n8n config set base_url https://your-n8n-instance.com
cli-anything-n8n config set api_key your-api-key
# Or environment variables
export N8N_BASE_URL=https://your-n8n-instance.com
export N8N_API_KEY=your-api-key
export N8N_TIMEOUT=60 # optional, default 30s
Command Groups
| Group | Commands |
|---|---|
| workflow | list, get, create, update, delete, activate, deactivate, tags, set-tags, transfer |
| execution | list, get, delete, retry |
| credential | create, delete, schema, transfer |
| variable | list, create, update, delete |
| tag | list, get, create, update, delete |
| config | show, set |
For AI Agents
- Always use
--jsonflag for structured output - Use
@file.jsonto pass complex JSON from files - Check return codes: 0 = success, non-zero = error
- All IDs are strings, not integers
- API key is always masked in
config showoutput - Not available in public API: data tables, credential listing, execution stop
常见问题
连接需要准备什么?
你需要 n8n 服务器地址和一个 API 密钥,可以保存在该技能的配置中,或设置为环境变量。
它可以查看保存的密码吗?
不可以。该技能说明,列出凭据不属于公开接口,配置输出中的 API 密钥也会被隐藏。
它支持哪些 n8n 版本?
该技能面向 n8n 1.0.0 或更高版本设计。
详情
作者的原始描述
Command-line interface for n8n workflow automation platform. Manages workflows, executions, credentials, variables, and tags. Based on n8n Public API v1.1.1 (n8n >= 1.0.0).
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3227
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。