KS
Killer-Skills

n8n-conventions — n8n-conventions skill n8n-conventions skill, n8n TypeScript patterns, how to use n8n UnexpectedError, n8n-conventions vs other n8n skills, n8n satisfies operator guide, install n8n-conventions AI agent, n8n @n8n/api-types usage, n8n workflow automation best practices, n8n-conventions setup guide, what is n8n-conventions

v1.0.0
GitHub

About this Skill

Perfect for TypeScript-based AI Agents needing to adhere to strict n8n coding conventions and patterns. n8n-conventions is an AI Agent skill that acts as a quick reference guide for n8n workflow automation platform development. It provides instant access to mandatory TypeScript patterns, error handling standards, and links to full architectural documentation for developers.

Features

Quick reference for critical n8n TypeScript patterns, prohibiting the `any` type in favor of `unknown`
Guides on preferring the `satisfies` operator over type assertions (`as`) except in test files
References shared types located in the `@n8n/api-types` package for consistent type definitions
Provides error handling code examples using the `UnexpectedError` class from `n8n-workflow`
Directs users to comprehensive documentation files including `/AGENTS.md` for general architecture and `/packages/frontend/AGENTS.md` for frontend-specific conventions

# Core Topics

n8n-io n8n-io
[177.8k]
[55472]
Updated: 3/6/2026

Quality Score

Top 5%
74
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add n8n-io/n8n/n8n-conventions

Agent Capability Analysis

The n8n-conventions MCP Server by n8n-io is an open-source Categories.official integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for n8n-conventions skill, n8n TypeScript patterns, how to use n8n UnexpectedError.

Ideal Agent Persona

Perfect for TypeScript-based AI Agents needing to adhere to strict n8n coding conventions and patterns.

Core Value

Empowers agents to enforce type safety using TypeScript's 'unknown' type and 'satisfies' operator, while also handling errors with 'n8n-workflow' and 'UnexpectedError', ensuring seamless integration with n8n workflows and frontend components using CSS variables and timing.

Capabilities Granted for n8n-conventions MCP Server

Enforcing strict TypeScript typing for n8n workflows
Handling errors with 'n8n-workflow' and 'UnexpectedError'
Implementing shared types from '@n8n/api-types' for consistent API interactions

! Prerequisites & Limits

  • Requires knowledge of TypeScript and n8n architecture
  • Limited to n8n-specific workflows and frontend components
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

Related Skills

Looking for an alternative to n8n-conventions or building a Categories.official AI Agent? Explore these related open-source MCP Servers.

View All

flags

Logo of facebook
facebook

flags is a feature flag management system that enables developers to check flag states, compare channels, and debug feature behavior differences across release channels.

243.6k
0
Design

extract-errors

Logo of facebook
facebook

extract-errors is a skill that assists in extracting and managing error codes in React applications using yarn extract-errors command.

243.6k
0
Design

fix

Logo of facebook
facebook

fix is a technical skill that resolves lint errors, formatting issues, and ensures code quality in declarative, frontend, and UI projects

243.6k
0
Design

flow

Logo of facebook
facebook

Flow is a type checking system for JavaScript, used to validate React code and ensure consistency across applications

243.6k
0
Design