Our review
Performs a shallow clone of a Git repository to a temporary location for local analysis.
Strengths
- Avoids relying on web APIs to inspect repository content.
- Fast and bandwidth-efficient due to shallow cloning.
- Cleanup of the temporary directory is straightforward.
Limitations
- Only fetches recent history (default: a single commit).
- Requires Git to be installed on the system.
- The temporary directory must be manually deleted after use.
Use this skill when you need to locally analyze the contents of a Git repository without using web APIs.
Do not use it if you require the full commit history or need to work with the repository long-term.
Security analysis
SafeThe skill instructs to run a local script for shallow cloning a Git repository; no destructive or exfiltrating commands are present in the description, and the cleanup is user-initiated.
No concerns found
Examples
Shallow clone the repository https://github.com/psf/requests.git to a temporary directory for analysis.Use shallow clone to get the 'main' branch of https://github.com/example/repo.git into a temp folder.Clone https://github.com/angular/angular.git shallowly and then list the top-level files in the cloned directory.name: git-shallow-clone description: Perform a shallow clone of a Git repository to a temporary location. allowed-tools: Bash
Shallow Clone
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.
Usage
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>
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.