One-click install
npx skills add https://github.com/mariotoffia/gobridge --skill implement-acl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-acl
Source: https://github.com/mariotoffia/gobridge/tree/main/.cursor/skills/implement-acl
Command: npx skills add https://github.com/mariotoffia/gobridge --skill implement-acl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams implement Anti-Corruption Layers to shield their domain models from external system pollution, enabling clean boundaries and stable core logic.

Core Features & Use Cases

  • ACL as a translation layer: map external models to domain concepts at the boundary of a bounded context.
  • Adapter integration: wire external adapters to the ACL to ensure domain purity.
  • Error handling and testing: translate external errors to domain errors and verify ACL logic in isolation.

Quick Start

Identify external models and their data, design corresponding domain models, implement the ACL translation, and integrate it with adapters for a breathable, testable boundary.

Frequently Asked Questions about implement-acl

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

FAQPage Schema
What is an anti-corruption layer in domain-driven design?

An anti-corruption layer (ACL) isolates your domain model from external system pollution by translating external concepts into domain-specific representations, ensuring clean boundaries and stable core logic within a bounded context.

How do I implement an anti-corruption layer for legacy service integration?

Identify external models and their data, design corresponding domain models, implement ACL translation logic, and wire external adapters through the ACL to ensure domain purity and testability.

Does an anti-corruption layer work with hexagonal architecture and ports-and-adapters?

Yes, an anti-corruption layer fits naturally into hexagonal architecture and ports-and-adapters patterns by acting as a translation boundary between external adapters and your core domain logic.

How do I map external API errors to domain errors in an anti-corruption layer?

Implement error translation within the ACL by converting external system failure codes into domain-specific error types, while validating external data before it enters the bounded context.

When should I use an anti-corruption layer between bounded contexts?

Use an anti-corruption layer when bridging APIs, legacy services, or partner integrations across bounded contexts where external models differ from your domain concepts and risk polluting core logic.

How do I test an anti-corruption layer in isolation from external adapters?

Test an anti-corruption layer in isolation by mocking external adapters and verifying that translation logic, unit conversion, error mapping, and validation correctly transform external data into domain concepts.