首页/DevOps/n8n-conventions
N

n8n-conventions

by @n8n-iov1.0.0
0.0(0)

提供n8n的快速参考和文档指南,涵盖架构、命令、工作流、前端CSS变量等,帮助用户遵循n8n开发规范。

n8n WorkflowsWorkflow AutomationIntegration PlatformLow-Code AutomationAPI IntegrationGitHub
安装方式
npx skills add n8n-io/n8n --skill n8n-conventions
compare_arrows

Before / After 效果对比

1
使用前

在没有明确n8n开发规范指导的情况下,团队成员可能各自为政,导致工作流设计风格不一、命名混乱、CSS变量使用不规范,增加了协作难度和后期维护成本。新成员上手慢,项目质量难以统一,易产生技术债务。

使用后

遵循n8n开发规范后,团队能够统一架构设计、命令使用、工作流构建和前端CSS变量应用。这显著提升了开发效率、代码可读性和可维护性,确保了项目质量和一致性,新成员也能快速融入开发流程,降低了长期维护成本。

description SKILL.md

n8n-conventions

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: import { UnexpectedError } from 'n8n-workflow'; throw new UnexpectedError('message', { extra: { context } }); // DON'T use deprecated ApplicationError Frontend: Vue 3 Composition API () 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: pnpm build > build.log 2>&1 # Always redirect pnpm typecheck # Before commit pnpm lint # Before commit Key Packages Package Purpose packages/cli Backend API packages/frontend/editor-ui Vue 3 frontend packages/@n8n/api-types Shared types packages/@n8n/db TypeORM entities packages/workflow Core interfaces Common Patterns Pinia Store: import { STORES } from '@n8n/stores'; export const useMyStore = defineStore(STORES.MY_STORE, () => { const state = shallowRef([]); return { state }; }); Vue Component: type Props = { title: string }; const props = defineProps(); Service: import { Service } from '@n8n/di'; import { Config } from '@n8n/config'; @Service() export class MyService { constructor(private readonly config: Config) {} } 📖 Need more details? Read /AGENTS.md and /packages/frontend/AGENTS.mdWeekly Installs181Repositoryn8n-io/n8nGitHub Stars179.4KFirst SeenFeb 6, 2026Security AuditsGen Agent Trust HubPassSocketWarnSnykPassInstalled onopencode172codex171gemini-cli169github-copilot166amp164kimi-cli164

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年3月17日