Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/ai-feature-template
Create new AI-powered features using xAI Grok.
Passed 7 of 12 test cases with the skill, and 2 of 12 without it.
and 11 more in the full report
9 fixed3 passed either way10 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
Create a backend endpoint at app/api/influencer-score/route.ts that rates an X profile reach. Query xAI with X search capability, returning a numerical score without conversational text.
| Checked | Without skill | With skill |
|---|---|---|
| The system prompt text includes instructions demanding no preamble. | Passed | Passed |
| The request body passes model as grok-4-1-fast. | Missed | Passed |
The instructions your model reads when the skill loads.
This project uses xAI's Grok model for AI-powered features with X (Twitter) search capabilities.
Create API route at app/api/<feature-name>/route.ts
Use this template for Grok with X search:
import { NextRequest, NextResponse } from 'next/server';
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
};
// Define your AI persona and instructions
const systemPrompt = `You are [PERSONA NAME], a [ROLE DESCRIPTION].
Your task is to [WHAT TO DO] based on the X account data.
Output Requirements:
- [REQUIREMENT 1]
- [REQUIREMENT 2]
- [FORMAT INSTRUCTIONS]
CRITICAL: Output ONLY the result. No preamble, no explanations.`;
export async function OPTIONS() {
return NextResponse.json(null, { headers: corsHeaders });
}
export async function POST(req: NextRequest) {
try {
const { handle } = await req.json();
const HANDLE_REGEX = /^[a-zA-Z0-9_]{1,15}$/;
if (!handle || !HANDLE_REGEX.test(handle)) {
return NextResponse.json(
test cases passed, vs 2 / 12 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.