architecture-patterns

Identify and catalog architectural patterns in C++/Qt codebases.

Updated Oct 25, 2025
One-click install
npx skills add https://github.com/bartoszwarzocha/kalahari --skill architecture-patterns-bartoszwarzocha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/bartoszwarzocha/kalahari/tree/main/.claude/skills/architecture-patterns
Command: npx skills add https://github.com/bartoszwarzocha/kalahari --skill architecture-patterns-bartoszwarzocha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Documents core architecture strategies, notable classes, and patterns to guide code design.

Core Features & Use Cases

  • Key Classes: Core singletons, main GUI coordinators, and plugin security
  • Design Patterns Used: Singleton, Command, Observer, Composite
  • Source Structure: High-level layout of include and src directories
  • Adding New Components: Steps to extend panels, dialogs, and core classes
  • Signal/Slot Connections: Practical examples of event wiring

Quick Start

Use this as a reference when designing new components or extending the architecture.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
How do I identify and document architectural patterns in a large C++ codebase?

Identify architectural patterns by parsing class definitions and relationships to recognize Singleton, Command, Observer, and Composite patterns. This produces structured metadata mapping core singletons, coordinators, and registries, enabling design conformance checks and supporting code review documentation.

What design patterns should I use for Qt6 GUI architecture?

Qt6 GUI architecture commonly uses Singleton for shared resources, Observer for signal-slot connections, Command for user actions, and Composite for hierarchical UI components. These patterns organize core coordinators, plugin security, and event wiring in large projects.

How do I structure signal and slot connections in Qt architecture?

Signal-slot connections implement the Observer pattern to decouple event producers from consumers. Document connections between UI coordinators and core singletons with practical examples showing how panels, dialogs, and main GUI coordinators wire events.

Can I use these patterns to extend existing Qt panels and dialogs?

Yes. Follow the documented steps for adding new components by recognizing how existing panels and dialogs use Singleton, Command, and Observer patterns. This ensures new extensions conform to the established architecture before implementation.

What are the key classes and singletons in a Qt application architecture?

Core singletons, main GUI coordinators, and plugin security classes form the foundation. Recognizing these key classes and their roles supports design decisions, code review conformance, and extends the architecture consistently.

Why document architecture patterns instead of just reading the code?

Documented architecture patterns create a retrievable metadata map for rapid embedding by RAG systems, enabling faster code review, design conformance verification, and consistent onboarding for new contributors to large C++ projects.