abstraction-architect

Guide architects in deciding when to unify duplicated logic into shared abstractions.

6|2|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/acaprino/claude-code-daodan --skill abstraction-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abstraction-architect
Source: https://github.com/acaprino/claude-code-daodan/tree/main/plugins/abstraction-architect/skills/abstraction-architect
Command: npx skills add https://github.com/acaprino/claude-code-daodan --skill abstraction-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Assist architects in deciding when to unify duplicated logic into a shared abstraction.

Core Features & Use Cases

  • Canonical frameworks and decision criteria for abstraction decisions (Rule of Three, DRY, WET/AHA, The Wrong Abstraction, Locality of Behaviour, Bounded Contexts, Tidy First, CUPID vs SOLID).
  • Structured evidence-gathering process to assess call-site spread, context boundaries, and pattern stability.
  • A reference index with canonical patterns, anti-patterns, and recommended workflows for abstraction planning.

Quick Start

Ask the Abstraction Architect to guide an evaluation of whether to extract a shared abstraction or inline duplicated logic across modules.

Frequently Asked Questions about abstraction-architect

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

FAQPage Schema
When should I unify duplicated logic into a shared abstraction?

Unify duplicated logic into a shared abstraction only after passing evidence-based gates like the Rule of Three, confirming stable recurring patterns, and verifying that call-sites share the same bounded context to avoid premature coupling.

How do I decide whether to extract a shared abstraction or inline duplicated code?

To decide whether to extract or inline duplicated code, evaluate call-site spread, context boundaries, and pattern stability using decision frames like AHA and Locality of Behaviour to determine if centralization outweighs the risk of premature abstraction.

What is the difference between DRY and WET principles for managing code duplication?

The difference between DRY and WET principles centers on abstraction risk: DRY mandates unifying duplicated logic to prevent redundancy, while WET and AHA principles prioritize inlining code until evidence confirms a stable, necessary shared abstraction.

How do I avoid the wrong abstraction when refactoring cross-cutting concerns?

Avoid the wrong abstraction during refactoring by applying structured evidence-gathering to assess call-site counts and bounded contexts, using Tidy First to sequence changes, and choosing CUPID over rigid SOLID constraints to maintain flexibility.

Does bounded context affect architecture decisions for centralizing duplicated logic?

Bounded context directly affects centralizing duplicated logic by defining context boundaries: unifying logic across disjointed contexts causes harmful coupling, making inlining the correct architectural decision even when code appears syntactically duplicated.