Skip to content
Automation
Skill

/agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and publish n8n Agents yourself with the agent_builder_* tools: targeting, prerequisites, initial build, config freshness, interactive setup, models, memory,

From plugin
n8n
209k12 skills10 agents2 commands

Claude Code

$ npx -y skills add n8n-io/n8n --skill agent-builder --agent claude-code

SKILL.md

agent-builder.SKILL.md
name: agent-builder
description: >-
  Load immediately after an Agent intent, before the first agent_builder_* call.
  Governs how you create, configure, test, and publish n8n Agents yourself with
  the agent_builder_* tools: targeting, prerequisites, initial build, config
  freshness, interactive setup, models, memory, tools, and reply style. Use
  directly for routine Agent follow-ups; rerun intent-recognition only when the
  requested artifact is no longer clear.
shared_references:
  - credential-setup-with-browser-use
recommended_tool_groups:
  - agents
  - nodes
  - workflows
  - data_tables

Agent Builder

You build n8n Agents yourself with the `agent_builder_*` tools. There is no separate builder. Load the `agent-builder-config` skill before your first `agent_builder_write_config` or `agent_builder_patch_config` call in a conversation. It holds the config rules and the config schema reference.

Routing

Use this skill after `intent-recognition` chooses an agent-anchored design, or when the conversation already targets an Agent and the user is continuing that build. Do not rerun intent recognition for routine Agent edits or extensions. Use the `agent_builder_*` tools only for Agent artifacts.

For read-only research, use `agent-context` directly. This includes explaining an Agent, comparing Agents, inspecting its config or resources, and diagnosing sessions. Do not call `agent_builder_select_agent` for these requests.

When the conversation opens from an existing Agent in the editor and the user asks to change its configuration or capabilities, that is an agent-anchored request. Target that Agent and build it. Do not reroute to `workflow-builder`, and do not create a workflow to satisfy a capability change on the Agent.

Targeting

Run `agent_builder_select_agent` through `call_tool` once at the start of every request that creates, changes, tests, or publishes an Agent, before any other `agent_builder_*` call. The other builder tools act on the selected Agent and fail when no Agent is selected.

Address Agents in this conversation with `agentRef`, a short stable key similar to a workflow `filePath`.

  • For the first Agent, pass a fresh `agentRef` and `name`.
  • Reuse that `agentRef` on later calls. A call with neither `agentRef` nor

`agentId` keeps the current Agent.

  • To build an additional Agent, pass `createNew: true` with a different

`agentRef` and `name`.

  • To edit an Agent not built in this conversation, pass its `agentId` once,

optionally with an `agentRef`, then prefer the returned `agentRef`.

  • Never pass the id of an Agent that the request only references, for example

as a sub-agent, a delegation target, or an example.

Naming or renaming the current Agent never silently creates another one.

The result carries `sessionContext`: the Preview link for the selected Agent. Select the Agent again after you switch to a different Agent.

Target Agent

The target Agent is the AI Agent that you configure for the user. Changes to config, tools, memory, integrations, and target-Agent skills affect the target Agent, not your own behavior.

Put the target Agent's behavior in `instructions` by default: identity, purpose, and the rules and steps for its job. Create target-Agent skills only when one of these is true:

  • The user asks for skills.
  • The Agent has two or more separate jobs with their own procedures, for

example creating tickets, reviewing images, and generating reports. Put each job in its own skill and keep `instructions` to the rules that apply to all of them.

  • One procedure is long or conditional enough that it would bury the general

rules in `instructions`.

An Agent with one job, such as answering support questions with a few tools, needs no skills. Load `agent-builder-target-skills` only when you create or change a skill.

Scheduled tasks inherit these instructions and can use the configured skills. Keep each task objective focused on its session-specific outcome, context, delivery, constraints, and success criteria. Never copy universal instructions or reusable skill procedures into it. Load `agent-builder-target-tasks` before you create a task or replace its objective. It holds the required objective template.

Language requirements for a target Agent apply to its configuration, not to your replies. For an English request to build an Italian-speaking Agent, reply in English and configure the Agent to reply in Italian.

Prerequisites

The `agent_builder_*` tools cannot create workflows or data tables. You create them with your own tools:

  • Create a workflow tool only when one Agent tool call must run an ordered

multi-node procedure, or when the user explicitly needs that workflow to be reusable, manually callable, or usable outside the Agent. Follow `workflow-builder` to build it. Then find it with `agent-context({ type: "attachable-workflows" })` and reference it as `{ "type": "workflow", "workflowId": "<id>", "workflow": "<name>" }`.

  • When the Agent will store or query tabular data, follow `data-table-manager`

and create the required tables with `create_data_table`.

  • Never ask the user to create prerequisites manually.

For an unsupported chat channel that the user explicitly wants as the conversation surface, build an `agent-entrypoint` workflow after the Agent exists. It connects the platform trigger to Message an Agent, maps the incoming message, uses a stable platform conversation or sender identifier as the custom session key, and sends the Agent's `text` response through the platform. This workflow invokes the Agent. Never attach it to the Agent as a tool. Native Agent channels do not need this wrapper.

Saved sub-agent dependencies

When the user asks for an Agent that uses other newly built Agents as saved sub-agents:

1. Build each child Agent under its own `agentRef` before you attach it to the parent. 2. Select the parent again, discover the saved child, and map its name to its stored id. 3. P

Read more
@n8n-io
Ships withn8n

Fair-code platform to build and deploy AI agents and workflows. Combine a visual canvas with custom code, run it self-hosted or in the cloud, and connect to 1500+ integrations. AI automation you can trust with real work, from prototype to production.

209k12 skills10 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
209.2k
Star history of n8n-io/n8n on GitHub, a chart by star-history.com

Other skills on n8n.

setup-mcps

setup-mcps

Configure MCP servers for n8n development. Use when the user says /setup-mcps or asks to set up MCP servers for n8n.

@n8n-io@n8n-ioInstall Skill
n8n-cli

n8n-cli

Use the n8n CLI to manage workflows, credentials, executions, and more on an n8n instance. Use when the user asks to interact…

@n8n-io@n8n-ioInstall Skill
app-builder

app-builder

Load before calling the apps tool. Use when the user wants to build or change an n8n App: a small web app, form, dashboard,…

@n8n-io@n8n-ioInstall Skill
data-table-manager

data-table-manager

Load before calling the data table tools or parse-file. Use for natural standalone requests like "what data tables do I have?",…

@n8n-io@n8n-ioInstall Skill
debugging-executions

debugging-executions

Debug failed or wrong-output workflow executions using executions tools. Load when the user reports execution failures,…

@n8n-io@n8n-ioInstall Skill
instance-awareness

instance-awareness

Load when the request depends on what is already on this instance rather than on what the user just typed: a short or ambiguous…

@n8n-io@n8n-ioInstall Skill

More skills from other plugins.

browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

browser-usetoday120k
@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill
opencli-adapter-author

opencli-adapter-author

Build or improve an OpenCLI JS adapter using observed site behavior, existing adapters and browser API evidence. For ad-hoc…

opencli3d31k
@jackwener@jackwenerInstall Skill

Questions about agent-builder.

Which coding agents can use agent-builder?
agent-builder installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.