pn-n8n-patterns

pn-n8n-patterns is a skill for Cursor from perniemann/pnCore. It costs 71 tokens per session (1,519 once invoked), scanned A, original, MIT.

A guide to building reliable n8n workflows, which connect services and automate tasks through visual steps called nodes. It covers webhooks, scheduled jobs, credentials, retries, error handling, and workflow structure.

In plain words
What is it for?
Use it to choose n8n nodes, connect APIs, secure webhooks, handle failures and retries, make repeated runs safe, and organize production workflows.
Why use it?
It helps prevent failed, duplicated, or insecure automations and gives developers patterns for diagnosing and maintaining workflows.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the pn-core plugin — 150 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to choose n8n nodes, connect APIs, secure webhooks, handle failures and retries, make repeated runs safe, and organize production workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-n8n-patterns
Install

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.

Any agent
npx skills add perniemann/pnCore --skill pn-n8n-patterns
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 150 skills, 19 commands, 9 agents, 1 MCP server.

Wrote 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.

agentmods badge for pn-n8n-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/perniemann/pncore/pn-n8n-patterns/github.svg)](https://agentmods.dev/skills/perniemann/pncore/pn-n8n-patterns)
Your own site
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-n8n-patterns"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-n8n-patterns/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.

agentmods 80×15 button for pn-n8n-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-n8n-patterns"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-n8n-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01519
Opus 5.5 $0.00028 $0.00608
Sonnet 5.5 $0.00014 $0.00304
Haiku 4.5 $0.00007 $0.00152

Measured 2mo ago against content hash 1096ea6a0646, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pn-n8n-patterns scanned grade A with 0 findings 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/pn-core-mcp/content/skills/integrations/pn-n8n-patterns/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

n8n patterns skill

When to use

  • Designing or editing an n8n workflow (new or existing)
  • Choosing nodes for a given task (HTTP, webhook, trigger, transform)
  • Securing webhooks and credentials
  • Implementing error handling, retries, or idempotency
  • Structuring modular or production workflows
  • Debugging or simplifying a workflow

When n8n MCP is available (e.g. n8n MCP Server Trigger exposing workflow tools): Use its tools to inspect, execute, or extend n8n workflows. Combine with this skill for node choice, secrets, webhooks, error handling, and production patterns. Reference get_rule("pn-n8n") for glob-triggered safety (no secrets in JSON).

For secrets and error boundaries, reference pn-backend-philosophy.


Instructions

1. Node choice

  • Use the most specific node that fits (e.g. HTTP Request for APIs, Webhook for inbound calls, Schedule for cron-like runs).
  • Prefer built-in nodes over generic "Execute Command" or "Run Script" when they exist.
  • Built-in nodes handle auth, retries, and error semantics better than custom scripts.

2. AI Agent nodes (when building agentic workflows)

  • Use AI Agent nodes for autonomous decision-making and context-aware integration.
  • Configure strategic tool selection: connect at least one tool sub-node (API calls, DB queries) so agents choose appropriate tools per task.
  • Limit tool scope to prevent cluttered workflows as complexity grows.
  • For AI Workflow Builder (Starter/Pro/Enterprise): build iteratively with short, specific prompts; name integrations explicitly (e.g. "Gmail", "Google Sheets"); avoid single huge prompts; validate and refine in iterations.

3. Data flow

  • Filter early: remove unnecessary fields with Edit Fields (Set) node before heavy processing to reduce memory and latency.
  • For large datasets (hundreds or thousands of items): use Loop Over Items (Split in Batches) with explicit batch size to avoid out-of-memory errors.
  • Use IF nodes at entry points to catch malformed payloads before they propagate.
  • Use JSON Schema or Set nodes to enforce data shapes at critical junctions; fail fast on invalid payloads.

Read the full file on GitHub · 127 lines

Changes

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.

  1. 2mo ago First seen · 127 lines · 71 tokens per session scan A 1096ea6a0646

Subscribe to this mod's changes

pn-n8n-patterns is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 1,519 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

pn-n8n-patterns compared with skills from other repositories

pn-n8n-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pn-n8n-patternsperniemann/pnCoreSkill0todayMITA71Cursor
chat-sdkvercel-labs/open-agentsSkill5.9k3mo agoMITA191Claude Code, Codex
output-dev-workflow-costgrowthxai/outputSkill445todayApache-2.0A40Claude Code
emulate-seedyonatangross/orchestkitSkill312todayMITA47Claude Code
performanceyonatangross/orchestkitSkill312todayMITA40Claude Code
architecture-decision-recordyonatangross/orchestkitSkill312todayMITA31Claude Code
domain-driven-designyonatangross/orchestkitSkill312todayMITA48Claude Code