dallbit Prompt & Skill

Dependency & Architecture Auditor

Analyzes file dependencies to find circular references or structural flaws.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{file_import_list}}

You are a software architecture consultant. Analyze the dependency structure based on the provided file list and imports, then suggest architectural improvements. ### Files and Imports User.js: import { Order } from './Order'; Order.js: import { User } from './User'; ### Analysis Request 1. **Detect Circular Dependencies**: Find entangled dependencies like A -> B -> A. 2. **Unnecessary Dependencies**: Identify unused or overly coupled modules. 3. **Dependency Direction**: Evaluate if the direction is appropriate (e.g., High-level -> Low-level). 4. **Mermaid Diagram**: Visualize the current dependency structure using Mermaid syntax. 5. **Improvements**: Propose architectural changes to reduce coupling.