[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETZFANES53EVW5WDRENNC4":3,"skill-same:01M7ETZFANES53EVW5WDRENNC4":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7ETZFANES53EVW5WDRENNC4","ams-n8n-workflow-patterns",null,"TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-n8n-workflow-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: n8n-workflow-patterns\ndescription: Build robust n8n workflows: trigger patterns, error handling, sub-workflows, credentials, and self-hosting. Use when automating with n8n or designing maintainable no-code\u002Flow-code pipelines.\ncategory: workflow-automation\n---\n\n# n8n Workflow Patterns\n\n## Overview\n\nn8n is a fair-code workflow automation platform: visual node-based flows with code nodes when you need them, self-hostable.\n\nIts strengths: 400+ integrations, JavaScript\u002FPython code nodes for custom logic, and data you control (self-host option).\n\nPro n8n usage: pattern-based design (not node spaghetti), error workflows, sub-workflows for reuse, and version-controlled exports.\n\n## When to use\n\n- Automating processes with n8n (cloud or self-hosted)\n- Designing maintainable multi-step n8n workflows\n- Choosing between n8n nodes and code nodes\n- Self-hosting n8n for data control\n- Migrating fragile Zapier\u002FMake flows to n8n\n\n## Core concepts\n\n- **Trigger patterns.**\n  Webhook (instant, preferred), schedule (cron-like), polling triggers, manual, and error triggers. Webhook-first design for responsiveness.\n- **Code nodes.**\n  JavaScript (and Python) nodes for transforms, branching logic, and API calls that no integration node covers. Code where logic lives; nodes where integrations live.\n- **Sub-workflows.**\n  Reusable flows called via Execute Workflow: auth refresh, notification formatting, common API patterns. DRY applies to workflows too.\n- **Error workflows.**\n  Dedicated error-handling flows: catch failures, notify with context, retry or quarantine. Every production flow gets one.\n- **Credentials management.**\n  Central credential store, OAuth2 handling, scoped access. Never hardcode; rotate on schedule.\n- **Data pinning and testing.**\n  Pin real data to test nodes in isolation. Test with production-shaped data before activating.\n- **Expressions.**\n  n8n's templating for dynamic values across nodes. Learn the expression editor deeply — it's the glue of every flow.\n- **Versioning.**\n  Export workflow JSON to git. Diff, review, and restore. Visual building + version control = maintainable automation.\n\n## Practical workflow\n\n1. **Design the flow on paper.**\n   Trigger, steps, branches, error paths — sketched before building. Node spaghetti starts with building blind.\n2. **Start with the trigger.**\n   Webhook where the source supports it; schedule\u002Fpoll otherwise. Test the trigger with real events first.\n3. **Build happy path.**\n   Core nodes end-to-end with pinned test data. Verify output at each node before adding branches.\n4. **Add code nodes for logic.**\n   Transforms, complex branching, custom API calls — code nodes where visual nodes get awkward.\n5. **Extract sub-workflows.**\n   Repeated patterns (notifications, auth, formatting) become sub-workflows. Name them clearly; document inputs\u002Foutputs.\n6. **Wire error handling.**\n   Error workflow per production flow: alert with context (what failed, with which data), retry or quarantine logic.\n7. **Secure credentials.**\n   All secrets in n8n credentials, scoped minimally. Self-hosted: encrypt, back up the database, restrict access.\n8. **Version and document.**\n   Export JSON to git with a README: purpose, trigger, owner, how to pause\u002Fretry. Activate only after review.\n\n## Common pitfalls\n\n- **Node spaghetti.**\n  50-node flows with crossing wires and no structure. Sub-workflows + sticky-note documentation, or it becomes unmaintainable.\n- **No error workflows.**\n  Production flows without error handling fail silently at 3am. Error workflows are not optional.\n- **Polling by default.**\n  Schedule triggers hammering APIs every minute. Webhooks first; poll only when webhooks don't exist.\n- **Untested with real data.**\n  Flows tested on two perfect records, breaking on the third real one. Pin messy real data for testing.\n- **Credentials in code nodes.**\n  API keys pasted into JavaScript. Use the credential system — that's what it's for.\n- **No versioning.**\n  Flows living only in the n8n UI. One bad edit or instance loss = rebuild from memory. Export to git.\n- **Self-hosting without ops.**\n  Self-hosted n8n with no backups, updates, or monitoring. You own the ops burden — plan for it.\n- **Over-building in n8n.**\n  Complex state machines and heavy compute in a workflow tool. n8n orchestrates; heavy logic belongs in code\u002Fservices.\n","# n8n Workflow Patterns\n\n## Overview\n\nn8n is a fair-code workflow automation platform: visual node-based flows with code nodes when you need them, self-hostable.\n\nIts strengths: 400+ integrations, JavaScript\u002FPython code nodes for custom logic, and data you control (self-host option).\n\nPro n8n usage: pattern-based design (not node spaghetti), error workflows, sub-workflows for reuse, and version-controlled exports.\n\n## When to use\n\n- Automating processes with n8n (cloud or self-hosted)\n- Designing maintainable multi-step n8n workflows\n- Choosing between n8n nodes and code nodes\n- Self-hosting n8n for data control\n- Migrating fragile Zapier\u002FMake flows to n8n\n\n## Core concepts\n\n- **Trigger patterns.**\n  Webhook (instant, preferred), schedule (cron-like), polling triggers, manual, and error triggers. Webhook-first design for responsiveness.\n- **Code nodes.**\n  JavaScript (and Python) nodes for transforms, branching logic, and API calls that no integration node covers. Code where logic lives; nodes where integrations live.\n- **Sub-workflows.**\n  Reusable flows called via Execute Workflow: auth refresh, notification formatting, common API patterns. DRY applies to workflows too.\n- **Error workflows.**\n  Dedicated error-handling flows: catch failures, notify with context, retry or quarantine. Every production flow gets one.\n- **Credentials management.**\n  Central credential store, OAuth2 handling, scoped access. Never hardcode; rotate on schedule.\n- **Data pinning and testing.**\n  Pin real data to test nodes in isolation. Test with production-shaped data before activating.\n- **Expressions.**\n  n8n's templating for dynamic values across nodes. Learn the expression editor deeply — it's the glue of every flow.\n- **Versioning.**\n  Export workflow JSON to git. Diff, review, and restore. Visual building + version control = maintainable automation.\n\n## Practical workflow\n\n1. **Design the flow on paper.**\n   Trigger, steps, branches, error paths — sketched before building. Node spaghetti starts with building blind.\n2. **Start with the trigger.**\n   Webhook where the source supports it; schedule\u002Fpoll otherwise. Test the trigger with real events first.\n3. **Build happy path.**\n   Core nodes end-to-end with pinned test data. Verify output at each node before adding branches.\n4. **Add code nodes for logic.**\n   Transforms, complex branching, custom API calls — code nodes where visual nodes get awkward.\n5. **Extract sub-workflows.**\n   Repeated patterns (notifications, auth, formatting) become sub-workflows. Name them clearly; document inputs\u002Foutputs.\n6. **Wire error handling.**\n   Error workflow per production flow: alert with context (what failed, with which data), retry or quarantine logic.\n7. **Secure credentials.**\n   All secrets in n8n credentials, scoped minimally. Self-hosted: encrypt, back up the database, restrict access.\n8. **Version and document.**\n   Export JSON to git with a README: purpose, trigger, owner, how to pause\u002Fretry. Activate only after review.\n\n## Common pitfalls\n\n- **Node spaghetti.**\n  50-node flows with crossing wires and no structure. Sub-workflows + sticky-note documentation, or it becomes unmaintainable.\n- **No error workflows.**\n  Production flows without error handling fail silently at 3am. Error workflows are not optional.\n- **Polling by default.**\n  Schedule triggers hammering APIs every minute. Webhooks first; poll only when webhooks don't exist.\n- **Untested with real data.**\n  Flows tested on two perfect records, breaking on the third real one. Pin messy real data for testing.\n- **Credentials in code nodes.**\n  API keys pasted into JavaScript. Use the credential system — that's what it's for.\n- **No versioning.**\n  Flows living only in the n8n UI. One bad edit or instance loss = rebuild from memory. Export to git.\n- **Self-hosting without ops.**\n  Self-hosted n8n with no backups, updates, or monitoring. You own the ops burden — plan for it.\n- **Over-building in n8n.**\n  Complex state machines and heavy compute in a workflow tool. n8n orchestrates; heavy logic belongs in code\u002Fservices.\n",{},"main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-n8n-workflow-patterns",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill ams-n8n-workflow-patterns",{"tool":37,"command":38},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill ams-n8n-workflow-patterns",{"tool":40,"command":41},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill ams-n8n-workflow-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-n8n-workflow-patterns\u002FSKILL.md",true,[],[46,53,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]