bps-kit 1.2.2 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bps-kit.json +4 -4
- package/README.md +3 -0
- package/implementation_plan.md.resolved +37 -0
- package/package.json +2 -2
- package/templates/agents-template/ARCHITECTURE.md +21 -9
- package/templates/agents-template/agents/automation-specialist.md +157 -0
- package/templates/agents-template/rules/GEMINI.md +2 -10
- package/templates/agents-template/workflows/automate.md +153 -0
- package/templates/skills_normal/n8n-code-javascript/BUILTIN_FUNCTIONS.md +764 -0
- package/templates/skills_normal/n8n-code-javascript/COMMON_PATTERNS.md +1110 -0
- package/templates/skills_normal/n8n-code-javascript/DATA_ACCESS.md +782 -0
- package/templates/skills_normal/n8n-code-javascript/ERROR_PATTERNS.md +763 -0
- package/templates/skills_normal/n8n-code-javascript/README.md +350 -0
- package/templates/skills_normal/n8n-code-javascript/SKILL.md +699 -0
- package/templates/skills_normal/n8n-code-python/COMMON_PATTERNS.md +794 -0
- package/templates/skills_normal/n8n-code-python/DATA_ACCESS.md +702 -0
- package/templates/skills_normal/n8n-code-python/ERROR_PATTERNS.md +601 -0
- package/templates/skills_normal/n8n-code-python/README.md +386 -0
- package/templates/skills_normal/n8n-code-python/SKILL.md +748 -0
- package/templates/skills_normal/n8n-code-python/STANDARD_LIBRARY.md +974 -0
- package/templates/skills_normal/n8n-expression-syntax/COMMON_MISTAKES.md +393 -0
- package/templates/skills_normal/n8n-expression-syntax/EXAMPLES.md +483 -0
- package/templates/skills_normal/n8n-expression-syntax/README.md +93 -0
- package/templates/skills_normal/n8n-expression-syntax/SKILL.md +516 -0
- package/templates/skills_normal/n8n-mcp-tools-expert/README.md +99 -0
- package/templates/skills_normal/n8n-mcp-tools-expert/SEARCH_GUIDE.md +374 -0
- package/templates/skills_normal/n8n-mcp-tools-expert/SKILL.md +642 -0
- package/templates/skills_normal/n8n-mcp-tools-expert/VALIDATION_GUIDE.md +442 -0
- package/templates/skills_normal/n8n-mcp-tools-expert/WORKFLOW_GUIDE.md +618 -0
- package/templates/skills_normal/n8n-node-configuration/DEPENDENCIES.md +789 -0
- package/templates/skills_normal/n8n-node-configuration/OPERATION_PATTERNS.md +913 -0
- package/templates/skills_normal/n8n-node-configuration/README.md +364 -0
- package/templates/skills_normal/n8n-node-configuration/SKILL.md +785 -0
- package/templates/skills_normal/n8n-validation-expert/ERROR_CATALOG.md +943 -0
- package/templates/skills_normal/n8n-validation-expert/FALSE_POSITIVES.md +720 -0
- package/templates/skills_normal/n8n-validation-expert/README.md +290 -0
- package/templates/skills_normal/n8n-validation-expert/SKILL.md +689 -0
- package/templates/skills_normal/n8n-workflow-patterns/README.md +251 -0
- package/templates/skills_normal/n8n-workflow-patterns/SKILL.md +411 -0
- package/templates/skills_normal/n8n-workflow-patterns/ai_agent_workflow.md +784 -0
- package/templates/skills_normal/n8n-workflow-patterns/database_operations.md +785 -0
- package/templates/skills_normal/n8n-workflow-patterns/http_api_integration.md +734 -0
- package/templates/skills_normal/n8n-workflow-patterns/scheduled_tasks.md +773 -0
- package/templates/skills_normal/n8n-workflow-patterns/webhook_processing.md +545 -0
- package/templates/vault/n8n-code-javascript/SKILL.md +10 -10
- package/templates/vault/n8n-code-python/SKILL.md +11 -11
- package/templates/vault/n8n-expression-syntax/SKILL.md +4 -4
- package/templates/vault/n8n-mcp-tools-expert/SKILL.md +9 -9
- package/templates/vault/n8n-node-configuration/SKILL.md +2 -2
- package/templates/vault/n8n-validation-expert/SKILL.md +3 -3
- package/templates/vault/n8n-workflow-patterns/SKILL.md +11 -11
package/.bps-kit.json
CHANGED
package/README.md
CHANGED
|
@@ -104,6 +104,9 @@ O **BPS Kit** deve sua fundação brilhante e seu mar enciclopédico de regras a
|
|
|
104
104
|
3. **[stitch-skills (by google-labs-code)](https://github.com/google-labs-code/stitch-skills)**
|
|
105
105
|
O cérebro visual e criativo do BPS Kit. Responsável pelas skills de design cinematográfico (`design-md`, `enhance-prompt`, `react-components`, `remotion`, `stitch-loop`) que elevam a qualidade de componentes React e landing pages a um nível de pixel-perfect e alta fidelidade que vai muito além do padrão genérico de IA.
|
|
106
106
|
|
|
107
|
+
4. **[n8n-skills + n8n-mcp (by czlonkowski)](https://github.com/czlonkowski/n8n-skills)**
|
|
108
|
+
A camada de inteligência para automação n8n do BPS Kit. As 7 skills especializadas (`n8n-mcp-tools-expert`, `n8n-workflow-patterns`, `n8n-expression-syntax`, `n8n-node-configuration`, `n8n-validation-expert`, `n8n-code-javascript`, `n8n-code-python`) e o servidor MCP [`n8n-mcp`](https://github.com/czlonkowski/n8n-mcp) que provê acesso a 1.084 nós e 2.700+ templates de workflow diretamente do IDE.
|
|
109
|
+
|
|
107
110
|
A engenharia inteira do **BPS Kit** serve massivamente para unificar essas três titânicas inteligências em um fluxo só — através da magia do Auto-Routing isolacionista por Glob e do Vaulting Comprimido — ultrapassando enfim as limitações brutais da context-window. Sem a colaboração fundadora de vudovn, sickn33 e google-labs-code, essa maravilha não existiria.
|
|
108
111
|
|
|
109
112
|
---
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Integrating n8n-mcp and n8n-skills into BPS Kit
|
|
2
|
+
|
|
3
|
+
This plan outlines how to integrate the n8n ecosystem into the BPS Kit. The goal is to provide end-users with a robust way to create and manage n8n automations directly from their IDE using an MCP server and specialized skills.
|
|
4
|
+
|
|
5
|
+
## Proposed Changes
|
|
6
|
+
|
|
7
|
+
### 1. New Agent
|
|
8
|
+
Create a specialized agent dedicated to workflow automation, interacting with n8n and orchestrating webhook-based capabilities.
|
|
9
|
+
#### [NEW] .agents/agents/automation-specialist.md
|
|
10
|
+
|
|
11
|
+
### 2. Vault Skills
|
|
12
|
+
Copy the 7 original Claude Code skills from `czlonkowski/n8n-skills` into BPS Kit vault skills without changing their core content. We will format them as [SKILL.md](file:///f:/VSCode/bpskit/bps-kit/.agents/skills/plan-writing/SKILL.md) to fit the BPS Kit architecture.
|
|
13
|
+
#### [NEW] .agents/vault/n8n-expression-syntax/SKILL.md
|
|
14
|
+
#### [NEW] .agents/vault/n8n-mcp-tools-expert/SKILL.md
|
|
15
|
+
#### [NEW] .agents/vault/n8n-workflow-patterns/SKILL.md
|
|
16
|
+
#### [NEW] .agents/vault/n8n-validation-expert/SKILL.md
|
|
17
|
+
#### [NEW] .agents/vault/n8n-node-configuration/SKILL.md
|
|
18
|
+
#### [NEW] .agents/vault/n8n-code-javascript/SKILL.md
|
|
19
|
+
#### [NEW] .agents/vault/n8n-code-python/SKILL.md
|
|
20
|
+
|
|
21
|
+
### 3. Workflow (Slash Command)
|
|
22
|
+
Create an `/automate` slash command that end-users can invoke. This workflow will guide the user through using the `n8n-mcp` tools, activating the `automation-specialist` agent, and leveraging the vault skills to build their own n8n automations.
|
|
23
|
+
#### [NEW] .agents/workflows/automate.md
|
|
24
|
+
|
|
25
|
+
### 4. Index, Architecture, Readme, and Routing Updates
|
|
26
|
+
Add the new n8n vault skills, the agent, and the workflow to the manifest files. Give appropriate credits to the original creators in the README. Update `GEMINI.md` to ensure the routing system automatically redirects automation/n8n requests to the `automation-specialist` agent and its skills, even when the `/automate` workflow isn't explicitly called.
|
|
27
|
+
#### [MODIFY] .agents/VAULT_INDEX.md
|
|
28
|
+
#### [MODIFY] .agents/ARCHITECTURE.md
|
|
29
|
+
#### [MODIFY] README.md
|
|
30
|
+
#### [MODIFY] .agents/rules/GEMINI.md
|
|
31
|
+
|
|
32
|
+
## Verification Plan
|
|
33
|
+
### Automated Tests
|
|
34
|
+
- Run `python .agents/scripts/checklist.py .` to ensure linting and basic validation pass.
|
|
35
|
+
### Manual Verification
|
|
36
|
+
- Review the content of the adapted skills to ensure they follow BPS Kit markdown and structure conventions.
|
|
37
|
+
- Read through the `/automate` workflow to guarantee it's correctly aimed at end-users wanting to build automations in their projects.
|
package/package.json
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
BPS Kit is a modular system consisting of:
|
|
10
10
|
|
|
11
|
-
- **
|
|
11
|
+
- **22 Specialist Agents** — Role-based AI personas
|
|
12
12
|
- **Active Skills** — Domain-specific knowledge modules (varies by profile)
|
|
13
13
|
- **1200+ Vault Skills** — Extended skill library discoverable via index
|
|
14
|
-
- **
|
|
14
|
+
- **15 Workflows** — Slash command procedures
|
|
15
15
|
- **2 Master Scripts** — Validation & verification
|
|
16
16
|
|
|
17
17
|
---
|
|
@@ -24,16 +24,16 @@ BPS Kit is a modular system consisting of:
|
|
|
24
24
|
├── VAULT_INDEX.md # Vault skill discovery index
|
|
25
25
|
├── rules/
|
|
26
26
|
│ └── GEMINI.md # Master rule file (always loaded)
|
|
27
|
-
├── agents/ #
|
|
27
|
+
├── agents/ # 22 Specialist Agents
|
|
28
28
|
├── skills/ # Active Skills (profile-dependent)
|
|
29
29
|
├── vault/ # 1200+ Vault Skills
|
|
30
|
-
├── workflows/ #
|
|
30
|
+
├── workflows/ # 15 Slash Commands
|
|
31
31
|
└── scripts/ # Master Validation Scripts
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
36
|
-
## 🤖 Agents (
|
|
36
|
+
## 🤖 Agents (22)
|
|
37
37
|
|
|
38
38
|
Specialist AI personas for different domains.
|
|
39
39
|
|
|
@@ -60,6 +60,7 @@ Specialist AI personas for different domains.
|
|
|
60
60
|
| `code-archaeologist` | Legacy code, refactoring | clean-code |
|
|
61
61
|
| `explorer-agent` | Codebase analysis | — |
|
|
62
62
|
| `site-builder` | Landing pages, websites | frontend-design, scroll-experience, enhance-prompt |
|
|
63
|
+
| `automation-specialist` | n8n workflow automation | n8n-mcp-tools-expert, n8n-workflow-patterns, n8n-expression-syntax |
|
|
63
64
|
|
|
64
65
|
---
|
|
65
66
|
|
|
@@ -118,6 +119,13 @@ Skills availability depends on the installed profile (`basic`, `normal`, or `ext
|
|
|
118
119
|
| `test-driven-development` | TDD workflow |
|
|
119
120
|
| `testing-patterns` | Jest, Vitest, strategies |
|
|
120
121
|
| `vercel-deployment` | Vercel deploy workflows |
|
|
122
|
+
| `n8n-mcp-tools-expert` | n8n MCP tool selection & usage |
|
|
123
|
+
| `n8n-workflow-patterns` | n8n architectural patterns |
|
|
124
|
+
| `n8n-expression-syntax` | n8n expression `{{$json.*}}` |
|
|
125
|
+
| `n8n-node-configuration` | n8n node operation config |
|
|
126
|
+
| `n8n-validation-expert` | n8n validation error fixing |
|
|
127
|
+
| `n8n-code-javascript` | n8n Code node (JavaScript) |
|
|
128
|
+
| `n8n-code-python` | n8n Code node (Python) |
|
|
121
129
|
|
|
122
130
|
### Extra Profile (adds ~27 more skills)
|
|
123
131
|
|
|
@@ -153,13 +161,14 @@ Skills availability depends on the installed profile (`basic`, `normal`, or `ext
|
|
|
153
161
|
|
|
154
162
|
---
|
|
155
163
|
|
|
156
|
-
## 🔄 Workflows (
|
|
164
|
+
## 🔄 Workflows (15)
|
|
157
165
|
|
|
158
166
|
Slash command procedures. Invoke with `/command`.
|
|
159
167
|
|
|
160
168
|
| Command | Description |
|
|
161
169
|
| ---------------- | ------------------------------- |
|
|
162
170
|
| `/brainstorm` | Socratic discovery |
|
|
171
|
+
| `/build-site` | Full website creation workflow |
|
|
163
172
|
| `/create` | Create new features |
|
|
164
173
|
| `/debug` | Debug issues |
|
|
165
174
|
| `/deploy` | Deploy application |
|
|
@@ -167,10 +176,12 @@ Slash command procedures. Invoke with `/command`.
|
|
|
167
176
|
| `/orchestrate` | Multi-agent coordination |
|
|
168
177
|
| `/plan` | Task breakdown |
|
|
169
178
|
| `/preview` | Preview changes |
|
|
179
|
+
| `/recall` | Re-anchor AI to rules |
|
|
170
180
|
| `/setup-brain` | Initialize agent memory/context |
|
|
171
181
|
| `/status` | Check project status |
|
|
172
182
|
| `/test` | Run tests |
|
|
173
183
|
| `/ui-ux-pro-max` | Full UI/UX design workflow |
|
|
184
|
+
| `/automate` | n8n workflow automation builder |
|
|
174
185
|
|
|
175
186
|
---
|
|
176
187
|
|
|
@@ -212,12 +223,12 @@ Scripts are embedded within skills at `.agents/skills/<skill>/scripts/`:
|
|
|
212
223
|
|
|
213
224
|
| Metric | Value |
|
|
214
225
|
| ------------------- | ----------------------------- |
|
|
215
|
-
| **Total Agents** |
|
|
226
|
+
| **Total Agents** | 22 |
|
|
216
227
|
| **Basic Skills** | 11 |
|
|
217
|
-
| **Normal Skills** | ~
|
|
228
|
+
| **Normal Skills** | ~49 |
|
|
218
229
|
| **Extra Skills** | ~69 |
|
|
219
230
|
| **Vault Skills** | 1200+ |
|
|
220
|
-
| **Total Workflows** |
|
|
231
|
+
| **Total Workflows** | 15 |
|
|
221
232
|
|
|
222
233
|
---
|
|
223
234
|
|
|
@@ -234,3 +245,4 @@ Scripts are embedded within skills at `.agents/skills/<skill>/scripts/`:
|
|
|
234
245
|
| Debug | `debugger` | systematic-debugging |
|
|
235
246
|
| Plan | `project-planner` | brainstorming, plan-writing |
|
|
236
247
|
| Deploy | `devops-engineer` | docker-expert, vercel-deployment |
|
|
248
|
+
| Automate | `automation-specialist` | n8n-mcp-tools-expert, n8n-workflow-patterns |
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: automation-specialist
|
|
3
|
+
description: Expert n8n workflow automation architect. Use for building, editing, and validating n8n workflows via MCP tools, designing webhook-based integrations, creating automation patterns, and configuring n8n nodes. Triggers on n8n, automation, webhook, workflow, automate, integrate, trigger, mcp.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Edit, Write, mcp
|
|
5
|
+
model: inherit
|
|
6
|
+
skills: clean-code, plan-writing, n8n-mcp-tools-expert, n8n-workflow-patterns, n8n-expression-syntax, n8n-node-configuration, n8n-validation-expert, n8n-code-javascript, n8n-code-python
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Automation Specialist
|
|
10
|
+
|
|
11
|
+
You are an expert n8n workflow automation architect. You design, build, and validate workflows with precision using the n8n-mcp MCP tools.
|
|
12
|
+
|
|
13
|
+
## Your Philosophy
|
|
14
|
+
|
|
15
|
+
**Automation is architecture.** Every workflow you build is a system — it has triggers, data flows, error paths, and deployment requirements. You build automation that is reliable, observable, and maintainable.
|
|
16
|
+
|
|
17
|
+
## Your Mindset
|
|
18
|
+
|
|
19
|
+
- **Templates first**: 2,700+ real workflows exist — always check before building from scratch
|
|
20
|
+
- **Validate iteratively**: validate_node → fix → validate again (expect 2-3 cycles)
|
|
21
|
+
- **Parallel execution**: Run independent tool calls simultaneously, not sequentially
|
|
22
|
+
- **Silent execution**: Execute tools, THEN respond — never narrate steps in real time
|
|
23
|
+
- **Progressive disclosure**: Start with `detail: "standard"`, go to `detail: "full"` only when needed
|
|
24
|
+
- **Never trust defaults**: Explicitly configure all parameters that control node behavior
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🛑 CRITICAL: CLARIFY BEFORE BUILDING (MANDATORY)
|
|
29
|
+
|
|
30
|
+
**When the user's automation request is vague, DO NOT assume. ASK FIRST.**
|
|
31
|
+
|
|
32
|
+
### You MUST ask before proceeding if these are unspecified:
|
|
33
|
+
|
|
34
|
+
| Aspect | Ask |
|
|
35
|
+
|--------|-----|
|
|
36
|
+
| **Trigger** | "Webhook (instant) or Schedule (periodic)?" |
|
|
37
|
+
| **Input** | "What data comes in? From where?" |
|
|
38
|
+
| **Output** | "What action should happen? Where does data go?" |
|
|
39
|
+
| **Credentials** | "Which services need authentication?" |
|
|
40
|
+
| **Error handling** | "What happens on failure? Notify someone?" |
|
|
41
|
+
| **n8n instance** | "Local or cloud? API connected?" |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## MCP Tools Workflow
|
|
46
|
+
|
|
47
|
+
When the n8n-mcp MCP server is available, follow this process:
|
|
48
|
+
|
|
49
|
+
### Phase 1: Template Discovery (ALWAYS FIRST)
|
|
50
|
+
```
|
|
51
|
+
search_templates({query: "user's use case"})
|
|
52
|
+
→ If good match found → get_template(id, {mode: "full"}) → n8n_deploy_template()
|
|
53
|
+
→ If no match → proceed to Node Discovery
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Phase 2: Node Discovery
|
|
57
|
+
```
|
|
58
|
+
search_nodes({query: "keyword"}) in parallel for all required nodes
|
|
59
|
+
→ get_node({nodeType, includeExamples: true}) for each
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Phase 3: Show Architecture
|
|
63
|
+
Present the workflow structure to the user for approval **before building**.
|
|
64
|
+
```
|
|
65
|
+
Trigger → [Node A] → [Node B] → Output
|
|
66
|
+
└→ [Error Handler]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Phase 4: Build
|
|
70
|
+
```
|
|
71
|
+
n8n_create_workflow({name, nodes, connections})
|
|
72
|
+
→ n8n_update_partial_workflow() iteratively (avg 56s between edits)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Phase 5: Validate
|
|
76
|
+
```
|
|
77
|
+
validate_node({nodeType, config, profile: "runtime"}) for each node
|
|
78
|
+
→ validate_workflow({id})
|
|
79
|
+
→ Fix ALL errors before activation
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Phase 6: Activate
|
|
83
|
+
```
|
|
84
|
+
n8n_update_partial_workflow({operations: [{type: "activateWorkflow"}]})
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## nodeType Format Rules
|
|
90
|
+
|
|
91
|
+
| Context | Format | Example |
|
|
92
|
+
|---------|--------|---------|
|
|
93
|
+
| search_nodes / get_node / validate_node | `nodes-base.*` | `nodes-base.slack` |
|
|
94
|
+
| n8n_create_workflow / n8n_update_partial_workflow | `n8n-nodes-base.*` | `n8n-nodes-base.slack` |
|
|
95
|
+
| LangChain nodes | `@n8n/n8n-nodes-langchain.*` | `@n8n/n8n-nodes-langchain.agent` |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Validation Loop (Expected)
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
1. Configure → 2. validate_node → 3. Fix (58s avg) → 4. validate_node again
|
|
103
|
+
↑ |
|
|
104
|
+
└───────────── repeat 2-3x ────────────┘
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
This is **normal behavior** — not an error. The iterative validation loop is built into n8n development.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Expression Syntax (Critical)
|
|
112
|
+
|
|
113
|
+
```javascript
|
|
114
|
+
// In workflow fields (not Code nodes)
|
|
115
|
+
✅ {{$json.field}}
|
|
116
|
+
✅ {{$json.body.field}} // Webhook data is ALWAYS under .body!
|
|
117
|
+
✅ {{$node["Node Name"].json.field}}
|
|
118
|
+
|
|
119
|
+
// In Code nodes (JavaScript)
|
|
120
|
+
✅ $json.field // No {{ }} needed
|
|
121
|
+
✅ $input.all()
|
|
122
|
+
✅ $input.first().json.body.field // Webhook data
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## When n8n-mcp is NOT Connected
|
|
128
|
+
|
|
129
|
+
If MCP tools are unavailable:
|
|
130
|
+
|
|
131
|
+
1. Guide the user to install n8n-mcp: `npm install -g n8n-mcp`
|
|
132
|
+
2. Point them to the `/automate` workflow for setup instructions
|
|
133
|
+
3. Help design the workflow architecture as JSON
|
|
134
|
+
4. Provide the workflow structure they can import manually into n8n
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## ⚠️ Safety Rules (Mandatory)
|
|
139
|
+
|
|
140
|
+
- **NEVER edit production workflows directly with AI**
|
|
141
|
+
- Always work on a **copy** first
|
|
142
|
+
- Export backups before significant changes
|
|
143
|
+
- Test in development before activating in production
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Skill Usage Guide
|
|
148
|
+
|
|
149
|
+
| Task | Use Skill |
|
|
150
|
+
|------|-----------|
|
|
151
|
+
| Finding / searching nodes | `n8n-mcp-tools-expert` |
|
|
152
|
+
| Designing workflow architecture | `n8n-workflow-patterns` |
|
|
153
|
+
| Writing expressions `{{$json.*}}` | `n8n-expression-syntax` |
|
|
154
|
+
| Configuring node operations | `n8n-node-configuration` |
|
|
155
|
+
| Fixing validation errors | `n8n-validation-expert` |
|
|
156
|
+
| Writing Code node (JS) | `n8n-code-javascript` |
|
|
157
|
+
| Writing Code node (Python) | `n8n-code-python` |
|
|
@@ -97,6 +97,7 @@ After invoking any skill, explicitly say: '📖 Using skill: [skill-name]' befor
|
|
|
97
97
|
| **API/backend** | api-patterns (N) + backend-dev-guidelines (N) |
|
|
98
98
|
| **Git/push** | verification-before-completion → git-pushing |
|
|
99
99
|
| **AI/LLM/RAG** | rag-engineer (N) + llm-app-patterns (N) + prompt-engineer (N) |
|
|
100
|
+
| **n8n / webhook / automation** | n8n-mcp-tools-expert (N) + n8n-workflow-patterns (N) |
|
|
100
101
|
| **Multi-step plan** | plan-writing → executing-plans. Independent: dispatching-parallel-agents (N) |
|
|
101
102
|
| **Other domain** | Search VAULT_INDEX.md → read skill from vault |
|
|
102
103
|
|
|
@@ -218,22 +219,13 @@ Before coding, answer: (1) Goal of agent/skill? (2) Principles to apply? (3) How
|
|
|
218
219
|
**Priority Execution Order:**
|
|
219
220
|
1. **Security** → 2. **Lint** → 3. **Schema** → 4. **Tests** → 5. **SEO** → 6. **Lighthouse/E2E**
|
|
220
221
|
|
|
221
|
-
**Available Scripts:**
|
|
222
|
-
|
|
223
|
-
| Script | Skill | When |
|
|
224
|
-
|---|---|---|
|
|
225
|
-
| `security_scan.py` | vulnerability-scanner | Always on deploy |
|
|
226
|
-
| `lint_runner.py` | lint-and-validate | Every code change |
|
|
227
|
-
| `seo_checker.py` | seo-fundamentals | After page change |
|
|
228
|
-
| `lighthouse_audit.py` | performance-profiling | Before deploy |
|
|
229
|
-
|
|
230
222
|
> 🔴 **Agents & Skills can invoke ANY script** via `python .agents/skills/<skill>/scripts/<script>.py`
|
|
231
223
|
|
|
232
224
|
**Rules:**
|
|
233
225
|
- **Completion:** A task is NOT finished until `checklist.py` returns success.
|
|
234
226
|
- **Reporting:** If it fails, fix the **Critical** blockers first (Security/Lint).
|
|
235
227
|
|
|
236
|
-
###
|
|
228
|
+
### 🎡 Gemini Mode Mapping
|
|
237
229
|
| Mode | Agent | Behavior |
|
|
238
230
|
|---|---|---|
|
|
239
231
|
| **plan** | `project-planner` | 4-phase. NO CODE before Phase 4. |
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build n8n workflow automations with AI assistance. Activates the automation-specialist agent and n8n vault skills. Use when creating, editing, or managing n8n workflows, webhooks, or integrations.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /automate — n8n Workflow Builder
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This workflow activates **automation mode**: the `automation-specialist` agent and all n8n skills are loaded to help you design, build, and deploy n8n workflows with full AI assistance.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 🚀 First Time? Setup the n8n-mcp Server
|
|
18
|
+
|
|
19
|
+
Before building workflows, the n8n-mcp MCP server must be connected. Choose your setup:
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### Option A: VS Code + GitHub Copilot (`--vscode` mode)
|
|
24
|
+
|
|
25
|
+
**Step 1** — Create `.vscode/mcp.json` in your project:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"type": "promptString",
|
|
32
|
+
"id": "n8n-mcp-token",
|
|
33
|
+
"description": "Your n8n-MCP AUTH_TOKEN",
|
|
34
|
+
"password": true
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"servers": {
|
|
38
|
+
"n8n-mcp": {
|
|
39
|
+
"type": "http",
|
|
40
|
+
"url": "https://n8n.your.production.url/mcp",
|
|
41
|
+
"headers": {
|
|
42
|
+
"Authorization": "Bearer ${input:n8n-mcp-token}"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
> 💡 Replace `https://n8n.your.production.url` with your n8n instance URL.
|
|
50
|
+
> For local development: use `npx n8n-mcp` in stdio mode (see Option B).
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### Option B: Antigravity / Standard Mode (local stdio)
|
|
55
|
+
|
|
56
|
+
**Step 1** — Install n8n-mcp globally:
|
|
57
|
+
```bash
|
|
58
|
+
npm install -g n8n-mcp
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Step 2** — Add to your MCP config (`~/.gemini/antigravity/mcp_config.json`):
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"mcpServers": {
|
|
65
|
+
"n8n-mcp": {
|
|
66
|
+
"command": "node",
|
|
67
|
+
"args": [
|
|
68
|
+
"C:\\Users\\<USER_NAME>\\AppData\\Roaming\\npm\\node_modules\\n8n-mcp\\dist\\mcp\\index.js"
|
|
69
|
+
],
|
|
70
|
+
"env": {
|
|
71
|
+
"MCP_MODE": "stdio",
|
|
72
|
+
"LOG_LEVEL": "error",
|
|
73
|
+
"DISABLE_CONSOLE_OUTPUT": "true",
|
|
74
|
+
"N8N_API_URL": "http://localhost:5678",
|
|
75
|
+
"N8N_BASE_URL": "http://localhost:5678",
|
|
76
|
+
"N8N_API_KEY": "<your-n8n-api-key>"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
> 💡 Get your n8n API key: n8n UI → Settings → n8n API → Create API key.
|
|
84
|
+
> Replace `<USER_NAME>` with your Windows username.
|
|
85
|
+
|
|
86
|
+
**Step 3** — Reload MCP servers in your IDE and confirm `n8n-mcp` appears as connected.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### Option C: Hosted Service (No Setup)
|
|
91
|
+
|
|
92
|
+
Use [dashboard.n8n-mcp.com](https://dashboard.n8n-mcp.com) for instant access:
|
|
93
|
+
- Free tier: 100 tool calls/day
|
|
94
|
+
- No installation required
|
|
95
|
+
- Use the HTTP URL in Option A's `.vscode/mcp.json`
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## ⚠️ Safety Warning
|
|
100
|
+
|
|
101
|
+
> **NEVER edit production workflows directly with AI!**
|
|
102
|
+
> Always work on a **copy** first. Export backups before changes. Test in dev before production.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Building Your Automation
|
|
107
|
+
|
|
108
|
+
Once n8n-mcp is connected, describe what you want to automate:
|
|
109
|
+
|
|
110
|
+
### Examples
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
"I want to receive a webhook from Stripe and send a Slack notification"
|
|
114
|
+
"Every morning, fetch my GitHub issues and email me a summary"
|
|
115
|
+
"Sync new Postgres records to a Google Sheet every 15 minutes"
|
|
116
|
+
"Build an AI chatbot that can query my database and respond via webhook"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## What Happens Next
|
|
122
|
+
|
|
123
|
+
The `automation-specialist` agent will:
|
|
124
|
+
|
|
125
|
+
1. **Clarify** your trigger, data flow, and outputs (if unclear)
|
|
126
|
+
2. **Search templates** — check 2,700+ real workflows before building from scratch
|
|
127
|
+
3. **Present architecture** — show you the workflow structure for approval
|
|
128
|
+
4. **Build iteratively** — create and refine with MCP tools
|
|
129
|
+
5. **Validate everything** — check each node before activating
|
|
130
|
+
6. **Activate** — deploy to your n8n instance
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Active Skills in This Mode
|
|
135
|
+
|
|
136
|
+
| Skill | Purpose |
|
|
137
|
+
|-------|---------|
|
|
138
|
+
| `n8n-mcp-tools-expert` | MCP tool selection, nodeType formats, workflow management |
|
|
139
|
+
| `n8n-workflow-patterns` | Architectural patterns: webhook, API, database, AI agent, scheduled |
|
|
140
|
+
| `n8n-expression-syntax` | Correct `{{$json.*}}` syntax, webhook data access |
|
|
141
|
+
| `n8n-node-configuration` | Operation-specific field requirements |
|
|
142
|
+
| `n8n-validation-expert` | Interpret and fix validation errors |
|
|
143
|
+
| `n8n-code-javascript` | Code nodes in JavaScript |
|
|
144
|
+
| `n8n-code-python` | Code nodes in Python |
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Useful Resources
|
|
149
|
+
|
|
150
|
+
- [n8n-mcp on npm](https://www.npmjs.com/package/n8n-mcp)
|
|
151
|
+
- [n8n-mcp GitHub](https://github.com/czlonkowski/n8n-mcp)
|
|
152
|
+
- [n8n Template Library](https://n8n.io/workflows/)
|
|
153
|
+
- [n8n Documentation](https://docs.n8n.io/)
|