n8n-architect

n8n-architect is a skill for Claude Code, Codex from EtienneLescot/n8n-as-code. It costs 52 tokens per session (6,817 once invoked), scanned A, original, MIT.

A guide for creating and managing n8n workflows as code. n8n is a tool for connecting services and automating tasks through workflows.

In plain words
What is it for?
Creating, editing, validating, testing, syncing, pushing, pulling, and troubleshooting n8n workflows.
Why use it?
It gives one consistent way to prepare the workspace, write and check workflows, and move them between environments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions AGENTS.md.

Good fit Creating, editing, validating, testing, syncing, pushing, pulling, and troubleshooting n8n workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/etiennelescot/n8n-as-code/n8n-architect
About the project

n8n-as-code is a toolkit for building, editing, checking, deploying, and debugging n8n workflows from an editor or terminal. It helps developers and AI agents work with n8n workflows using node schemas, templates, version-controlled synchronization, and TypeScript files. Its catalogue add-ons help agents operate n8n and author workflows.

EtienneLescot/n8n-as-code · 1,566 stars · on GitHub · n8nascode.dev

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 EtienneLescot/n8n-as-code --skill n8n-architect
Clone the repo
git clone --depth 1 https://github.com/EtienneLescot/n8n-as-code

Made for: Claude Code, Codex.

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 n8n-architect

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/etiennelescot/n8n-as-code/n8n-architect"><img src="https://agentmods.dev/badge/skills/etiennelescot/n8n-as-code/n8n-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,817 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 16
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Excessive Agency · line 216
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00052 $0.06817
Opus 5 $0.00026 $0.03409
Sonnet 5 $0.00010 $0.01363
Haiku 4.5 $0.00005 $0.00682

Measured yesterday against content hash 99aa27c6dd56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

n8n-architect 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 yesterday.

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/skills/src/agent-skills/n8n-architect/SKILL.md · 537 lines

How it starts

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

n8n Architect

Use this skill for all n8n-as-code work: workspace readiness, environments, managed local instances, tunnels, workflow authoring, validation, sync, push, and pull.

Use {{N8NAC_CMD}} as the primary interface. Use {{N8N_MANAGER_CMD}} only for local managed runtime lifecycle, tunnels, and workflow presentation commands that are explicitly exposed by n8n-manager.

Context Root Protocol

  • Treat the current context root as the directory containing n8nac-config.json, AGENTS.md, .agents/skills, and the configured workflowsPath.
  • {{N8NAC_CONTEXT_ROOT_HINT}}
  • Before any n8n work, first run {{N8NAC_CMD}} update-ai from the context root, then read AGENTS.md. update-ai is designed to create or refresh the n8n-as-code block without destroying existing user or agent instructions.
  • Use the exact n8nac command and n8n-manager command listed in AGENTS.md. Those context-root commands override the portable examples in this skill.
  • Run every {{N8NAC_CMD}} env ..., {{N8NAC_CMD}} workspace ..., {{N8NAC_CMD}} list, pull, push, validate, test, and update-ai command from the context root unless the user explicitly gives another context root.
  • AGENTS.md is bootstrap context only, not a source of configuration truth.
  • Do not infer environment, project, or workflowsPath from AGENTS.md.
  • Before n8n work, resolve the effective context from the backend:
{{N8NAC_CMD}} env status --json
  • Use the returned workflowsPath for workflow files. It is the configured workflow directory for the active environment.
  • Do not reconstruct workflowsPath from environment name/id, instanceIdentifier, instanceUserIdentifier, projectId, projectName, or legacy sync fields.
  • Never write n8nac-config.json, ~/.n8n-manager, or n8n-manager secret files by hand.

Workspace Readiness

Resolve the effective environment through the backend before workflow work:

{{N8NAC_CMD}} env status --json
  • Treat env status --json as the source of effective workspace readiness.
  • Do not infer readiness from raw files, generated agent docs, or directory names.
  • A workspace .env holding N8N_HOST (plus any of N8N_API_KEY, N8N_NATIVE_MCP_URL, N8N_NATIVE_MCP_TOKEN) configures the default environment on first use: env status --json then resolves with no env add, env auth set, env use, or native-mcp configure.
  • If env status --json fails because the workspace is not configured, use env add, env auth set, and env use to create or select a V4 workspace environment.
  • Managed local instances remain machine-global runtime resources.
  • Workspace environments remain workspace-scoped and are managed through {{N8NAC_CMD}} env ....

Read the full file on GitHub · 537 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. yesterday Changed · +14 lines 99aa27c6dd56
  2. 6d ago Changed · +3 lines 9dbc4a7bfa73
  3. 11d ago First seen · 520 lines · 52 tokens per session scan A 5201942b7788

Subscribe to this mod's changes

n8n-architect is a skill published in the GitHub repository EtienneLescot/n8n-as-code (1,566 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 6,817 once invoked, about $0.0003 per session on Opus 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-08-30.