readme-rating-agent

Readerr - GitHub README Rating Agent

A production-ready AI agent that evaluates the quality of a GitHub repository’s README and assigns a rating out of 5.0. It is built with Python, CrewAI, LangChain, Groq API (Llama 3.3 70B), and Rich for a beautiful CLI experience.

readme-rating-agent

Features

Project Architecture

readme-rating-agent/
│── agents.py          # Defines the Evaluator Agent
│── tasks.py           # Defines the Evaluation Task and Pydantic Schema
│── tools.py           # Custom CrewAI tool to fetch README via GitHub API
│── run.py             # Main CLI entrypoint, Rich UI rendering, and orchestration
│── requirements.txt   # Project dependencies
│── .env.example       # Example environment variables
│── README.md          # Project documentation

Prerequisites

Installation

  1. Clone the repository (if you haven’t already):
    git clone https://github.com/sarvan-2187/readme-rating-agent.git
    cd readme-rating-agent
    
  2. Create a virtual environment (recommended):
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:
    pip install -r requirements.txt
    

Configuration

  1. Copy the example environment file:
    cp .env.example .env
    
  2. Edit .env and add your Groq API key:
    GROQ_API_KEY=your_actual_api_key_here
    MODEL_NAME=llama3-70b-8192
    

Running the Application

Execute the CLI by running:

python run.py

You will be prompted to enter a GitHub repository URL:

Enter GitHub Repository URL: https://github.com/owner/repository

The agent will then begin processing the documentation. A spinner will indicate that the evaluation is in progress.

Example Output

Once finished, the CLI will display:

License

This project is licensed under the MIT License. Built by Sarvan Kumar