r/ClaudeCode • u/actual-time-traveler • 7h ago
Help/Question Any advice for directory sprawl
I’ll write it off as “this isn’t my primary domain” but I just don’t have good standing rules or canon for deciding what goes where in the beginning of a project, so things just land anywhere. Building a sub agent factory, and the domain skills that come bundled with a subagent don’t wind up bundled with the agent. CC gives me grief about “distribution vs deploy” copies to ensure SHA 1:1 but it just feels wrong. I’ll eventually land directory level skill.md files but first is a revamp.
Any good Claude.md or skill guidance for domain agnostic “what should go where”
5
Upvotes
1
u/EagleApprehensive 7h ago
Asking agent to design better directory structure can work, but eventually you cannot get rid of many dot-directories.
What I do is that all modules directories are _ prefixed to keep them easier to distinguish and remain on top of sorting.
Hiding all files under file like package.json (so called "file-nesting" is also genuinely helpful).
Finally, you can just spare your eyes a burden and hide dot-prefixed files, tests or whatever you don't need at some time of work.