axiom-coding-agent-setup 1.0.9 → 1.0.11
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/.agents/skills/agent-browser/SKILL.md +55 -0
- package/.agents/skills/developing-with-streamlit/SKILL.md +220 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-chat-ui/SKILL.md +195 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-custom-components-v2/SKILL.md +233 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-custom-components-v2/references/packaged-components.md +212 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-custom-components-v2/references/state-sync.md +149 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-custom-components-v2/references/theme-css-variables.md +243 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-custom-components-v2/references/troubleshooting.md +121 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-dashboards/SKILL.md +147 -0
- package/.agents/skills/developing-with-streamlit/skills/building-streamlit-multipage-apps/SKILL.md +218 -0
- package/.agents/skills/developing-with-streamlit/skills/choosing-streamlit-selection-widgets/SKILL.md +139 -0
- package/.agents/skills/developing-with-streamlit/skills/connecting-streamlit-to-snowflake/SKILL.md +188 -0
- package/.agents/skills/developing-with-streamlit/skills/creating-streamlit-themes/SKILL.md +486 -0
- package/.agents/skills/developing-with-streamlit/skills/displaying-streamlit-data/SKILL.md +199 -0
- package/.agents/skills/developing-with-streamlit/skills/improving-streamlit-design/SKILL.md +191 -0
- package/.agents/skills/developing-with-streamlit/skills/optimizing-streamlit-performance/SKILL.md +323 -0
- package/.agents/skills/developing-with-streamlit/skills/organizing-streamlit-code/SKILL.md +91 -0
- package/.agents/skills/developing-with-streamlit/skills/setting-up-streamlit-environment/SKILL.md +128 -0
- package/.agents/skills/developing-with-streamlit/skills/using-streamlit-cli/SKILL.md +165 -0
- package/.agents/skills/developing-with-streamlit/skills/using-streamlit-custom-components/SKILL.md +170 -0
- package/.agents/skills/developing-with-streamlit/skills/using-streamlit-layouts/SKILL.md +229 -0
- package/.agents/skills/developing-with-streamlit/skills/using-streamlit-markdown/SKILL.md +207 -0
- package/.agents/skills/developing-with-streamlit/skills/using-streamlit-session-state/SKILL.md +144 -0
- package/.agents/skills/developing-with-streamlit/templates/.gitattributes +3 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/README.md +188 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-companies/pyproject.toml +12 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-companies/streamlit_app.py +365 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-compute/pyproject.toml +12 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-compute/streamlit_app.py +461 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-compute-snowflake/.streamlit/secrets.toml.example +20 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-compute-snowflake/pyproject.toml +11 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-compute-snowflake/snowflake.yml +18 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-compute-snowflake/streamlit_app.py +527 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-feature-usage/pyproject.toml +12 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-feature-usage/streamlit_app.py +307 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-metrics/pyproject.toml +12 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-metrics/streamlit_app.py +426 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-metrics-snowflake/.streamlit/secrets.toml.example +20 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-metrics-snowflake/pyproject.toml +11 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-metrics-snowflake/snowflake.yml +18 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-metrics-snowflake/streamlit_app.py +463 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-seattle-weather/pyproject.toml +12 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-seattle-weather/streamlit_app.py +252 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-stock-peers/pyproject.toml +12 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-stock-peers/streamlit_app.py +342 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-stock-peers-snowflake/.streamlit/secrets.toml.example +20 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-stock-peers-snowflake/pyproject.toml +11 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-stock-peers-snowflake/snowflake.yml +18 -0
- package/.agents/skills/developing-with-streamlit/templates/apps/dashboard-stock-peers-snowflake/streamlit_app.py +384 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/README.md +128 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/dracula.toml +39 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/github.toml +37 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/minimal.toml +39 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/nord.toml +39 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/snowflake.toml +42 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/solarized-light.toml +38 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/spotify.toml +34 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_configs/stripe.toml +35 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_shared/streamlit_app.py +336 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/_templates/pyproject.toml.tmpl +12 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/dracula/.streamlit/config.toml +39 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/dracula/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/dracula/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/github/.streamlit/config.toml +37 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/github/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/github/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/manage.py +332 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/minimal/.streamlit/config.toml +39 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/minimal/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/minimal/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/nord/.streamlit/config.toml +39 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/nord/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/nord/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/snowflake/.streamlit/config.toml +42 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/snowflake/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/snowflake/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/solarized-light/.streamlit/config.toml +38 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/solarized-light/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/solarized-light/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/spotify/.streamlit/config.toml +34 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/spotify/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/spotify/streamlit_app.py +337 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/stripe/.streamlit/config.toml +35 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/stripe/pyproject.toml +10 -0
- package/.agents/skills/developing-with-streamlit/templates/themes/stripe/streamlit_app.py +337 -0
- package/.agents/skills/fastapi/SKILL.md +436 -0
- package/.agents/skills/fastapi/references/dependencies.md +142 -0
- package/.agents/skills/fastapi/references/other-tools.md +76 -0
- package/.agents/skills/fastapi/references/streaming.md +105 -0
- package/.agents/skills/frontend-design/LICENSE.txt +177 -0
- package/.agents/skills/frontend-design/SKILL.md +42 -0
- package/.agents/skills/gradio/SKILL.md +84 -0
- package/.agents/skills/gradio/references/api-signatures.md +115 -0
- package/.agents/skills/gradio/references/event-listeners.md +130 -0
- package/.agents/skills/gradio/references/examples.md +613 -0
- package/.agents/skills/ui-ux-pro-max/SKILL.md +659 -0
- package/.agents/skills/ui-ux-pro-max/data +1 -0
- package/.agents/skills/ui-ux-pro-max/scripts +1 -0
- package/.agents/stack.md +187 -187
- package/.env.axiom +8 -0
- package/AGENTS.md +2 -1
- package/README.md +19 -3
- package/bin/cli.js +11 -1
- package/opencode.json +12 -4
- package/package.json +1 -1
- package/skills-lock.json +36 -0
- package/.agents/skills/n8n-patterns/SKILL.md +0 -272
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: n8n-workflow-patterns
|
|
3
|
-
description: Best practices and patterns for building production-ready n8n workflows. Use when designing, building, or debugging n8n automation workflows.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# n8n Workflow Patterns Guide
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
n8n is a workflow automation platform that connects apps and services. This skill covers patterns for building maintainable, reliable, and scalable workflows.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## When to Use This Skill
|
|
15
|
-
|
|
16
|
-
- Designing new n8n workflows
|
|
17
|
-
- Refactoring existing workflows for better reliability
|
|
18
|
-
- Debugging failing workflows
|
|
19
|
-
- Building integrations between services
|
|
20
|
-
- Creating scheduled automation
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Core Principles
|
|
25
|
-
|
|
26
|
-
### 1. Workflow Design Patterns
|
|
27
|
-
|
|
28
|
-
**Single Responsibility**
|
|
29
|
-
Each workflow should do one thing well. Complex automations should be split into multiple workflows connected via:
|
|
30
|
-
- Execute Workflow node
|
|
31
|
-
- Webhook triggers
|
|
32
|
-
- n8n API
|
|
33
|
-
|
|
34
|
-
**Fail-Fast and Loud**
|
|
35
|
-
- Use Error Trigger workflows for centralized error handling
|
|
36
|
-
- Never silently swallow errors
|
|
37
|
-
- Send notifications on failures
|
|
38
|
-
|
|
39
|
-
**Idempotency**
|
|
40
|
-
Design workflows to be safely re-runnable:
|
|
41
|
-
- Check if action already performed before doing it
|
|
42
|
-
- Use deduplication keys
|
|
43
|
-
- Handle duplicate webhook calls gracefully
|
|
44
|
-
|
|
45
|
-
### 2. Node Patterns
|
|
46
|
-
|
|
47
|
-
**HTTP Request Node**
|
|
48
|
-
```
|
|
49
|
-
Best Practices:
|
|
50
|
-
- Always set timeout (default 5 min is often too long)
|
|
51
|
-
- Handle 4xx and 5xx errors explicitly
|
|
52
|
-
- Use pagination for large datasets
|
|
53
|
-
- Implement retry logic for transient failures
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Code Node**
|
|
57
|
-
```javascript
|
|
58
|
-
// Good: Input validation
|
|
59
|
-
const input = $input.first().json;
|
|
60
|
-
if (!input.email) {
|
|
61
|
-
throw new Error('Email is required');
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Good: Error handling with context
|
|
65
|
-
try {
|
|
66
|
-
const result = await someAsyncOperation();
|
|
67
|
-
return [{ json: result }];
|
|
68
|
-
} catch (error) {
|
|
69
|
-
// Log context for debugging
|
|
70
|
-
console.error('Operation failed:', { input: input.id, error: error.message });
|
|
71
|
-
throw error;
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
**Function Node (Legacy)**
|
|
76
|
-
Prefer Code Node over Function Node in new workflows.
|
|
77
|
-
|
|
78
|
-
### 3. Data Handling
|
|
79
|
-
|
|
80
|
-
**Passing Data Between Nodes**
|
|
81
|
-
```javascript
|
|
82
|
-
// Access previous node data
|
|
83
|
-
const items = $input.all();
|
|
84
|
-
const firstItem = $input.first().json;
|
|
85
|
-
|
|
86
|
-
// Reference specific node output
|
|
87
|
-
const data = $('Node Name').first().json;
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**Transforming Data**
|
|
91
|
-
```javascript
|
|
92
|
-
// Map over items
|
|
93
|
-
const results = items.map(item => ({
|
|
94
|
-
json: {
|
|
95
|
-
id: item.json.id,
|
|
96
|
-
name: item.json.name.toUpperCase(),
|
|
97
|
-
processed: true,
|
|
98
|
-
}
|
|
99
|
-
}));
|
|
100
|
-
return results;
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### 4. Error Handling
|
|
104
|
-
|
|
105
|
-
**Try-Catch Pattern**
|
|
106
|
-
```javascript
|
|
107
|
-
try {
|
|
108
|
-
// Risky operation
|
|
109
|
-
const result = await riskyCall();
|
|
110
|
-
return [{ json: { success: true, data: result } }];
|
|
111
|
-
} catch (error) {
|
|
112
|
-
// Return error in structured format
|
|
113
|
-
return [{
|
|
114
|
-
json: {
|
|
115
|
-
success: false,
|
|
116
|
-
error: error.message,
|
|
117
|
-
timestamp: new Date().toISOString(),
|
|
118
|
-
}
|
|
119
|
-
}];
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
**Error Workflow**
|
|
124
|
-
Create a dedicated workflow for error handling:
|
|
125
|
-
- Trigger: Error Trigger node
|
|
126
|
-
- Actions: Log to database, send Slack/email notification, retry logic
|
|
127
|
-
|
|
128
|
-
### 5. Credential Management
|
|
129
|
-
|
|
130
|
-
**Security Best Practices**
|
|
131
|
-
- Never hardcode credentials in Code nodes
|
|
132
|
-
- Always use n8n credential system
|
|
133
|
-
- Rotate credentials regularly
|
|
134
|
-
- Use least-privilege access for service accounts
|
|
135
|
-
|
|
136
|
-
**Custom Credentials**
|
|
137
|
-
For custom APIs, create a generic credential type or use HTTP Request node with OAuth.
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
## Workflow Architecture Patterns
|
|
142
|
-
|
|
143
|
-
### Pattern 1: Webhook Receiver
|
|
144
|
-
```
|
|
145
|
-
Webhook Node → Validation → Processing → Response
|
|
146
|
-
↓
|
|
147
|
-
Error Handler
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
Use for: Real-time integrations, external service callbacks
|
|
151
|
-
|
|
152
|
-
### Pattern 2: Scheduled Job
|
|
153
|
-
```
|
|
154
|
-
Schedule Trigger → Data Fetch → Transform → Action → Notification
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
Use for: Daily reports, data sync, cleanup tasks
|
|
158
|
-
|
|
159
|
-
### Pattern 3: Event-Driven Chain
|
|
160
|
-
```
|
|
161
|
-
Trigger → Filter → Enrich → Route → Multiple Actions
|
|
162
|
-
↙ ↓ ↘
|
|
163
|
-
Action1 Action2 Action3
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
Use for: Complex automation with conditional branches
|
|
167
|
-
|
|
168
|
-
### Pattern 4: Workflow Orchestration
|
|
169
|
-
```
|
|
170
|
-
Main Workflow → Execute Workflow (Sub-workflow 1)
|
|
171
|
-
→ Execute Workflow (Sub-workflow 2)
|
|
172
|
-
→ Aggregate Results
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
Use for: Complex multi-step processes, reusable components
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## Debugging Workflows
|
|
180
|
-
|
|
181
|
-
### Enable Execution Logging
|
|
182
|
-
```
|
|
183
|
-
Settings → Log Execution → Enable
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### Use Debug Nodes
|
|
187
|
-
Insert Set nodes to inspect data at specific points:
|
|
188
|
-
```javascript
|
|
189
|
-
// Debug node output
|
|
190
|
-
{
|
|
191
|
-
"debug_stage": "after_api_call",
|
|
192
|
-
"raw_response": $input.first().json,
|
|
193
|
-
"item_count": $input.all().length
|
|
194
|
-
}
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Common Issues
|
|
198
|
-
|
|
199
|
-
**Issue: Data not passing between nodes**
|
|
200
|
-
- Check if previous node outputs items
|
|
201
|
-
- Verify item structure matches expected input
|
|
202
|
-
- Use Code node to inspect `$input`
|
|
203
|
-
|
|
204
|
-
**Issue: Workflow times out**
|
|
205
|
-
- Add pagination for large datasets
|
|
206
|
-
- Use Split In Batches node
|
|
207
|
-
- Consider splitting into multiple workflows
|
|
208
|
-
|
|
209
|
-
**Issue: Rate limiting**
|
|
210
|
-
- Add Wait nodes between API calls
|
|
211
|
-
- Implement exponential backoff
|
|
212
|
-
- Use queue-based processing
|
|
213
|
-
|
|
214
|
-
---
|
|
215
|
-
|
|
216
|
-
## Performance Optimization
|
|
217
|
-
|
|
218
|
-
### Batch Processing
|
|
219
|
-
```
|
|
220
|
-
Split In Batches (100 items/batch) → Process → Wait 1s → Loop
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
### Parallel Processing
|
|
224
|
-
```
|
|
225
|
-
→ Process A
|
|
226
|
-
Split → Route → Process B
|
|
227
|
-
→ Process C
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
### Caching
|
|
231
|
-
Use the Static Data feature to cache:
|
|
232
|
-
- Access tokens
|
|
233
|
-
- Reference data
|
|
234
|
-
- Configuration
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Code Node Utilities
|
|
239
|
-
|
|
240
|
-
### Common Helpers
|
|
241
|
-
```javascript
|
|
242
|
-
// Date formatting
|
|
243
|
-
const now = new Date().toISOString();
|
|
244
|
-
const formatted = new Date().toLocaleDateString('en-US');
|
|
245
|
-
|
|
246
|
-
// Generate unique ID
|
|
247
|
-
const id = Date.now().toString(36) + Math.random().toString(36).substr(2);
|
|
248
|
-
|
|
249
|
-
// Sleep function
|
|
250
|
-
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
251
|
-
|
|
252
|
-
// Retry wrapper
|
|
253
|
-
async function withRetry(fn, maxAttempts = 3) {
|
|
254
|
-
for (let i = 0; i < maxAttempts; i++) {
|
|
255
|
-
try {
|
|
256
|
-
return await fn();
|
|
257
|
-
} catch (error) {
|
|
258
|
-
if (i === maxAttempts - 1) throw error;
|
|
259
|
-
await sleep(1000 * (i + 1)); // Exponential backoff
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
## Resources
|
|
268
|
-
|
|
269
|
-
- **n8n Docs**: https://docs.n8n.io/
|
|
270
|
-
- **Workflow Templates**: https://n8n.io/workflows
|
|
271
|
-
- **Community Forum**: https://community.n8n.io/
|
|
272
|
-
- **Node Reference**: https://docs.n8n.io/integrations/builtin/
|