From odh-ai-helpers
Shallow clones Git repositories to temporary directories via Bash script for local analysis, bypassing web APIs. Outputs path for inspection and manual cleanup.
npx claudepluginhub opendatahub-io/ai-helpers --plugin odh-ai-helpersThis skill is limited to using the following tools:
Provides a script for creating a shallow clone of a Git repository to a temporary location. This skill should be used
Explores and analyzes local or remote repositories (GitHub, GitLab, Bitbucket) using read-only Claude Code CLI to answer questions on structure, API, architecture, and implementation.
Downloads files, folders, or repos from GitHub URLs via gitload CLI without full git clone. Supports specific paths, private repos with auth, ZIP exports.
Explains Git 2.49+ features like reftables migration, sparse-checkout, partial clone, git-backfill, and worktrees for large repos and performance gains.
Share bugs, ideas, or general feedback.
Provides a script for creating a shallow clone of a Git repository to a temporary location. This skill should be used to analyze repository contents locally instead of using web APIs.
Use the scripts/shallow-clone.sh script in this directory, for example:
./scripts/shallow-clone.sh <repository_url> [<tag_or_branch>]
The script will print the path to the cloned repository when done, for example:
$ ./scripts/shallow-clone.sh https://github.com/psf/requests.git
Cloning https://github.com/psf/requests.git (shallow, ref: HEAD) to /tmp/shallow-clone-DDqkuv...
/tmp/shallow-clone-DDqkuv/repo
After analyzing the local repository, clean up the temporary directory with:
$ rm -rf <path_to_temporary_directory>