structuring-project-layout

Installation
SKILL.md

Structuring Project Layout

When to use

  • Starting a new Node.js TypeScript repo
  • Adding a new feature module
  • Refactoring tangled imports and unclear boundaries

Core rules

  1. Three-layer layout: src/domain/, src/application/, src/infrastructure/
  2. Feature modules inside src/features/<feature-name>/ with own layers
  3. Shared kernel in src/shared/ (types, errors, contracts, constants)
  4. Barrel files (index.ts) in every folder for clean imports
  5. Path aliases: @domain/*, @application/*, @infrastructure/*, @shared/*
  6. No cross-feature imports; use @shared/contracts

Reference shape (TypeScript)

Installs
2
GitHub Stars
1
First Seen
Aug 22, 2026
structuring-project-layout — j4flmao/agent_skills_nodejs_nestjs