Skip to content

Install a command declared by a plugin and update it with the plugin #897

Open

Description

@salmonumbrella

What problem does this solve?

skillshare plugin update --all keeps the agents-context-router plugin current. It does not keep the ai-context command current.

The command is a copied file, scripts/ai-context.py from runkids/agents-context-router, linked onto PATH by something else. A new plugin version does not replace that link. The installed plugin already contains skills/agents-context-router/scripts/ai-context.py, but the content directory name includes a hash, so a symlink to it breaks on the next update.

An extra cannot close this. Extras copy a file the operator already has. They do not pull a plugin's command when the plugin updates.

Desired outcome

A plugin can declare a command. plugin install and plugin update put that command on PATH and replace it when the plugin updates. For this plugin the command is ai-context, and the file is skills/agents-context-router/scripts/ai-context.py.

Removing the plugin removes the command it installed. A command the operator installed by hand is left alone.

Surface impact

  • Plugin manifest
  • plugin install and plugin update

Implementation ideas

Do not special-case this one repository. One declared command field covers it. The plugin's plugin.json does not have that field today, so the router repo adds it after the field exists.

Activity

  1. salmonumbrella commented on Nov 14, 2026

    @salmonumbrella
    ContributorAuthor

    I'm working on this. The change will let a plugin declare executable files in the portable manifest's extension metadata, then manage those commands with the plugin's install, update and removal lifecycle.

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