Loading...
Loading...
Quick reference for n8n patterns. Full docs /AGENTS.md
npx skill4agent add n8n-io/n8n n8n-conventions/AGENTS.md/packages/frontend/AGENTS.mdanyunknownsatisfiesas@n8n/api-typesimport { UnexpectedError } from 'n8n-workflow';
throw new UnexpectedError('message', { extra: { context } });
// DON'T use deprecated ApplicationError<script setup lang="ts">/packages/frontend/AGENTS.md$t('key')data-testid@n8n/di@n8n/configpushd packages/cli && pnpm testpnpm build > build.log 2>&1 # Always redirect
pnpm typecheck # Before commit
pnpm lint # Before commit| Package | Purpose |
|---|---|
| Backend API |
| Vue 3 frontend |
| Shared types |
| TypeORM entities |
| Core interfaces |
import { STORES } from '@n8n/stores';
export const useMyStore = defineStore(STORES.MY_STORE, () => {
const state = shallowRef([]);
return { state };
});<script setup lang="ts">
type Props = { title: string };
const props = defineProps<Props>();
</script>import { Service } from '@n8n/di';
import { Config } from '@n8n/config';
@Service()
export class MyService {
constructor(private readonly config: Config) {}
}/AGENTS.md/packages/frontend/AGENTS.md