Skip to content

VK Bot: Rubber duck bot for debugging assistance - #285

Open
konard wants to merge 3 commits into
mainfrom
issue-142-9dc004a1
Open

VK Bot: Rubber duck bot for debugging assistance#285
konard wants to merge 3 commits into
mainfrom
issue-142-9dc004a1

Conversation

@konard

@konard konard commented Sep 12, 2025

Copy link
Copy Markdown
Member

🦆 Rubber Duck Debugging Bot

This PR implements a rubber duck debugging assistant bot as requested in issue #142.

📋 Issue Reference

Fixes #142

✨ Features Implemented

🔍 Trigger Detection

  • Responds to GitHub issues with titles containing trigger words:
    • English: help, help me, sos
    • Russian: помощь, помогите, помогите мне, спасите

💬 Interactive Dialog System

  • Opens debugging session with bilingual question: "Do you have problem with code? / У вас проблема с кодом?"
  • Continues dialog when user responds with yes or да in issue title
  • Provides structured debugging guidance following rubber duck methodology

🛠️ Problem-Solving Framework

  • Step-by-step debugging process
  • Encourages explaining the problem in detail
  • Guides through common debugging techniques:
    • Problem description and error analysis
    • Code review and recent changes analysis
    • Assumption checking and line-by-line tracing
    • Testing with simpler inputs
    • Documentation and example lookup

🏗️ Implementation Details

New Components:

  • RubberDuckTrigger.cs - Detects help requests and initiates debugging session
  • RubberDuckDialogTrigger.cs - Handles "yes" responses and provides debugging guidance
  • Integrated both triggers into Program.cs issue tracker

Architecture:

  • Follows existing trigger pattern using ITrigger<Issue> interface
  • Uses GitHub issue comments for interactive dialog
  • Bilingual support (English/Russian)
  • Emoji-enhanced user experience

🧪 Testing

  • ✅ Solution builds successfully with .NET 8
  • ✅ Triggers properly integrated into bot architecture
  • ✅ No breaking changes to existing functionality

📱 Usage Example

  1. Create GitHub issue with title: help or помощь
  2. Bot responds asking if you have a code problem
  3. Create new issue with title: yes or да
  4. Bot provides comprehensive debugging guidance

🎯 Benefits

  • Interactive: Engages users in structured problem-solving dialog
  • Educational: Teaches debugging methodology
  • Therapeutic: Often explaining the problem helps users find solutions themselves
  • Accessible: Supports both English and Russian languages
  • Scalable: Works within existing GitHub bot infrastructure

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #142
@konard konard self-assigned this Sep 12, 2025
Added RubberDuckTrigger and RubberDuckDialogTrigger to provide interactive debugging assistance via GitHub issues.

Features:
- Responds to trigger words: "help", "help me", "sos", "помощь", "помогите", "помогите мне", "спасите"
- Asks if user has a problem with code in both English and Russian
- Provides structured debugging guidance when user responds "yes" or "да"
- Follows rubber duck debugging methodology with step-by-step problem solving

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] VK Bot: Rubber duck bot, tell the bot about your problem and get some common advices VK Bot: Rubber duck bot for debugging assistance Sep 12, 2025
@konard
konard marked this pull request as ready for review September 12, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VK Bot: Rubber duck bot, tell the bot about your problem and get some common advices

1 participant