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/
│── 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
git clone https://github.com/sarvan-2187/readme-rating-agent.git
cd readme-rating-agent
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
.env and add your Groq API key:
GROQ_API_KEY=your_actual_api_key_here
MODEL_NAME=llama3-70b-8192
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.
Once finished, the CLI will display:
This project is licensed under the MIT License. Built by Sarvan Kumar