ai-feature-template
Create new AI-powered features using xAI Grok. Use when user mentions "new AI feature", "add Grok", "create prompt", "AI analysis", or "generate with AI".
npx skills add majiayu000/claude-skill-registry --skill ai-feature-template-applelamps-xpic2-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Creating AI Features with xAI Grok This project uses xAI's Grok model for AI-powered features with X (Twitter) search capabilities. ## Instructions 1. **Create API route** at `app/api/<feature-name>/route.ts` 2. **Use this template for Grok with X search**: ```typescript 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( { error: 'Invalid X handle format.' }, { status: 400, headers: corsHeaders } ); } const xaiApiKey = proces
- Instructions
- Existing AI Prompts (Reference)
- Prompt Best Practices
- Examples
- Guardrails
What does the ai-feature-template skill do?
Create new AI-powered features using xAI Grok. Use when user mentions "new AI feature", "add Grok", "create prompt", "AI analysis", or "generate with AI".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ai-feature-template-applelamps-xpic2-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
