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.
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.
npx skills add EtienneLescot/n8n-as-code --skill n8n-architectgit clone --depth 1 https://github.com/EtienneLescot/n8n-as-codeWrote 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.
[](https://agentmods.dev/skills/etiennelescot/n8n-as-code/n8n-architect)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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 configuredworkflowsPath. - {{N8NAC_CONTEXT_ROOT_HINT}}
- Before any n8n work, first run
{{N8NAC_CMD}} update-aifrom the context root, then readAGENTS.md.update-aiis designed to create or refresh the n8n-as-code block without destroying existing user or agent instructions. - Use the exact
n8nac commandandn8n-manager commandlisted inAGENTS.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, andupdate-aicommand from the context root unless the user explicitly gives another context root. AGENTS.mdis bootstrap context only, not a source of configuration truth.- Do not infer environment, project, or
workflowsPathfromAGENTS.md. - Before n8n work, resolve the effective context from the backend:
{{N8NAC_CMD}} env status --json
- Use the returned
workflowsPathfor workflow files. It is the configured workflow directory for the active environment. - Do not reconstruct
workflowsPathfrom 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 --jsonas the source of effective workspace readiness. - Do not infer readiness from raw files, generated agent docs, or directory names.
- A workspace
.envholdingN8N_HOST(plus any ofN8N_API_KEY,N8N_NATIVE_MCP_URL,N8N_NATIVE_MCP_TOKEN) configures thedefaultenvironment on first use:env status --jsonthen resolves with noenv add,env auth set,env use, ornative-mcp configure. - If
env status --jsonfails because the workspace is not configured, useenv add,env auth set, andenv useto 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 ....
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.
- yesterday Changed · +14 lines 99aa27c6dd56
- 6d ago Changed · +3 lines 9dbc4a7bfa73
- 11d ago First seen · 520 lines · 52 tokens per session scan A 5201942b7788
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.
Other skills, from other repositories
sdd-apply
Skill "sdd-apply" from Gentleman-Programming/gentle-ai, covering execution role, language domain contract, purpose, what you receive and execution and persistence contract.
bfl-api
BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.
api-doc-generator
Generate API documentation from source code, supporting REST APIs, GraphQL, and various documentation formats.
solr-extending
To build Solr plugins: SearchComponent, QParser, URP, DocTransformer.
csharp-godot
Use when working with C# in Godot — conventions, GodotSharp API differences from GDScript, project setup, and interop.
api-aqa-flow
Workflow for backend API test automation: TMS / Issue Tracker test cases → automated API tests, HITL-gated.