Proposal: Modularizing SkillBot & Adding Support for Flexible AI Backends

未关闭
#31 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@SYED-IRTEZA-HUSSAIN-RIZVI 已经在做这个了。

开始于 2026年11月9日。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
冷清
技术栈
github, ollama, python

调研方向

先阅读 bot.py 和 repo_router.py,然后跟踪 Ollama 端点以及 gap_log.json 的读写路径。只有在维护者就范围和架构达成一致后,该提案才算准备就绪;done 意味着分离 Discord、AI 和 GitHub 的职责,支持可配置的 AI 提供商,以及采用非阻塞的追加式 gap 日志记录。

由索引模型根据 Issue 内容生成。

描述

enhancement

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.json to 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AOSSIE-Org/SkillBot 的其他 Issue

查看 AOSSIE-Org/SkillBot 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。