Token导航 LogoToken导航

Agent Skill · 开发

bridge-plugin(bridge plugin 命令行)

bridge-plugin 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

bridge-plugin 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 19,262。

总安装 282周安装 12GitHub Stars 2下载 99核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bridge-plugin(bridge plugin 命令行)
来源仓库:https://github.com/richfrem/agent-plugins-skills
仓库路径:skills/bridge-plugin
安装命令:
npx skills add https://github.com/richfrem/agent-plugins-skills --skill bridge-plugin
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/richfrem/agent-plugins-skills --skill bridge-plugin

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

bridge-plugin 部署插件组件到 Agent 环境,使用 central store + symlink 模式管理。支持全栈技能安装与规则钩子集成,适用于扩展宿主能力。依赖 Python 3.8+ 和标准库,无需额外包。使用前应确认目标环境权限,避免覆盖关键系统配置。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/bridge-plugin

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/richfrem/agent-plugins-skills --skill bridge-p…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

bridge-plugin 怎么安装?

在终端执行 npx skills add https://github.com/richfrem/agent-plugins-skills --skill bridge-plugin。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

bridge-plugin 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

bridge-plugin 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

bridge-plugin 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

bridge-plugin 用的人多吗?

公开数据是累计安装 282 次,近一周安装 12 次,下载 99 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

bridge-plugin 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
bridge-plugin

bridge plugin 命令行 · 本页

2822调用外部服务未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Dependencies

This skill requires Python 3.8+ and standard library only. No external packages needed.

To install this skill's dependencies:

pip-compile ./requirements.in
pip install -r ./requirements.txt

See ./requirements.txt for the dependency lockfile (currently empty — standard library only).


Agent Bridge

Overview

This skill deploys plugin components to agent environments using the .agents/ central store + symlink pattern. It is the full-stack installer:

InstallerSkillsCommandsRulesHooksMCP
npx skills add✓✗✗✗✗
bridge_installer.py✓✓✓✓✓
Use npx skills add for pure skill distribution to end users. Use bridge_installer.py when you need commands, rules, hooks, or MCP configs deployed alongside skills — or when developing locally.

Architecture: How Installation Works

plugins/<plugin>/
  skills/          → .agents/skills/<skill>/        (canonical copy)
                     .agent/skills/<skill>           → symlink (Antigravity)
                     .claude/skills/<skill>          → symlink (Claude Code)
  commands/        → .agents/workflows/<plugin>_<cmd>.md  (canonical copy)
                     .agent/workflows/<plugin>_<cmd>.md   → symlink
                     .claude/commands/<plugin>_<cmd>.md   → symlink
                     .gemini/commands/<plugin>_<cmd>.toml → (TOML-wrapped)
  rules/           → .agents/rules/<plugin>_<rule>.md     (canonical copy)
                     .agent/rules/<plugin>_<rule>.md      → symlink
                     CLAUDE.md                            → appended
  hooks/hooks.json → .agents/hooks/<plugin>-hooks.json   (canonical copy)
                     .claude/hooks/<plugin>-hooks.json    → symlink (Claude only)
  .mcp.json        → ./.mcp.json                         (merged)

Central store is always .agents/ at project root. Symlinks point from each agent's own directory back into .agents/. This mirrors exactly how npx skills manages its canonical store at .agents/skills/.


Component Mapping Matrix

Component.agent/ (Antigravity).claude/ (Claude Code).gemini/ (Gemini).github/ (Copilot)
skills/.agent/skills/<n> → symlink.claude/skills/<n> → symlink.gemini/skills/<n> → symlink.github/skills/<n> → symlink
commands/*.md.agent/workflows/<plugin>_<cmd>.md.claude/commands/<plugin>_<cmd>.md.gemini/commands/<plugin>_<cmd>.toml.github/prompts/<plugin>_<cmd>.prompt.md
rules/.agent/rules/<plugin>_<rule>.mdAppended → CLAUDE.mdAppended → GEMINI.mdAppended → .github/copilot-instructions.md
hooks/hooks.json*(ignored)*.claude/hooks/<plugin>-hooks.json*(ignored)**(ignored)*
agents/*.md.agent/skills/<plugin>-<agent>/ wrapper.claude/agents/<plugin>-<agent>.md (native).gemini/skills/<plugin>-<agent>/ wrapper.github/skills/<plugin>-<agent>/ wrapper
.mcp.jsonMerged → ./.mcp.jsonMerged → ./.mcp.jsonMerged → ./.mcp.jsonMerged → ./.mcp.json
Commands naming: Nested command folders are flattened to snake_case. commands/ops/restart.md → <plugin>_ops_restart.md
commands/ vs workflows/ naming: The plugin source folder is always named commands/. The installer maps it to each platform's own directory name at install time — workflows/ on Antigravity/.agents/, commands/ on Claude Code, commands/ (TOML) on Gemini, prompts/ on GitHub Copilot. Never rename the source folder to match any single platform.
skills/ as slash commands (Claude Code): In Claude Code, any skills/<name>/SKILL.md entry in a plugin is deployed to .claude/skills/<name>/ and automatically functions as both a proactive skill AND a namespaced slash command (/plugin-name:name). This is the preferred pattern for new commands — use commands/ as thin wrappers that delegate to skills. The installer handles both paths independently; no special flag needed.
agents/ dual deployment (Claude Code): For Claude Code (which has a native agents directory), agents are deployed directly to .claude/agents/<plugin>-<agent>.md via deploy_agents(). For environments without native agents support (Antigravity, Gemini, GitHub), the installer wraps each agent file as a skill directory under .agent/skills/<plugin>-<agent>/SKILL.md. Both paths run on every install.

npx skills Compatibility

bridge_installer.py writes to the npx skills lock file after installation so that npx skills list, check, and update remain aware of bridge-installed skills.

Lock file locations:

FilePathPurpose
Global lock~/.agents/.skill-lock.jsonTracks global installs; enables npx skills check/update
Project lock<project>/skills-lock.jsonTracks project installs; enables npx skills experimental_install

Lock file schema (version 3):

{
  "version": 3,
  "skills": {
    "my-skill": {
      "source": "richfrem/agent-plugins-skills",
      "sourceType": "github",
      "sourceUrl": "https://github.com/richfrem/agent-plugins-skills.git",
      "skillPath": "plugins/my-plugin/skills/my-skill",
      "skillFolderHash": "<git-tree-sha>",
      "installedAt": "<iso-timestamp>",
      "updatedAt": "<iso-timestamp>"
    }
  },
  "dismissed": {}
}

After running bridge_installer.py, each installed skill must be written to the appropriate lock file. Skills only — commands, rules, hooks, and MCP are not tracked by npx skills.


Antigravity Agent — Specific Notes

Detection: npx skills detects Antigravity via existsSync(~/.gemini/antigravity) (global install path). The bridge detects it locally via (root / ".agent").exists(). Both are correct for their scope.

Skills dir: .agent/skills/<skill-name>/ — a full skill folder containing SKILL.md and supporting files, symlinked from .agents/skills/<skill-name>/.

Global skills dir: ~/.gemini/antigravity/skills/

Commands land in: .agent/workflows/ as Markdown files.

Rules land in: .agent/rules/ as individual Markdown files (not appended to a monolithic context file, unlike Claude/Gemini).

Hooks: Not supported by Antigravity — ignored silently.

Symlink fallback: On Windows without Developer Mode, symlinks fail silently. The installer falls back to a full directory copy and logs symlinkFailed: true.


Usage

Standard: npx skills (skills only)

# Install all skills from remote repo
npx skills add richfrem/agent-plugins-skills

# Install a single plugin's skills
npx skills add richfrem/agent-plugins-skills/plugins/my-plugin

# Update all tracked skills
npx skills update

# Remove a skill
npx skills remove skill-name
This installs skills only. Commands, rules, hooks, and MCP are not deployed. For full plugin deployment, use bridge_installer.py below.

Full Deployment: bridge_installer.py (skills + commands + rules + hooks)

Before reinstalling local changes, flush stale artifacts:

rm -rf .agents/ && npx skills remove --all -y

Install a single plugin:

python ./bridge_installer.py \
  --plugin plugins/my-plugin

Install all plugins:

python ./install_all_plugins.py

Dry run (preview only, no writes):

python ./bridge_installer.py \
  --plugin plugins/my-plugin --dry-run

Execution Protocol

CRITICAL: Do not run the installer without a Recap-Before-Execute summary. Always propose --dry-run first for any destructive or first-time operation.

Phase 1: Pre-flight Check

Before running the bridge, verify:

  1. Plugin path exists and has ./plugin.json
  2. At least one of .agent/, .claude/, .github/, .gemini/ exists (do NOT create these automatically — if missing, print the exact mkdir command and wait for user confirmation)
  3. No --target auto is used anywhere in the call chain

Phase 2: Recap-Before-Execute

State exactly what will happen:

### Bridge Installation Plan
- **Plugin**: plugins/my-plugin (v1.2.0)
- **Components**:
  - 2 skills → .agents/skills/ + symlinks
  - 3 commands → .agent/workflows/, .claude/commands/
  - 1 rules file → .agent/rules/, appended to CLAUDE.md
  - hooks.json → .claude/hooks/
- **Detected environments**: antigravity (.agent/), claude (.claude/)
- **Lock file**: will update skills-lock.json

> Proceed? (yes to run live, no to dry-run first)

Phase 3: Execute

Wait for explicit confirmation before running live. Default to dry-run.


Fallback Tree

1. Target directory not found

Do NOT create automatically. Print:

mkdir .agent  # for Antigravity
mkdir .claude # for Claude Code

Wait for user confirmation. A missing directory may mean an uninitialised project.

2. Plugin not found

Do NOT scan for similar names. Report the error and list plugins/ contents. Ask the user to confirm the correct plugin name.

3. Partial bridge (some components failed)

Report each failed component individually with its error. Do NOT claim success. Offer to retry individual components once the user resolves the issue.

4. --target auto attempted

STOP immediately. Ask the user to specify the exact environment name (antigravity, claude, gemini, github). Never run with --target auto.

5. Symlink failed (Windows)

Log symlinkFailed: true. Fall back to directory copy for that agent. Warn: "On Windows, enable Developer Mode for symlink support."

6. Lock file write failed

Log the error but do not abort the install. Warn the user that npx skills list/check/update may not reflect this installation.


DETECTABLE_AGENTS Reference

The bridge auto-detects agent environments by checking for these directories at project root. Each entry carries the component routing for that environment:

DETECTABLE_AGENTS = {
    ".agent": {
        "name": "antigravity",
        "skills": ".agent/skills",
        "commands": ".agent/workflows",   # Markdown, prefixed plugin_cmd
        "rules": ".agent/rules",          # Individual .md files
        "hooks": None,                    # Not supported
        "rules_mode": "files",            # vs "append" for Claude/Gemini
    },
    ".claude": {
        "name": "claude",
        "skills": ".claude/skills",
        "commands": ".claude/commands",   # Markdown
        "rules": None,                    # Append to CLAUDE.md instead
        "rules_append_target": "CLAUDE.md",
        "hooks": ".claude/hooks",
        "rules_mode": "append",
    },
    ".gemini": {
        "name": "gemini",
        "skills": ".gemini/skills",
        "commands": ".gemini/commands",   # TOML-wrapped
        "rules": None,
        "rules_append_target": "GEMINI.md",
        "hooks": None,
        "rules_mode": "append",
        "commands_format": "toml",
        # Note: TOML wrapper reads only the first `description:` line from frontmatter.
        # Single-line descriptions (e.g. `description: Deploy a skill`) work correctly.
        # Old multi-line YAML `>` blocks truncated to `>` — use single-line descriptions
        # in plugin commands/ files for correct Gemini wrapping.
    },
    ".github": {
        "name": "github",
        "skills": ".github/skills",
        "commands": ".github/prompts",    # .prompt.md extension
        "rules": None,
        "rules_append_target": ".github/copilot-instructions.md",
        "hooks": None,
        "rules_mode": "append",
        "commands_ext": ".prompt.md",
    },
    ".azure": {
        "name": "azure",
        "skills": ".azure/skills",
        "commands": None,
        "rules": None,
        "hooks": None,
    },
}

When to Use This Skill

  • Deploying a new plugin locally — full component installation including commands, rules, and hooks that npx skills won't handle
  • After modifying a plugin — re-run bridge to push changes to all envs
  • Adding a new target environment — existing plugins need re-bridging
  • Reconciling with npx skills ecosystem — write lock file entries so npx skills list/check/update sees bridge-installed skills
  • Debugging missing commands or rules — npx skills installs will be missing these; bridge install completes the picture

When NOT to Use This Skill

  • End-user consumption from remote repo — use npx skills add instead; it's simpler, has no Python dependency, and handles 30+ agents natively
  • Replicating plugin source to another project — use replicate-plugin
  • Auditing plugin structure — use maintain-plugins

Related Skills

  • maintain-plugins — structural audits, sync, orphan cleanup, README generation
  • replicate-plugin — copy plugin source between local project repositories
  • package-plugin — package a plugin into a distributable ZIP archive

平台分布

Codex

38.26%
按下载量换算38

Claude

29.36%
按下载量换算29

Cursor

19.05%
按下载量换算19

Gemini CLI

9.99%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills