Zum Inhalt springen
TakoAPI
Zurück zu den Skills

copilotkit-agent-patterns

von generaljerel

Coding Agents & IDEs
330Downloadzahlen laut clawskills.sh
0Aufrufe
0 LikesMelde dich an, um diesen Skill zu liken
—Noch nicht bewertet
Deine Bewertung

Kurzbeschreibung

Patterns for building AI agents that integrate with CopilotKit.

Beschreibung

Was dieser Skill macht

A collection of 20 architecture and implementation rules for building AI agents that connect to CopilotKit. Covers AG-UI event streaming, shared state management, human-in-the-loop checkpoints, and generative UI emission. Organized into five priority tiers for incremental adoption.

Rather than piecing together AG-UI protocol behavior from scattered docs, these rules give ordered, opinionated patterns that cover the full lifecycle from architecture to generative UI.

Wann du ihn einsetzt

  • Adding approval gates before an agent takes a destructive action
  • Streaming agent output incrementally into a React UI component
  • Syncing shared state between a LangGraph agent and a CopilotKit frontend
  • Rendering dynamic UI components from agent tool calls
  • Configuring MCP server endpoints for external tool access in an agent

Beispiel-Workflow

EINGABE

User asks: How do I add a human approval step before my agent deletes records?

AGENT
  1. 1

    Consult hitl-approval-gates rule to confirm tool calls are the correct mechanism for approval gates

  2. 2

    Consult hitl-timeout-fallback rule to add a timeout with safe fallback behavior

  3. 3

    Consult hitl-context-in-prompt rule to ensure the user sees enough context to decide

  4. 4

    Consult hitl-resume-state rule to preserve full agent state after the user responds

AUSGABE

Agent implementation with an approval gate tool call, timeout handling, rich decision context in the prompt, and correct state restoration on resume

Installation

clawhub install generaljerel/copilotkit-agent-patterns

Führe den CLI-Befehl aus oder füge den Prompt in Claude Code, Cursor, Codex oder deinen Coding-Agenten ein.

Links