@n8n-as-code/skills 0.16.6 → 0.16.8-next.0
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/README.md +60 -52
- package/dist/assets/n8n-docs-complete.json +15145 -16940
- package/dist/assets/n8n-knowledge-index.json +7242 -9324
- package/dist/assets/n8n-nodes-index.json +3 -11
- package/dist/assets/n8n-nodes-technical.json +10 -42
- package/dist/assets/workflows-index.json +1 -1
- package/dist/cli.js +9 -399
- package/dist/cli.js.map +1 -1
- package/dist/commands/skills-commander.d.ts +10 -0
- package/dist/commands/skills-commander.d.ts.map +1 -0
- package/dist/commands/skills-commander.js +487 -0
- package/dist/commands/skills-commander.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/ai-context-generator.d.ts +1 -3
- package/dist/services/ai-context-generator.d.ts.map +1 -1
- package/dist/services/ai-context-generator.js +54 -211
- package/dist/services/ai-context-generator.js.map +1 -1
- package/package.json +3 -6
package/README.md
CHANGED
|
@@ -2,22 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
> **⚠️ BREAKING CHANGE (v0.16.0)**: Workflows are now generated and documented in **TypeScript format** (`.workflow.ts`) instead of JSON for better AI compatibility and readability.
|
|
4
4
|
|
|
5
|
+
> **📌 Internal Library** — This package is not meant to be used directly. Public access is via [`n8nac`](https://www.npmjs.com/package/n8nac): `npx n8nac skills <command>`.
|
|
6
|
+
|
|
5
7
|
Specialized tooling for AI Agents (Cursor, Cline, Copilot) to interact with n8n workflows and nodes.
|
|
6
8
|
|
|
7
9
|
## 🛠 Purpose
|
|
8
10
|
|
|
9
|
-
This package provides
|
|
10
|
-
1. **
|
|
11
|
-
2. **
|
|
12
|
-
3. **
|
|
11
|
+
This package provides programmatic tools and the skills library consumed by `n8nac skills`. It:
|
|
12
|
+
1. **Provides Context**: Helps AI agents understand n8n node structures.
|
|
13
|
+
2. **Searches Nodes**: Finds specific n8n nodes and their properties.
|
|
14
|
+
3. **Initializes Context**: Bootstraps developer environments with `AGENTS.md`, JSON schemas, and snippets.
|
|
15
|
+
|
|
16
|
+
## Usage via `n8nac`
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
All commands below are accessed through the `n8nac` CLI:
|
|
15
19
|
|
|
16
20
|
```bash
|
|
17
|
-
|
|
21
|
+
npx n8nac skills --help
|
|
18
22
|
```
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
For installation: `npm install -g n8nac`
|
|
25
|
+
|
|
26
|
+
## 📖 CLI Usage (`n8nac skills`)
|
|
21
27
|
|
|
22
28
|
### `search <query>` - Deep Unified Search (PRIMARY TOOL)
|
|
23
29
|
|
|
@@ -31,32 +37,32 @@ KEY FEATURES:
|
|
|
31
37
|
|
|
32
38
|
```bash
|
|
33
39
|
# Search nodes, docs, and tutorials
|
|
34
|
-
n8nac
|
|
35
|
-
n8nac
|
|
40
|
+
n8nac skills search "how to generate images"
|
|
41
|
+
n8nac skills search "google sheets"
|
|
36
42
|
|
|
37
43
|
# Filter by type
|
|
38
|
-
n8nac
|
|
39
|
-
n8nac
|
|
44
|
+
n8nac skills search "authentication" --type documentation
|
|
45
|
+
n8nac skills search "database" --type node
|
|
40
46
|
|
|
41
47
|
# Filter by category
|
|
42
|
-
n8nac
|
|
48
|
+
n8nac skills search "ai" --category advanced-ai
|
|
43
49
|
```
|
|
44
50
|
|
|
45
|
-
### `
|
|
51
|
+
### `node-info <nodeName>` - 📚 Complete Node Info
|
|
46
52
|
Get full node information: schema + documentation + examples.
|
|
47
53
|
|
|
48
54
|
```bash
|
|
49
|
-
n8nac
|
|
50
|
-
n8nac
|
|
55
|
+
n8nac skills node-info googleSheets
|
|
56
|
+
n8nac skills node-info httpRequest
|
|
51
57
|
```
|
|
52
58
|
|
|
53
59
|
**Includes hints for next steps!**
|
|
54
60
|
|
|
55
|
-
### `schema <nodeName>` - ⚡ Quick Parameter Reference
|
|
61
|
+
### `node-schema <nodeName>` - ⚡ Quick Parameter Reference
|
|
56
62
|
Fast access to technical schema (parameters only).
|
|
57
63
|
|
|
58
64
|
```bash
|
|
59
|
-
n8nac
|
|
65
|
+
n8nac skills node-schema googleSheets
|
|
60
66
|
# Returns only properties and required fields
|
|
61
67
|
```
|
|
62
68
|
|
|
@@ -65,58 +71,58 @@ Read full documentation pages. Use `search` first to find relevant titles.
|
|
|
65
71
|
|
|
66
72
|
```bash
|
|
67
73
|
# Read a specific page
|
|
68
|
-
n8nac
|
|
69
|
-
n8nac
|
|
74
|
+
n8nac skills docs "Google Gemini"
|
|
75
|
+
n8nac skills docs "Expressions"
|
|
70
76
|
|
|
71
77
|
# List categories or stats
|
|
72
|
-
n8nac
|
|
78
|
+
n8nac skills docs --list
|
|
73
79
|
```
|
|
74
80
|
|
|
75
81
|
### `guides [query]` - 🎯 Find Guides
|
|
76
82
|
Find workflow guides, tutorials, and walkthroughs.
|
|
77
83
|
|
|
78
84
|
```bash
|
|
79
|
-
n8nac
|
|
80
|
-
n8nac
|
|
81
|
-
n8nac
|
|
85
|
+
n8nac skills guides "email automation"
|
|
86
|
+
n8nac skills guides "ai workflow"
|
|
87
|
+
n8nac skills guides --list
|
|
82
88
|
```
|
|
83
89
|
|
|
84
|
-
### `
|
|
90
|
+
### `examples` - 🌐 Search & Download Community Workflows
|
|
85
91
|
Search and download workflows from the **n8nworkflows.xyz** community repository (7000+ workflows).
|
|
86
92
|
|
|
87
|
-
#### `
|
|
93
|
+
#### `examples search <query>`
|
|
88
94
|
Search workflows using FlexSearch for high-relevance results.
|
|
89
95
|
|
|
90
96
|
```bash
|
|
91
|
-
n8nac
|
|
92
|
-
n8nac
|
|
93
|
-
n8nac
|
|
94
|
-
n8nac
|
|
97
|
+
n8nac skills examples search "slack notification"
|
|
98
|
+
n8nac skills examples search "AI chatbot telegram"
|
|
99
|
+
n8nac skills examples search "invoice processing" --limit 20
|
|
100
|
+
n8nac skills examples search "google sheets" --json
|
|
95
101
|
```
|
|
96
102
|
|
|
97
|
-
#### `
|
|
103
|
+
#### `examples info <id>`
|
|
98
104
|
Display detailed information about a specific workflow.
|
|
99
105
|
|
|
100
106
|
```bash
|
|
101
|
-
n8nac
|
|
107
|
+
n8nac skills examples info 916
|
|
102
108
|
# Shows: name, author, tags, download URL
|
|
103
109
|
```
|
|
104
110
|
|
|
105
|
-
#### `
|
|
106
|
-
Download a workflow
|
|
111
|
+
#### `examples download <id>`
|
|
112
|
+
Download a workflow TypeScript file.
|
|
107
113
|
|
|
108
114
|
```bash
|
|
109
|
-
n8nac
|
|
110
|
-
n8nac
|
|
111
|
-
n8nac
|
|
115
|
+
n8nac skills examples download 916
|
|
116
|
+
n8nac skills examples download 4365 --output my-chatbot.workflow.ts
|
|
117
|
+
n8nac skills examples download 8088 --force # Overwrite existing
|
|
112
118
|
```
|
|
113
119
|
|
|
114
|
-
#### `
|
|
120
|
+
#### `examples list`
|
|
115
121
|
List available workflows (newest first).
|
|
116
122
|
|
|
117
123
|
```bash
|
|
118
|
-
n8nac
|
|
119
|
-
n8nac
|
|
124
|
+
n8nac skills examples list
|
|
125
|
+
n8nac skills examples list --limit 50
|
|
120
126
|
```
|
|
121
127
|
|
|
122
128
|
**Features:**
|
|
@@ -129,10 +135,10 @@ n8nac-skills workflows list --limit 50
|
|
|
129
135
|
Find related nodes and documentation.
|
|
130
136
|
|
|
131
137
|
```bash
|
|
132
|
-
n8nac
|
|
138
|
+
n8nac skills related googleSheets
|
|
133
139
|
# Returns: Google Drive, Excel, Airtable, related docs
|
|
134
140
|
|
|
135
|
-
n8nac
|
|
141
|
+
n8nac skills related "ai agents"
|
|
136
142
|
# Returns: AI-related concepts, nodes, examples
|
|
137
143
|
```
|
|
138
144
|
|
|
@@ -141,29 +147,31 @@ List available nodes and documentation categories.
|
|
|
141
147
|
|
|
142
148
|
```bash
|
|
143
149
|
# Summary of nodes and docs
|
|
144
|
-
n8nac
|
|
150
|
+
n8nac skills list
|
|
145
151
|
|
|
146
152
|
# List all node names
|
|
147
|
-
n8nac
|
|
153
|
+
n8nac skills list --nodes
|
|
148
154
|
|
|
149
155
|
# List all doc categories
|
|
150
|
-
n8nac
|
|
156
|
+
n8nac skills list --docs
|
|
151
157
|
```
|
|
152
158
|
|
|
153
159
|
### `validate <file>` - ✅ Validate Workflows
|
|
154
|
-
Validate workflow
|
|
160
|
+
Validate workflow TypeScript files.
|
|
155
161
|
|
|
156
162
|
```bash
|
|
157
|
-
n8nac
|
|
158
|
-
n8nac
|
|
163
|
+
n8nac skills validate workflow.workflow.ts
|
|
164
|
+
n8nac skills validate workflow.workflow.ts --strict
|
|
159
165
|
```
|
|
160
166
|
|
|
161
167
|
### `update-ai` - 🤖 Update AI Context
|
|
162
168
|
Update AI Context (AGENTS.md, rule files, snippets).
|
|
163
169
|
|
|
164
170
|
```bash
|
|
165
|
-
n8nac
|
|
166
|
-
n8nac
|
|
171
|
+
n8nac skills update-ai
|
|
172
|
+
n8nac skills update-ai --version 1.70.0
|
|
173
|
+
# Also available as:
|
|
174
|
+
n8nac update-ai
|
|
167
175
|
```
|
|
168
176
|
|
|
169
177
|
## 📁 Data Source
|
|
@@ -176,11 +184,11 @@ The Skills CLI uses a pre-generated index of n8n nodes from the official n8n sou
|
|
|
176
184
|
|
|
177
185
|
## 🧩 Integration
|
|
178
186
|
|
|
179
|
-
### With
|
|
180
|
-
The main CLI package (
|
|
187
|
+
### With `n8nac`
|
|
188
|
+
The main CLI package (`n8nac`) depends on this package and exposes all commands under the `n8nac skills` subgroup. Users don't need to install `@n8n-as-code/skills` directly.
|
|
181
189
|
|
|
182
190
|
### With VS Code Extension
|
|
183
|
-
This package is a
|
|
191
|
+
This package is a dependency of the `n8n-as-code` VS Code extension, powering its AI features and node indexing via the TypeScript API (`AiContextGenerator`, `SnippetGenerator`).
|
|
184
192
|
|
|
185
193
|
## 📄 License
|
|
186
194
|
MIT
|