afenda-architecture

Defines the 4-layer structure and dependency rules for the AFENDA-NEXUS architecture.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/pohlai88/AFENDA-NEXUS2 --skill afenda-architecture
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: afenda-architecture
Source: https://github.com/pohlai88/AFENDA-NEXUS2/tree/main/.agents/skills/afenda-architecture
Command: npx skills add https://github.com/pohlai88/AFENDA-NEXUS2 --skill afenda-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear guidance on the AFENDA-NEXUS monorepo's architectural structure, dependency rules, and package governance, helping developers understand where to place code and how to manage dependencies effectively.

Core Features & Use Cases

  • Architectural Guidance: Understand the 4-layer structure (Configuration, Foundation, Domain Services, Application).
  • Dependency Management: Learn and enforce rules for inter-package dependencies to prevent circularity and maintain layer integrity.
  • Package Governance: Follow guidelines for creating, naming, and structuring new packages.
  • Use Case: When unsure about which package a new feature or piece of logic should belong to, consult this Skill for the correct layer and placement.

Quick Start

Use the afenda-architecture skill to understand the dependency rules for Layer 2 packages.

Frequently Asked Questions about afenda-architecture

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

FAQPage Schema
How do I manage dependencies in a monorepo with strict layering rules?▼

Monorepo dependency management requires enforcing layer isolation to prevent circularity. The AFENDA-NEXUS architecture uses a strict 4-layer structure—Configuration, Foundation, Domain Services, and Application—to dictate dependency flow and maintain package integrity.

Where should I place new code in a layered monorepo architecture?▼

New code placement depends on its architectural function within the 4-layer structure. Consult the package governance guidelines to determine if logic belongs in Configuration, Foundation, Domain Services, or Application layers to maintain proper dependency flow.

How do I resolve circular dependencies in a layered monorepo?▼

Resolving circular dependencies involves applying package splitting strategies to enforce layer isolation rules. The architecture provides specific validation mechanisms and anti-pattern strategies to break cycles and maintain structural integrity across packages.

What is the best way to structure packages in a monorepo to prevent anti-patterns?▼

Preventing anti-patterns requires following strict package governance guidelines for creating, naming, and structuring new packages. The 4-layer architecture enforces dependency rules and provides validation mechanisms to maintain architectural integrity.

When do I need to split packages in a monorepo architecture?▼

Package splitting is needed when dependencies violate layer isolation rules or create circularity. The architecture offers strategies for splitting packages to resolve dependency issues and maintain the integrity of the 4-layer structure.

Does the AFENDA-NEXUS architecture enforce rules for inter-package dependencies?▼

Yes, the AFENDA-NEXUS architecture enforces strict rules for inter-package dependencies. It uses a 4-layer structure with validation mechanisms to prevent circularity, address common anti-patterns, and maintain layer integrity across the monorepo.