ACBr Project Patterns

Community

Architectural DI patterns for Delphi ACBr.

Authordelphicleancode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Architectural, dependency injection and UI patterns for the ACBr Project (Commercial Automation Brazil) ecosystem in Delphi.

Core Features & Use Cases

  • Avoid strong visual coupling: Do not instantiate ACBr UI components directly in the View forms. Use Service "Wrapper" classes or Infrastructure Repositories that inject the system configurations to the fiscal engine.
  • Abstract signing & cryptography libraries: Isolate libraries (OpenSSL vs WinCrypt) and switch them via code, not by design-time wiring.
  • Handle callbacks and events: Define a generic UI Handler interface injected into business logic to decouple event handling.
  • Dynamic memory management: Ensure proper lifetime management of sub-function components to prevent leaks.
  • Component prefixes: Use mapping like acbrNfe, acbrNfce, etc., to standardize naming across modules.

Quick Start

Refactor a legacy ACBr module to use wrapper services and DI-based configurations instead of direct ACBr component instantiation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ACBr Project Patterns
Download link: https://github.com/delphicleancode/delphi-spec-kit/archive/main.zip#acbr-project-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.