# Github Url Normalization And Clone

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

- Skill: `shyamsridhar123/github-url-normalization-and-clone` (Agent Skill)
- Install (CLI): `npx skillmds@latest add shyamsridhar123/github-url-normalization-and-clone`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shyamsridhar123/github-url-normalization-and-clone/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: shyamsridhar123 (https://skillmd.com/u/shyamsridhar123)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/shyamsridhar123/github-url-normalization-and-clone

---


# 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

