Proposal: Modularizing SkillBot & Adding Support for Flexible AI Backends
维护者通常 1 天内回复
@SYED-IRTEZA-HUSSAIN-RIZVI 已经在做这个了。
开始于 2026年11月9日。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- github, ollama, python
- 领域
- ai, backend, devtools, performance
调研方向
先阅读 bot.py 和 repo_router.py,然后跟踪 Ollama 端点以及 gap_log.json 的读写路径。只有在维护者就范围和架构达成一致后,该提案才算准备就绪;done 意味着分离 Discord、AI 和 GitHub 的职责,支持可配置的 AI 提供商,以及采用非阻塞的追加式 gap 日志记录。
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- Python
- 星标
- 10
- 派生
- 11
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AOSSIE-Org/SkillBot 的其他 Issue
-
[BUG]: Issue-creation intent is missed when the article is omitted (create issue for this)可能已有人在做 @Ankitavasudev 于 8 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 82/100
AOSSIE-Org/SkillBot#65 · 2 条评论 ·
维护者通常 1 天内回复
-
[BUG]: Non-Atomic Gap Log Writes Can Cause Data Loss After an Interrupted Save可能重新可做 @SYED-IRTEZA-HUSSAIN-RIZVI 于 11 天前认领,目前没有进行中的 PR。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 74/100
AOSSIE-Org/SkillBot#61 · 2 条评论 ·
维护者通常 1 天内回复
-
[BUG]: os.chdir() Changes the Process-Wide Working Directory During Repository Sync可能已有人在做 @aadityachhipa80-oss 于 2 天前认领。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 75/100
AOSSIE-Org/SkillBot#59 · 3 条评论 ·
维护者通常 1 天内回复
-
[BUG]: wait_for_ollama() Retries Indefinitely When Ollama Is Unavailable可能重新可做 @SYED-IRTEZA-HUSSAIN-RIZVI 于 11 天前认领,目前没有进行中的 PR。 未关闭bug enhancement
难度 2/5 1-3 小时 新手友好度 72/100
AOSSIE-Org/SkillBot#56 · 3 条评论 ·
维护者通常 1 天内回复
-
[BUG]: Backlog Messages Are Re-processed on Discord Reconnection可能重新可做 @SYED-IRTEZA-HUSSAIN-RIZVI 于 11 天前认领,目前没有进行中的 PR。 未关闭bug enhancement
难度 4/5 3-5 天 新手友好度 55/100
AOSSIE-Org/SkillBot#58 · 2 条评论 ·
维护者通常 1 天内回复
查看 AOSSIE-Org/SkillBot 的全部 Issue
相似的 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
gke-labs/kube-agents#6778 · 1 条评论 ·
维护者通常 1 天内回复
-
Declare the CMS schema library in the optional recipients extra可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:python in-progress
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
area/build-framework kind/enhancement priority/low
难度 2/5 1-3 小时 新手友好度 77/100
yugabyte/yugabyte-db#38826 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 72/100
sususweet/midea_auto_cloud#306 ·
维护者通常 9 天内回复