copilotkit-nextjs-integration

copilotkit-nextjs-integration is a skill for Claude Code, Codex from raphaelmansuy/edgequake. It costs 56 tokens per session (2,706 once invoked), scanned B, original, Apache-2.0.

Instructions for connecting CopilotKit to a Next.js application so an AI assistant can read interface state and trigger application actions. They cover chat interfaces, model-provider connections, and human approval steps.

In plain words
What is it for?
Use them when adding an AI chat, context-aware assistant, model-provider adapter, tool action, approval flow, or CopilotKit UI to a Next.js app.
Why use it?
They describe how the web interface, AI endpoint, model adapter, and actions communicate, reducing integration mistakes.

Skill for Claude CodeCodex

About the project

EdgeQuake is a Rust framework that turns documents into knowledge graphs for GraphRAG, a retrieval-and-generation approach that uses linked facts to help language models find relevant information. It is used to build applications that search and generate answers from document collections.

raphaelmansuy/edgequake · 2,085 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/raphaelmansuy/edgequake/copilotkit-nextjs-integration
Any agent
npx skills add raphaelmansuy/edgequake --skill copilotkit-nextjs-integration
Clone the repo
git clone --depth 1 https://github.com/raphaelmansuy/edgequake

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for copilotkit-nextjs-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/raphaelmansuy/edgequake/copilotkit-nextjs-integration.svg)](https://agentmods.dev/skills/raphaelmansuy/edgequake/copilotkit-nextjs-integration)
Your own site
<a href="https://agentmods.dev/skills/raphaelmansuy/edgequake/copilotkit-nextjs-integration"><img src="https://agentmods.dev/badge/skills/raphaelmansuy/edgequake/copilotkit-nextjs-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,706 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.02706
Opus 5 $0.00028 $0.01353
Sonnet 5 $0.00011 $0.00541
Haiku 4.5 $0.00006 $0.00271

Measured 5d ago against content hash d6a2b412e2f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

copilotkit-nextjs-integration scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const response = await fetch("https://your-llm/chat", { method: "POST",
.github/skills/copilotkit-nextjs-integration/SKILL.md · 412 lines

How it starts

The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CopilotKit for Next.js Integration

Integrate CopilotKit AI components into your Next.js application to build intelligent, context-aware interfaces where AI agents can read application state and trigger actionable tools.

When to use

Use this skill when you need to:

  • Build AI-powered chat interfaces in your Next.js app
  • Create context-aware AI agents that understand current UI state
  • Enable AI to trigger actions and mutate app state
  • Integrate custom or self-hosted LLM endpoints
  • Implement human-in-the-loop AI workflows
  • Add AI copilots to SaaS dashboards or productivity tools
  • Support multiple LLM providers with custom adapters
  • Build agentic UIs with sidebar, popup, or headless chat

Core concepts

Mental Model

CopilotKit is a bridge between your Next.js frontend and an LLM runtime endpoint:

[Next.js Frontend] 
    ↕ state/actions/messages
[Copilot Runtime Endpoint]
    ↕ provider protocol
[LLM Adapter] → [OpenAI/Claude/Groq/Custom LLM]

The runtime:

  • Manages conversation history
  • Calls your LLM provider through an adapter
  • Executes tools/actions triggered by the model
  • Syncs generated content back to your UI

Key Primitives

  • Copilot Runtime: Self-hosted endpoint managing message history, tool calls, and provider integration
  • Readable State: App data exposed to the model via useCopilotReadable hooks for context
  • Actions/Tools: Executable functions the model can trigger via useCopilotAction
  • UI Components: CopilotPopup, CopilotSidebar, or custom headless chat
  • Adapters: Provider integration layer (OpenAI, Groq, Google, custom self-hosted, etc.)
  • Generative UI: Structured responses for interactive UI updates

Quick start

Basic Setup

npm install @copilotkit/react @copilotkit/sdk

Minimal Example

import { CopilotPopup } from "@copilotkit/react-ui";
import { CopilotKit } from "@copilotkit/react-core";

export default function App() {
  return (
    <CopilotKit runtimeUrl="http://localhost:8080/copilot">
      <YourApp />
      <CopilotPopup />
    </CopilotKit>
  );
}

Read the full file on GitHub · 412 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 412 lines · 56 tokens per session scan B d6a2b412e2f1

Subscribe to this mod's changes

copilotkit-nextjs-integration is a skill published in the GitHub repository raphaelmansuy/edgequake (2,085 stars, last pushed 2d ago), licensed Apache-2.0. It adds 56 tokens to every session and 2,706 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jurisd-research

Expert Australian/NZ legal research and AGLC4 citation using the jurisd MCP server. Use when finding cases or legislation (AustLII), looking up a provision offline, formatting or resolving citations, building a pinpoint, tracing who-cites-what, or producing an AGLC4 bibliography. Triggers on case law, legislation…

russellbrenner/jurisd · 133 tokens

dual-graph-router

Route an incoming request to the VERTICAL knowledge graph (what the agent knows — a single relationship/temporal traversal), the HORIZONTAL workflow graph (how the agent acts — a decomposed multi-step process), BOTH (a workflow whose nodes query the knowledge graph and write results back), or UNROUTABLE (neither fits…

AnthonyAlcaraz/agentic-graph-rag-skills · 187 tokens

eight-pillar-readiness-map

Map an agentic-graph system's current capabilities across the eight pillars of Agentic GraphRAG Ch2 (knowledge representation, memory, reasoning, planning, tool orchestration, structured output, self-evolution, optimization), respect the chapter's layering (each pillar depends on the ones before it), flag dependency…

AnthonyAlcaraz/agentic-graph-rag-skills · 177 tokens

harness-node-splitter

Split a workflow description into constrained harness nodes using the chapter's rule "nodes differ by tool surface, not by prompt." Given candidate operations each with a declared tool set, merge the ones whose tool surfaces overlap >= 80% (prompt variations of one role) and split the ones with distinct tool surfaces…

AnthonyAlcaraz/agentic-graph-rag-skills · 196 tokens

draft-tool-trust-verifier

Establish trust in a tool by verification, not by its self-description. Flags marketing-gamed tool descriptions ("industry-leading", "trusted by Fortune 500"), requires structured testable capabilities instead of free-text claims, tracks a performance-based trust score (neutral start, successes up, failures and slow…

AnthonyAlcaraz/agentic-graph-rag-skills · 174 tokens

federated-context-governance

Govern agent-configuration drift once tool orchestration scales from one developer to a team. Detects where independently-authored context configs (CLAUDE.md-style settings + installed skills) diverge, classifies the fragmentation stage, enforces a FEDERATED org base whose nonnegotiable settings (security…

AnthonyAlcaraz/agentic-graph-rag-skills · 184 tokens