Token导航 LogoToken导航TokenDH.com
前端设计权限需确认github未标认证来源可访问许可证需确认审计通过

install-plugin-to-socket将插件安装到套接字

Agent Skill

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

总安装

186

周安装

8

GitHub Stars

1

下载量

65
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gaelic-ghost/agent-plugin-skills --skill install-plugin-to-socket

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • install-plugin-to-socket 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Install Plugin To Socket

Wire an in-development Codex plugin into Codex's documented local plugin surfaces.

This skill is for local Codex plugin development workflows. It does not publish plugins, does not manage the official plugin directory, and does not claim undocumented control over Codex's installed-plugin cache internals.

Inputs

  • Required: source plugin directory

- for mutating actions, this must be the plugin root containing .codex-plugin/plugin.json - verify may also accept a repo root that contains exactly one staged plugin under plugins/ or exactly one marketplace-resolved plugin root

  • Optional: scope

- default: personal - repo - personal

  • Optional: config path override

- --config <path> - when omitted, resolve defaults from: - .codex/profiles/install-plugin-to-socket/customization.yaml - ~/.config/gaelic-ghost/agent-plugin-skills/install-plugin-to-socket/customization.yaml

  • Optional: target repo root when scope=repo

- default: current working directory when the helper is run from the target repo

  • Optional: action

- install - update - uninstall - verify - repair - enable - disable - promote

  • Optional: install mode

- default: copy - copy - symlink

  • Optional: Codex config path override

- --codex-config-path <path>

  • Optional: whether the request is check-only planning or real apply behavior

Workflow

  1. Confirm the task is local Codex plugin wiring, not generic plugin authoring or metadata review.
  2. Resolve the effective source plugin root and read the plugin manifest at .codex-plugin/plugin.json.

- Keep repo-root source auto-detection as a verify-only convenience. - For install, update, uninstall, repair, enable, disable, and promote, require the canonical plugin root directly.

  1. Infer the plugin name, version, description, interface metadata, and optional plugin surfaces from that manifest.
  2. Use scripts/install_plugin_to_socket.py in check-only mode first.
  3. Resolve the effective install scope in this order:

- explicit --scope - explicit --config - repo profile - global profile - built-in default personal

  1. For personal scope, target:

- ~/.codex/plugins/<plugin-name> - ~/.agents/plugins/marketplace.json

  1. For repo scope, target:

- $REPO_ROOT/plugins/<plugin-name> - $REPO_ROOT/.agents/plugins/marketplace.json

  1. Keep marketplace source.path relative to the marketplace root, prefixed with ./, and inside that root.
  2. Merge one plugin entry into the marketplace without overwriting unrelated entries.
  3. Default to the documented Codex local-plugin flow:

- stage the plugin at the repo or personal plugin path - point the marketplace entry at that staged path - for personal-scope install, also write the plugin enabled state to ~/.codex/config.toml with enabled = true

  1. Use copy mode as the default because it matches the current OpenAI examples for local plugin installs and gives Codex a stable staged plugin tree to recache from.
  2. Treat update as the update workflow when the source clone is ahead of the staged install copy. It should recopy the source plugin tree into the staged path and rewrite the marketplace entry if needed.
  3. Treat verify as the audit-oriented workflow for checking whether the staged plugin tree, marketplace entry, optional plugin surfaces, and config-state expectations still match the source plugin.
  4. Treat repair as the bounded repair workflow when the intended staged plugin should keep its current scope, but the local install surface drifted. In repo scope, it may also normalize the common legacy case where the repo's own plugin marketplace entry still points at ./ instead of ./plugins/<plugin-name>.
  5. Treat enable and disable as explicit Codex config-state workflows backed by ~/.codex/config.toml entries in the form [plugins."plugin-name@marketplace-name"].
  6. Treat promote as the bounded workflow that copies the source plugin into personal scope, writes the personal marketplace entry, carries forward the repo install's enabled-state if present, and then removes the repo-local install surface.
  7. Treat symlink mode as an advanced local-dev override only when a maintainer explicitly wants a staged in-scope symlink instead of the documented copied tree.
  8. For install, update, and repair, materialize the staged plugin path in the chosen mode and update the marketplace entry.
  9. For personal-scope install, enable the plugin by default in ~/.codex/config.toml after wiring the staged plugin tree and marketplace entry.
  10. For uninstall, remove only the matching marketplace entry, staged plugin path, and matching plugin config-state entry for that install target.
  11. After apply behavior, tell the maintainer to restart Codex and verify that the plugin appears in the plugin directory or reflects the intended enabled-state.

Usage Examples

  • Personal install:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root plugins/agent-plugin-skills --action install --run-mode apply - this now enables the personal-scope plugin by default in ~/.codex/config.toml

  • Repo-local install:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --scope repo --repo-root /path/to/target-repo --action install --run-mode apply

  • Update a staged copied install after source changes:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --action update --run-mode apply

  • Remove a local install cleanly:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --action uninstall --run-mode apply

  • Verify an already wired install without mutating it:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --action verify --run-mode check-only --print-md

  • Repair a drifted install surface in one pass:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --scope repo --repo-root /path/to/target-repo --action repair --run-mode apply

  • Enable or disable a wired plugin in Codex config:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --action enable --run-mode apply - uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --action disable --run-mode apply

  • Promote a repo-local install into personal scope:

- uv run python skills/install-plugin-to-socket/scripts/install_plugin_to_socket.py --source-plugin-root /path/to/plugin --scope repo --repo-root /path/to/target-repo --action promote --run-mode apply

Repairing Drifted Installs

Use this skill as the repair surface for bad or stale local Codex plugin installs.

Common repair cases:

  • missing-target-plugin-root

- The marketplace entry exists, but the staged plugin path is missing. - Fix: rerun install in the intended mode.

  • missing-marketplace-entry

- The staged plugin path exists, but the marketplace does not expose it. - Fix: rerun install in the intended mode.

  • stale-marketplace-entry

- The marketplace entry points at the wrong staged path or has stale metadata. - Fix: rerun update in the intended mode.

  • stale-target-materialization

- The staged plugin path is present, but its materialization does not match the requested mode. - Fix: rerun update with the intended copy or symlink mode.

  • stale-target-copy

- The staged plugin tree is a copied install, but its contents no longer match the current source plugin tree. - Fix: rerun update in copy mode so the staged Codex install path is updated from the source clone.

  • invalid-marketplace-entry-empty-relative-source-path

- A repo-local marketplace entry points at ./, which Codex may reject for the whole marketplace. - Fix: run repair in repo scope so the repo's own plugin is restaged under plugins/<plugin-name>/ and the marketplace entry is rewritten to that staged path.

  • missing-plugin-enabled-state

- Codex config does not include an explicit enabled-state entry for the plugin key. - Fix: rerun install for a missing personal install default-enable, or rerun enable / disable when the intended state differs.

  • stale-plugin-enabled-state

- Codex config includes a plugin entry, but the enabled-state does not match the requested workflow. - Fix: rerun enable or disable, depending on the intended state.

  • missing-mcp-surface, missing-app-surface, missing-hooks-config, missing-interface-asset

- The source plugin manifest or optional plugin packaging surfaces are incomplete. - Fix: repair the plugin packaging before trusting the staged local install.

Preferred repair flow:

  1. Run the helper in check-only mode first.
  2. Confirm the intended scope and install mode.
  3. Use update when the staged path and marketplace entry should continue to exist but need to be rewritten.
  4. Use repair when the drift includes invalid repo-local marketplace wiring, a missing staged plugin root, or a legacy repo-root plugin entry that should be normalized to plugins/<plugin-name>/.
  5. Use install when a new personal install should take the default enabled path, and use enable or disable when marketplace wiring is correct but Codex config-state needs an explicit follow-up change.
  6. Use promote when a repo-local install should become the personal default install surface instead.
  7. Use uninstall and then install when the staged path belongs to the wrong source plugin, the wrong scope, or the wrong plugin name.
  8. Restart Codex after the repair so the local marketplace view and installed cache pick up the staged plugin changes.

Troubleshooting

  • If a repo-local plugin still does not show up after install, update, or repair, fully restart Codex in that repo. A live workspace can continue using the marketplace view it loaded before the install surface changed.
  • If /plugins still looks wrong after restart, check ~/.codex/log/codex-tui.log for marketplace warnings such as skipping marketplace or local plugin source path must not be empty.
  • Repo-local plugin visibility is scoped to the repo that owns .agents/plugins/marketplace.json. Use personal scope when the same plugin should be broadly available across repos.
  • The /plugins slash command ordering may not be intuitive or obviously alphabetical, so scan the full list before concluding a plugin is missing.

Remaining Gaps

  • This skill now manages Codex plugin enable or disable state through ~/.codex/config.toml, but it does not try to manage project-scoped .codex/config.toml overrides.
  • The current overwrite policy still uses replace-in-place semantics for staged targets; backup and fail-on-existing variants remain planned work.

Output Contract

  • Return a short summary plus JSON with:

- run_context - include config resolution context such as config_path and scope_source - scope - action - install_mode - source_plugin - target_plugin_root - marketplace_path - codex_config_path - plugin_config_key - findings - apply_actions - restart_required - verification_steps - errors

  • If there are no findings, no apply actions, and no errors, output exactly No findings.

Guardrails

  • Never overwrite an existing marketplace catalog wholesale.
  • Never point source.path outside the marketplace root.
  • Never point a repo marketplace directly at an adjacent plugin repo outside the chosen marketplace root; use a staged copy or a staged symlink path inside the scope root instead.
  • Never delete the source plugin repo during uninstall; only remove the staged install target path.
  • Never claim that updating the marketplace file alone installs a plugin into undocumented Codex internals.
  • Never use this skill to publish a plugin publicly.
  • Never touch Claude plugin wiring here; this skill is for Codex local plugin development surfaces.

References

  • references/customization-schema.md
  • references/local-plugin-install-notes.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.62%
按下载量换算23

Claude

31.69%
按下载量换算21

Cursor

17.75%
按下载量换算12

Gemini CLI

10.55%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills