Design Patterns — Nexus Agent (.NET 9)

Documents and enforces architectural patterns for Nexus Agent .NET 9 applications.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/diazvaldiviav/Nexus-agent --skill design-patterns-nexus-agent-net-9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Design Patterns — Nexus Agent (.NET 9)
Source: https://github.com/diazvaldiviav/Nexus-agent/tree/main/.claude/skills/design-patterns
Command: npx skills add https://github.com/diazvaldiviav/Nexus-agent --skill design-patterns-nexus-agent-net-9

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a standardized set of architectural patterns and best practices to ensure consistency, maintainability, and scalability within the Nexus Agent application.

Core Features & Use Cases

  • Standardized Development: Enforces common design patterns like Interface + Implementation, Strategy via DI, and MVVM for UI.
  • Architectural Guidance: Offers clear decision trees and code examples for implementing services, handling LLM providers, and managing memory.
  • Use Case: A new developer joining the Nexus Agent project can consult this Skill to understand how to correctly implement a new service, ensuring it integrates seamlessly with the existing architecture and adheres to established patterns.

Quick Start

Consult the Design Patterns skill to understand the recommended approach for creating a new service within the Nexus Agent application.

Frequently Asked Questions about Design Patterns — Nexus Agent (.NET 9)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What architectural patterns should I use for a .NET 9 agent application?

For .NET 9 agent applications, use Interface + Implementation, Strategy via Dependency Injection for provider selection, and MVVM for UI. These architectural patterns ensure maintainable, scalable code adhering to SOLID principles.

How do I implement a new service in a .NET application using dependency injection?

Implement new .NET services using the Interface + Implementation pattern. Register provider selection strategies via Dependency Injection to ensure seamless integration with existing application architecture and SOLID compliance.

What is the best way to manage memory context for an LLM agent in .NET?

The best way to manage memory context for a .NET LLM agent is applying standardized architectural patterns. This involves structured context management strategies that maintain conversation state and ensure maintainable agent loop processing.

How do I structure data access and configuration loading in a .NET 9 application?

Structure .NET 9 data access using the Repository pattern and load configuration through standardized architectural patterns. This enforces separation of concerns, maintainability, and scalable data management within the application.

Does the Strategy pattern via DI work for handling multiple LLM providers in .NET?

Yes, the Strategy pattern via Dependency Injection works for handling LLM providers in .NET. It enables dynamic provider selection strategies during agent loop processing, ensuring flexible and scalable service integration.

When should I use MVVM for UI development in a .NET agent application?

Use MVVM for UI development in .NET agent applications to enforce separation of UI logic from business rules. This architectural pattern ensures maintainable, scalable code when building user interfaces for agent interaction.