aidd-structure

Enforce source code layering and interdependency rules in projects.

377|33|Updated Jul 3, 2025
One-click install
npx skills add https://github.com/paralleldrive/aidd --skill aidd-structure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aidd-structure
Source: https://github.com/paralleldrive/aidd/tree/main/ai/skills/aidd-structure
Command: npx skills add https://github.com/paralleldrive/aidd --skill aidd-structure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures code maintainability and predictability by enforcing strict layering and interdependency rules.

Core Features & Use Cases

  • Layered Structure: Defines a strict hierarchy ensuring each code layer depends only on the layers below it.
  • Usage: Invoke /aidd-structure for folder creation, file movement, and import addition.
  • Use Case: When setting up a new project or reviewing existing code for potential issues.

Quick Start

Run /aidd-structure to enforce source code structuring and interdependency rules.

Frequently Asked Questions about aidd-structure

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

FAQPage Schema
How do I enforce layered architecture and interdependency rules in my codebase?

You can enforce layered architecture and interdependency rules by invoking the `/aidd-structure` command. It ensures each code layer depends only on the layers below it, maintaining strict source code structuring and predictability.

What is the best way to maintain code maintainability when setting up a new project?

The best way to maintain code maintainability is to apply strict source code layering and interdependency rules. Defining a strict hierarchy during project setup prevents unauthorized interdependencies and keeps code predictable.

Can I use this to review existing code for potential dependency issues?

Yes, you can use it to review existing code for potential dependency issues. By checking folder creation, file movement, and import additions against specified layer hierarchy rules, it identifies structural violations in your current software development projects.

How do I prevent circular interdependencies when adding new imports?

You prevent circular interdependencies by enforcing strict source code layering during import addition. Applying interdependency rules ensures new imports only reference approved lower layers, blocking circular dependencies before they are introduced into the codebase.

Do I need to define a specific layer hierarchy before using this?

Yes, you need to define a specified layer hierarchy before using it. The mechanism enforces adherence to your predefined layer hierarchy and dependency rules to maintain code maintainability and predictability.