title: agentskills-git description: Read Agent Skills from Git repositories at immutable commits.
Read Agent Skills from a Git repository at a ref resolved to an immutable commit. The provider
uses Git and delegates skill reads to agentskills-fs.
Install
pip install agentskills-git
Python 3.12 or newer and the Git command-line executable must be available on PATH.
The configured repository must already contain valid skill directories. Set subdirectory
when they are beneath a folder such as skills/ rather than the repository root.
Usage
import asyncio
from pathlib import Path
from agentskills_core import SkillRegistry, capture_skill
from agentskills_git import GitSkillProvider
async def main() -> None:
provider = GitSkillProvider(
"https://github.com/example/skills.git",
"main",
Path(".cache/agent-skills"),
subdirectory="skills",
)
registry = SkillRegistry()
await registry.register_all(provider)
print(provider.resolved_commit)
snapshot = await capture_skill(registry.get_skill("incident-response"))
for file in snapshot.files:
print(file.path, file.digest)
asyncio.run(main())
Replace the repository URL, ref, and skill ID with your source. The directory layout matches
the filesystem provider.
A branch or tag is resolved on first access. That provider instance continues to use the same
commit even when the remote ref moves. Construct a new provider with refresh=True to fetch
the ref again. The provider holds a cache lease for its lifetime and releases it through its
finalizer. There is no public close or aclose method.
Security and limits
The provider does not run repository hooks, submodules, or skill scripts. It ignores system and global
Git configuration and disables the ext transport. Symlink entries are rejected. The cache has a
configurable size limit per checkout (max_cache_bytes, 256 MiB by default) and a 1 GiB total
limit (max_total_cache_bytes). Least-recently-used inactive checkouts are evicted to stay within
the total limit. File locks protect active checkouts across processes. Remote authentication uses Git's supported transport
mechanisms, except credentials from global Git configuration are not loaded by this provider.
Broader Git host compatibility is still being tested.
Metadata
Release files for agentskills-git 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentskills_git-0.8.0.tar.gz | 6.9 kB | With provenance | Details for agentskills_git-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentskills_git-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for agentskills_git-0.8.0-py3-none-any.whl |
Total release size: 14.9 kB
Release files / agentskills_git-0.8.0.tar.gz
| Download URL | agentskills_git-0.8.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cd0e4478e1e38c209782490af7e94e3ed7a53cd3f0633624814df06d13fb765
|
|
BLAKE2b-256 checksum How to use checksums |
0d1a7230671e56ec42709c015163b352a10b76f610d0bf38e331b611558c6019
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / agentskills_git-0.8.0-py3-none-any.whl
| Download URL | agentskills_git-0.8.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc7a13858a59b2ae29975a830e1e22345152fe6e14e5bb526e78046efa0f8004
|
|
BLAKE2b-256 checksum How to use checksums |
712e5ed1141e670e5c7786d7576749a0d3ee276a4b6b472dfc090aee6665da1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for agentskills-git 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for agentskills_git-0.8.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.