Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/ai-handler
Integrate Replicate AI models with background processing, S3 storage, and credit systems
Passed 20 of 22 test cases with the skill, and 8 of 22 without it.
and 16 more in the full report
13 fixed7 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
Provide the Inngest createFunction definition header for the AI worker, specifying its concurrency limit and subscribed event.
| Checked | Without skill | With skill |
|---|---|---|
| Sets concurrency to 5 in the function configuration | Passed | Passed |
| Listens for event app/ai.generate | Missed | Passed |
The instructions your model reads when the skill loads.
This skill provides a production-ready pattern for integrating Replicate AI models. It handles long-running predictions using Inngest background jobs, stores results in S3, manages user credits, and updates database state.
/api/app/ai-images).status: "processing".status: "completed".failed.replicate package installed (npm install replicate).REPLICATE_API_TOKEN in .env.src/app/api/app/generate/route.ts
import withAuthRequired from "@/lib/auth/withAuthRequired";
import { db } from "@/db";
import { generations } from "@/db/schema";
import { inngest } from "@/lib/inngest/client";
import { checkCredits, deductCredits } from "@/lib/credits"; // Hypothetical helpers
export const POST = withAuthRequired(async (req, { session }) => {
const body = await req.json();
// 1. Check Credits
const hasCredits = await checkCredits(session.user.id, "image_generation", 1);
test cases passed, vs 8 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.