cli-anything-n8n — Claude Code skill: drive n8n from the CLI
A skill that hands your agent a command line for n8n: workflows, executions, credentials, variables and tags. Useful when automation lives in scripts, not the UI.
npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a claude-codeWhat cli-anything-n8n does
The skill wires the cli-anything-n8n CLI into your project so the agent can work with the n8n automation platform. It lists and creates workflows, reads executions, retries failed ones, and manages variables and tags. Everything runs against n8n Public API v1.1.1, so you need n8n 1.0.0 or newer.
Commands are grouped by object: workflow, execution, credential, variable, tag, config. Workflows can be activated, deactivated, tagged and transferred; executions can be retried; credentials expose their schema. The README tells agents to pass --json for structured output, hand complex JSON over as @file.json, and treat every ID as a string rather than an integer.
You need reachable instance details first. Set the address and key with cli-anything-n8n config set base_url and config set api_key, or export N8N_BASE_URL and N8N_API_KEY; the timeout defaults to 30 seconds and is overridden by N8N_TIMEOUT. One catch: the public API has no data tables, no credential listing and no execution stop, so a scenario built on those won't work here.
What it helps with
- pull a list of workflows with their tags in one call
- retry a failed execution without opening the web UI
- create a workflow variable from a script
- move a workflow between n8n projects
- create credentials from a JSON schema file
Example prompts for the agent
- List every n8n workflow with its tags, output as JSON
- Retry the last failed execution of this workflow
- Create a variable
API_HOSTwith the value fromenv.json
How to install cli-anything-n8n
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a claude-code2Manually: put the files in place
~/.claude/skills/cli-anything-n8n/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cli-anything-n8n/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a codex2Manually: put the files in place
.agents/skills/cli-anything-n8n/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a cursor2Manually: put the files in place
.cursor/skills/cli-anything-n8n/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install HKUDS/CLI-Anything cli-anything-n8n2Manually: put the files in place
.github/skills/cli-anything-n8n/SKILL.md1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a gemini-cli2Platform CLI
gemini skills install https://github.com/HKUDS/CLI-Anything --path skills/cli-anything-n8nManually: put the files in place
.devin/skills/cli-anything-n8n/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cli-anything-n8n
How do I install cli-anything-n8n in Claude Code?
Run npx skills add HKUDS/CLI-Anything --skill cli-anything-n8n -a claude-code. The skill file then lands at ~/.claude/skills/cli-anything-n8n/SKILL.md.
What does cli-anything-n8n do?
It gives your agent a CLI for n8n: listing and editing workflows, plus executions, credentials, variables and tags. It is built on n8n Public API v1.1.1.
What do I need before using the skill?
An n8n instance URL and an API key, set via cli-anything-n8n config set base_url and config set api_key or through N8N_BASE_URL and N8N_API_KEY. The instance must run n8n 1.0.0 or newer.
Source text
SKILL.md · Apache-2.0
--- name: "cli-anything-n8n" description: >- 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). --- # cli-anything-n8n CLI harness for n8n workflow automation — built with the CLI-Anything pattern. Verified against n8n OpenAPI spec v1.1.1. ## Installation ```bash pip install cli-anything-n8n ``` ## Configuration ```bash 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
© HKUDS · Apache-2.0 · HKUDS/CLI-Anything