Skip to main content

CLI tool that analyzes a Git repository and generates actionable reports

Project description

RepoScope AI

RepoScope is a CLI tool that analyzes a repository (local path or GitHub URL) and writes actionable repo intelligence into files.

What problem this solves

When you open an unfamiliar repository, you usually waste time answering basics:

  • Where is the entry point?
  • What’s the project shape?
  • Where are the risky areas?
  • Where should I start making changes?

RepoScope generates a small set of opinionated reports so you can get productive quickly.

Why GitHub users need it

  • [contributors] Get context fast before sending a PR.
  • [freelancers] Audit a repo quickly and surface likely risk areas.
  • [new team members] Find the safe places to start and the risky parts to avoid.
  • [maintainers] Document repo shape and obvious smells for newcomers.

Installation

python -m pip install reposcope-ai

Development install (editable):

python -m pip install -e .

Install dev dependencies (tests):

python -m pip install -e ".[dev]"

30-second Repo Audit

reposcope analyze https://github.com/user/repo

Output folder:

.reposcope/
├── ARCHITECTURE.md
├── RISKS.md
├── ONBOARDING.md
├── SUMMARY.json
└── SUMMARY.md

Usage

Analyze a local repo:

reposcope analyze .

Analyze a GitHub repo:

reposcope analyze https://github.com/user/project

AI explanations mode (optional):

set REPOSCOPE_OPENAI_API_KEY=YOUR_KEY
reposcope analyze . --ai

Output

RepoScope writes its results into:

.reposcope/
├── ARCHITECTURE.md
├── RISKS.md
├── ONBOARDING.md
├── SUMMARY.json
└── SUMMARY.md

One-shot badge

[![RepoScope](https://img.shields.io/badge/RepoScope-Analyzed-blue)](https://github.com/OWNER/REPO/actions)

GitHub Action (workflow integration)

Create .github/workflows/reposcope.yml:

name: RepoScope

on:
  pull_request:
  workflow_dispatch:

permissions:
  contents: read
  pull-requests: write

jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: reposcope-ai/analyze-repo@v1
        with:
          post-comment: "true"
          github-token: ${{ secrets.GITHUB_TOKEN }}

The workflow uploads .reposcope/ as artifacts. PR commenting only happens when the workflow enables it.

Sample output

After running reposcope analyze ., open .reposcope/RISKS.md.

Example snippet:

# Risks & Smells

## God files (very high line count)
- `src/something/big_file.py` (1203 lines)

Notes

  • Reports are best-effort heuristics.
  • AI is optional and disabled by default.
  • AI mode only adds AI-assisted explanation to existing findings. It does not add new findings.
  • If AI fails for any reason, RepoScope falls back to non-AI output.

Limitations (honest)

  • Circular import detection is best-effort (currently focused on Python-style imports).
  • Build/run instructions are inferred from common files and may be incomplete.
  • Very large repos may take longer depending on file count.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reposcope_ai-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reposcope_ai-0.1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file reposcope_ai-0.1.0.tar.gz.

File metadata

  • Download URL: reposcope_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for reposcope_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb9fccb8e27e0a0e1901d35c663ebe08ea6c35d5ef691752df7fcf435d2c2686
MD5 b260271926f3b49608e21d57dc218532
BLAKE2b-256 ee063f27a2b3f05bdb21f3ab03241d66f69a8e7e39704cae97410f87880fce70

See more details on using hashes here.

File details

Details for the file reposcope_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reposcope_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for reposcope_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77ef430c06f3ee757a0f75568152ccbd877fc3af668a08afabee5771ded1f59a
MD5 17081a762cf4f47516f5894c83271ed3
BLAKE2b-256 79b8f260077b40e021b075c6a80b50b2bdcf216defc0c3ba79511297a9787a89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page