跳到正文
Skillpedia
自动化58k · #3227

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/CLI-Anything/blob/main/n8n/agent-harness/cli_anything/n8n/skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 --json flag for structured output
  • Use @file.json to 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 show output
  • 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能