opencode-skills-collection 1.0.185 → 1.0.187
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/bundled-skills/.antigravity-install-manifest.json +5 -1
- package/bundled-skills/3d-web-experience/SKILL.md +152 -37
- package/bundled-skills/agent-evaluation/SKILL.md +1088 -26
- package/bundled-skills/agent-memory-systems/SKILL.md +1037 -25
- package/bundled-skills/agent-tool-builder/SKILL.md +668 -16
- package/bundled-skills/ai-agents-architect/SKILL.md +271 -31
- package/bundled-skills/ai-product/SKILL.md +716 -26
- package/bundled-skills/ai-wrapper-product/SKILL.md +450 -44
- package/bundled-skills/algolia-search/SKILL.md +867 -15
- package/bundled-skills/autonomous-agents/SKILL.md +1033 -26
- package/bundled-skills/aws-serverless/SKILL.md +1046 -35
- package/bundled-skills/azure-functions/SKILL.md +1318 -19
- package/bundled-skills/browser-automation/SKILL.md +1065 -28
- package/bundled-skills/browser-extension-builder/SKILL.md +159 -32
- package/bundled-skills/bullmq-specialist/SKILL.md +347 -16
- package/bundled-skills/clerk-auth/SKILL.md +796 -15
- package/bundled-skills/computer-use-agents/SKILL.md +1870 -28
- package/bundled-skills/context-window-management/SKILL.md +271 -18
- package/bundled-skills/conversation-memory/SKILL.md +453 -24
- package/bundled-skills/crewai/SKILL.md +252 -46
- package/bundled-skills/discord-bot-architect/SKILL.md +1207 -34
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/getting-started.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +4 -4
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/email-systems/SKILL.md +646 -26
- package/bundled-skills/faf-expert/SKILL.md +221 -0
- package/bundled-skills/faf-wizard/SKILL.md +252 -0
- package/bundled-skills/file-uploads/SKILL.md +212 -11
- package/bundled-skills/firebase/SKILL.md +646 -16
- package/bundled-skills/gcp-cloud-run/SKILL.md +1117 -32
- package/bundled-skills/graphql/SKILL.md +1026 -27
- package/bundled-skills/hubspot-integration/SKILL.md +804 -19
- package/bundled-skills/idea-darwin/SKILL.md +120 -0
- package/bundled-skills/inngest/SKILL.md +431 -16
- package/bundled-skills/interactive-portfolio/SKILL.md +342 -44
- package/bundled-skills/langfuse/SKILL.md +296 -41
- package/bundled-skills/langgraph/SKILL.md +259 -50
- package/bundled-skills/micro-saas-launcher/SKILL.md +343 -44
- package/bundled-skills/neon-postgres/SKILL.md +572 -15
- package/bundled-skills/nextjs-supabase-auth/SKILL.md +269 -21
- package/bundled-skills/notion-template-business/SKILL.md +371 -44
- package/bundled-skills/personal-tool-builder/SKILL.md +537 -44
- package/bundled-skills/plaid-fintech/SKILL.md +825 -19
- package/bundled-skills/prompt-caching/SKILL.md +438 -25
- package/bundled-skills/rag-engineer/SKILL.md +271 -29
- package/bundled-skills/salesforce-development/SKILL.md +912 -19
- package/bundled-skills/satori/SKILL.md +54 -0
- package/bundled-skills/scroll-experience/SKILL.md +381 -44
- package/bundled-skills/segment-cdp/SKILL.md +817 -19
- package/bundled-skills/shopify-apps/SKILL.md +1475 -19
- package/bundled-skills/slack-bot-builder/SKILL.md +1162 -28
- package/bundled-skills/telegram-bot-builder/SKILL.md +152 -37
- package/bundled-skills/telegram-mini-app/SKILL.md +445 -44
- package/bundled-skills/trigger-dev/SKILL.md +916 -27
- package/bundled-skills/twilio-communications/SKILL.md +1310 -28
- package/bundled-skills/upstash-qstash/SKILL.md +898 -27
- package/bundled-skills/vercel-deployment/SKILL.md +637 -39
- package/bundled-skills/viral-generator-builder/SKILL.md +132 -37
- package/bundled-skills/voice-agents/SKILL.md +937 -27
- package/bundled-skills/voice-ai-development/SKILL.md +375 -46
- package/bundled-skills/workflow-automation/SKILL.md +982 -29
- package/bundled-skills/zapier-make-patterns/SKILL.md +772 -27
- package/package.json +1 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: idea-darwin
|
|
3
|
+
description: "Darwinian idea evolution engine — toss rough ideas onto an evolution island, let them compete, crossbreed, and mutate through structured rounds to surface your strongest concepts."
|
|
4
|
+
risk: safe
|
|
5
|
+
source: community
|
|
6
|
+
date_added: "2026-04-07"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Idea Darwin Engine
|
|
10
|
+
|
|
11
|
+
A round-based idea iteration system that treats ideas as competing organisms — scoring, selecting, crossing, and evolving them through structured rounds to surface the strongest concepts.
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Most idea management tools are filing cabinets: they store ideas, tag them, and let them rot. Idea Darwin flips the paradigm — instead of organizing ideas, it lets them **compete**. Every idea is a living species on an evolution island. Each round, the fittest get deepened, different ideas cross-pollinate to produce unexpected hybrids, and external stimuli trigger mutations.
|
|
16
|
+
|
|
17
|
+
## When to Use This Skill
|
|
18
|
+
|
|
19
|
+
- Use when you have many scattered ideas and need to systematically evaluate and develop them
|
|
20
|
+
- Use when you want to discover unexpected connections between ideas from different domains
|
|
21
|
+
- Use when you need structured iteration rather than one-shot brainstorming
|
|
22
|
+
- Use when you want a scoring framework to prioritize which ideas deserve more investment
|
|
23
|
+
|
|
24
|
+
## Core Concepts
|
|
25
|
+
|
|
26
|
+
### Evolution Island Metaphor
|
|
27
|
+
|
|
28
|
+
Your ideas are alive on this island. Like organisms, they follow three core laws:
|
|
29
|
+
|
|
30
|
+
1. **Evolution** — Each round, the system deepens the most viable ideas through structured research: filling logical gaps, clarifying paths, identifying risks.
|
|
31
|
+
2. **Crossbreeding** — The system cross-pollinates different ideas. A technical approach from work meets an observation from daily life, producing directions you never imagined.
|
|
32
|
+
3. **Mutation** — External stimuli (industry news, theories, conversations) trigger mutations, spawning entirely new species.
|
|
33
|
+
|
|
34
|
+
### Species Cards
|
|
35
|
+
|
|
36
|
+
Every idea gets a structured card recording: core question, full description, lineage (parent/child IDs), 6-dimensional scores, and change history.
|
|
37
|
+
|
|
38
|
+
### 6-Dimensional Scoring
|
|
39
|
+
|
|
40
|
+
| Dimension | Weight | What It Measures |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Novelty | 10% | Genuine breakthrough or repetition? |
|
|
43
|
+
| Feasibility | 20% | Technically and resource-wise achievable? |
|
|
44
|
+
| Value | 20% | Impact if successful? |
|
|
45
|
+
| Logic | 20% | Internally consistent, no gaps? |
|
|
46
|
+
| Cross Potential | 10% | Can spark something new when combined? |
|
|
47
|
+
| Verifiability | 20% | Can we design a validation path? |
|
|
48
|
+
|
|
49
|
+
### Idea Lifecycle
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
seed → exploring → refining → crossing → validated → dormant
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The user always has final say on all life-or-death decisions. The system only recommends.
|
|
56
|
+
|
|
57
|
+
## Step-by-Step Guide
|
|
58
|
+
|
|
59
|
+
### 1. Write Your Ideas
|
|
60
|
+
|
|
61
|
+
Create an `ideas.md` file:
|
|
62
|
+
|
|
63
|
+
```markdown
|
|
64
|
+
## Personal knowledge base that learns my style
|
|
65
|
+
I want a system that reads everything I write and gradually learns how I think.
|
|
66
|
+
|
|
67
|
+
## Commute-to-podcast converter
|
|
68
|
+
Record voice memos during my commute, auto-convert them into podcast scripts.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 2. Initialize Your Island
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
/idea-darwin init
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 3. Start Evolving
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
/idea-darwin round
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 4. Keep Feeding the Island
|
|
84
|
+
|
|
85
|
+
Append new ideas to `ideas.md`, add environmental variables to `stimuli.md`.
|
|
86
|
+
|
|
87
|
+
## Examples
|
|
88
|
+
|
|
89
|
+
### Example 1: Initialize
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
/idea-darwin init --budget 8 --actions 3
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Example 2: Run Multiple Rounds
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
/idea-darwin round 3
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Example 3: Manage Ideas
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
/idea-darwin dormant IDEA-0005
|
|
105
|
+
/idea-darwin wake IDEA-0005
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Best Practices
|
|
109
|
+
|
|
110
|
+
- Do: Write ideas as rough as you want — the system structures them
|
|
111
|
+
- Do: Add external stimuli to prevent idea convergence
|
|
112
|
+
- Do: Run disruption rounds to surface overlooked ideas
|
|
113
|
+
- Don't: Over-curate initial ideas — let evolution filter
|
|
114
|
+
- Don't: Ignore the "Decisions Needed" section in briefings
|
|
115
|
+
|
|
116
|
+
## Additional Resources
|
|
117
|
+
|
|
118
|
+
- [GitHub Repository](https://github.com/warmskull/idea-darwin)
|
|
119
|
+
- Available in 3 languages: English, Chinese, Japanese
|
|
120
|
+
- ClawHub: `clawhub install idea-darwin`
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: inngest
|
|
3
|
-
description:
|
|
3
|
+
description: Inngest expert for serverless-first background jobs, event-driven
|
|
4
|
+
workflows, and durable execution without managing queues or workers.
|
|
4
5
|
risk: none
|
|
5
|
-
source:
|
|
6
|
-
date_added:
|
|
6
|
+
source: vibeship-spawner-skills (Apache 2.0)
|
|
7
|
+
date_added: 2026-02-27
|
|
7
8
|
---
|
|
8
9
|
|
|
9
10
|
# Inngest Integration
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
have durable, long-running workflows - it means you don't manage the workers.
|
|
12
|
+
Inngest expert for serverless-first background jobs, event-driven workflows,
|
|
13
|
+
and durable execution without managing queues or workers.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
and event-driven systems that process millions of events. You know that the
|
|
17
|
-
magic of Inngest is in its steps - each one a checkpoint that survives failures.
|
|
15
|
+
## Principles
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
- Events are the primitive - everything triggers from events, not queues
|
|
18
|
+
- Steps are your checkpoints - each step result is durably stored
|
|
19
|
+
- Sleep is not a hack - Inngest sleeps are real, not blocking threads
|
|
20
|
+
- Retries are automatic - but you control the policy
|
|
21
|
+
- Functions are just HTTP handlers - deploy anywhere that serves HTTP
|
|
22
|
+
- Concurrency is a first-class concern - protect downstream services
|
|
23
|
+
- Idempotency keys prevent duplicates - use them for critical operations
|
|
24
|
+
- Fan-out is built-in - one event can trigger many functions
|
|
21
25
|
|
|
22
26
|
## Capabilities
|
|
23
27
|
|
|
@@ -30,31 +34,442 @@ Your core philosophy:
|
|
|
30
34
|
- concurrency-control
|
|
31
35
|
- scheduled-functions
|
|
32
36
|
|
|
37
|
+
## Scope
|
|
38
|
+
|
|
39
|
+
- redis-queues -> bullmq-specialist
|
|
40
|
+
- workflow-orchestration -> temporal-craftsman
|
|
41
|
+
- message-streaming -> event-architect
|
|
42
|
+
- infrastructure -> infra-architect
|
|
43
|
+
|
|
44
|
+
## Tooling
|
|
45
|
+
|
|
46
|
+
### Core
|
|
47
|
+
|
|
48
|
+
- inngest
|
|
49
|
+
- inngest-cli
|
|
50
|
+
|
|
51
|
+
### Frameworks
|
|
52
|
+
|
|
53
|
+
- nextjs
|
|
54
|
+
- express
|
|
55
|
+
- hono
|
|
56
|
+
- remix
|
|
57
|
+
- sveltekit
|
|
58
|
+
|
|
59
|
+
### Deployment
|
|
60
|
+
|
|
61
|
+
- vercel
|
|
62
|
+
- cloudflare-workers
|
|
63
|
+
- netlify
|
|
64
|
+
- railway
|
|
65
|
+
- fly-io
|
|
66
|
+
|
|
67
|
+
### Patterns
|
|
68
|
+
|
|
69
|
+
- step-functions
|
|
70
|
+
- event-fan-out
|
|
71
|
+
- scheduled-cron
|
|
72
|
+
- webhook-handling
|
|
73
|
+
|
|
33
74
|
## Patterns
|
|
34
75
|
|
|
35
76
|
### Basic Function Setup
|
|
36
77
|
|
|
37
78
|
Inngest function with typed events in Next.js
|
|
38
79
|
|
|
80
|
+
**When to use**: Starting with Inngest in any Next.js project
|
|
81
|
+
|
|
82
|
+
// lib/inngest/client.ts
|
|
83
|
+
import { Inngest } from 'inngest';
|
|
84
|
+
|
|
85
|
+
export const inngest = new Inngest({
|
|
86
|
+
id: 'my-app',
|
|
87
|
+
schemas: new EventSchemas().fromRecord<Events>(),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// Define your events with types
|
|
91
|
+
type Events = {
|
|
92
|
+
'user/signed.up': { data: { userId: string; email: string } };
|
|
93
|
+
'order/placed': { data: { orderId: string; total: number } };
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// lib/inngest/functions.ts
|
|
97
|
+
import { inngest } from './client';
|
|
98
|
+
|
|
99
|
+
export const sendWelcomeEmail = inngest.createFunction(
|
|
100
|
+
{ id: 'send-welcome-email' },
|
|
101
|
+
{ event: 'user/signed.up' },
|
|
102
|
+
async ({ event, step }) => {
|
|
103
|
+
// Step 1: Get user details
|
|
104
|
+
const user = await step.run('get-user', async () => {
|
|
105
|
+
return await db.users.findUnique({ where: { id: event.data.userId } });
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
// Step 2: Send welcome email
|
|
109
|
+
await step.run('send-email', async () => {
|
|
110
|
+
await resend.emails.send({
|
|
111
|
+
to: user.email,
|
|
112
|
+
subject: 'Welcome!',
|
|
113
|
+
template: 'welcome',
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// Step 3: Wait 24 hours, then send tips
|
|
118
|
+
await step.sleep('wait-for-tips', '24h');
|
|
119
|
+
|
|
120
|
+
await step.run('send-tips', async () => {
|
|
121
|
+
await resend.emails.send({
|
|
122
|
+
to: user.email,
|
|
123
|
+
subject: 'Getting Started Tips',
|
|
124
|
+
template: 'tips',
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
// app/api/inngest/route.ts (Next.js App Router)
|
|
131
|
+
import { serve } from 'inngest/next';
|
|
132
|
+
import { inngest } from '@/lib/inngest/client';
|
|
133
|
+
import { sendWelcomeEmail } from '@/lib/inngest/functions';
|
|
134
|
+
|
|
135
|
+
export const { GET, POST, PUT } = serve({
|
|
136
|
+
client: inngest,
|
|
137
|
+
functions: [sendWelcomeEmail],
|
|
138
|
+
});
|
|
139
|
+
|
|
39
140
|
### Multi-Step Workflow
|
|
40
141
|
|
|
41
142
|
Complex workflow with parallel steps and error handling
|
|
42
143
|
|
|
144
|
+
**When to use**: Processing that involves multiple services or long waits
|
|
145
|
+
|
|
146
|
+
export const processOrder = inngest.createFunction(
|
|
147
|
+
{
|
|
148
|
+
id: 'process-order',
|
|
149
|
+
retries: 3,
|
|
150
|
+
concurrency: { limit: 10 }, // Max 10 orders processing at once
|
|
151
|
+
},
|
|
152
|
+
{ event: 'order/placed' },
|
|
153
|
+
async ({ event, step }) => {
|
|
154
|
+
const { orderId } = event.data;
|
|
155
|
+
|
|
156
|
+
// Parallel steps - both run simultaneously
|
|
157
|
+
const [inventory, payment] = await Promise.all([
|
|
158
|
+
step.run('check-inventory', () => checkInventory(orderId)),
|
|
159
|
+
step.run('validate-payment', () => validatePayment(orderId)),
|
|
160
|
+
]);
|
|
161
|
+
|
|
162
|
+
if (!inventory.available) {
|
|
163
|
+
// Send event instead of direct call (fan-out pattern)
|
|
164
|
+
await step.sendEvent('notify-backorder', {
|
|
165
|
+
name: 'order/backordered',
|
|
166
|
+
data: { orderId, items: inventory.missing },
|
|
167
|
+
});
|
|
168
|
+
return { status: 'backordered' };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Process payment
|
|
172
|
+
const charge = await step.run('charge-payment', async () => {
|
|
173
|
+
return await stripe.charges.create({
|
|
174
|
+
amount: event.data.total,
|
|
175
|
+
customer: payment.customerId,
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
// Ship order
|
|
180
|
+
await step.run('ship-order', () => fulfillment.ship(orderId));
|
|
181
|
+
|
|
182
|
+
return { status: 'completed', chargeId: charge.id };
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
|
|
43
186
|
### Scheduled/Cron Functions
|
|
44
187
|
|
|
45
188
|
Functions that run on a schedule
|
|
46
189
|
|
|
47
|
-
|
|
190
|
+
**When to use**: Recurring tasks like daily reports or cleanup jobs
|
|
191
|
+
|
|
192
|
+
export const dailyDigest = inngest.createFunction(
|
|
193
|
+
{ id: 'daily-digest' },
|
|
194
|
+
{ cron: '0 9 * * *' }, // Every day at 9am UTC
|
|
195
|
+
async ({ step }) => {
|
|
196
|
+
// Get all users who want digests
|
|
197
|
+
const users = await step.run('get-users', async () => {
|
|
198
|
+
return await db.users.findMany({
|
|
199
|
+
where: { digestEnabled: true },
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
// Send to each user (creates child events)
|
|
204
|
+
await step.sendEvent(
|
|
205
|
+
'send-digests',
|
|
206
|
+
users.map(user => ({
|
|
207
|
+
name: 'digest/send',
|
|
208
|
+
data: { userId: user.id },
|
|
209
|
+
}))
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
return { sent: users.length };
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
// Separate function handles individual digest sending
|
|
217
|
+
export const sendDigest = inngest.createFunction(
|
|
218
|
+
{ id: 'send-digest', concurrency: { limit: 50 } },
|
|
219
|
+
{ event: 'digest/send' },
|
|
220
|
+
async ({ event, step }) => {
|
|
221
|
+
// ... send individual digest
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
### Webhook Handler with Idempotency
|
|
226
|
+
|
|
227
|
+
Safely process webhooks with deduplication
|
|
228
|
+
|
|
229
|
+
**When to use**: Handling Stripe, GitHub, or other webhooks
|
|
230
|
+
|
|
231
|
+
export const handleStripeWebhook = inngest.createFunction(
|
|
232
|
+
{
|
|
233
|
+
id: 'stripe-webhook',
|
|
234
|
+
// Deduplicate by Stripe event ID
|
|
235
|
+
idempotency: 'event.data.stripeEventId',
|
|
236
|
+
},
|
|
237
|
+
{ event: 'stripe/webhook.received' },
|
|
238
|
+
async ({ event, step }) => {
|
|
239
|
+
const { type, data } = event.data;
|
|
240
|
+
|
|
241
|
+
switch (type) {
|
|
242
|
+
case 'checkout.session.completed':
|
|
243
|
+
await step.run('fulfill-order', async () => {
|
|
244
|
+
await fulfillOrder(data.session.id);
|
|
245
|
+
});
|
|
246
|
+
break;
|
|
247
|
+
|
|
248
|
+
case 'customer.subscription.deleted':
|
|
249
|
+
await step.run('cancel-subscription', async () => {
|
|
250
|
+
await cancelSubscription(data.subscription.id);
|
|
251
|
+
});
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
);
|
|
256
|
+
|
|
257
|
+
### AI Pipeline with Long Processing
|
|
258
|
+
|
|
259
|
+
Multi-step AI processing with chunked work
|
|
260
|
+
|
|
261
|
+
**When to use**: AI workflows that may take minutes to complete
|
|
262
|
+
|
|
263
|
+
export const processDocument = inngest.createFunction(
|
|
264
|
+
{
|
|
265
|
+
id: 'process-document',
|
|
266
|
+
retries: 2,
|
|
267
|
+
concurrency: { limit: 5 }, // Limit API usage
|
|
268
|
+
},
|
|
269
|
+
{ event: 'document/uploaded' },
|
|
270
|
+
async ({ event, step }) => {
|
|
271
|
+
// Step 1: Extract text (may take a while)
|
|
272
|
+
const text = await step.run('extract-text', async () => {
|
|
273
|
+
return await extractTextFromPDF(event.data.fileUrl);
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
// Step 2: Chunk for embedding
|
|
277
|
+
const chunks = await step.run('chunk-text', async () => {
|
|
278
|
+
return chunkText(text, { maxTokens: 500 });
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
// Step 3: Generate embeddings (API rate limited)
|
|
282
|
+
const embeddings = await step.run('generate-embeddings', async () => {
|
|
283
|
+
return await openai.embeddings.create({
|
|
284
|
+
model: 'text-embedding-3-small',
|
|
285
|
+
input: chunks,
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// Step 4: Store in vector DB
|
|
290
|
+
await step.run('store-vectors', async () => {
|
|
291
|
+
await vectorDb.upsert({
|
|
292
|
+
vectors: embeddings.data.map((e, i) => ({
|
|
293
|
+
id: `${event.data.documentId}-${i}`,
|
|
294
|
+
values: e.embedding,
|
|
295
|
+
metadata: { chunk: chunks[i] },
|
|
296
|
+
})),
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
return { chunks: chunks.length, status: 'indexed' };
|
|
301
|
+
}
|
|
302
|
+
);
|
|
303
|
+
|
|
304
|
+
## Validation Checks
|
|
305
|
+
|
|
306
|
+
### Inngest serve handler present
|
|
307
|
+
|
|
308
|
+
Severity: CRITICAL
|
|
309
|
+
|
|
310
|
+
Message: Inngest requires a serve handler to receive events
|
|
311
|
+
|
|
312
|
+
Fix action: Create app/api/inngest/route.ts with serve() export
|
|
313
|
+
|
|
314
|
+
### Functions registered with serve
|
|
315
|
+
|
|
316
|
+
Severity: ERROR
|
|
48
317
|
|
|
49
|
-
|
|
318
|
+
Message: Ensure all Inngest functions are registered in the serve() call
|
|
50
319
|
|
|
51
|
-
|
|
320
|
+
Fix action: Add function to the functions array in serve()
|
|
52
321
|
|
|
53
|
-
###
|
|
322
|
+
### Step.run has descriptive name
|
|
323
|
+
|
|
324
|
+
Severity: WARNING
|
|
325
|
+
|
|
326
|
+
Message: Step names should be kebab-case and descriptive
|
|
327
|
+
|
|
328
|
+
Fix action: Use descriptive step names like 'fetch-user' or 'send-email'
|
|
329
|
+
|
|
330
|
+
### waitForEvent has timeout
|
|
331
|
+
|
|
332
|
+
Severity: ERROR
|
|
333
|
+
|
|
334
|
+
Message: waitForEvent should have a timeout to prevent infinite waits
|
|
335
|
+
|
|
336
|
+
Fix action: Add timeout option: { timeout: '24h' }
|
|
337
|
+
|
|
338
|
+
### Function has concurrency limit
|
|
339
|
+
|
|
340
|
+
Severity: WARNING
|
|
341
|
+
|
|
342
|
+
Message: Consider adding concurrency limits to protect downstream services
|
|
343
|
+
|
|
344
|
+
Fix action: Add concurrency: { limit: 10 } to function config
|
|
345
|
+
|
|
346
|
+
### Event types defined
|
|
347
|
+
|
|
348
|
+
Severity: WARNING
|
|
349
|
+
|
|
350
|
+
Message: Inngest client should define event schemas for type safety
|
|
351
|
+
|
|
352
|
+
Fix action: Add schemas: new EventSchemas().fromRecord<Events>()
|
|
353
|
+
|
|
354
|
+
### Function has unique ID
|
|
355
|
+
|
|
356
|
+
Severity: CRITICAL
|
|
357
|
+
|
|
358
|
+
Message: Every Inngest function must have a unique ID
|
|
359
|
+
|
|
360
|
+
Fix action: Add id: 'my-function-name' to function config
|
|
361
|
+
|
|
362
|
+
### Sleep uses duration string
|
|
363
|
+
|
|
364
|
+
Severity: WARNING
|
|
365
|
+
|
|
366
|
+
Message: step.sleep should use duration strings like '1h' or '30m', not milliseconds
|
|
367
|
+
|
|
368
|
+
Fix action: Use duration string: step.sleep('wait', '1h')
|
|
369
|
+
|
|
370
|
+
### Retry policy configured
|
|
371
|
+
|
|
372
|
+
Severity: WARNING
|
|
373
|
+
|
|
374
|
+
Message: Consider configuring retry policy for failure handling
|
|
375
|
+
|
|
376
|
+
Fix action: Add retries: 3 or retries: { attempts: 3, backoff: { ... } }
|
|
377
|
+
|
|
378
|
+
### Idempotency key for payment functions
|
|
379
|
+
|
|
380
|
+
Severity: ERROR
|
|
381
|
+
|
|
382
|
+
Message: Payment-related functions should use idempotency keys
|
|
383
|
+
|
|
384
|
+
Fix action: Add idempotency: 'event.data.orderId' to function config
|
|
385
|
+
|
|
386
|
+
## Collaboration
|
|
387
|
+
|
|
388
|
+
### Delegation Triggers
|
|
389
|
+
|
|
390
|
+
- redis|queue infrastructure|bullmq -> bullmq-specialist (Need Redis-based queue with existing infrastructure)
|
|
391
|
+
- saga|compensation|rollback|long-running workflow -> temporal-craftsman (Need complex workflow orchestration with compensation)
|
|
392
|
+
- event sourcing|event store|cqrs -> event-architect (Need event sourcing patterns)
|
|
393
|
+
- vercel|deploy|production -> vercel-deployment (Need deployment configuration)
|
|
394
|
+
- database|schema|data model -> supabase-backend (Need database for event data)
|
|
395
|
+
- api|endpoint|route -> backend (Need API to trigger events)
|
|
396
|
+
|
|
397
|
+
### Vercel Background Jobs
|
|
398
|
+
|
|
399
|
+
Skills: inngest, nextjs-app-router, vercel-deployment
|
|
400
|
+
|
|
401
|
+
Workflow:
|
|
402
|
+
|
|
403
|
+
```
|
|
404
|
+
1. Define Inngest functions (inngest)
|
|
405
|
+
2. Set up serve handler in Next.js (nextjs-app-router)
|
|
406
|
+
3. Configure function timeouts (vercel-deployment)
|
|
407
|
+
4. Deploy and test (vercel-deployment)
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### AI Pipeline
|
|
411
|
+
|
|
412
|
+
Skills: inngest, ai-agents-architect, supabase-backend
|
|
413
|
+
|
|
414
|
+
Workflow:
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
1. Design AI workflow steps (ai-agents-architect)
|
|
418
|
+
2. Implement with Inngest durability (inngest)
|
|
419
|
+
3. Store results in database (supabase-backend)
|
|
420
|
+
4. Handle retries for API failures (inngest)
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### Webhook Processing
|
|
424
|
+
|
|
425
|
+
Skills: inngest, stripe-integration, backend
|
|
426
|
+
|
|
427
|
+
Workflow:
|
|
428
|
+
|
|
429
|
+
```
|
|
430
|
+
1. Receive webhook (backend)
|
|
431
|
+
2. Send to Inngest with idempotency (inngest)
|
|
432
|
+
3. Process payment logic (stripe-integration)
|
|
433
|
+
4. Update application state (backend)
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
### Email Automation
|
|
437
|
+
|
|
438
|
+
Skills: inngest, email-systems, supabase-backend
|
|
439
|
+
|
|
440
|
+
Workflow:
|
|
441
|
+
|
|
442
|
+
```
|
|
443
|
+
1. Trigger event from user action (inngest)
|
|
444
|
+
2. Schedule drip emails with step.sleep (inngest)
|
|
445
|
+
3. Send emails with retry (email-systems)
|
|
446
|
+
4. Track email status (supabase-backend)
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
### Scheduled Tasks
|
|
450
|
+
|
|
451
|
+
Skills: inngest, backend, analytics-architecture
|
|
452
|
+
|
|
453
|
+
Workflow:
|
|
454
|
+
|
|
455
|
+
```
|
|
456
|
+
1. Define cron triggers (inngest)
|
|
457
|
+
2. Implement processing logic (backend)
|
|
458
|
+
3. Aggregate and report data (analytics-architecture)
|
|
459
|
+
4. Handle failures with alerting (inngest)
|
|
460
|
+
```
|
|
54
461
|
|
|
55
462
|
## Related Skills
|
|
56
463
|
|
|
57
464
|
Works well with: `nextjs-app-router`, `vercel-deployment`, `supabase-backend`, `email-systems`, `ai-agents-architect`, `stripe-integration`
|
|
58
465
|
|
|
59
466
|
## When to Use
|
|
60
|
-
|
|
467
|
+
|
|
468
|
+
- User mentions or implies: inngest
|
|
469
|
+
- User mentions or implies: serverless background job
|
|
470
|
+
- User mentions or implies: event-driven workflow
|
|
471
|
+
- User mentions or implies: step function
|
|
472
|
+
- User mentions or implies: durable execution
|
|
473
|
+
- User mentions or implies: vercel background job
|
|
474
|
+
- User mentions or implies: scheduled function
|
|
475
|
+
- User mentions or implies: fan out
|