cli/pkg
Sam Morrow 50f0f8fc68
feat(skills): detect re-published skills and offer upstream install
When installing a skill whose SKILL.md contains github-repo metadata
pointing to a different repository, the CLI detects it as a re-published
skill and offers to redirect the install to the upstream source.

In interactive mode, the user is prompted to choose between the
re-publisher (default) and the upstream. In non-interactive mode,
the install proceeds from the re-publisher with a notice.

The --upstream flag skips the prompt and redirects to upstream directly,
enabling non-interactive upstream installs in CI/scripts.

If the user chooses upstream, the install restarts from that repo,
resolving the latest version and discovering skills fresh. A
skill_upstream_redirect telemetry event is emitted to track redirects.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-21 18:39:35 +02:00
..
cmd feat(skills): detect re-published skills and offer upstream install 2026-04-21 18:39:35 +02:00
cmdutil Apply review feedback 2026-04-17 12:28:52 +02:00
extensions Suggest and install official extensions via stub commands 2026-04-16 17:58:37 +02:00
findsh chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
githubtemplate Add issue create --editor 2024-07-09 21:01:50 +09:00
httpmock refactor(api): add IssueRepoInfo for minimal issue repo queries 2026-03-09 11:30:02 +00:00
iostreams Fix gofmt alignment for prompter-enabled fields in IOStreams 2026-03-26 14:24:56 +01:00
jsoncolor Fix invalid ANSI SGR escape code in JSON and diff colorization 2026-02-18 17:52:01 -07:00
jsonfieldstest Add tests for JSON field support on issue and pr view commands 2024-07-12 17:35:54 +02:00
markdown Allow user to override markdown wrap width via $GH_MDWIDTH from environment 2024-10-04 17:43:06 -07:00
option Rework ref usage when finding and creating PRs 2025-04-15 13:38:10 -06:00
search Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
set Add GH_HOST to hosts list if it has corresponding auth token (#5087) 2022-01-29 07:37:24 +00:00
ssh Minor nit suggestion 2024-11-06 16:12:55 -05:00
surveyext Unify use of tab indent in non-test source files 2024-08-03 00:35:30 +08:00