raphaelmansuy/edgequake/typescript
Claude Code and agent skill by raphaelmansuy/edgequake
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install raphaelmansuy/edgequake/typescriptSKILL.md
The same SKILL.md was published earlier as raphaelmansuy/edgequake/typescript.
CopilotKit TypeScript Skill
Complete TypeScript/Next.js patterns and best practices for integrating CopilotKit.
TypeScript-Specific Features
Type Safety
CopilotKit provides full TypeScript support with strong typing for:
- Readable State: Typed via generics
```typescript interface UserListState { users: Array<{ id: string; name: string; email: string }>; }
useCopilotReadable<UserListState>({ description: "Current user list", value: users }); ```
- Action Parameters: Typed handler functions
``typescript useCopilotAction({ name: "updateUser", parameters: [ { name: "userId", type: "string", required: true }, { name: "newName", type: "string", required: true } ], handler: async (params: { userId: string; newName: string }) => { // TypeScript knows params shape return Updated ${params.newName}; } }); ``
React Hook Patterns
All CopilotKit functionality uses React hooks for composition:
Server-Side Runtime Pattern
The runtime endpoint is a Next.js API route with full TypeScript support:
Custom Adapter Types
Next.js App Router Integration
CopilotKit works seamlessly with Next.js App Router:
- Layout Wrapper: Wrap provider in root layout
```typescript // app/layout.tsx import { CopilotKit } from "@copilotkit/react-core";
export default function RootLayout({ children }: { children: React.ReactNode; }) { return ( <html> <body> <CopilotKit runtimeUrl="/api/copilotkit"> {children} </CopilotKit> </body> </html> ); } ```
- Page Components: Use hooks naturally
```typescript // app/dashboard/page.tsx "use client";
import { CopilotPopup } from "@copilotkit/react-ui"; import { useCopilotReadable } from "@copilotkit/react-core";
export default function DashboardPage() { // Share component state useCopilotReadable({ ... });
return ( <> <DashboardContent /> <CopilotPopup /> </> ); } ```
Environment Configuration
TypeScript enables better environment variable handling:
Common Type Patterns
Readable State with Complex Objects
Actions with Validation
Linting & Type Checking
Testing Patterns
Use TypeScript with your test framework:
Production Patterns
Typed Middleware
Logging with Types
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/copilotkit-nextjs-integration/typescript/skill.md
Popularity
- Repository stars
- 1,983
- Repository forks
- 223
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/raphaelmansuy/edgequake/typescript)