# Discipline Refactor Standard Folders Module Structure

> Sub-skill of discipline-refactor: Standard Folders → Module Structure (+1).

- Skill: `vamseeachanta/discipline-refactor-standard-folders-module-structure-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/discipline-refactor-standard-folders-module-structure-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/discipline-refactor-standard-folders-module-structure-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/discipline-refactor-standard-folders-module-structure-2

---


# Standard Folders → Module Structure (+1)

## Standard Folders → Module Structure


| Folder | Module Pattern | Example |
|--------|----------------|---------|
| `src/<pkg>/` | `src/<pkg>/modules/<discipline>/` | `src/myapp/modules/data/` |
| `tests/` | `tests/modules/<discipline>/` | `tests/modules/data/` |
| `docs/` | `docs/modules/<discipline>/` | `docs/modules/data/` |
| `specs/` | `specs/modules/<discipline>/` | `specs/modules/data/` |
| `data/` | `data/modules/<discipline>/` | `data/modules/ingestion/` |
| `logs/` | `logs/modules/<discipline>/` | `logs/modules/api/` |
| `.claude/skills/` | `.claude/skills/<discipline>/` | `.claude/skills/data/` |


## Exceptions (Keep Flat)


| Folder | Reason |
|--------|--------|
| `specs/templates/` | Shared templates |
| `docs/assets/` | Shared images/files |
| `.claude/state/` | Runtime state |
| `scripts/` | Build/deploy scripts |
| `config/` | Configuration files |

---

