Фрактальная организация файлов проекта
engineering
fractal-file-structuring is a Claude Code skill that organizes TypeScript and JavaScript files into a fractal tree structure, reducing the cognitive overhead of deciding where to place files and how to navigate a codebase. Based on HASH's file-structuring approach, it applies whenever Claude creates, moves, splits, or reorganizes files and folders in a TypeScript or JavaScript workspace. Core rules include: kebab-case for all file and folder names (even React components), no index files — use meaningful named entry points instead, treating each file as a mini-library with named exports, splitting overgrown files into same-named private subtrees, and enforcing API boundaries so nothing imports directly from another file's implementation folder. Shared helpers, types, or components go into the nearest applicable shared/ folder rather than a top-level one. Useful for developers refactoring large modules, designing monorepo layouts, or establishing consistent code organization conventions.
- #typescript
- #javascript
- #file-structure
- #code-organization
- #refactoring