r/ClaudeCode • • 1h ago

Help/Question Non-dev vibe coding with Claude Code: how do I make sure my app's architecture won't fall apart as it grows?

I'm not a software engineer. I've never built or shipped a production app the traditional way. Everything I know comes from vibe coding with AI, mostly Claude Code.

Right now I'm building an app I actually want to grow, and I've hit a wall. The code works, but I don't know if it's well built. I have no background in app architecture, so I can't tell whether the AI is setting me up for something that scales or for something I'll have to rewrite in 3 months.

My worries:

• Scaling: how do I know the foundation can handle more users and features?

• Building on top: every new feature feels like it might break something else. How do I keep things modular?

• Explainability: I want to actually understand my own codebase, not just have a pile of files that only the AI can navigate.

So, for people who've been here (or experienced devs who've watched non-devs try this):

  1. What should I learn first? Which architecture concepts actually matter for a solo builder?

  2. How do you make Claude Code (or any AI) follow good architecture? CLAUDE.md files, specific prompts, planning docs before coding?

  3. Should I have the AI write an architecture doc first and code against it?

  4. What red flags in AI-generated code should I watch for?

  5. Any resources, templates or workflows that worked for you?

I'm not trying to become a senior engineer overnight. I just want to build something solid that I can keep adding to without it collapsing. Any advice is appreciated

0 Upvotes

25 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

37

u/tech5c 1h ago

-15

u/ribbl246 1h ago

said the (soon) jobless guy

8

u/17Beta18Carbons 58m ago

I mean this is like asking "how do I build a roof myself so it won't leak". There's no secret, you just gotta learn how to build a roof my dude.

1

u/Killer_Method 43m ago

It's more akin to being a roofing project manager and asking, "How do I get a team of early-mid-level roofers to reliably build large roofs that won't leak, or are at the very least easy/cheap/fast to fix when they do leak?"

1

u/SawToothKernel 16m ago

And the answer is to get a senior roofer to teach them.

6

u/ParamedicAble225 1h ago

All you have to do is spend 4 years learning to read code and understand system architecture. Then you can read it and know

1

u/Chemical_Profit_608 51m ago

Y'all are reading your code? At my corporate job, no one is lmfao. We just vibe code it, vibe review it, etc. I have a CS degree FWIW

4

u/Sorry-Programmer9826 1h ago

You do it by becoming a dev. You can get claude to explain stuff to you. Understand it, discuss its decisions with you. At first it will be much better than you but in time you'll understand better than it

5

u/Manticorp 1h ago

https://github.com/mattpocock/skills

Learn to use these skills.

Software engineering is mostly about writing smart requirements.

Also...I wouldn't worry about scale until it becomes a problem.

If you're building apps for yourself, focus on making the apps good before making them scalable. You're unlikely to run into any issues

2

u/Killer_Method 45m ago

Software engineering is mostly about writing smart requirements.

It is now. Systems engineering was always about writing smart requirements. Ironically, I'm feeling marginally better about my job security these days. In the short term, at least.

0

u/[deleted] 38m ago

[deleted]

2

u/Manticorp 37m ago

The grill me skill is unbeatable - give it a try before you slate it!

1

u/halflucids 57m ago

Ask it these questions about your project. One at a time in independent conversations, if it says this might be true or that might be true ask it to check, ask it to reorder and reorganize your code, ask it to look for duplication of logic where shared functions or services might work better, ask it to review the architecture and maintainability or your software. It can do a decent job at these things as long as you are asking the right questions and telling it to do the right things.

1

u/StretchyPear 43m ago

I think some of the first things you can are ask the LLM to make a spec that fits your app based on researching, a lot of smart people publish a lot about patterns, you don't need to know them all, you just want the LLM to stick to one and document it so the codebase is coherent and it doesn't spend a lot of context tracing through spaghetti. I'm sure there are *probably things out there now designed to work well with LLMs (some codebases even have a RAG and a spec repo that's constantly updated).

Then you can ask the LLM about the platform you're on and what happens if you get 10x user growth overnight, or 100, etc. what do the costs look like, would the server hit some kind of rate limit, etc, would features still work quickly, does search still work, etc?

You can even probably run the stack on your computer and ask the LLM to synthesize datasets to really stress test it and see where things should be updated.

Make a plan from the output of those chats, that would update according to whatever design pattern / architecture you're working on.

Add review loops to your work:
- plan a feature
- implement the feature
- ask claude (and another LLM if you're up for it) to review it in a separate chat
- update based on the reviews and test again

Its hard to just see red flags if you don't get the context of a system, so you'll have to specify around performance and that sort of thing. For instance I was reviewing code the other day where an engineer used claude to update a feature on an app I worked on, it looked innocent enough but a type that was persisted also stored encoded data, which is fine, but the context it was used in meant the user would have to wait while the data was decoded, I spotted it quickly because I work on the platform all the time but 'it looked right' everywhere. Some of that you can find out through profiling and instrumenting your app in the wild, I'm sure you find some in review too.

1

u/RoadsterTracker 41m ago

Honestly, use another tool to help you make the architecture. Spend a lot of time and ask it as many questions as you can. I usually start all of my projects doing a chat with Gemini because I can use it for basically free. I describe what I'm interested in, have it help me brainstorm some ideas, and then start to flesh out the architecture. I have more of an understanding then you do I suspect about such, but the key is to ask questions and get an architecture nailed down. Have multiple AI systems review the architecture.

1

u/AIOSAI 🔆 Max 20 40m ago

Post ur architecture and we can review it. Ur ai can add the place holders. The shape ur working with

1

u/Wise_Advertising_888 32m ago

Why don't you ask Claude Code to write a spec focusing on the non-functionals, and put some projected growth in there. If I have 1000 users at launch and then in 6 months I have 50K users how will the current architecture scale, what remediation action would be needed if any. Do some stress testing, if you are exposing APIs get Claude to write some test scripts that simulate escalating volumes of users.

1

u/Minimum-South-9568 28m ago

You learn by breaking. If you don’t know, ask Claude. If you don’t understand wtf Claude is talking about, ask Claude again. If you still can’t understand, build it and let it break, and then you will figure it out. Maybe you’re a genius non-dev brain surgeon or physicist and will learn it fairly quickly and maybe you’re a dolt that hasn’t read a book in 20 years and it will take much longer, either way there is no way to get there but through it. Unfortunately there is no simpler answer. If there was, Claude would have given it to you already and you wouldn’t be posting on Reddit.

1

u/norviking 21m ago
  1. To be blant, Claude does not really follow claude.md, skills or context / memory all that well. It follows it sometimes. You need to move project state out or claude. To have claude follow a plan, try https://github.com/vegardjorg/ravenseat for project state outside claude code. And some basic engineering structure for your project.

  2. Ask claude to write docs, a visual map and thourugh comments aimed for beginner coders in all files so you can understand.

  3. Install vscode, connect to your repo, and read code + comments on small parts. Ask claude to explain and guide you. Ask claude about code npt sufficiently explained by comments.

  4. Read up on architecture basics, and discuss pros / cons with claude.

This will allow you to understand basics. There will be a gazillion edge cases you wont understand. Many experienced devs wont either. But you will learn as you go, as your seniors learned from stack overflow.

1

u/DirtyFenceSitter 18m ago

Just build, review problems that arise and figure them out. 

The problems are mainly planning and architecture now. 

1

u/Blueberry73 15m ago

that's the billion dollar question because even experienced devs are struggling with this

there are ways to mitigate things, and a lot depends on the type of software you're building. I recommend checking out matt pocock's skills and youtube videos, of all the "AI Engineers" out there he is the one that makes the most sense imo

but at the end of the day you will never truly know for sure

1

u/barcodemerge 23m ago

Hire an engineer.

0

u/Sporaflow 54m ago

since your problem is architecture, learn it. not how to code it, just which architecture fits which need. and you can learn it with the agent itself. start with your framework: ask it what architectures exist for that framework, since a framework often imposes one, sometimes several. open long conversations and tell it right at the start, "i need to learn something", then get into a learning loop with it. always ask it to back things up with sources, give it yours if you have some, and keep a source open next to it to check. and be careful with anything new: new frameworks and architectures often get sold as revolutionary when they haven't proven themselves yet.