본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

copilotkit-react

generaljerel 제작

Web & Frontend Development
361clawskills.sh가 보고한 다운로드 수
1스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

CopilotKit React best practices for agentic applications.

설명

이 스킬이 하는 일

A rule set for building React applications with CopilotKit. Covers provider setup, agent hooks, tool rendering, shared state, and chat UI components across both v1 and v2 APIs. Contains 25 prioritized rules organized by category.

Consolidates CopilotKit v1 and v2 API differences into a single prioritized reference, preventing common integration mistakes without reading full library docs.

사용 시점

  • Setting up CopilotKit provider with correct runtime URL and agent routing
  • Implementing useRenderTool with Zod schemas for typed tool call display
  • Sharing app state with agents via useCopilotReadable without serialization
  • Choosing between CopilotSidebar and CopilotPopup for chat layout
  • Refactoring tool handlers to avoid stale closures and unnecessary re-renders

예시 워크플로

입력

User asks: add a CopilotKit sidebar to my React app and share the current document state with the agent

에이전트
  1. 1

    Wraps app with CopilotKit provider, setting runtimeUrl and agent prop per provider-runtime-url and provider-single-endpoint rules

  2. 2

    Adds useCopilotReadable call with a structured object representing document state, following state-structured-values rule

  3. 3

    Selects CopilotSidebar over CopilotPopup based on ui-chat-layout rule for persistent chat

  4. 4

    Customizes labels prop on CopilotSidebar per ui-custom-labels rule

  5. 5

    Adds welcome screen with suggested prompts per ui-welcome-screen rule

출력

A React app with a persistent sidebar chat that exposes scoped document state to the agent using correct provider and state patterns

설치

clawhub install generaljerel/copilotkit-react

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크