Resolve skill repository versions over Git transport - #21
Closed
git-hulk wants to merge 1 commit into
Closed
Conversation
Add the Git transport layer of repository-versioned skill management:
querying refs and fetching snapshots through git instead of the GitHub
Releases, Tags, or Commits REST APIs, so the same code path supports
GitHub, GitHub Enterprise, and other Git hosts without REST quotas.
- ResolveVersion locks a user-supplied spec to an immutable version:
"latest" (or an omitted version) selects the highest stable SemVer
tag via ls-remote, falling back to the default branch's full HEAD
SHA when the repository has no stable SemVer tags; a branch or
short commit resolves to the full commit SHA; a prerelease tag is
selected only when named explicitly.
- fetchSnapshot shallow-fetches one tag or commit into a directory
and strips Git metadata, with a full-history fallback for hosts
that refuse fetching by SHA.
- Private repositories reuse whatever authentication Git already
has (SSH agent, credential helpers, .netrc, insteadOf rules);
prompts are disabled and stderr is credential-sanitized before it
is attached to errors.
Integration tests run against local fixture repositories routed
through Git insteadOf rules, which also exercises the design's claim
that local Git configuration chooses the transport. Adds
golang.org/x/mod for SemVer comparison.
Assistant By Fable 5
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
git-hulk
force-pushed
the
skills-git-transport
branch
from
September 1, 2026 02:18
5063e6f to
5c7618d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the Git transport layer of repository-versioned skill management:
querying refs and fetching snapshots through git instead of the GitHub
Releases, Tags, or Commits REST APIs, so the same code path supports
GitHub, GitHub Enterprise, and other Git hosts without REST quotas.
ResolveVersion locks a user-supplied spec to an immutable version:
"latest" (or an omitted version) selects the highest stable SemVer
tag via ls-remote, falling back to the default branch's full HEAD
SHA when the repository has no stable SemVer tags; a branch or
short commit resolves to the full commit SHA; a prerelease tag is
selected only when named explicitly.
fetchSnapshot shallow-fetches one tag or commit into a directory
and strips Git metadata, with a full-history fallback for hosts
that refuse fetching by SHA.
Private repositories reuse whatever authentication Git already
has (SSH agent, credential helpers, .netrc, insteadOf rules);
prompts are disabled and stderr is credential-sanitized before it
is attached to errors.
Integration tests run against local fixture repositories routed
through Git insteadOf rules, which also exercises the design's claim
that local Git configuration chooses the transport. Adds
golang.org/x/mod for SemVer comparison.
🤖 Generated with Claude Code