clone-repos

Clone and update SGLang and FlashInfer repositories with submodules from GitHub.

264|47|Updated Jun 30, 2025
One-click install
npx skills add https://github.com/flashinfer-ai/flashinfer-bench --skill clone-repos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clone-repos
Source: https://github.com/flashinfer-ai/flashinfer-bench/tree/main/.claude/skills/clone-repos
Command: npx skills add https://github.com/flashinfer-ai/flashinfer-bench --skill clone-repos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the setup of development environments by cloning necessary repositories from GitHub into a local tmp directory, simplifying kernel extraction workflows.

Core Features & Use Cases

  • Repository cloning & setup: Clones SGLang and FlashInfer into tmp/ with all submodules, checks out the specified branches, and installs from source for immediate development use.
  • Incremental updates: If repos already exist, pulls latest changes, updates submodules, and aligns with the requested branches.
  • Use Case: When starting a new kernel extraction project, run /clone-repos to prepare a ready environment with both repos and all dependencies.

Quick Start

Use the /clone-repos command to clone and set up the SGLang and FlashInfer repositories locally. Then you can proceed with further steps like /extract-kernel-definitions or /add-reference-tests.

Frequently Asked Questions about clone-repos

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clone SGLang and FlashInfer repositories with submodules for development?

To clone SGLang and FlashInfer repositories with submodules, this Skill runs git clone --recurse-submodules into a local tmp directory. It checks out the specified branches and installs from source via pip install -e to prepare a ready-to-use environment.

How do I update existing GitHub repositories and pull the latest changes for kernel workflows?

To update existing GitHub repositories for kernel workflows, this Skill performs incremental updates by running git fetch, pulling latest changes, updating submodules, and aligning with the requested branches. If the directories do not exist, it performs a fresh clone instead.

What is the best way to set up a kernel extraction development environment from GitHub source?

The best way to set up a kernel extraction development environment from GitHub source is to automate the cloning, branch checkout, and pip installation of SGLang and FlashInfer. This Skill handles the entire process to ensure all dependencies and submodules are correctly configured.

Do I need Git and Python pip installed to clone and prepare repos for kernel extraction?

Yes, you need Git and Python pip installed to clone and prepare repos for kernel extraction. The workflow relies on Git commands like git clone and git fetch, alongside Python's pip install -e to install the cloned repositories from source.

Can I checkout a specific branch when cloning SGLang and FlashInfer for kernel workflows?

Yes, you can checkout a specific branch when cloning SGLang and FlashInfer for kernel workflows. The Skill defaults to the main branch but allows you to specify a different branch during the repository setup and update process.

Why does cloning repositories with submodules sometimes fail to align with the requested branch?

Cloning repositories with submodules can fail to align with the requested branch if local changes conflict or if the fetch does not complete. This Skill addresses that by updating submodules and ensuring the local repository state matches the requested branch.