Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计提醒

bridge-pluginbridge plugin 命令行

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

2

下载量

99
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

bridge-plugin 部署插件组件到 Agent 环境,使用 central store + symlink 模式管理。

  • 支持全栈技能安装与规则钩子集成,适用于扩展宿主能力。
  • 依赖 Python 3.8+ 和标准库,无需额外包。
  • 使用前应确认目标环境权限,避免覆盖关键系统配置。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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 rulesnpx 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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.26%
按下载量换算38

Claude

29.36%
按下载量换算29

Cursor

19.05%
按下载量换算19

Gemini CLI

9.99%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills