Skip to content

[Bug]: Skills from plugins loaded with the Claude --plugin-dir launch arg are missing from the $ and / menus #39895

Closed

Description

@mixmav

Before submitting

Area

apps/server

Steps to reproduce

  1. Make a local plugin folder, for example /path/to/acme with .claude-plugin/plugin.json ({"name":"acme"}) and skills/qa/SKILL.md.
  2. In T3 Code, set the Claude provider instance's Launch Args to --plugin-dir /path/to/acme.
  3. Start a Claude thread and type $acme or /acme.
  4. Send $acme:qa check the login flow.

Expected behavior

The menu lists acme:qa, the same as when the folder is in CLAUDE_CODE_PLUGIN_DIRS or when you run claude --plugin-dir /path/to/acme. Sending $acme:qa ... runs the skill natively as /acme:qa ....

Actual behavior

The menu does not list acme:qa. The agent does have the skill, because the adapter passes each --plugin-dir to the SDK as a local plugin. $acme:qa is sent as plain text, because planClaudeSkillDispatch only rewrites names that skill discovery returned.

Root cause

discoverClaudeSkills (apps/server/src/provider/Drivers/ClaudeSkills.ts) reads inline plugins from CLAUDE_CODE_PLUGIN_DIRS only. It already parses the instance's launch args, but only for --add-dir. claudeLaunchArgPluginDirectories in ClaudeAdapterV2.ts reads every --plugin-dir for the SDK's plugins option, and discovery never sees those directories.

Impact

Minor bug or occasional failure

Version or commit

ccabed0 (main)

Environment

Claude Code 2.1.329, a Claude provider instance with --plugin-dir <dir> in its launch args.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions