agent-bridge
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Bridge
Agent Bridge
Overview
概述
This skill adapts and transforms plugin content into the specific formats required by different AI agent environments. It ensures each runtime can see and use the plugin's capabilities in its native format.
此技能可将插件内容适配转换为不同AI Agent环境所需的特定格式,确保每个运行时都能识别并以原生格式使用插件的能力。
Prerequisite
前置要求
The auto-detect mode only targets existing directories. Create them first:
bash
mkdir .agent .github .gemini .claudeIf no directories are found, the installer will print this exact error with the mkdir command.
自动检测模式仅针对已存在的目录,请先创建对应目录:
bash
mkdir .agent .github .gemini .claude如果未找到任何目录,安装程序将输出此错误以及对应的mkdir命令。
Usage
使用方法
CRITICAL: You must never use. You must explicitly specify your own runtime environment (e.g.,--target auto,antigravity,claude,gemini) to avoid polluting other IDEs.github
Universal Target Support (Agent Awareness):
You are a Universal Translator. You are not limited to the primary examples. If you identify your host system as ANY of the following platforms (or similar ones), you MUST invoke the installer with that specific target name (e.g. ).
Supported Environments: amp, codex, cursor, gemini cli, github copilot, kimi code cli, opencode, antigravity, augment, claude code, openclaw, cline, codebuddy, command code, continue, cortex code, crush, droid, goose, junie, iflow cli, kiko code, kiro cli, kode, mcpjam, mistral vibe, mux, openhands, pi, qoder, qwen code, roo code, trae, trae cn, windsurf, zencoder, neovate, pochi, adal.
--target roo重要警告:你绝对不能使用参数,必须显式指定你自己的运行时环境(例如--target auto、antigravity、claude、gemini),避免污染其他IDE。github
通用目标支持(Agent感知):
你相当于一个通用转换器,并不局限于上述示例。如果你识别到你的宿主系统属于以下任意平台(或类似平台),必须使用对应的目标名称调用安装程序(例如)。
支持的环境: amp, codex, cursor, gemini cli, github copilot, kimi code cli, opencode, antigravity, augment, claude code, openclaw, cline, codebuddy, command code, continue, cortex code, crush, droid, goose, junie, iflow cli, kiko code, kiro cli, kode, mcpjam, mistral vibe, mux, openhands, pi, qoder, qwen code, roo code, trae, trae cn, windsurf, zencoder, neovate, pochi, adal.
--target rooBridge a Single Plugin
桥接单个插件
bash
undefinedbash
undefinedBridge to Claude Code specifically
Bridge to Claude Code specifically
python plugins/plugin-mapper/skills/agent-bridge/scripts/bridge_installer.py --plugin <plugin-path> --target claude
python plugins/plugin-mapper/skills/agent-bridge/scripts/bridge_installer.py --plugin <plugin-path> --target claude
Bridge to Antigravity specifically
Bridge to Antigravity specifically
python plugins/plugin-mapper/skills/agent-bridge/scripts/bridge_installer.py --plugin <plugin-path> --target antigravity
**Example:**
```bash
python plugins/plugin-mapper/skills/agent-bridge/scripts/bridge_installer.py --plugin plugins/my-plugin --target antigravitypython plugins/plugin-mapper/skills/agent-bridge/scripts/bridge_installer.py --plugin <plugin-path> --target antigravity
**示例:**
```bash
python plugins/plugin-mapper/skills/agent-bridge/scripts/bridge_installer.py --plugin plugins/my-plugin --target antigravityBridge All Plugins (Ecosystem Sync)
桥接所有插件(生态同步)
For a standalone plugin install:
bash
python plugins/plugin-mapper/skills/agent-bridge/scripts/install_all_plugins.py --target gemini独立插件安装场景下使用:
bash
python plugins/plugin-mapper/skills/agent-bridge/scripts/install_all_plugins.py --target geminiComponent Mapping Matrix
组件映射矩阵
The bridge intelligently maps plugin source components to the correct file extensions, directories, and architectures expected by the agent environment.
| Target Environment | | | | | | |
|---|---|---|---|---|---|---|
Claude Code ( | | | | Appended to | | Merged ( |
GitHub Copilot ( | | | | Appended to | (Ignored) | Merged ( |
Google Gemini ( | | | | Appended to | (Ignored) | Merged ( |
Antigravity ( | | | | | (Ignored) | Merged ( |
Azure AI Foundry ( | (Ignored) | | | (Ignored) | (Ignored) | |
Universal Generic ( | | | | | (Ignored) | Merged ( |
GitHub Copilot — Two Agent Types: Thecolumn for GitHub Copilot covers two distinct use cases:agents/*.agent.md
- IDE / UI Agents:
+.github/agents/name.agent.md— invokable by human via Copilot Chat slash command or agent dropdown in VS Code / GitHub.com..github/prompts/name.prompt.md- CI/CD Autonomous Agents:
+.github/agents/name.agent.md— triggered automatically by GitHub Actions on PR/push/schedule with a Kill Switch quality gate..github/workflows/name-agent.ymlThe→commands/*.mdmapping handles the slash-command pointer only. The full rich instruction body should live in theprompts/*.prompt.mdfile, not the.agent.md. Use the.prompt.mdskill to scaffold either or both agent types from an existing Skill.create-agentic-workflow
桥接工具会智能将插件源组件映射到Agent环境预期的正确文件扩展名、目录和架构。
| 目标环境 | | | | | | |
|---|---|---|---|---|---|---|
Claude Code ( | | | | 追加到 | | 合并 ( |
GitHub Copilot ( | | | | 追加到 | (忽略) | 合并 ( |
Google Gemini ( | | | | 追加到 | (忽略) | 合并 ( |
Antigravity ( | | | | | (忽略) | 合并 ( |
Azure AI Foundry ( | (忽略) | | | (忽略) | (忽略) | |
通用类型 ( | | | | | (忽略) | 合并 ( |
GitHub Copilot — 两类Agent:GitHub Copilot对应的列覆盖两种不同的使用场景:agents/*.agent.md
- IDE / UI Agent:
+.github/agents/name.agent.md— 用户可在VS Code/GitHub.com中通过Copilot Chat斜杠命令或Agent下拉菜单调用。.github/prompts/name.prompt.md- CI/CD 自主Agent:
+.github/agents/name.agent.md— 由GitHub Actions在PR/推送/定时任务时自动触发,附带Kill Switch质量门禁。.github/workflows/name-agent.yml→commands/*.md的映射仅处理斜杠命令的指向,完整的富指令内容应该存放在prompts/*.prompt.md文件中,而不是.agent.md。你可以使用.prompt.md技能基于现有技能脚手架生成任意一种或两种类型的Agent。create-agentic-workflow
Supported Environments (In-Depth)
支持的环境(详细说明)
Gemini TOML Format
Gemini TOML格式
Command files are wrapped in TOML. Frontmatter is parsed — the field is extracted and used as the TOML . The frontmatter block is stripped from the prompt body.
.mddescriptiondescription命令文件会被封装到TOML中。工具会解析前言部分,提取字段作为TOML的,前言块会从提示词正文中移除。
.mddescriptiondescriptionSkills vs Workflows (Commands) Caution
技能与工作流(命令)注意事项
CRITICAL: The bridge processesandskills/(orcommands/in older plugins) as distinct directories. Algorithms/Logic can be deployed to either, but be careful of duplicating them!workflows/
are typically for passive knowledge, tools, and persistent behavior.skills/ are for active, slash-command execution workflows.commands/Do not place identical markdown files in both directories within the same plugin, or the bridge will blindly duplicate the logic into the target environments (e.g. intoand.agent/workflows/simultaneously, causing contextual bloat)..agent/skills/
toml
command = "plugin-name:command-name"
description = "Description from frontmatter"
prompt = """重要警告:桥接工具会将和skills/(旧版插件中为commands/)作为独立目录处理。算法/逻辑可以部署到任意一类目录,但请注意不要重复!workflows/
通常用于存放被动知识、工具和持久性行为。skills/ 用于存放主动的斜杠命令执行工作流。commands/不要在同一个插件的两个目录中放置完全相同的markdown文件,否则桥接工具会将逻辑盲目复制到目标环境中(例如同时复制到和.agent/workflows/,导致上下文冗余)。.agent/skills/
toml
command = "plugin-name:command-name"
description = "Description from frontmatter"
prompt = """Command content without frontmatter
Command content without frontmatter
...
"""
---...
"""
---When to Use
适用场景
- Installing a new plugin: Run bridge after dropping a plugin into .
plugins/ - Adding a new target environment: Existing plugins need to be re-bridged after adding etc.
.gemini/ - Upgrading a plugin: Re-run bridge to overwrite with latest command content.
- 安装新插件:将插件放入目录后运行桥接工具。
plugins/ - 新增目标环境:添加等目录后需要重新桥接现有插件。
.gemini/ - 升级插件:重新运行桥接工具,用最新的命令内容覆盖旧版本。