Skip to main content

AI-powered GitHub contribution forecasting and automation agent

Project description

Here's your comprehensive, professional-grade README.md for contribcast — tailored to appeal to both new and experienced developers:


# 📈 Contribcast

**AI-powered GitHub contribution forecasting, issue suggestion, and productivity assistant — straight from your terminal.**

---

## 🚀 What is Contribcast?

`contribcast` is a Python CLI tool that helps developers:

- Forecast and visualize their GitHub contributions 📊  
- Get weekly reflection and motivational insights from AI 🧠  
- Discover trending beginner-friendly issues tailored to your stack 🔍  
- Automatically draft and submit PRs to practice contributing 💻  
- Schedule Slack reminders and generate dynamic README.md files 📝  
- Empower both beginner and advanced developers to stay consistent

Whether you're new to open source or a seasoned contributor, Contribcast keeps your contribution game strong, organized, and automated.

---

## 📦 Features at a Glance

| Category | Features |
|----------|----------|
| 📊 Analytics | `--forecast`, `--heatmap`, `--streak`, `--weekly-summary`, `--compare` |
| 🧠 Smart AI Insights | `--reflect`, `--goal`, `--suggest`, `--domain ai/react`, `--generate-readme` |
| 🔍 Issue Discovery | `--suggest-issue`, `--auto-pr`, `--domain`, `--schedule-weekly` |
| 🛠️ Productivity | `--export-csv`, `--export-json`, `--save-heatmap`, `--notify-user` |
| 🤖 Automation | Draft PRs to GitHub issues, generate README.md using AI |
| 💬 Team Tools | Slack DM fallback, weekly drops to your team’s Slack channel |

---

## ✅ Requirements

- **Python 3.11+**
- A GitHub personal access token with `repo` scope
- An OpenAI API key
- A Slack bot token (if using Slack integration)

---

## 🔐 Environment Variables

Before using Contribcast, create a `.env` file or export these in your terminal:

```bash
export GITHUB_TOKEN=ghp_your_token_here
export GITHUB_USERNAME=your_github_username
export OPENAI_API_KEY=sk-proj-7p0_STw-Dp
export SLACK_BOT_TOKEN=xoxb-your-slack-token
export SLACK_CHANNEL=#your-slack-channel
export WHATSAPP_TO=whatsapp:+234xxxxxxxxxx  # Optional
export TWILIO_SID=your_twilio_sid
export TWILIO_AUTH=your_twilio_auth_token

🔧 Installation

git clone https://github.com/your-username/contribcast.git
cd contribcast
python3.11 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

To run globally (optional):

pip install .

🧠 Examples

Forecast Contributions

contribcast adesoji1 --forecast

Visualize Your GitHub Heatmap

contribcast adesoji1 --heatmap

Get Weekly Reflection from AI

contribcast adesoji1 --reflect --notify-user @adesoji

Discover Trending Issues + Auto PR

contribcast adesoji1 --suggest-issue --auto-pr auto

Generate README for Your Local Project

contribcast adesoji1 --generate-readme

Replace adesoji1 with your GitHub username.


🧠 Why Contribcast?

🔥 For New Developers:

  • Discover beginner-friendly issues in trending repos
  • Automatically generate your first PRs with guidance
  • Get motivational nudges to build consistency

💼 For Experienced Developers:

  • Monitor contribution trends across your team
  • Automate contribution goals with AI planning
  • Save time with weekly Slack drops and batch automation

🗓️ Optional: Schedule Weekly Suggestions

Run once (e.g. with cron or tmux):

python contribcast/scheduler.py

This sends weekly issue suggestions to your Slack every Monday at 09:00 AM.


📚 See All CLI Commands

contribcast adesoji1 --commands

🧪 Testing Your Setup

To validate that everything works:

contribcast adesoji1 --forecast
contribcast adesoji1 --suggest-issue --auto-pr auto
contribcast adesoji1 --generate-readme

If these commands succeed, you're all set, don't forget to replace adesoji1 with your github username, !


🧠 Powered By

  • 🧠 LangChain
  • 🔍 GitHub REST & GraphQL APIs
  • 💬 OpenAI GPT-3.5
  • 📡 Twilio & Slack SDKs

💡 Future Roadmap

  • Auto-plan contributions weekly
  • Multi-user comparison dashboard
  • GitHub Action integration
  • Telegram notifications
  • VSCode extension for inline usage

✨ Author

Made with ❤️ by Adesoji Alu

Feel free to contribute or fork. Keep contributing and cast your commit spells 🧙🏽‍♂️✨


📜 License

MIT License


The MIT License is a permissive open-source license that grants users broad rights to use, copy, modify, merge, publish, distribute, sublicense, and sell software, including the associated documentation, with minimal restrictions. Essentially, you're free to do almost anything with the licensed software, as long as you include the original copyright notice and license text in any distribution

ERRORS

You might be faced with openai.RateLimitError: Error code: 429 , slack or whatsapp token error if you pass in the wrong credentials

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

contribcast-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

contribcast-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: contribcast-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for contribcast-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0fc2336bdd7dafa81772aa49b2906b4fa0726ff678183c02134163f25fd08973
MD5 797f7e4b6f4a5b9225efd7bf9dc2e284
BLAKE2b-256 63626266edad98015d220a938bcc24a547acfbc38e26a30d60e722a6d4ab07e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: contribcast-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for contribcast-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 091cfdaa359a04afc3ef04bdb77f8bd6f19c05e15460783226a7ee9f12b7c337
MD5 1f94313c4ee6b45aa1259f9a13ade826
BLAKE2b-256 dd3bb68b1269b8fc30e303de502712a7584ef8c8fc723a488716183c9202d9f6

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