Skip to content

IdeaRoost/DevTeamAIAssistant

Repository files navigation

DevTeam AI Assistant

An AI-powered toolkit for software development managers built with .NET 8 and Claude AI

.NET License C#

Demonstrates: AI Integration β€’ Prompt Engineering β€’ .NET Architecture β€’ Management Tools


πŸ“– Overview

DevTeam AI Assistant helps development managers make data-driven decisions by leveraging Large Language Models (LLMs) for analysis, review, and prioritization tasks.

Built by: Jacques Steward - Principle Consultant Tech Stack: C# β€’ .NET 8 β€’ Anthropic Claude API β€’ System.Text.Json
Purpose: Demonstrates practical LLM integration in enterprise .NET applications


πŸ§ͺ Testing

This project includes comprehensive unit tests using NUnit, Moq, and FluentAssertions.

Running Tests

# Run all tests
dotnet test

# Run with detailed output
dotnet test --verbosity normal

# Run with code coverage
dotnet test /p:CollectCoverage=true

Test Framework

  • NUnit 4.3: Modern .NET testing framework
  • Moq 4.20: Mocking library for dependency injection
  • FluentAssertions: Readable assertion library

Test Coverage

  • Services: Configuration and initialization
  • Features: All analyzer and runner classes
  • Presenters: Output formatting and conditional rendering
  • Models: Data structure validation

✨ Features

πŸ” 1. Sprint Retrospective Analyzer

Transforms unstructured retrospective notes into actionable insights.

Input:

Sprint went well overall. Velocity increased from 35 to 42 points.
However, we had 3 production incidents due to insufficient testing.
Deployment process still takes 4 hours - needs automation.
Sarah did excellent work on the authentication refactor.

Output:

  • Overall sentiment analysis (Positive/Neutral/Negative)
  • Key themes extraction
  • Prioritized action items with effort estimates
  • Wins and concerns identification
  • Manager-specific recommendations

Value: Saves ~2 hours per retrospective in manual analysis


πŸ”Ž 2. Code Review Assistant

Provides architectural, security, and best practice review of C# code.

Analyzes:

  • Architecture & design patterns
  • Security vulnerabilities (SQL injection, XSS, etc.)
  • Performance bottlenecks
  • SOLID principles compliance
  • .NET best practices
  • Async/await anti-patterns

Returns: Severity-ranked feedback with line numbers and specific suggestions

Value: Catches issues humans might miss, provides consistent review standards


πŸ“Š 3. Technical Debt Prioritizer

ROI-based prioritization of technical debt items.

Evaluates:

  • Business impact vs. implementation effort
  • Security and stability risks
  • Dependencies between items
  • Estimated effort in days
  • ROI score (1-100)

Returns: Prioritized backlog with reasoning and strategic recommendations

Value: Data-driven roadmap planning, objective prioritization


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Console Interface  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
     β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
     β”‚  Features  β”‚ (Retrospective, CodeReview, TechDebt)
     β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
           β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
    β”‚ClaudeService β”‚ (HTTP Client wrapper)
    β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
     β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
     β”‚ Claude API β”‚ (Anthropic)
     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Design Principles:

  • βœ… Clean separation of concerns
  • βœ… Interface-based dependency injection
  • βœ… Structured LLM responses (JSON)
  • βœ… Comprehensive error handling
  • βœ… Single Responsibility Principle

πŸš€ Getting Started

Prerequisites

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/DevTeamAIAssistant.git
cd DevTeamAIAssistant

# Restore dependencies
dotnet restore

Configuration

  1. Copy the example configuration:
   cp appsettings.example.json appsettings.json
  1. Add your Anthropic API key:

    Edit appsettings.json:

   {
     "Anthropic": {
       "ApiKey": "sk-ant-api03-your-actual-key-here",
       "Model": "claude-sonnet-4-20250514"
     }
   }
  1. Get an API key:

⚠️ Important: Never commit appsettings.json to version control. It's gitignored by default.

Run

dotnet run

πŸ’‘ Example Usage

Retrospective Analysis

Input:

Team completed 45 story points (up from 35).
Sarah's refactoring of auth system was excellent.
Still seeing deployment delays - takes 3+ hours.
2 production incidents this sprint - need better testing.
Communication between frontend/backend teams improved.

Output:

πŸ“Š Overall Sentiment: POSITIVE

🎯 Key Themes:
  β€’ Velocity improvement
  β€’ Deployment automation needs
  β€’ Production quality concerns
  β€’ Cross-team collaboration success

βœ… Wins:
  β€’ 29% velocity increase
  β€’ Successful authentication refactor
  β€’ Improved team communication

⚠️ Concerns:
  β€’ Manual deployment bottleneck
  β€’ Production incident rate

πŸ“‹ Action Items:
  [HIGH] Implement CI/CD pipeline to reduce deployment time
      Owner: DevOps Lead | Effort: 5 days
  
  [HIGH] Add pre-production smoke tests
      Owner: QA Lead | Effort: 3 days

πŸ’‘ Manager Recommendation:
  Focus on automation to sustain velocity gains. Consider 
  dedicating 1 sprint to infrastructure improvements.

Code Review

Input: (C# code with issues)

Output:

πŸ“Š Quality Score: 6/10

πŸ”’ Security Concerns:
  ⚠️ SQL Injection vulnerability in GetUser method
  ⚠️ Hardcoded connection string with credentials
  ⚠️ Password exposed in API response

βœ… Best Practices Observed:
  β€’ Using 'using' statements for IDisposable
  β€’ Async/await pattern usage

πŸ’¬ Review Comments:

  [CRITICAL]
    Security: SQL injection vulnerability detected
    πŸ’‘ Use parameterized queries with SqlParameter
    πŸ“ Line 15

  [HIGH]
    Architecture: Hardcoded connection string
    πŸ’‘ Move to configuration file with dependency injection
    πŸ“ Line 8

Technical Debt Prioritization

Input:

Legacy authentication system using MD5 hashing
Monolithic API needs microservices split
No monitoring or logging in production
Database queries not optimized
No automated backups configured

Output:

⚠️ Risk Assessment:
  High risk due to authentication vulnerabilities and lack 
  of production monitoring

πŸ“Š Total Estimated Effort: 25 days

🎯 Prioritized Backlog:

πŸ”΄ Priority: 10/10 | Impact: High | Effort: High
   ROI Score: 95/100
   Legacy authentication system using MD5 hashing
   πŸ’­ Critical security vulnerability affecting all users
   ⏱️ Estimated: 10 days

🟑 Priority: 8/10 | Impact: High | Effort: Medium
   ROI Score: 85/100
   No monitoring or logging in production
   πŸ’­ Cannot diagnose issues, high operational risk
   ⏱️ Estimated: 5 days
   πŸ”— Dependencies: None

πŸ’‘ Strategic Recommendation:
  Address security vulnerabilities immediately. Authentication 
  system poses the highest risk. Plan monitoring implementation 
  in parallel to provide visibility during other improvements.

πŸŽ“ Learning Outcomes

This project demonstrates proficiency in:

AI Integration:

  • βœ… LLM API integration in .NET
  • βœ… Prompt engineering for structured outputs
  • βœ… JSON deserialization from AI responses
  • βœ… Error handling for non-deterministic systems

Software Architecture:

  • βœ… Clean architecture principles
  • βœ… Dependency injection patterns
  • βœ… Interface-based design
  • βœ… HTTP client best practices
  • βœ… Configuration management

Development Management:

  • βœ… Understanding of Agile workflows
  • βœ… Code review automation
  • βœ… Technical debt management
  • βœ… Data-driven decision making

πŸ› οΈ Technology Stack

Technology Purpose
.NET 8.0 Runtime framework
C# 12 Programming language
Anthropic Claude API LLM provider
System.Text.Json JSON serialization
HttpClient API communication
Microsoft.Extensions.Configuration App configuration

πŸ“ Project Structure

DevTeamAIAssistant/
β”œβ”€β”€ Program.cs                          # Application entry point
β”œβ”€β”€ Services/
β”‚   β”œβ”€β”€ IClaudeService.cs               # Service interface
β”‚   └── ClaudeService.cs                # Claude API integration
β”œβ”€β”€ Features/
β”‚   β”œβ”€β”€ IAnalyzer.cs                    # Generic analyzer interface
β”‚   β”œβ”€β”€ IAnalyzerRunner.cs              # Runner interface
β”‚   β”œβ”€β”€ IAnalyzerFactory.cs             # Factory interface
β”‚   β”œβ”€β”€ AnalyzerBase.cs                 # Shared analyzer logic & input sanitization
β”‚   β”œβ”€β”€ AnalyzerRunnerBase.cs           # Shared runner orchestration
β”‚   β”œβ”€β”€ AnalyzerFactory.cs              # Feature registration & lookup
β”‚   β”œβ”€β”€ IO/
β”‚   β”‚   β”œβ”€β”€ IConsoleWriter.cs
β”‚   β”‚   β”œβ”€β”€ IConsoleReader.cs
β”‚   β”‚   β”œβ”€β”€ ConsoleWriter.cs
β”‚   β”‚   └── ConsoleReader.cs
β”‚   β”œβ”€β”€ Presenters/
β”‚   β”‚   └── IAnalyzerPresenter.cs       # Generic presenter interface
β”‚   β”œβ”€β”€ Retrospective/
β”‚   β”‚   β”œβ”€β”€ RetrospectiveAnalyzer.cs
β”‚   β”‚   β”œβ”€β”€ RetrospectiveRunner.cs
β”‚   β”‚   └── RetrospectivePresenter.cs
β”‚   β”œβ”€β”€ CodeReview/
β”‚   β”‚   β”œβ”€β”€ CodeReviewAnalyzer.cs
β”‚   β”‚   β”œβ”€β”€ CodeReviewRunner.cs
β”‚   β”‚   └── CodeReviewPresenter.cs
β”‚   └── TechDebt/
β”‚       β”œβ”€β”€ TechDebtPriorityAnalyzer.cs
β”‚       β”œβ”€β”€ TechDebtRunner.cs
β”‚       └── TechDebtPresenter.cs
β”œβ”€β”€ Models/                             # Domain models
β”œβ”€β”€ Requests/                           # Request contracts
β”œβ”€β”€ Response/                           # Response contracts
β”œβ”€β”€ DevTeamAIAssistant.test/
β”‚   β”œβ”€β”€ Features/
β”‚   β”‚   β”œβ”€β”€ Presenters/                 # Presenter output tests
β”‚   β”‚   └── ...                        # Analyzer & runner tests
β”‚   β”œβ”€β”€ Models/
β”‚   └── Services/
β”œβ”€β”€ appsettings.json                    # Config (gitignored)
β”œβ”€β”€ appsettings.example.json            # Config template
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
└── README.md

πŸ“ˆ Future Enhancements

  • Web UI - Blazor Server interface for browser-based access
  • Persistence - SQLite/PostgreSQL for storing analysis history
  • Azure DevOps Integration - Pull work items and sprint data automatically
  • Jira Integration - Sync with existing project management tools
  • Team Dashboard - Visualize trends over time
  • Slack/Teams Bot - Chat interface for quick analysis
  • Multi-Model Support - Add GPT-4, Gemini options
  • Docker Container - Containerized deployment
  • Unit Tests - 73 tests covering analyzers, runners, presenters, models, and services
  • GitHub Actions CI/CD - Automated build and test pipeline

🀝 Contributing

This is a portfolio/learning project, but contributions are welcome!

Areas for improvement:

  • Additional analysis features
  • Better prompt engineering
  • UI enhancements
  • Integration with more tools
  • Performance optimizations

To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

MIT License - See LICENSE file for details


πŸ‘€ Author

Jacques Steward
Software Development Manager | 10+ Years .NET/C# | AI-Augmented Development Advocate


πŸ™ Acknowledgments

  • Built with Anthropic Claude
  • Inspired by real development management challenges
  • Created as a demonstration of AI-augmented development workflows

πŸ“Š Project Stats

  • Language: C#
  • Framework: .NET 8.0
  • Lines of Code: ~1,100
  • Test Count: 73 unit tests
  • Dependencies: 2 NuGet packages
  • Build Time: 1-2 weeks
  • API Cost: ~$0.50 for testing

πŸ” Security Note

This project includes API key management best practices:

  • API keys stored in gitignored configuration files
  • Example configuration provided for setup
  • Environment variable support available
  • Never commit secrets to version control

⭐ If you find this useful, please star the repository!

πŸ’¬ Questions or suggestions? Open an issue or reach out on LinkedIn.


Built with ❀️ and AI assistance to demonstrate practical LLM integration in enterprise .NET applications

About

AI-powered development management toolkit built with .NET 8 and Claude AI. Features retrospective analysis, code review automation, and technical debt prioritization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages