agentleFS
pokgakpokgak/agent-skills/skills/n8n/SKILL.md

n8n

Skill0 starsChanged 5 months agoMITView on GitHub

Manage n8n workflows and troubleshoot executions. Use when user asks about n8n workflows, webhook triggers, execution errors, or wants to edit workflow nodes.

  • Reads credentials
  • Installs packages

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use albert-dm, new-client-system and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • yawningwhaleAISkill

    albert-dm

    Reply to DMs and messages the way Albert would. Use when the user asks "how would Albert reply to this", pastes a conversation and wants an Albert-style response, or asks you to draft/write a DM in Albert's voice. Albert sells AI voice agents / automations to local service businesses (Go High Level, lead follow-up, bookings).

    Also in 5 projects that use this

  • yawningwhaleAISkill

    new-client-system

    Scaffold a new client's full stack — Next.js 16 frontend dashboard + Trigger.dev backend worker — from the Shiney automations template. Use when the user says "new client", "onboard a client", "scaffold a client system", "set up <client-name>", or wants to start a fresh frontend+backend project styled and structured like the Shiney automations dashboard. Produces structure only; no automations are scaffolded — those are added later.

    Also in 6 projects that use this

  • xfstudioSkill

    trigger-dev

    Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.

    Also in 12 projects that use this

  • huyvpSkill

    cost-reducer

    Reduce cloud, infrastructure, and operational costs while maintaining performance. Use when writing database queries, configuring cloud resources, optimizing bundles, setting up caching, choosing between services, sizing instances, configuring CDN, managing storage, or reviewing code for cost inefficiencies. Covers AWS/GCP/Vercel pricing, database optimization, serverless tuning, image pipelines, observability costs, and FinOps practices.

    Also in 10 projects that use this

  • ffsshhttiikkSkill

    scalability

    Core foundational concepts and principles for Scalability

    Also in 10 projects that use this

  • RoxenRobloxSkill

    youtube-broll-maker

    Generate 10-second B-roll footage of yourself doing an action using the Higgsfield MCP (Seedance 2.0). Upload one photo of yourself, describe the action ("typing on laptop", "walking at night"), pick from 5 cinematography style presets, get an MP4. Use when the user wants B-roll, cutaway footage, "me doing X" video, YouTube B-roll, or any image-to-video of themselves performing an action.

    Also in 3 projects that use this

  • +4 more from yawningwhaleAI

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Trigger nodes: - Start workflows (Webhook, Schedule, Manual)

    line 19
  2. Very specific:

    When debugging with --data --json, the execution contains:

    line 273
  3. Very specific:

    Check execution --data --json and look at the Webhook node's output

    line 301
  4. Very specific:

    Use node <workflow_id> "node name" --code to view the code

    line 306
  5. Distinctive:

    Check if the service is accessible

    line 311

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

n8n Skill - Manage Workflows and Executions

n8n Concepts

Workflows

A workflow is an automation that connects multiple services/apps. It consists of:

  • Nodes - Individual steps that perform actions (HTTP requests, code execution, integrations)
  • Connections - Links between nodes defining data flow
  • Triggers - How the workflow starts (webhook, schedule, manual, etc.)

Node Types

  • Trigger nodes - Start workflows (Webhook, Schedule, Manual)
  • Regular nodes - Process data (HTTP Request, Set, IF, Switch)
  • Code nodes - Custom JavaScript/Python logic
  • Integration nodes - Connect to services (Slack, Discord, Notion, etc.)

Executions

An execution is a single run of a workflow. States:

  • success - Completed without errors
  • error - Failed at some node
  • running - Currently executing
  • waiting - Paused, waiting for external event
  • canceled - Manually stopped

Execution Modes

  • webhook - Triggered by HTTP request
  • trigger - Triggered by schedule or event
  • manual - Triggered manually from UI
  • retry - Retried from a failed execution

Webhooks

HTTP endpoints that trigger workflows:

  • Production webhook - /webhook/<path> - Always active when workflow is active
  • Test webhook - /webhook-test/<path> - For testing, shows data in UI

Credentials

Stored authentication for services (API keys, OAuth tokens). Referenced by nodes but not exposed in workflow JSON.

CLI Setup

The CLI is available via uvx (no installation needed):

uvx n8n-client --help

Or install via pip/uv:

pip install n8n-client
# or
uv pip install n8n-client

Environment Variables

Required:

  • N8N_API_KEY - API key from n8n (Settings → n8n API)
  • N8N_BASE_URL - n8n instance URL (e.g., https://your-instance.app.n8n.cloud)

CLI Reference

List Workflows

# List all workflows
uvx n8n-client workflows

# Active workflows only
uvx n8n-client workflows --active

# JSON output
uvx n8n-client workflows --json

Workflow Details

# Get workflow details
uvx n8n-client workflow <workflow_id>

# Full JSON output
uvx n8n-client workflow <workflow_id> --json

Activate/Deactivate Workflows

uvx n8n-client activate <workflow_id>
uvx n8n-client deactivate <workflow_id>

List Nodes in Workflow

# List all nodes (Code nodes marked with *)
uvx n8n-client nodes <workflow_id>

View/Edit Nodes

# View node details
uvx n8n-client node <workflow_id> "node name"

# View Code node's JavaScript
uvx n8n-client node <workflow_id> "node name" --code

# Update Code node from file
uvx n8n-client node <workflow_id> "node name" --set-code script.js

# Rename a node
uvx n8n-client node <workflow_id> "old name" --rename "new name"

# Set node parameter (supports dot notation for nested keys)
uvx n8n-client node <workflow_id> "HTTP Request" --set-param url="https://api.example.com"
uvx n8n-client node <workflow_id> "Agent" --set-param options.systemMessage="You are helpful"

# Set multiple parameters at once
uvx n8n-client node <workflow_id> "Node" -p timeout=5000 -p retries=3

# Bulk update parameters from JSON (deep merged)
uvx n8n-client node <workflow_id> "Node" --set-param-json '{"options": {"systemMessage": "Hello"}}'

Export/Import Code Nodes

Useful for editing Code node scripts in a proper editor:

# Export all Code nodes to files
uvx n8n-client export-code <workflow_id> ./nodes/

# Import updated scripts back
uvx n8n-client import-code <workflow_id> ./nodes/

Trigger Workflows

# Trigger workflow by name via webhook
uvx n8n-client trigger "Workflow Name"

# With JSON payload
uvx n8n-client trigger "Workflow Name" --data '{"key": "value"}'

# With payload from file
uvx n8n-client trigger "Workflow Name" --file payload.json

# Use test webhook URL
uvx n8n-client trigger "Workflow Name" --test

List Executions

# Recent executions
uvx n8n-client executions

# Filter by workflow
uvx n8n-client executions --workflow <workflow_id>

# Filter by status (error, success, running, waiting, canceled)
uvx n8n-client executions --status error

# Limit results
uvx n8n-client executions -n 100

Execution Details

# Get execution details (shows error info for failed executions)
uvx n8n-client execution <execution_id>

# Include full execution data
uvx n8n-client execution <execution_id> --data

# JSON output
uvx n8n-client execution <execution_id> --data --json

Retry Failed Execution

uvx n8n-client retry <execution_id>

# Use latest workflow version
uvx n8n-client retry <execution_id> --latest

Credentials Management

Note: The n8n API does not allow reading credential values (security restriction). You can only list credentials metadata, create new credentials, and delete credentials. To update a credential, you must delete and recreate it.

# List all credentials (metadata only - id, name, type)
uvx n8n-client credentials

# Get schema for a credential type (shows required fields)
uvx n8n-client credential-schema httpHeaderAuth
uvx n8n-client credential-schema openAiApi --json

# Create a credential
uvx n8n-client create-credential --name "My API Key" --type httpHeaderAuth --data '{"name": "X-API-Key", "value": "secret"}'

# Create from file
uvx n8n-client create-credential --name "OpenAI" --type openAiApi --data-file credentials.json

# Delete a credential
uvx n8n-client delete-credential <credential_id>

Common Workflows

Troubleshoot Failed Executions

# 1. Find failed executions
uvx n8n-client executions --status error

# 2. Get error details
uvx n8n-client execution <id>

# 3. Get full data for debugging
uvx n8n-client execution <id> --data --json

Edit Code Nodes

# 1. Export all Code nodes
uvx n8n-client export-code <workflow_id> ./nodes/

# 2. Edit scripts in your editor
# Files: ./nodes/node_name.js

# 3. Import changes back
uvx n8n-client import-code <workflow_id> ./nodes/

Quick Node Update

# View current code
uvx n8n-client node <workflow_id> "node name" --code > script.js

# Edit script.js...

# Update node
uvx n8n-client node <workflow_id> "node name" --set-code script.js

Test Webhook Workflow

# Trigger with test payload
uvx n8n-client trigger "Workflow Name" --test --file test_payload.json

# Check execution result
uvx n8n-client executions --workflow <id> -n 1

Execution Data Structure

When debugging with --data --json, the execution contains:

execution
├── id                    # Execution ID
├── status                # success, error, running, etc.
├── mode                  # webhook, trigger, manual, retry
├── startedAt / stoppedAt # Timestamps
├── workflowData          # Snapshot of workflow at execution time
│   ├── name
│   ├── nodes[]
│   └── connections
└── data
    └── resultData
        ├── runData       # Output from each node
        │   └── [nodeName][]
        │       ├── data.main[][] # Node output items
        │       └── executionStatus
        ├── lastNodeExecuted
        └── error         # If failed
            ├── message
            ├── description
            └── node      # Which node failed

Common Error Patterns

Webhook Payload Issues

  • Check execution --data --json and look at the Webhook node's output
  • Payload is in runData.Webhook[0].data.main[0][0].json.body

Code Node Errors

  • Error message shows the JavaScript error
  • Use node <workflow_id> "node name" --code to view the code
  • Common: undefined variables, JSON parsing, missing fields

Integration Failures

  • Usually credential or API issues
  • Check if the service is accessible
  • Verify credential permissions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.