nerve_bridge

Bi-directional control of Trae via macOS AppleScript with built-in feedback mechanism. Use when needing to execute code/commands in Trae IDE and wait for completion confirmation.

3,891 stars

Best use case

nerve_bridge is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Bi-directional control of Trae via macOS AppleScript with built-in feedback mechanism. Use when needing to execute code/commands in Trae IDE and wait for completion confirmation.

Teams using nerve_bridge should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nerve-bridge-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/88901111hz-lang/nerve-bridge-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nerve-bridge-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nerve_bridge Compares

Feature / Agentnerve_bridgeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Bi-directional control of Trae via macOS AppleScript with built-in feedback mechanism. Use when needing to execute code/commands in Trae IDE and wait for completion confirmation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Nerve Bridge (v2)

Direct neural link to Trae with closed-loop feedback via macOS AppleScript.

## Quick Start

Send instruction and wait for confirmation:

```bash
python3 nerve_bridge.py "<instruction>"
```

Example:

```bash
python3 nerve_bridge.py "Create a new Python file and add a simple 'Hello World' function. After creating, add a print statement to test it."
```

## How It Works

1. **Signal Injection**:
   - Payload is copied to system clipboard via `pbcopy`
   - AppleScript activates Trae and simulates: Space (wake) → Delete → Cmd+V → Enter

2. **Feedback Loop**:
   - Instruction must include a Python hook that writes to `~/.openclaw/workspace/trae_feedback.json` when done
   - Script waits up to 5 minutes (300 seconds) for the signal file
   - Returns JSON feedback when received

## Required Hook Pattern

When crafting instructions, include this pattern at the end:

```python
import json, time
with open("~/.openclaw/workspace/trae_feedback.json", "w") as f:
    json.dump({"status": "success", "timestamp": time.time()}, f)
```

## Environment

- **Platform**: macOS only
- **Dependencies**: System Python (`python3`), AppleScript (`osascript`)
- **Permissions**: System Events and Terminal must have "Accessibility" permissions
- **Output File**: `~/.openclaw/workspace/trae_feedback.json` (created by the script)

## Troubleshooting

- **No output from Trae**: Check if Trae window is active and input is focused
- **Timeout**: Trae didn't complete within 5 minutes
- **Permission denied**: macOS may need to grant Terminal System Events permission

Related Skills

deBridge MCP Skill

3891
from openclaw/skills

Enable AI agents to execute non-custodial cross-chain cryptocurrency swaps and transfers via the deBridge protocol.

devops-bridge

3891
from openclaw/skills

Unified developer operations bridge connecting GitHub, CI/CD (GitHub Actions), Slack, Discord, and issue trackers (Linear, Jira, GitHub Issues) into cross-tool automated workflows. Sends context-rich CI failure notifications to Slack with failing test details, tracks PR review lifecycle with escalating reminders, generates daily dev standup summaries, syncs issue status when PRs are merged, detects flaky tests, and monitors repository health. Use this skill for: PR review reminders, CI build alerts, "what happened in my repos", "any failing builds", "who needs a review", dev team standup summary, deploy notifications, repository monitoring, connecting GitHub to Slack, linking PRs to Jira/Linear tickets, code review tracking, merge conflict alerts, or any request to bridge development tools together. If the user mentions GitHub AND Slack (or any two dev tools) together, this skill connects them.

cli-agent-bridge

3891
from openclaw/skills

Public ClawHub text release for a Windows companion skill that bridges local AI CLIs and controlled workspace file operations. This release documents the capability and setup path, but does not include the local PowerShell execution layer.

prestashop_bridge_v1

3891
from openclaw/skills

Secure skill pack for operating a PrestaShop 9 Bridge through a stable, signed, asynchronous API contract.

toybridge

3891
from openclaw/skills

Control any BLE toy that has been reverse-engineered and connected via the ToyBridge server. Calls a local HTTP API to send vibrate/stop commands. Requires the ToyBridge server running on the same machine.

api-bridge

3891
from openclaw/skills

Curated free public APIs for AI agents — geocoding, weather, forex, validation, facts, finance, and test data. Use when an agent needs real-world data without paid API keys.

feishu-bridge

3891
from openclaw/skills

Connect a Feishu (Lark) bot to Clawdbot via WebSocket long-connection. No public server, domain, or ngrok required. Use when setting up Feishu/Lark as a messaging channel, troubleshooting the Feishu bridge, or managing the bridge service (start/stop/logs). Covers bot creation on Feishu Open Platform, credential setup, bridge startup, macOS launchd auto-restart, and group chat behavior tuning.

cross-disciplinary-bridge-finder

3891
from openclaw/skills

Use when identifying collaboration opportunities across fields, finding experts in complementary disciplines, translating methodologies between scientific domains, or building interdisciplinary research teams. Identifies synergies between scientific disciplines, matches researchers with complementary expertise, and facilitates cross-domain collaborations. Supports interdisciplinary grant applications and innovative research team formation.

quantum-bridge

3891
from openclaw/skills

Transpile quantum circuits between Qiskit (OpenQASM) and OriginIR, run IBC multi-agent consensus, validate OriginIR, and submit circuits to real quantum hardware (Wukong 72Q chip) via the Quantum Bridge API. Use when a user asks to convert quantum circuits, run quantum consensus, submit to quantum hardware, check quantum backends, or work with OriginIR/OpenQASM formats.

codex-bridge

3891
from openclaw/skills

Dispatch coding tasks to the local OpenAI Codex CLI with background execution, status polling, and answerable clarifying questions. Use when OpenClaw should delegate script building, code edits, refactors, or multi-step coding work to Codex from the command line.

cloud-local-bridge

3891
from openclaw/skills

实现云端 OpenClaw 与本地 OpenClaw 之间的双向通信桥接。支持自然语言配对、命令执行、文件同步。

win_bridge_control

3891
from openclaw/skills

Bridge: Cross-OS UI automation for Windows Host