add-nodebridge-handler — community add-nodebridge-handler, neovate-code, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Node.js Agents needing seamless communication between the UI layer and backend through NodeBridge Neovate Code is a code agent to enhance your development. You can use it to generate code, fix bugs, review code, add tests, and more. You can run it in interactive mode or headless mode.

neovateai neovateai
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The add-nodebridge-handler skill by neovateai is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Node.js Agents needing seamless communication between the UI layer and backend through NodeBridge

Core Value

Empowers agents to extend the NodeBridge system with custom message handlers, enabling advanced communication protocols and data exchange between the UI and Node.js backend, leveraging TypeScript and the messageBus registry

Capabilities Granted for add-nodebridge-handler

Registering custom message handlers for specific data categories
Implementing async data processing for incoming messages
Enhancing NodeBridge with domain-specific logic for improved UI-backend interaction

! Prerequisites & Limits

  • Requires access to the NodeBridge system and messageBus registry
  • Implementation must be in TypeScript
  • Dependent on the Node.js backend infrastructure
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

add-nodebridge-handler

Install add-nodebridge-handler, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Add NodeBridge Handler

Overview

This skill guides the process of adding a new message handler to the NodeBridge system, which enables communication between the UI layer and the Node.js backend.

Steps

1. Add Handler Implementation in src/nodeBridge.ts

Locate the registerHandlers() method in the NodeHandlerRegistry class and add your handler:

typescript
1this.messageBus.registerHandler('category.handlerName', async (data) => { 2 const { cwd, ...otherParams } = data; 3 const context = await this.getContext(cwd); 4 5 // Implementation logic here 6 7 return { 8 success: true, 9 data: { 10 // Return data 11 }, 12 }; 13});

Handler Naming Convention:

  • Use dot notation: category.action (e.g., git.status, session.send, utils.getPaths)
  • Categories: config, git, mcp, models, outputStyles, project, projects, providers, session, sessions, slashCommand, status, utils

Common Patterns:

  • Always get context via await this.getContext(cwd)
  • Return { success: true, data: {...} } for success
  • Return { success: false, error: 'message' } for errors
  • Wrap in try/catch for error handling

2. Add Type Definitions in src/nodeBridge.types.ts

Add input and output types near the relevant section:

typescript
1// ============================================================================ 2// Category Handlers 3// ============================================================================ 4 5type CategoryHandlerNameInput = { 6 cwd: string; 7 // other required params 8 optionalParam?: string; 9}; 10 11type CategoryHandlerNameOutput = { 12 success: boolean; 13 error?: string; 14 data?: { 15 // return data shape 16 }; 17};

Then add to the HandlerMap type:

typescript
1export type HandlerMap = { 2 // ... existing handlers 3 4 // Category handlers 5 'category.handlerName': { 6 input: CategoryHandlerNameInput; 7 output: CategoryHandlerNameOutput; 8 }; 9};

3. (Optional) Add to Test Script

Update scripts/test-nodebridge.ts HANDLERS object if the handler should be easily testable:

typescript
1const HANDLERS: Record<string, string> = { 2 // ... existing handlers 3 'category.handlerName': 'Description of what this handler does', 4};

4. Test the Handler

Run the test script:

bash
1bun scripts/test-nodebridge.ts category.handlerName --cwd=/path/to/dir --param=value

Or with JSON data:

bash
1bun scripts/test-nodebridge.ts category.handlerName --data='{"cwd":"/path","param":"value"}'

Example: Complete Handler Addition

nodeBridge.ts

typescript
1this.messageBus.registerHandler('utils.example', async (data) => { 2 const { cwd, name } = data; 3 try { 4 const context = await this.getContext(cwd); 5 6 // Do something with context and params 7 const result = await someOperation(name); 8 9 return { 10 success: true, 11 data: { 12 result, 13 }, 14 }; 15 } catch (error: any) { 16 return { 17 success: false, 18 error: error.message || 'Failed to execute example', 19 }; 20 } 21});

nodeBridge.types.ts

typescript
1type UtilsExampleInput = { 2 cwd: string; 3 name: string; 4}; 5 6type UtilsExampleOutput = { 7 success: boolean; 8 error?: string; 9 data?: { 10 result: string; 11 }; 12}; 13 14// In HandlerMap: 15'utils.example': { 16 input: UtilsExampleInput; 17 output: UtilsExampleOutput; 18};

Notes

  • Handlers are async functions that receive data parameter
  • Use this.getContext(cwd) to get the Context instance (cached per cwd)
  • Context provides access to: config, paths, mcpManager, productName, version, etc.
  • For long-running operations, consider using abort controllers (see git.clone pattern)
  • For operations that emit progress, use this.messageBus.emitEvent() (see git.commit.output pattern)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is add-nodebridge-handler?

Perfect for Node.js Agents needing seamless communication between the UI layer and backend through NodeBridge Neovate Code is a code agent to enhance your development. You can use it to generate code, fix bugs, review code, add tests, and more. You can run it in interactive mode or headless mode.

How do I install add-nodebridge-handler?

Run the command: npx killer-skills add neovateai/neovate-code/add-nodebridge-handler. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for add-nodebridge-handler?

Key use cases include: Registering custom message handlers for specific data categories, Implementing async data processing for incoming messages, Enhancing NodeBridge with domain-specific logic for improved UI-backend interaction.

Which IDEs are compatible with add-nodebridge-handler?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for add-nodebridge-handler?

Requires access to the NodeBridge system and messageBus registry. Implementation must be in TypeScript. Dependent on the Node.js backend infrastructure.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add neovateai/neovate-code/add-nodebridge-handler. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use add-nodebridge-handler immediately in the current project.

Related Skills

Looking for an alternative to add-nodebridge-handler or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI