n8n-conventions — data-flow n8n-conventions, official, n8n workflow automation, n8n skill, data-flow, ide skills, development, integration-framework, integrations, low-code, Claude Code

v1.0.0
GitHub

Agent Capability Analysis

The n8n-conventions skill by n8n-io is an open-source official AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for data-flow, development, integration-framework.

Ideal Agent Persona

Ideal for AI Agents like Cursor, Windsurf, and Claude Code that need to adhere to n8n workflow conventions and best practices.

Core Value

Empowers agents to write clean and maintainable code by following strict TypeScript conventions, including the use of 'unknown' over 'any' and 'satisfies' over 'as', as well as proper error handling using 'n8n-workflow' and 'UnexpectedError' imports.

Capabilities Granted for n8n-conventions

Enforcing consistent coding standards across workflows
Debugging workflows using strict TypeScript types and error handling mechanisms
Automating workflow validation and testing with n8n-conventions

! Prerequisites & Limits

  • Requires knowledge of TypeScript and n8n workflow architecture
  • Limited to n8n workflow development only
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

n8n-conventions

Install n8n-conventions, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

n8n Quick Reference

📚 Full Documentation:

  • General: /AGENTS.md - Architecture, commands, workflows
  • Frontend: /packages/frontend/AGENTS.md - CSS variables, timing

Use this skill when you need quick reminders on critical patterns.

Critical Rules (Must Follow)

TypeScript:

  • Never any → use unknown
  • Prefer satisfies over as (except tests)
  • Shared types in @n8n/api-types

Error Handling:

typescript
1import { UnexpectedError } from 'n8n-workflow'; 2throw new UnexpectedError('message', { extra: { context } }); 3// DON'T use deprecated ApplicationError

Frontend:

  • Vue 3 Composition API (<script setup lang="ts">)
  • CSS variables (never hardcode px) - see /packages/frontend/AGENTS.md
  • All text via i18n ($t('key'))
  • data-testid for E2E (single value, no spaces)

Backend:

  • Controller → Service → Repository
  • Dependency injection via @n8n/di
  • Config via @n8n/config
  • Zod schemas for validation

Testing:

  • Vitest (unit), Playwright (E2E)
  • Mock external dependencies
  • Work from package directory: pushd packages/cli && pnpm test

Database:

  • SQLite/PostgreSQL only (app DB)
  • Exception: DB nodes (MySQL Node, etc.) can use DB-specific features

Commands:

bash
1pnpm build > build.log 2>&1 # Always redirect 2pnpm typecheck # Before commit 3pnpm lint # Before commit

Key Packages

PackagePurpose
packages/cliBackend API
packages/frontend/editor-uiVue 3 frontend
packages/@n8n/api-typesShared types
packages/@n8n/dbTypeORM entities
packages/workflowCore interfaces

Common Patterns

Pinia Store:

typescript
1import { STORES } from '@n8n/stores'; 2export const useMyStore = defineStore(STORES.MY_STORE, () => { 3 const state = shallowRef([]); 4 return { state }; 5});

Vue Component:

vue
1<script setup lang="ts"> 2type Props = { title: string }; 3const props = defineProps<Props>(); 4</script>

Service:

typescript
1import { Service } from '@n8n/di'; 2import { Config } from '@n8n/config'; 3 4@Service() 5export class MyService { 6 constructor(private readonly config: Config) {} 7}

📖 Need more details? Read /AGENTS.md and /packages/frontend/AGENTS.md

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is n8n-conventions?

Ideal for AI Agents like Cursor, Windsurf, and Claude Code that need to adhere to n8n workflow conventions and best practices. Quick reference for n8n patterns. Full docs /AGENTS.md

How do I install n8n-conventions?

Run the command: npx killer-skills add n8n-io/n8n/n8n-conventions. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for n8n-conventions?

Key use cases include: Enforcing consistent coding standards across workflows, Debugging workflows using strict TypeScript types and error handling mechanisms, Automating workflow validation and testing with n8n-conventions.

Which IDEs are compatible with n8n-conventions?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for n8n-conventions?

Requires knowledge of TypeScript and n8n workflow architecture. Limited to n8n workflow development only.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add n8n-io/n8n/n8n-conventions. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use n8n-conventions immediately in the current project.

Related Skills

Looking for an alternative to n8n-conventions or another official skill for your workflow? Explore these related open-source skills.

View All

flags

Logo of facebook
facebook

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

243.6k
0
Developer

extract-errors

Logo of facebook
facebook

Use when adding new error messages to React, or seeing unknown error code warnings.

243.6k
0
Developer

fix

Logo of facebook
facebook

Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

243.6k
0
Developer

flow

Logo of facebook
facebook

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

243.6k
0
Developer