REPOCHECKAI(1)

NAME

repocheckaiAgentic CLI Tool for GitHub Repository Health Analysis

SYNOPSIS

INFO

109 stars
9 forks
0 views
TypeScriptAI & LLM

DESCRIPTION

Agentic CLI Tool for GitHub Repository Health Analysis

README

RepoCheckAI Banner

🩺 RepoCheckAI

AI-powered GitHub Repository Health Analyzer
Built with the GitHub Copilot SDK — the same AI agent runtime that powers Copilot CLI.

Stars Forks CI npm version Coverage License Dependencies Bundle Size

WebsiteQuick StartFeaturesHow It WorksCommandsDocumentation


📖 Overview

RepoCheckAI is your repository's AI doctor that diagnoses issues and prescribes solutions. It performs comprehensive health checks across 6 critical areas — documentation, developer experience, CI/CD, testing, governance, and security — delivering a detailed diagnosis with prioritized findings (P0/P1/P2) and actionable remediation steps.

Two Analysis Modes

ModeDescriptionUse Case
🔍 Quick ScanAnalyzes via GitHub API (up to 20 file reads)Fast checks, governance review
🔬 Deep AnalysisFull source scan using RepomixCode quality, architecture review

✨ Features

🤖 AI-Powered Analysis

  • 11+ AI Models — GPT-4o, Claude Sonnet 4, GPT-5.3-Codex, o3, and more
  • Contextual Understanding — Adapts to your stack
  • Evidence-Based — Every finding backed by file evidence

📊 Comprehensive Reports

  • Health Score — Overall percentage (0-100%)
  • Prioritized Findings — P0 (critical), P1 (high), P2 (suggestions)
  • Actionable Steps — Code snippets included

💬 Interactive CLI

  • Slash Commands/analyze, /deep, /copy, /export
  • Chat Interface — Ask follow-up questions
  • Streaming Output — Real-time analysis

Auto-Publish Issues

  • One-Click Issue Creation--issue flag creates structured GitHub issues
  • Prioritized Findings — P0/P1/P2 labels with detailed descriptions
  • Team Collaboration — Automated tracking of repository health issues
  • CI/CD Integration — Perfect for automated health checks

🔐 Security First

  • Prompt Injection Protection — File content treated as data
  • Token Management — Secure GitHub authentication
  • No Data Storage — Analysis runs locally

📢 Publishing Features

Automatically publish analysis reports to GitHub as structured issues:

🚀 Auto-Create Issues for Each Problem Found

export GITHUB_TOKEN=ghp_xxx          # or REPOCHECKAI_GITHUB_TOKEN, as configured
repocheck analyze owner/repo --issue
# Creates: 🔴 [RepoCheckAI] docs: Missing README
#         🟠 [RepoCheckAI] ci: No CI/CD Pipeline
#         🟡 [RepoCheckAI] dx: Code Quality Issues

Each issue includes:

  • Detailed description with evidence and impact assessment
  • Actionable fix instructions with code examples
  • Priority labels (P0/P1/P2) and category tags
  • Full analysis context for team collaboration

💬 Interactive Mode

# Set token securely (recommended)
export GITHUB_TOKEN=ghp_your_token_here

Or use gh CLI auth

gh auth login

Then start interactive mode

repocheck chat /analyze facebook/react --issue /deep microsoft/vscode

[!TIP] Perfect for automated repository health tracking and team collaboration!

📖 Learn how to set up GitHub tokens


� Quick Start (5 minutes)

Want to see RepoCheckAI create GitHub issues automatically?

# 1. Get a GitHub token (see detailed setup below)
# 2. Set it as environment variable
export GITHUB_TOKEN=ghp_your_token_here

3. Analyze and create issues automatically!

repocheck analyze your-username/your-repo --issue

Result: Multiple GitHub issues created with detailed analysis, impact assessment, and fix instructions! 🎉

🔑 Setting up GitHub Token

For the --issue feature, you'll need a GitHub Personal Access Token with specific permissions:

  1. Go to github.com/settings/tokens
  2. Generate a new "Tokens (classic)"
  3. Select these scopes:
    • repo (full repository access) OR the following granular permissions:
      • metadata — Read repository metadata
      • contents — Read repository contents
      • issues — Create and manage issues
  4. Copy the token (starts with ghp_)

[!IMPORTANT] 📖 Complete setup guide with screenshots


🧭 Issue Publishing TL;DR

--issue (CLI) and Publish to GitHub Issues (Web UI) both need GitHub API credentials with issue-write permission.

CLI

export GITHUB_TOKEN=ghp_your_pat_here
repocheck analyze owner/repo --issue

Web UI

npm run dev:local-ui

In the form:

  1. Enable Publish to GitHub Issues
  2. Optional: paste GitHub Token (overrides server env token)
  3. Run analysis

If no token is provided in the field, the backend uses GITHUB_TOKEN from the server environment.

For full step-by-step setup and 401/403 troubleshooting, see docs/issue-publishing.md.


CategoryWhat's CheckedExample Findings
📚 Docs & OnboardingREADME, setup instructions, contributing guidelinesMissing installation steps
Developer ExperienceBuild scripts, language version, project structureNo .nvmrc or .node-version
🔄 CI/CDGitHub Actions, test automation, build pipelinesNo CI workflow found
🧪 Quality & TestsTest framework, linting, formatting, coverageMissing test configuration
📋 GovernanceLICENSE, CODE_OF_CONDUCT, SECURITY policyNo LICENSE file
🔐 SecurityDependabot/Renovate, security policy, secret scanningNo dependency updates configured

🚀 Quick Start

Prerequisites

[!IMPORTANT]

  • GitHub Copilot — Active subscription required
  • Node.js — Version 18.0.0 or higher

Installation

# Clone the repository
git clone https://github.com/glaucia86/repocheckai.git
cd repocheckai

Install dependencies and build

npm install npm run build

Link globally

npm link

Usage

# Interactive mode
repocheck

Direct analysis

repocheck vercel/next.js

Deep analysis with premium model

repocheck vercel/next.js --model claude-sonnet-4 --deep

🚀 Auto-create GitHub issues for each problem found

repocheck vercel/next.js --issue

[!NOTE] --issue requires a GitHub token. Learn how to set it up.


🔧 How It Works

alt text


📖 Commands

CommandDescription
/analyze <repo>Quick analysis via GitHub API
/deep <repo>Deep analysis with full source scan
/copyCopy last report to clipboard
/export [path]Save report as markdown file
/model [name]Switch AI model (now works in onboarding phase)
/helpShow all available commands
/quitExit RepoCheckAI

[!TIP] Use /deep for comprehensive code quality analysis. Use /analyze for quick governance checks.

🗂️ Repository Layout

The repository keeps application runtime code in src/ and the public website in site/:

site/          # Static marketing/docs site deployed to GitHub Pages
src/           # Clean architecture runtime code

Implementation source is now organized by clean architecture layers in src/:

  • Presentation: src/presentation/** (CLI, API, Web UI, terminal UI)
  • Application: src/application/** (analysis and reporting orchestration)
  • Infrastructure: src/infrastructure/** (GitHub/providers/tools adapters)
  • Domain: src/domain/** (schemas, contracts, interfaces)
  • Shared utilities: src/utils/**

🖥️ Local Web UI

The project has a single Web UI implementation served from src/presentation/web/public by src/presentation/web/main.ts.

npm run dev:web-ui:api
npm run dev:web-ui

Or run both services together:

npm run dev:local-ui

Current MVP capabilities:

  • Create analysis jobs from web state/client modules
  • Read completed markdown/JSON reports
  • Stream progress seeds and cancel running jobs
  • Copy and export completed reports (md and json)

📝 Examples

Quick Analysis

repocheck
/analyze microsoft/vscode

Deep Analysis with Custom Model

repocheck
/model claude-sonnet-4
/deep facebook/react

Export Report

repocheck
/analyze vercel/next.js
/export nextjs-report.md

Interactive Mode

repocheck
# Then use commands interactively
/analyze myorg/myrepo
/copy

🤖 Available AI Models

ModelTypeBest For
gpt-4oFreeBalanced performance (default)
gpt-4.1FreeFast analysis
gpt-5.3-codexPremium ⚡Advanced coding tasks
claude-sonnet-4Premium ⚡Detailed analysis
claude-opus-4.5Premium ⚡Most capable (3x rate limit)
o3Premium ⚡Deep reasoning tasks

[!NOTE] Premium models require GitHub Copilot Pro/Enterprise. See AI Models Guide for full list.


📚 Documentation

DocumentDescription
� Getting StartedInstallation and first analysis
📖 User GuideComplete usage guide with examples
💻 CommandsFull CLI command reference
📊 Analysis CategoriesWhat gets analyzed in each category
🤖 AI ModelsAvailable models and recommendations
🏗️ ArchitectureTechnical architecture and design
❓ FAQFrequently asked questions
🔧 TroubleshootingCommon issues and solutions
🤝 ContributingHow to contribute to RepoCheckAI

📖 Full documentation: docs/index.md


🏗️ Tech Stack

GitHub Copilot SDK
Copilot SDK
AI Orchestration
Octokit
Octokit
GitHub API
Repomix
Repomix
Repo Packing
TypeScript
TypeScript
Language
Zod
Zod
Validation

🔧 Modular Architecture

The codebase follows SOLID principles for maintainability:

src/
├── cli/          # Command handlers, state, parsers
├── core/agent/   # Copilot SDK session, modular prompts
├── tools/        # Individual tool files (SRP)
├── ui/display/   # Display modules (spinner, menus, etc.)
└── types/        # Zod schemas, interfaces

Key Design Decisions:

  • Agentic CLI: Uses GitHub Copilot SDK for AI-powered analysis
  • Modular Prompts: System prompts composed from reusable base modules
  • Tool-Based Architecture: AI agent invokes specific tools for data gathering
  • Streaming Output: Real-time analysis with event-driven updates
  • Security First: Content sanitization prevents prompt injection

📖 See Architecture Documentation for technical details.


⭐ Support This Project

If you find RepoCheckAI useful:

Star this repository🐛 Report issues you encounter
💡 Suggest new features🔀 Contribute via pull requests

Issues Pull Requests


📈 Star History

Star History Chart

📄 License

MIT © Glaucia Lemos


👩‍💻 Author

Glaucia Lemos
Glaucia Lemos
A.I Developer at Zup Innovation/Itaú

Microsoft MVP

🐦 Twitter💼 LinkedIn🐙 GitHub

Made with 💚 using the GitHub Copilot SDK

⬆️ Back to Top

SEE ALSO

clihub3/4/2026REPOCHECKAI(1)