CopilotKit-Runtime-Patterns
v1.0.1Server-side runtime patterns for CopilotKit. Use when setting up CopilotKit runtime endpoints (Express, Hono, Next.js), configuring remote agent endpoints, a...
Security Scan
OpenClaw
Benign
medium confidencePurpose & 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.
Scan Findings in Context
[scanner-no-files] expected: The regex-based scanner had nothing to analyze because this is an instruction-only skill (no code files). That is expected for a documentation-only skill; absence of matches is not proof of safety but is consistent with the provided manifest.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
latest
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 CORSendpoint-hono-setup- Configure Hono endpoint for edge runtimesendpoint-nextjs-route- Set up Next.js API route with copilotRuntimeNextJSAppRouterEndpoint
2. Agent Configuration (HIGH)
runner-inmemory-vs-sqlite- Use persistent storage for production thread managementrunner-agent-registration- Register agents via remoteEndpointsrunner-multiple-agents- Configure routing for multi-agent setups
3. Middleware (MEDIUM)
middleware-before-request- Use onBeforeRequest for auth, logging, context injectionmiddleware-after-request- Use onAfterRequest for response logging and cleanupmiddleware-error-handling- Handle errors in middleware without crashing the runtime
4. Security (HIGH)
security-cors-config- Configure CORS for your specific frontend originsecurity-auth-middleware- Authenticate requests before agent executionsecurity-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
Comments
Loading comments...
