{
  "schemaVersion": "1.0",
  "item": {
    "slug": "copilotkit-runtime-patterns",
    "name": "CopilotKit-Runtime-Patterns",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/GeneralJerel/copilotkit-runtime-patterns",
    "canonicalUrl": "https://clawhub.ai/GeneralJerel/copilotkit-runtime-patterns",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/copilotkit-runtime-patterns",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilotkit-runtime-patterns",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "metadata.json",
      "README.md",
      "SKILL.md",
      "rules/runner-inmemory-vs-sqlite.md",
      "rules/security-rate-limiting.md",
      "rules/endpoint-hono-setup.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/copilotkit-runtime-patterns"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/copilotkit-runtime-patterns",
    "agentPageUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent",
    "manifestUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "CopilotKit Runtime Patterns",
        "body": "Server-side runtime configuration patterns. Contains 15 rules across 5 categories."
      },
      {
        "title": "When to Apply",
        "body": "Reference these guidelines when:\n\nSetting up CopilotKit runtime endpoints (Express, Hono, Next.js API routes)\nConfiguring CopilotRuntime with service adapters (OpenAIAdapter, etc.)\nRegistering agents via remote endpoints (LangGraph, CrewAI)\nAdding middleware for logging, auth, or request modification\nSecuring the runtime (CORS, auth, rate limiting)\nOptimizing runtime performance"
      },
      {
        "title": "Rule Categories by Priority",
        "body": "PriorityCategoryImpactPrefix1Endpoint SetupCRITICALendpoint-2Agent ConfigurationHIGHrunner-3MiddlewareMEDIUMmiddleware-4SecurityHIGHsecurity-5PerformanceMEDIUMperf-"
      },
      {
        "title": "1. Endpoint Setup (CRITICAL)",
        "body": "endpoint-express-setup - Configure Express endpoint with CopilotRuntime and CORS\nendpoint-hono-setup - Configure Hono endpoint for edge runtimes\nendpoint-nextjs-route - Set up Next.js API route with copilotRuntimeNextJSAppRouterEndpoint"
      },
      {
        "title": "2. Agent Configuration (HIGH)",
        "body": "runner-inmemory-vs-sqlite - Use persistent storage for production thread management\nrunner-agent-registration - Register agents via remoteEndpoints\nrunner-multiple-agents - Configure routing for multi-agent setups"
      },
      {
        "title": "3. Middleware (MEDIUM)",
        "body": "middleware-before-request - Use onBeforeRequest for auth, logging, context injection\nmiddleware-after-request - Use onAfterRequest for response logging and cleanup\nmiddleware-error-handling - Handle errors in middleware without crashing the runtime"
      },
      {
        "title": "4. Security (HIGH)",
        "body": "security-cors-config - Configure CORS for your specific frontend origin\nsecurity-auth-middleware - Authenticate requests before agent execution\nsecurity-rate-limiting - Rate limit by user or API key"
      },
      {
        "title": "5. Performance (MEDIUM)",
        "body": "perf-streaming-response - Ensure streaming is not buffered by proxies"
      },
      {
        "title": "Full Compiled Document",
        "body": "For the complete guide with all rules expanded: AGENTS.md"
      }
    ],
    "body": "CopilotKit Runtime Patterns\n\nServer-side runtime configuration patterns. Contains 15 rules across 5 categories.\n\nWhen to Apply\n\nReference these guidelines when:\n\nSetting up CopilotKit runtime endpoints (Express, Hono, Next.js API routes)\nConfiguring CopilotRuntime with service adapters (OpenAIAdapter, etc.)\nRegistering agents via remote endpoints (LangGraph, CrewAI)\nAdding middleware for logging, auth, or request modification\nSecuring the runtime (CORS, auth, rate limiting)\nOptimizing runtime performance\nRule Categories by Priority\nPriority\tCategory\tImpact\tPrefix\n1\tEndpoint Setup\tCRITICAL\tendpoint-\n2\tAgent Configuration\tHIGH\trunner-\n3\tMiddleware\tMEDIUM\tmiddleware-\n4\tSecurity\tHIGH\tsecurity-\n5\tPerformance\tMEDIUM\tperf-\nQuick Reference\n1. Endpoint Setup (CRITICAL)\nendpoint-express-setup - Configure Express endpoint with CopilotRuntime and CORS\nendpoint-hono-setup - Configure Hono endpoint for edge runtimes\nendpoint-nextjs-route - Set up Next.js API route with copilotRuntimeNextJSAppRouterEndpoint\n2. Agent Configuration (HIGH)\nrunner-inmemory-vs-sqlite - Use persistent storage for production thread management\nrunner-agent-registration - Register agents via remoteEndpoints\nrunner-multiple-agents - Configure routing for multi-agent setups\n3. Middleware (MEDIUM)\nmiddleware-before-request - Use onBeforeRequest for auth, logging, context injection\nmiddleware-after-request - Use onAfterRequest for response logging and cleanup\nmiddleware-error-handling - Handle errors in middleware without crashing the runtime\n4. Security (HIGH)\nsecurity-cors-config - Configure CORS for your specific frontend origin\nsecurity-auth-middleware - Authenticate requests before agent execution\nsecurity-rate-limiting - Rate limit by user or API key\n5. Performance (MEDIUM)\nperf-streaming-response - Ensure streaming is not buffered by proxies\nFull Compiled Document\n\nFor the complete guide with all rules expanded: AGENTS.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/GeneralJerel/copilotkit-runtime-patterns",
    "publisherUrl": "https://clawhub.ai/GeneralJerel/copilotkit-runtime-patterns",
    "owner": "GeneralJerel",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns",
    "downloadUrl": "https://openagent3.xyz/downloads/copilotkit-runtime-patterns",
    "agentUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent",
    "manifestUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/copilotkit-runtime-patterns/agent.md"
  }
}