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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/88901111hz-lang/nerve-bridge-skillWhat This Skill Does
The Nerve Bridge (v2) is a specialized OpenClaw skill designed to bridge the gap between the AI agent and the Trae IDE on macOS. It operates as a bi-directional interface, allowing the AI to transmit complex coding instructions directly into the Trae editor through automated system events and AppleScript, while simultaneously maintaining a strict feedback loop. By utilizing the macOS clipboard and simulated keyboard inputs, Nerve Bridge transforms your agent into an active developer capable of modifying code, creating files, and testing logic directly within your primary development environment. The core of this skill is its closed-loop feedback mechanism, which monitors a specific JSON output file to verify task execution, effectively turning Trae into an agent-controlled sandbox.
Installation
To begin using the Nerve Bridge, ensure your environment is configured for automation. Install the skill via the ClawHub using the command: clawhub install openclaw/skills/skills/88901111hz-lang/nerve-bridge-skill. After installation, verify that your terminal has the necessary 'Accessibility' permissions in System Settings, as this is required for osascript to simulate keyboard commands within the Trae interface. The skill relies on system Python3 and expects the workspace directory ~/.openclaw/workspace/ to exist for feedback signal handling.
Use Cases
Nerve Bridge is ideal for scenarios requiring repetitive coding tasks or complex multi-step refactoring that require IDE context. Use this skill when you need the AI to implement new features across multiple files, perform automated boilerplate generation, or run verification scripts immediately after modification. It is particularly effective for developers who want to keep the AI in a 'coding assistant' mode where it handles the syntax generation while the human retains control of the IDE window.
Example Prompts
- "Open the user_auth module and add a try-except block to the login function, ensuring you append the feedback hook at the end of the script to confirm the changes."
- "Generate a new unit test for the current active file using pytest, write it to test_current.py, and signal completion once the file is saved."
- "Refactor the CSS styles in the dashboard component; find all hardcoded colors and replace them with variables from the theme file, then confirm execution via the feedback JSON."
Tips & Limitations
- Stability: Ensure the Trae window is in the foreground before triggering the skill, as AppleScript interacts with the active application window.
- Timeouts: The bridge defaults to a 300-second (5 minute) window. If your task involves heavy processing, ensure the code hook is placed correctly so the agent receives the 'success' status promptly.
- Feedback Loop: Always include the provided Python hook pattern in your instructions. Without it, the agent will timeout because it lacks the confirmation file it expects to see upon task completion.
- OS Restriction: This skill is strictly for macOS; do not attempt to run it on Linux or Windows environments as it depends on
pbcopyandosascript.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-88901111hz-lang-nerve-bridge-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution