# n8n-io/skills architecture

> Architecture diagram of the GitHub repository n8n-io/skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/n8n-io/skills
- Repository: https://github.com/n8n-io/skills

## Overview

Official n8n Skills equips coding agents to build and maintain n8n workflows through an instance-level MCP server. The main workflow is session entry through a meta-skill, routing to capability guidance, then MCP-assisted work; tool hooks add contextual reminders. The repository also provides platform-specific integration, including an OpenCode plugin that registers skills and bridges hook scripts. Capability nodes group related skills rather than enumerate their reference documents. Relationships are based on README statements and the sampled plugin; unsampled hook internals are not expanded.

Main entry points: [`skills/using-n8n-skills-official/SKILL.md`](https://github.com/n8n-io/skills/blob/main/skills/using-n8n-skills-official/SKILL.md) (Skill routing), [`opencode/plugin.ts`](https://github.com/n8n-io/skills/blob/main/opencode/plugin.ts) (OpenCode bridge), [`hooks/hooks.json`](https://github.com/n8n-io/skills/blob/main/hooks/hooks.json) (Tool reminders), [`hooks/session-start.sh`](https://github.com/n8n-io/skills/blob/main/hooks/session-start.sh) (Session entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guidance["Skill guidance"]
  node_meta["Skill routing<br/>[SKILL.md]"]
  node_lifecycle["Workflow lifecycle<br/>[SKILL.md]"]
  node_reuse["Subworkflows<br/>[SKILL.md]"]
  node_expressions["Expressions and code<br/>[SKILL.md]"]
  node_nodes["Node configuration<br/>[SKILL.md]"]
  node_loops["Loops and pagination<br/>[SKILL.md]"]
  node_agents["n8n Agents<br/>[SKILL.md]"]
  node_ai["AI nodes<br/>[SKILL.md]"]
  node_errors["Error handling<br/>[SKILL.md]"]
  node_security["Credentials and security<br/>[SKILL.md]"]
  node_binary["Binary data<br/>[SKILL.md]"]
  node_tables["Data Tables<br/>[SKILL.md]"]
  node_debug["Debugging<br/>[SKILL.md]"]
  node_extending["Extend MCP<br/>[SKILL.md]"]
end

subgraph group_hooks["Agent hooks"]
  node_session["Session entry<br/>[session-start.sh]"]
  node_toolhooks["Tool reminders<br/>[hooks.json]"]
  node_hook_scripts["Hook scripts"]
end

subgraph group_integrations["Platform integration"]
  node_opencode["OpenCode bridge<br/>[plugin.ts]"]
  node_platforms["Agent platforms<br/>[plugin.json]"]
end

subgraph group_runtime["Workflow runtime"]
  node_mcp{{"n8n instance MCP"}}
  node_workflows["n8n workflows"]
end

node_agent(("Coding agent"))

node_agent -->|"starts session"| node_session
node_session -->|"loads protocol"| node_meta
node_meta -->|"routes tasks"| node_lifecycle
node_meta -->|"routes tasks"| node_reuse
node_meta -->|"routes tasks"| node_expressions
node_meta -->|"routes tasks"| node_nodes
node_meta -->|"routes tasks"| node_loops
node_meta -->|"routes tasks"| node_agents
node_meta -->|"routes tasks"| node_ai
node_meta -->|"routes tasks"| node_errors
node_meta -->|"routes tasks"| node_security
node_meta -->|"routes tasks"| node_binary
node_meta -->|"routes tasks"| node_tables
node_meta -->|"routes tasks"| node_debug
node_meta -->|"routes tasks"| node_extending
node_agent -->|"uses tools"| node_mcp
node_mcp -->|"builds and edits"| node_workflows
node_toolhooks -->|"selects scripts"| node_hook_scripts
node_opencode -->|"loads matchers"| node_toolhooks
node_opencode -->|"injects protocol"| node_meta
node_opencode -->|"runs hooks"| node_hook_scripts
node_platforms -.->|"activates session hook"| node_session
node_toolhooks -->|"adds reminders"| node_agent

click node_meta "https://github.com/n8n-io/skills/blob/main/skills/using-n8n-skills-official/SKILL.md"
click node_lifecycle "https://github.com/n8n-io/skills/blob/main/skills/n8n-workflow-lifecycle-official/SKILL.md"
click node_reuse "https://github.com/n8n-io/skills/blob/main/skills/n8n-subworkflows-official/SKILL.md"
click node_expressions "https://github.com/n8n-io/skills/blob/main/skills/n8n-expressions-official/SKILL.md"
click node_nodes "https://github.com/n8n-io/skills/blob/main/skills/n8n-node-configuration-official/SKILL.md"
click node_loops "https://github.com/n8n-io/skills/blob/main/skills/n8n-loops-official/SKILL.md"
click node_agents "https://github.com/n8n-io/skills/blob/main/skills/n8n-agents-official/SKILL.md"
click node_ai "https://github.com/n8n-io/skills/blob/main/skills/n8n-ai-nodes-official/SKILL.md"
click node_errors "https://github.com/n8n-io/skills/blob/main/skills/n8n-error-handling-official/SKILL.md"
click node_security "https://github.com/n8n-io/skills/blob/main/skills/n8n-credentials-and-security-official/SKILL.md"
click node_binary "https://github.com/n8n-io/skills/blob/main/skills/n8n-binary-and-data-official/SKILL.md"
click node_tables "https://github.com/n8n-io/skills/blob/main/skills/n8n-data-tables-official/SKILL.md"
click node_debug "https://github.com/n8n-io/skills/blob/main/skills/n8n-debugging-official/SKILL.md"
click node_extending "https://github.com/n8n-io/skills/blob/main/skills/n8n-extending-mcp-official/SKILL.md"
click node_session "https://github.com/n8n-io/skills/blob/main/hooks/session-start.sh"
click node_toolhooks "https://github.com/n8n-io/skills/blob/main/hooks/hooks.json"
click node_hook_scripts "https://github.com/n8n-io/skills/tree/main/hooks/pre-tool-use"
click node_opencode "https://github.com/n8n-io/skills/blob/main/opencode/plugin.ts"
click node_platforms "https://github.com/n8n-io/skills/blob/main/.claude-plugin/plugin.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_meta,node_lifecycle,node_reuse,node_expressions,node_nodes,node_loops,node_agents,node_ai,node_errors,node_security,node_binary,node_tables,node_debug,node_extending toneBlue
class node_session,node_toolhooks,node_hook_scripts toneAmber
class node_opencode,node_platforms toneMint
class node_mcp,node_workflows toneRose
class node_agent toneIndigo
```

## Components

### Skill guidance

- [Skill routing](https://github.com/n8n-io/skills/blob/main/skills/using-n8n-skills-official/SKILL.md): `skills/using-n8n-skills-official/SKILL.md`
- [Workflow lifecycle](https://github.com/n8n-io/skills/blob/main/skills/n8n-workflow-lifecycle-official/SKILL.md): `skills/n8n-workflow-lifecycle-official/SKILL.md`
- [Subworkflows](https://github.com/n8n-io/skills/blob/main/skills/n8n-subworkflows-official/SKILL.md): `skills/n8n-subworkflows-official/SKILL.md`
- [Expressions and code](https://github.com/n8n-io/skills/blob/main/skills/n8n-expressions-official/SKILL.md): `skills/n8n-expressions-official/SKILL.md`
- [Node configuration](https://github.com/n8n-io/skills/blob/main/skills/n8n-node-configuration-official/SKILL.md): `skills/n8n-node-configuration-official/SKILL.md`
- [Loops and pagination](https://github.com/n8n-io/skills/blob/main/skills/n8n-loops-official/SKILL.md): `skills/n8n-loops-official/SKILL.md`
- [n8n Agents](https://github.com/n8n-io/skills/blob/main/skills/n8n-agents-official/SKILL.md): `skills/n8n-agents-official/SKILL.md`
- [AI nodes](https://github.com/n8n-io/skills/blob/main/skills/n8n-ai-nodes-official/SKILL.md): `skills/n8n-ai-nodes-official/SKILL.md`
- [Error handling](https://github.com/n8n-io/skills/blob/main/skills/n8n-error-handling-official/SKILL.md): `skills/n8n-error-handling-official/SKILL.md`
- [Credentials and security](https://github.com/n8n-io/skills/blob/main/skills/n8n-credentials-and-security-official/SKILL.md): `skills/n8n-credentials-and-security-official/SKILL.md`
- [Binary data](https://github.com/n8n-io/skills/blob/main/skills/n8n-binary-and-data-official/SKILL.md): `skills/n8n-binary-and-data-official/SKILL.md`
- [Data Tables](https://github.com/n8n-io/skills/blob/main/skills/n8n-data-tables-official/SKILL.md): `skills/n8n-data-tables-official/SKILL.md`
- [Debugging](https://github.com/n8n-io/skills/blob/main/skills/n8n-debugging-official/SKILL.md): `skills/n8n-debugging-official/SKILL.md`
- [Extend MCP](https://github.com/n8n-io/skills/blob/main/skills/n8n-extending-mcp-official/SKILL.md): `skills/n8n-extending-mcp-official/SKILL.md`

### Agent hooks

- [Session entry](https://github.com/n8n-io/skills/blob/main/hooks/session-start.sh): `hooks/session-start.sh`
- [Tool reminders](https://github.com/n8n-io/skills/blob/main/hooks/hooks.json): `hooks/hooks.json`
- [Hook scripts](https://github.com/n8n-io/skills/tree/main/hooks/pre-tool-use): `hooks/pre-tool-use`

### Platform integration

- [OpenCode bridge](https://github.com/n8n-io/skills/blob/main/opencode/plugin.ts): `opencode/plugin.ts`
- [Agent platforms](https://github.com/n8n-io/skills/blob/main/.claude-plugin/plugin.json): `.claude-plugin/plugin.json`

### Workflow runtime

- **n8n instance MCP**
- **n8n workflows**

### Other components

- **Coding agent**

## Connections

- Coding agent → Session entry: starts session (evidence: `README.md`)
- Session entry → Skill routing: loads protocol (evidence: `README.md`)
- Skill routing → Workflow lifecycle: routes tasks (evidence: `README.md`)
- Skill routing → Subworkflows: routes tasks (evidence: `README.md`)
- Skill routing → Expressions and code: routes tasks (evidence: `README.md`)
- Skill routing → Node configuration: routes tasks (evidence: `README.md`)
- Skill routing → Loops and pagination: routes tasks (evidence: `README.md`)
- Skill routing → n8n Agents: routes tasks (evidence: `README.md`)
- Skill routing → AI nodes: routes tasks (evidence: `README.md`)
- Skill routing → Error handling: routes tasks (evidence: `README.md`)
- Skill routing → Credentials and security: routes tasks (evidence: `README.md`)
- Skill routing → Binary data: routes tasks (evidence: `README.md`)
- Skill routing → Data Tables: routes tasks (evidence: `README.md`)
- Skill routing → Debugging: routes tasks (evidence: `README.md`)
- Skill routing → Extend MCP: routes tasks (evidence: `README.md`)
- Coding agent → n8n instance MCP: uses tools (evidence: `README.md`)
- n8n instance MCP → n8n workflows: builds and edits (evidence: `README.md`)
- Tool reminders → Hook scripts: selects scripts
- OpenCode bridge → Tool reminders: loads matchers (evidence: `opencode/plugin.ts`)
- OpenCode bridge → Skill routing: injects protocol (evidence: `opencode/plugin.ts`)
- OpenCode bridge → Hook scripts: runs hooks (evidence: `opencode/plugin.ts`)
- Agent platforms → Session entry: activates session hook (evidence: `README.md`)
- Tool reminders → Coding agent: adds reminders (evidence: `README.md`)
