Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

n8n:public-api

Skill by n8n-io

Guides work on the n8n Public API v1, covering new, migrated, and updated @PublicApiController endpoints. Written for developers working in the n8n repository who expose services through /api/v1.

  • Score 86
  • 213k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install n8n:public-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/n8n-io/n8n /tmp/n8n && mkdir -p ~/.claude/skills && cp -r /tmp/n8n/.agents/skills/public-api ~/.claude/skills/n8n-public-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install n8n:public-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through adding, migrating, or updating endpoints in the n8n Public API v1, which is mounted at /api/v1 with API-key auth. It describes the controller pattern built on @PublicApiController, public DTOs from @n8n/api-types, API-key and RBAC scopes, and cursor pagination. It also covers OpenAPI generation, the n8n API coverage file, and tests.

It is aimed at developers working under packages/cli/src/public-api/v1/ or exposing an existing service through /api/v1. The skill sets non-negotiable rules, such as delegating to services instead of repositories and keeping public and internal REST surfaces separate. It also points the assistant to the source files to check before editing.

Written from the project's SKILL.md and checked against it.

What it can do

  • New public controllerAdds a @PublicApiController route with a public DTO, scopes, and a side-effect registration.
  • Legacy endpoint migrationMoves an existing endpoint to the public API without changing its public contract.
  • Scope checksPairs @ApiKeyScope with @ProjectScope or @GlobalScope when both API-key and user permissions apply.
  • Cursor paginationShapes list endpoints to return data and nextCursor, with an opaque cursor and limit.
  • OpenAPI wiringBuilds the OpenAPI path from controller decorators and checks for generated spec drift.
  • Coverage and testsAdds the route to the API coverage file and lists the test cases to cover.

What you need

  • A checkout of the n8n repository
  • pnpm to run the full build

Try asking

  • Add a Public API v1 endpoint for listing projects with cursor pagination
  • Migrate this legacy endpoint to @PublicApiController without changing its contract
  • Wire OpenAPI and API coverage for my new /api/v1 route in n8n

Good to know

  • Team defaults can be overridden only when an existing public contract requires it.
  • Lint rules marked n8n-local-rules cannot be silenced inline.
  • Running pnpm run build:data alone does not pick up controller changes; run the full pnpm build first.
  • A 204 response cannot carry a DTO or binary body.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/public-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • reference.md11 KB

Alternatives to n8n:public-api

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

n8n:public-api: common questions

Can a public API endpoint call an internal controller?

No. The source says public and internal routes are separate surfaces, and both reuse the same service instead of calling each other.

What pagination arguments does the public API use?

Service methods and repositories use offset and limit. The public query string uses cursor and limit, and offset is never a client-facing parameter.

How are OpenAPI docs created for a controller route?

The generator in v1/openapi-gen builds the path and x-required-scope from the controller decorators, so the YAML is not written by hand.

How do I install n8n:public-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is n8n:public-api free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is n8n:public-api safe to use?

It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to n8n:public-api?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

n8n:public-api Install

Add to stack

Loading.