← 返回 Skills 市场
generaljerel

CopilotKit-Runtime-Patterns

作者 Jerel · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
576
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install copilotkit-runtime-patterns
功能描述
Server-side runtime patterns for CopilotKit. Use when setting up CopilotKit runtime endpoints (Express, Hono, Next.js), configuring remote agent endpoints, a...
使用说明 (SKILL.md)

CopilotKit Runtime Patterns

Server-side runtime configuration patterns. Contains 15 rules across 5 categories.

When to Apply

Reference these guidelines when:

  • Setting up CopilotKit runtime endpoints (Express, Hono, Next.js API routes)
  • Configuring CopilotRuntime with service adapters (OpenAIAdapter, etc.)
  • Registering agents via remote endpoints (LangGraph, CrewAI)
  • Adding middleware for logging, auth, or request modification
  • Securing the runtime (CORS, auth, rate limiting)
  • Optimizing runtime performance

Rule Categories by Priority

Priority Category Impact Prefix
1 Endpoint Setup CRITICAL endpoint-
2 Agent Configuration HIGH runner-
3 Middleware MEDIUM middleware-
4 Security HIGH security-
5 Performance MEDIUM perf-

Quick Reference

1. Endpoint Setup (CRITICAL)

  • endpoint-express-setup - Configure Express endpoint with CopilotRuntime and CORS
  • endpoint-hono-setup - Configure Hono endpoint for edge runtimes
  • endpoint-nextjs-route - Set up Next.js API route with copilotRuntimeNextJSAppRouterEndpoint

2. Agent Configuration (HIGH)

  • runner-inmemory-vs-sqlite - Use persistent storage for production thread management
  • runner-agent-registration - Register agents via remoteEndpoints
  • runner-multiple-agents - Configure routing for multi-agent setups

3. Middleware (MEDIUM)

  • middleware-before-request - Use onBeforeRequest for auth, logging, context injection
  • middleware-after-request - Use onAfterRequest for response logging and cleanup
  • middleware-error-handling - Handle errors in middleware without crashing the runtime

4. Security (HIGH)

  • security-cors-config - Configure CORS for your specific frontend origin
  • security-auth-middleware - Authenticate requests before agent execution
  • security-rate-limiting - Rate limit by user or API key

5. Performance (MEDIUM)

  • perf-streaming-response - Ensure streaming is not buffered by proxies

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

安全使用建议
This skill is documentation-only and internally consistent with its stated purpose; it doesn't request secrets or install code. Before using in production, verify provenance (source/homepage missing), compare the advice against the official CopilotKit docs/repo, and review any code snippets you paste into your codebase. Pay attention to the recommended security items (auth middleware, CORS for specific origins, and rate limiting) and ensure remote endpoints (LANGGRAPH_URL, etc.) are trusted and correctly configured.
功能分析
Type: OpenClaw Skill Name: copilotkit-runtime-patterns Version: 1.0.1 The skill bundle provides documentation and code examples for configuring CopilotKit runtimes, explicitly focusing on best practices for endpoint setup, agent configuration, middleware, security, and performance. The `SKILL.md` and `AGENTS.md` files serve as guidelines for AI agents to follow when maintaining or generating code. Notably, the 'Security' section in `AGENTS.md` actively educates on how to prevent critical vulnerabilities like unauthenticated endpoints, wildcard CORS, and lack of rate limiting. There is no evidence of malicious intent, data exfiltration, unauthorized execution, or prompt injection attempts designed to harm the agent or system.
能力评估
Purpose & Capability
The name/description match the included files: this is a rules/guidance document for CopilotKit runtime endpoints, middleware, security, and performance. It does not request credentials, binaries, or config paths. Note: source/homepage are missing in metadata (origin not verifiable), which reduces provenance confidence but does not contradict the stated purpose.
Instruction Scope
SKILL.md and rule files contain guidance and example code snippets that stay within runtime configuration scope (Express/Hono/Next.js, CopilotRuntime, middleware, CORS, auth, rate limiting). Examples reference process.env variables (FRONTEND_URL, LANGGRAPH_URL) as expected for deployment examples and do not instruct reading unrelated local files or exfiltrating data.
Install Mechanism
No install spec and no code files executed by the platform — instruction-only skill (lowest install risk).
Credentials
The skill declares no required environment variables or credentials. Code examples reference common deployment env vars for frontend URL and remote endpoints, which are proportional and expected for the documented tasks.
Persistence & Privilege
Skill is not always-included, is user-invocable, and does not request persistent privileges or modify other skills. Autonomous model invocation is allowed (platform default) but not a unique risk for this skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install copilotkit-runtime-patterns
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /copilotkit-runtime-patterns 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
**Major update: Clarifies agent configuration and runtime setup, updates endpoints, and simplifies performance guidelines.** - Updated to reference CopilotRuntime and @copilotkit/runtime throughout. - Expanded guidance for agent registration via remote endpoints (e.g., LangGraph, CrewAI). - Renamed and refocused "Agent Runners" to "Agent Configuration", emphasizing persistent storage and remote agent management. - Updated endpoint setup examples for Express and Next.js to use latest CopilotRuntime patterns. - Middleware hooks renamed (`beforeRequest` → `onBeforeRequest`, etc.) and clarified in usage. - Simplified performance section, focusing on streaming best practices. - Document version bumped from 1.0.0 to 2.0.0.
v1.0.0
Initial release of copilotkit-runtime-patterns, providing server-side runtime patterns for CopilotKit setups. - Contains 15 rules across 5 categories: Endpoint Setup, Agent Runners, Middleware, Security, and Performance. - Offers quick references and best practices for configuring endpoints (Express, Hono, Next.js), agent runners, and runtime security. - Includes guidelines for middleware handling, agent registration, CORS configuration, and performance tuning. - Supports both development and production deployment patterns.
元数据
Slug copilotkit-runtime-patterns
版本 1.0.1
许可证
累计安装 1
当前安装数 1
历史版本数 2
常见问题

CopilotKit-Runtime-Patterns 是什么?

Server-side runtime patterns for CopilotKit. Use when setting up CopilotKit runtime endpoints (Express, Hono, Next.js), configuring remote agent endpoints, a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 576 次。

如何安装 CopilotKit-Runtime-Patterns?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install copilotkit-runtime-patterns」即可一键安装,无需额外配置。

CopilotKit-Runtime-Patterns 是免费的吗?

是的,CopilotKit-Runtime-Patterns 完全免费(开源免费),可自由下载、安装和使用。

CopilotKit-Runtime-Patterns 支持哪些平台?

CopilotKit-Runtime-Patterns 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 CopilotKit-Runtime-Patterns?

由 Jerel(@generaljerel)开发并维护,当前版本 v1.0.1。

💬 留言讨论