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.
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.
curl -O https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/.github/skills/copilotkit-nextjs-integration/SKILL.mdgit clone --depth 1 https://github.com/raphaelmansuy/edgequakeWrote 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.
[](https://agentmods.dev/skills/raphaelmansuy/edgequake/copilotkit-nextjs-integration)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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", 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
useCopilotReadablehooks 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>
);
}
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/README.md 6.0 KB
- metadata.yml 2.4 KB
- overview.md 11 KB
- README.md 7.2 KB
- typescript/instructions.md 9.8 KB
- typescript/patterns/actions-tools.md 12 KB
- typescript/patterns/basic-setup.md 3.6 KB
- typescript/patterns/custom-adapters.md 13 KB
- typescript/patterns/production-security.md 11 KB
- typescript/patterns/state-sharing.md 7.7 KB
- typescript/README.md 2.4 KB
- typescript/skill.md 6.6 KB
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.
- 1mo ago First seen · 412 lines · 56 tokens per session scan B d6a2b412e2f1
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.
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…
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…
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…
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…
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…
rag-setup-project
Set up LightRAG persistent memory for a Cursor project with MCP configuration.