Proposal: Modularizing SkillBot & Adding Support for Flexible AI Backends
Maintainer thường phản hồi trong vòng 1 ngày
@SYED-IRTEZA-HUSSAIN-RIZVI đang làm issue này rồi.
Từ ngày 9/11/2026.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github, ollama, python
- Lĩnh vực
- ai, backend, devtools, performance
Hướng nghiên cứu
Bắt đầu bằng cách đọc bot.py và repo_router.py, sau đó lần theo endpoint Ollama và đường dẫn đọc/ghi gap_log.json. Đề xuất này chỉ sẵn sàng sau khi các maintainer thống nhất về phạm vi và kiến trúc; “done” có nghĩa là tách biệt trách nhiệm của Discord, AI và GitHub, các nhà cung cấp AI có thể cấu hình, và việc ghi gap theo kiểu append không chặn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi there!
I’ve been reviewing the SkillBot codebase and really love what the bot does for automating contributor onboarding and GitHub issue creation!
While looking through the current implementation (bot.py and repo_router.py), I noticed a few areas where we could make the bot much more flexible, faster, and easier to maintain:
1. Hardcoded to Local Ollama
Currently, the AI requests are directly tied to a local Ollama instance (http://localhost:11434). If a maintainer wants to deploy SkillBot using OpenAI, Anthropic Claude, or a remote server endpoint, it requires editing core code. Adding a simple provider setting would let us easily switch or configure AI backends.
2. File Logging Slowdowns (gap_log.json)
Whenever SkillBot records a knowledge gap, it reads the entire gap_log.json file into memory and rewrites the whole file synchronously. As the log file grows, this can freeze the bot's response loop. Switching to a lightweight async append format (like .jsonl) will keep logging fast O(1) and non-blocking.
3. Large Monolithic Files (bot.py)
bot.py is over 700 lines long and handles Discord messages, AI prompts, file loading, gap logging, and GitHub API calls all in one place. Splitting this into clear, single-purpose helper modules (e.g., discord_bot.py, ai_provider.py, github_service.py) will make testing and adding new features much simpler.
Proposed Overview of the Plan
- Modular structure: Separate Discord event handling, AI service calls, and GitHub API integrations.
- Flexible AI Providers: Introduce a clean interface for AI providers so we can easily swap between Ollama, OpenAI, or other models.
- Fast Async Logging: Update
gap_log.jsonto an async append log to prevent event-loop freezing.
If the maintainers are open to this direction, I'd love to put together a full proposal / draft PR to work on this!
Looking forward to hearing your thoughts!
- Ngôn ngữ chính
- Python
- Star
- 10
- Fork
- 11
- Merge trung bình
- 6 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AOSSIE-Org/SkillBot
-
[BUG]: Issue-creation intent is missed when the article is omitted (create issue for this)Có thể đã có người làm @Ankitavasudev đã nhận 8 ngày trước. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AOSSIE-Org/SkillBot#65 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Non-Atomic Gap Log Writes Can Cause Data Loss After an Interrupted SaveCó thể làm lại được @SYED-IRTEZA-HUSSAIN-RIZVI đã nhận 11 ngày trước và không có pull request nào đang mở. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
AOSSIE-Org/SkillBot#61 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: os.chdir() Changes the Process-Wide Working Directory During Repository SyncCó thể đã có người làm @aadityachhipa80-oss đã nhận 2 ngày trước. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AOSSIE-Org/SkillBot#59 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: wait_for_ollama() Retries Indefinitely When Ollama Is UnavailableCó thể làm lại được @SYED-IRTEZA-HUSSAIN-RIZVI đã nhận 11 ngày trước và không có pull request nào đang mở. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AOSSIE-Org/SkillBot#56 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Backlog Messages Are Re-processed on Discord ReconnectionCó thể làm lại được @SYED-IRTEZA-HUSSAIN-RIZVI đã nhận 11 ngày trước và không có pull request nào đang mở. Đang mởbug enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
AOSSIE-Org/SkillBot#58 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AOSSIE-Org/SkillBot
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gke-labs/kube-agents#6778 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Declare the CMS schema library in the optional recipients extraCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:python in-progress
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
yhay81/pyropdf#1005 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build-framework kind/enhancement priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
yugabyte/yugabyte-db#38826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
sususweet/midea_auto_cloud#306 ·
Maintainer thường phản hồi trong vòng 9 ngày