edgequake: Skill for Claude Code

.github/skills/copilotkit-nextjs-integration/SKILL.md

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

Written for no agent in particular: nothing here depends on one.

This is raphaelmansuy/edgequake's own configuration. It tells Claude Code and Codex how to work on edgequake itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything edgequake configures →

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,281 stars · on GitHub · edgequake.com

Reuse

Borrowing it

Nothing to install: this file belongs to raphaelmansuy/edgequake. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/.github/skills/copilotkit-nextjs-integration/SKILL.md
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for copilotkit-nextjs-integration

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 250
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Data Exfiltration · line 283
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.1 $0.00056 $0.02706
Opus 5.5 $0.00022 $0.01082
Sonnet 5.5 $0.00011 $0.00541
Haiku 4.5 $0.00006 $0.00271

Measured 1mo ago against content hash d6a2b412e2f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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,281 stars, last pushed yesterday), licensed Apache-2.0. It adds 56 tokens to every session and 2,706 once invoked, about $0.0002 per session on Opus 5.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

graphify

Use for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists, where the question should be treated as a graphify query first. Turns any input (code, docs, papers, images, videos) into a persistent knowledge graph with god nodes, community…

Graphify-Labs/graphify · 76 tokens

rag-mcp-tool-selection

Select the top-K tools from a registry of 30+ MCP / AWS / internal-API tools for a given natural-language query, replacing MCP's tools/list dump with a RAG-style filter that reduces prompt tokens 50-70%. Three-step pipeline: retrieve / validate / format. Use when the agent has access to many tools and prompt bloat is…

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

rrf-hybrid-retrieval

Reciprocal Rank Fusion (RRF) hybrid retrieval across 4 parallel channels — semantic / keyword / graph-traversal / temporal — followed by cross-encoder rerank and token-budget filter (HINDSIGHT, Latimer et al. 2025, cited in Ch4). Rank-based fusion means scores don't need calibration across channels; absent items…

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

vector-vs-graph-retrieval-selector

Recommend VECTOR / GRAPH / HYBRID retrieval for a query workload, grounded in Ch1's BenchmarkQED evidence for where vector RAG succeeds and where it collapses. Classifies the workload on the BenchmarkQED scope x type axes (local/global, data/activity), weighs multi-hop / temporal / associativity needs, domain…

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

three-graph-router

Route an incoming record/fact into the correct graph of the Three-Graph Architecture (Ch3) — DOMAIN (trusted, entity-resolved single source of truth), LEXICAL (verbatim source text with provenance, the "retrieval" in RAG), or SUBJECT (LLM-extracted artifacts kept SEPARATE from domain until entity resolution links…

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

rag-setup-project

Set up LightRAG persistent memory for a Cursor project with MCP configuration.

butchokoy25/lightrag-claude-skills · 19 tokens