Expand description
Detect when a Claude Code / Codex plugin already provides our skills,
so devboy onboard can skip re-installing into the same agent dir.
ADR-018 §5: when the user runs /plugin install devboy@meteora-devboy,
Claude Code records the plugin in ~/.claude/settings.json#enabledPlugins.
At that point the plugin’s skills/ directory is already on the agent’s
search path; another copy of ~/.claude/skills/devboy-* would just
shadow the namespaced versions. We detect the marker and skip the
Claude (or Codex) install target entirely.
Detection is exact — we match the plugin id against three concrete
enabledPlugins shapes that Claude Code and Codex CLI have produced
across their releases. A loose substring scan would be unsafe: a false
positive here causes devboy onboard to skip skill installation, which
would leave the user without skills (the plugin we thought was loaded
turns out not to be ours).
Structs§
- Plugin
Id - A plugin’s identity inside a marketplace.
Constants§
- DEVBOY_
PLUGIN - The DevBoy plugin identity. Used by the onboard dedup logic.
Functions§
- is_
claude_ plugin_ enabled trueif~/.claude/settings.jsonenables the given plugin.- is_
codex_ plugin_ enabled trueif~/.codex/settings.jsonenables the given plugin.