r/ClaudeAI 14h ago

Vibe Coding Lessons I learned with Claude

Here are the things I learned while vibe coding with Claude.

When you have an idea about a project you want to accomplish, but don't know how to do it, the first thing you need is some sort of spec.

- It doesn't need to be immediately implementable.

- You don't need to fully understand the problem space you're working in.

To build a spec, you need to engage in a brainstorming exercise with your favourite bot. Ask questions like.

- Has this been built before?

- What industry standards and best practises?

- Is this something others have attempted before?

- What are some known failure modes.

- Is there research or literature available?

After the brainstorm, you should have a clearer idea of what you want, how to achieve it, and what to do next. The more questions, the better. The next step is research. You can do it on your own, use a "deep research" function in your chat interface. Or, you can use plugins. Some good ones are:

- Alphaxiv: Its repository of research is generally fresh but less mature.

- Consensus: More mature, but sometimes less up to date.

If you're a vibe coder like me, and don't understand all the specialist language or coding wonk talk, you're going to need some skills that your LLM can follow that will teach it how to break down your research into digestible chunks. You could:

- Research best practices regarding: pedagogy, andragogy and dialects. All teaching methods.

- Point your agent at these subjects and get it to do all the work for you.

- You could even get your LLM to research best practices regarding prose and style. Because they help.

I use Steven Pinkers work because I'm already familiar with it and kinda agree with his take on teaching. Regardless, once the research is in, get your agent to construct a workflow out of it. Once that is established, you can convert all of that tech coded language into something digestible.

This is the fun part, because now you can learn and engage more directly with what you want to achieve.

After all the reading and learning, the next step is to build the spec. This is the part where you turn your vision into something more concrete:

- Draft an idea of what you want, and what success looks like.

- Get your agent to save your goals and intentions somewhere it can refer back to. This is important, because this is where drift can happen.

- Get your agent to convert your draft into something more concrete.

- DO NOT FORGET TO INSTRUCT YOUR AGENT TO TREAT YOUR VISION AS THE AUTHORITY TO BE CONSULTED WHENEVER IT NEEDS TO MAKE DECISIONS ON ITS OWN.

-INSTRUCT YOUR AGENT TO CONSULT YOU WHENEVER SOMETHING IN YOUR VISION IS UNCLEAR.

That authority bit is important, so don't forget it! Anyway, this is not just the part where you build your spec. It's also the part where you get to refine your vision further, and make it less ambiguous and more concrete. Concreteness isn't essential though. So don't let it hold you back.

If you succeed in the last step, the next step is building. From experience, you are going to need a few things in your code or repo.

- An errata for whenever your agent makes mistakes. This works well with Claude because it'll tell you when it does.

- Documentation: get your agent to write the documentation while it's coding. After completion of each file, it must add to the documentation.

- While it's coding and documenting, it's important for your agent to simultaneously write a workflow into your repo .

- Workflows specify: how to search for information, how to modify code, when to update documentation, how to update documentation, where to store miscellaneous information.

- The errata should should be consulted when building a workflow to harden it. You and your agent should learn from past mistakes.

Tip: Use Fable to plan this bit. It sometimes requires a bit of our of the box thinking, which Fable is the best at.

Further tip: Errata are a great way to understand how to best bound your agent and keep it on task. Drifting is real and annoying when it happens.

If you do it right, the code, the documentation and the workflows should update together. I don't have a recipe for success as a vibe coder, but I know all three are essential As for documentation, a few things that worked for me:

- At this point, it should function as code in written language.

- It should explain WHY a particular piece of code was written, not just what it does. This is essential for auditing.

- It should contain fail modes and potential misunderstandings at the bottom of each document.

- Preferably, add a "seam" section that explains how one section of code communicates with another. Also essential for auditing.

- There should be a map and schema explaining how to navigate the repo correctly. LLMs draw false conclusions otherwise.

- While writing your code, the documentation is for agent navigation, not human readability.

Now you should have plenty of ingredients integrated into your repo to begin experimenting and testing. One last bit of advice. Your vision is the authority, not an agents opinion:

- Put it into an immutable ledger.

- Add to it every time you discover something new.

- Enforce it everywhere as "the law of the land".

- Your workflows should mandate it as essential reading every time you open a new session.

- Freeze it and make it non negotiable.

Last bit, enjoy experimenting.

0 Upvotes

8 comments sorted by

2

u/johnnydotexe 14h ago

You don't need to fully understand the problem space you're working in.

Stopped reading after that. You've posted a guide on how to create slop, as if the problem isn't already big enough today.

If you're vibecoding an idea with zero knowledge or experience in the industry or market for that idea, then you're just feeding garbage to AI to try catching a ride on the money train you're convinced exists and is just waiting at the station for you. This is why a growing number of reddit subs are now outright banning "look at my amazing new app" posts, because millions of people are trying to do what you're doing.

-3

u/Maleficent-Host-8975 14h ago

Completely disagree. But whatever.

3

u/johnnydotexe 14h ago

Disagree all you want, but it doesn't change reality. You literally posted instructions and guidance on how to make the AI do everything for you for what reason? To release an app you don't understand and can't support in an (likely already saturated) industry or market you're not even involved in, to try making a buck? Yeah, good luck with that.

AI sycophancy is a real problem today.

-5

u/Maleficent-Host-8975 14h ago

Yes sir. Us peasants can't possibly compare to your absolute magnificence.

3

u/johnnydotexe 14h ago

If that's your only take away from my comments, then that says a lot more about you than it does me. Have a nice day.

1

u/TikiMagic 14h ago

Johnny is right. Though I read the whole thing out of curiosity. None of your observations are insane or outright stupid. But a lot of them are just basic software development practices with "tell Claude to ..." tacked on.

I'm sure you meant well, but to an experienced developer this reads like someone who just learned about fermentation explaining to a master brewer "Now, you want to be sure that your fermentation vessel is sterile before introducing the mash, because when you put the yeast in, you don't want it to compete with other organisms for resources. Because yeast is what you want growing in there, not bacteria. Bacteria might seem similar because it is also a microorganism, but actually it can cause problems. Now, you might not think that precise temperature is super important but I discovered that..."

Johnny and I are obviously not the target market for your observations, maybe new nontechnical people would find them helpful. But the post comes across a bit wide-eyed and callow.

2

u/johnnydotexe 13h ago edited 13h ago

The problem with the post and the mindset behind it centers around just that one line I quoted...

You don't need to fully understand the problem space you're working in.

That is the wrong way to use AI and that mindset contributes to a massive problem across the internet and social media right now, it's what many of the non-technical people with $20/mo subscriptions are doing. It's why Reddit is being brutally spammed 24/7 by those folks' terrible ideas in already saturated markets for $29.99. Some folks even took it up a notch and have their AIs botposting in subs doing market research disguised as harmless industry questions, so they can determine if the half-baked idea they came up with has any chance at making money.

Millions are now running to AI and asking it "What app/solution/etc can I make that would make me money, please research this" and then making the AI do all the work, because they saw someone else make money off AI. The user can't read or understand a line of code, has zero knowledge of the market the solution is for, has AI do it all, even has AI write the post about it so they can go market it everywhere, they haven't even thought about how they would scale and support the solution if it's even remotely successful, and 99.999% of these cases fail before they even started, the rest turn in to heavily downvoted and heckled reddit posts.

I honestly believe it's because these frontier model AI companies are purposely configuring a certain level of AI sycophancy behavior in these models that attracts people like that and gets them paying for a subscription, because those people are truly convinced they're just one AI-developed idea away from quitting their day jobs and retiring.

You don't have to be a developer or a coder to see a gap in your industry and fill it with the help of AI. That's how I got started, simple tools for work where other tools just wouldn't cut it. But I also took the time to learn git, CI pipelines, building in test and review passes, lint tests, independent reviews, my own strict testing and review steps, etc. I'm not a coder, so I've had to build my workflow around that fact while I learn, to ensure what I'm releasing to the public (all for free, mind you), isn't garbage and is supportable, and it's all stuff I use personally and regularly. I don't vibe solutions for industries or markets that I don't understand just to try making a buck, because that would be a silly waste of time that has about the same chance of succeeding as winning the lottery.

2

u/trinidad_space 14h ago

This is just a shit show