gitagent icon indicating copy to clipboard operation
gitagent copied to clipboard

Add support for installing skills and agents from git repos with non-standard domain names (e.g. github enterprise)

Open gtshepard opened this issue 6 months ago • 1 comments

Problem

Installing a skill from from git repos with non-standard domain names (e.g. github enterprise instances with a custom domain) currently requires a local clone and --provider local:

gitagent skills install --provider local <local-path>/<repo>/skills/<skill>

This clone step adds friction to development workflows and is inconsistent with gitagent run -r, which already accepts a repository URL, for example:

gitagent run -r https://<mygit>.com/<org>/<repo>

Solution

Allow skills (and agents) to be installed directly from a Git repository URL, similar to gitagent run -r.

Possible formats:

gitagent skills install --provider git https://<mygit>.com/<org>/<repo>/skills/<skill>

or

gitagent skills install -r https://<mygit>.com/<org>/<repo>/skills/<skill>

gtshepard avatar May 06 '26 14:05 gtshepard

Apologies for the wait.

This belongs in the protocol repo (gapman skills install and the registry provider live at https://github.com/open-gitagent/gitagent-protocol).

The concrete fix is in src/utils/registry-provider.ts of the protocol repo: the git-source detection currently checks specifically for github.com / gitlab.com / bitbucket.org hostnames before treating a URL as a git source. Adding a generic git URL detector (anything matching https://<host>/<org>/<repo>(.git)? or git@<host>:<org>/<repo>(.git)?) would cover GitHub Enterprise, self-hosted GitLab, Gitea, sourcehut, etc.

I'll re-file there as a small focused issue, tag good first issue. Closing here to keep the tracker single-rooted. Thanks for the clean problem statement.

shreyas-lyzr avatar May 13 '26 13:05 shreyas-lyzr