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

copilotkit-runtime-patterns

generaljerel 제작

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

요약

Server-side runtime patterns for CopilotKit.

설명

이 스킬이 하는 일

A collection of 15 server-side configuration rules for CopilotKit's runtime layer, organized across endpoint setup, agent registration, middleware, security, and performance. Covers Express, Hono, and Next.js integration patterns with service adapters and remote agent endpoints.

Having prioritized, categorized rules in one place prevents common misconfigurations like buffered streaming responses or missing CORS headers that are easy to overlook when assembling the runtime manually.

사용 시점

  • Setting up a CopilotKit endpoint in an existing Express API
  • Registering a LangGraph agent via remote endpoint configuration
  • Adding auth middleware to gate copilot requests by user token
  • Configuring CORS to allow only a specific frontend origin
  • Switching from in-memory to SQLite thread storage for production

예시 워크플로

입력

User asks: how do I add authentication to my CopilotKit Express endpoint?

에이전트
  1. 1

    Identifies the security-auth-middleware rule as the relevant reference

  2. 2

    Retrieves the onBeforeRequest middleware pattern for request interception

  3. 3

    Generates Express middleware code that validates a token before agent execution

  4. 4

    Adds the middleware to the CopilotRuntime configuration block

  5. 5

    Notes the security-cors-config rule for locking down allowed origins

출력

A working Express endpoint with auth middleware that rejects unauthenticated requests before they reach the copilot runtime

요구 사항

  • CopilotKit API key (cloud.copilotkit.ai)

설치

clawhub install generaljerel/copilotkit-runtime-patterns

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

링크