Skip to main content

RepoScope AI

PyPI Python License GitHub Actions GitHub stars CLI GitHub Action

RepoScope AI is a fast, deterministic CLI + GitHub Action that audits a Git repository and generates clear, actionable documentation — so you can understand any codebase in minutes, not hours.

It is designed for developers, contributors, freelancers, and maintainers who need to answer one question quickly:

“What am I looking at, and where should I start?”


🚨 The Problem

Opening an unfamiliar repository usually means wasting time figuring out:

  • Where is the entry point?
  • How is the project structured?
  • Which files are risky or too large?
  • Where can I safely make changes?
  • What should a new contributor know first?

Most repositories do not document these answers.


✅ The Solution

RepoScope analyzes a repository (local path or GitHub URL) and generates a small set of opinionated, human‑readable reports:

  • ARCHITECTURE.md — high‑level project structure and layout
  • RISKS.md — large files, missing tests, structural smells
  • ONBOARDING.md — guidance for new contributors
  • SUMMARY.md / SUMMARY.json — concise, shareable snapshot

All outputs are:

  • Deterministic by default
  • Versionable (plain Markdown / JSON)
  • Designed to be read by humans, not dashboards

👥 Who This Is For

  • Contributors — get context before opening a PR
  • Freelancers / consultants — audit a repo quickly and surface risk areas
  • New team members — know where to start and what to avoid
  • Maintainers — document repo shape and obvious smells automatically

If you’ve ever said “I need 30 minutes just to understand this repo”, this tool is for you.


📦 Installation

pip install reposcope-ai

Development install (editable):

pip install -e .

Install dev dependencies (tests):

pip install -e ".[dev]"

⚡ 30‑Second Repo Audit

Analyze a GitHub repository:

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

Analyze a local repository:

reposcope analyze .

Generated output:

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

🧠 Optional AI Explanations (Opt‑In)

RepoScope supports an AI explanations mode that adds explanations only to existing findings.

set REPOSCOPE_OPENAI_API_KEY=YOUR_KEY
reposcope analyze . --ai

AI design rules (important):

  • AI never discovers new issues
  • AI receives structured findings only
  • All AI text is clearly labeled as AI‑assisted explanation
  • If AI fails, RepoScope silently falls back to non‑AI output

AI is disabled by default.


🤖 GitHub Action (PR Integration)

RepoScope ships with a first‑class GitHub Action.

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: Siggmond/reposcope-ai@v0.1.0
        with:
          post-comment: "true"
          github-token: ${{ secrets.GITHUB_TOKEN }}

The workflow:

  • Runs RepoScope on the repo
  • Uploads .reposcope/ as artifacts
  • Optionally comments top risks on the PR (opt‑in)

🏷️ One‑Shot Badge

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

📄 Example Output

Excerpt from RISKS.md:

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

⚠️ Limitations (Honest)

  • Analysis is heuristic, not static analysis
  • Circular import detection is best‑effort
  • Build/run instructions are inferred and may be incomplete
  • Very large repos may take longer depending on file count

🔐 Trust & Safety

  • Deterministic output by default
  • AI is optional and clearly labeled
  • No hallucinated findings
  • No black‑box scoring

📜 License

MIT License


If you maintain repositories, review pull requests, or onboard developers, RepoScope AI is built to save you time.

Metadata

Release files for reposcope-ai 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reposcope-ai 0.10.0
File Size Uploaded
reposcope_ai-0.10.0.tar.gz 23.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reposcope-ai 0.10.0
File Interpreter ABI Platform
reposcope_ai-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 50.7 kB

Release files / reposcope_ai-0.10.0.tar.gz

Download URL reposcope_ai-0.10.0.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e10b1b82d48314e7d7244fd401fdf7aebcbf4e8030fb5b49da2baecf7d3470ea
BLAKE2b-256 checksum
How to use checksums
ccb9d6a5221c56042be355c9a5a24eccd2799c2d25ca7f81eacfa846f38422f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / reposcope_ai-0.10.0-py3-none-any.whl

Download URL reposcope_ai-0.10.0-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c37c83ab19ad822e7c4fb34ab9a9525c700094c3c64a72934cb428831565344d
BLAKE2b-256 checksum
How to use checksums
9486ea82c32a164d50fc0b58b8606909708d623487a64e6da2c40329ccd23513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page