agentsclimarketplace

Github clone workspace

Skill shuymn/skills/skills/github-clone-workspace

Personal agent skills

Install
npx -y skills add shuymn/skills --skill github-clone-workspace

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Clones public GitHub repository or /tree/<ref>/<directory> URLs into temporary local workspaces for code inspection. Use when the user provides a GitHub repo/tree URL and local read/search/bash inspection would help.

SKILL.md

2.4 KB, as published. Nobody here has run it

Path Resolution

<skill-root> is the directory containing this SKILL.md. Resolve scripts/... relative to it, not the caller's current working directory.

GitHub Clone Workspace

Scope

Use this skill to clone a public GitHub repository into a temporary directory, then inspect it locally with read/search/bash tools.

Supported URLs:

  • https://github.com/owner/repo
  • https://github.com/owner/repo/tree/<ref>/<directory>

Unsupported URLs:

Workflow

  1. Run the bundled script:

    python <skill-root>/scripts/github_clone_workspace.py 'https://github.com/owner/repo'
    

    Optional local clone directory name:

    python <skill-root>/scripts/github_clone_workspace.py 'https://github.com/owner/repo/tree/main/packages/app' --directory-name repo-copy
    
  2. Read the printed path: value.

  3. Use that absolute path for subsequent Read, Grep, Glob, or read-only Bash commands such as find/ls.

  4. Tell the user the workspace name/path you used.

  5. When finished, run the printed cleanup command. If using --json, remove the printed tempRoot path.

Behavior

The script:

  • clones with git clone --depth 1 --filter=blob:none --single-branch;
  • resolves /tree/<ref>/<directory> refs using git ls-remote --heads --tags;
  • uses the tree subdirectory as the effective inspection path;
  • rejects unsafe owner/repo/ref values and unsafe --directory-name values;
  • rejects URL subpaths that escape the cloned repository or do not resolve to directories;
  • times out git operations after 30 seconds;
  • does not fetch submodules.

Error Handling

  • If a /blob/ URL is provided, explain that file URLs are unsupported and ask for the repository URL or a /tree/<ref>/<directory> URL.
  • If git ls-remote or git clone fails because the repository is private or inaccessible, tell the user this skill only supports public repositories unless their local git credentials already permit access.
  • If the script exits with an error, report the exact error and stop rather than guessing a path.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.