.claude/skills/ts-copilotkit/SKILL.md
You are an expert in CopilotKit, the open-source framework for building in-app AI copilots. You help developers add AI-powered features to React applications — chat sidebars, AI-assisted text editing, contextual suggestions, and autonomous agents that can read app state, call actions, and modify the UI — turning any React app into an AI-native experience.
npx skillsauth add eliferjunior/Claude copilotkitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert in CopilotKit, the open-source framework for building in-app AI copilots. You help developers add AI-powered features to React applications — chat sidebars, AI-assisted text editing, contextual suggestions, and autonomous agents that can read app state, call actions, and modify the UI — turning any React app into an AI-native experience.
// app/layout.tsx — Wrap app with CopilotKit
import { CopilotKit } from "@copilotkit/react-core";
import { CopilotSidebar } from "@copilotkit/react-ui";
import "@copilotkit/react-ui/styles.css";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<CopilotKit runtimeUrl="/api/copilotkit">
{children}
<CopilotSidebar
labels={{ title: "Project Assistant", initial: "How can I help with your project?" }}
/>
</CopilotKit>
);
}
// app/api/copilotkit/route.ts — Backend endpoint
import { CopilotRuntime, OpenAIAdapter } from "@copilotkit/runtime";
export async function POST(req: Request) {
const runtime = new CopilotRuntime();
const adapter = new OpenAIAdapter({ model: "gpt-4o" });
return runtime.response(req, adapter);
}
import { useCopilotReadable, useCopilotAction } from "@copilotkit/react-core";
function ProjectDashboard({ project }: { project: Project }) {
// Make app state readable by the AI
useCopilotReadable({
description: "Current project details",
value: {
name: project.name,
tasks: project.tasks.map(t => ({ title: t.title, status: t.status, assignee: t.assignee })),
dueDate: project.dueDate,
completionRate: project.tasks.filter(t => t.status === "done").length / project.tasks.length,
},
});
// Define actions the AI can take
useCopilotAction({
name: "createTask",
description: "Create a new task in the current project",
parameters: [
{ name: "title", type: "string", description: "Task title", required: true },
{ name: "assignee", type: "string", description: "Who to assign the task to" },
{ name: "priority", type: "string", enum: ["low", "medium", "high"] },
],
handler: async ({ title, assignee, priority }) => {
await api.tasks.create({ projectId: project.id, title, assignee, priority });
revalidate();
return `Created task: ${title}`;
},
});
useCopilotAction({
name: "generateReport",
description: "Generate a project status report",
parameters: [{ name: "format", type: "string", enum: ["summary", "detailed"] }],
handler: async ({ format }) => {
const report = await api.reports.generate({ projectId: project.id, format });
return report.content;
},
});
return <div>{/* Dashboard UI */}</div>;
}
import { CopilotTextarea } from "@copilotkit/react-textarea";
function DocumentEditor() {
const [content, setContent] = useState("");
return (
<CopilotTextarea
value={content}
onValueChange={setContent}
placeholder="Start writing..."
autosuggestionsConfig={{
textareaPurpose: "A project update document for stakeholders",
chatApiConfigs: { suggestionsApiConfig: { forwardedParams: { model: "gpt-4o-mini" } } },
}}
className="w-full h-96 p-4 border rounded-lg"
/>
);
// AI autocompletes as you type, context-aware
}
npm install @copilotkit/react-core @copilotkit/react-ui @copilotkit/react-textarea @copilotkit/runtime
<textarea> for AI-powered writing; autocomplete, rewrite, translaterenderAndWait for destructive actions; user confirms before executiondevelopment
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.