Github Url Normalization And Clone

Normalize GitHub URLs and perform shallow clones to a temp directory with cleanup.

shyamsridhar123 8a4ad44 800 B Updated

File contents

Github Url Normalization And Clone

Normalize GitHub URLs and perform shallow clones to a temp directory with cleanup.

When to Use

Use this skill when:

  • Working with code in src/utils/git.ts/
  • User mentions "git"
  • User mentions "clone"
  • User mentions "github url"
  • User mentions "normalize"
  • User mentions "shallow"

Patterns

  • GitHub URL detection and normalization
  • temp dir naming with random suffix
  • shallow clone with --depth 1
  • cleanup via fs.rm on completion

Examples

const { path, cleanup } = await cloneRepo(url); await cleanup();

Category

reliability - Error handling, recovery, and fault tolerance

shyamsridhar123/agentsmith-cli/tree/main/.github/skills/github-url-normalization-and-clone commit 8a4ad44c0e

Frequently asked questions

npx skillmds@latest add shyamsridhar123/github-url-normalization-and-clone