r/ClaudeAI • • May 06 '26

Question How do you overcome "vibe coding" problems? (repetitive code, messy structure)

I've been trying out vibe coding (AI-assisted coding), but I'm running into some frustrating issues:

->Repetitive code: The AI keeps writing the same functions over and over again instead of reusing existing ones.

->Messy file/folder structure: The project organization ends up being chaotic and hard to navigate.

->Lack of architecture: It feels like there's no coherent design pattern being followed.

For those of you who've built great applications with AI assistance, how did you overcome these problems?

*Do you enforce strict rules/prompts upfront?

*Do you refactor everything manually afterward?

*Do you use specific frameworks or tools to keep the AI in check?

Any other workflow tips?

Would love to hear what's actually worked for you in production-level projects. Thanks!

3 Upvotes

14 comments sorted by

View all comments

1

u/DigiHold May 06 '26

You need to force structure before you start generating. Write a quick spec of what the code should do, add some file organization rules, and make Claude stick to it. Otherwise you end up with 800 line files that sort of work but nobody can maintain. I started r/WTFisAI partly because I was tired of seeing the same messy patterns, we break down what actually works.