| name | remy-reposcout |
| description | Analyze a GitHub repository in two stages: metadata assessment via GH CLI, then sandboxed deep inspection upon confirmation. |
Repository Audit Skill
This skill allows you to safely inspect GitHub repositories without polluting your main workspace. It operates in two stages to prevent unnecessary cloning of massive repositories.
Requirements:
git
gh (GitHub CLI) - Must be authenticated (gh auth login)
Usage
/remy-reposcout <url>
Workflow
Stage 1: Reconnaissance (Metadata Analysis)
- Validate URL: Ensure the input is a valid GitHub URL.
- Fetch Metadata: Execute
gh repo view <url> --json description,stargazerCount,diskUsage,defaultBranchRef.
- Fetch README:
- Extract the
owner/repo from the URL.
- Execute
gh api repos/<owner>/<repo>/readme --jq .content | python -c "import sys, base64; print(base64.b64decode(sys.stdin.read().strip()).decode('utf-8', errors='replace'))".
- Report & Ask: Present a summary including the full README content.
- CRITICAL CHECK: If
diskUsage > 500MB, WARN the user.
- YOU MUST Ask the user if they want to proceed with a full clone (Stage 2).
- STOP generation here. Wait for user confirmation.
Stage 2: Deep Inspection (Sandboxed Clone)
Only execute this after user confirmation.
- Run Runner Script: Execute the bundled Python script. This script performs a secondary size check, clones the repo to
%TEMP%, and generates a structure report.
- Analyze: Review the generated file tree and tech stack.
- Interact: Use standard tools (
Glob, Grep, Read) to explore the files in the temp directory.
- Cleanup: When the user is done or the session ends, YOU MUST delete the temp directory using the command provided in the report.
Execution Instructions
To run the analysis script (Stage 2), execute:
python ~/.claude/skills/remy-reposcout/scripts/audit_runner.py <repo_url> [--force]