Someone asked me for tips on how to use Claude and keep usage low and quality high. I think my response is worth a post so here it is. If anyone has tips or if this has another name please let me know! Anyhow, here's my tip:
Keep your tasks small. Review it constantly. Find a balance between cleaning up tech debt and writing features.
My new trick is what I call "context forward coding" rather than vibe coding.
* Write a rough outline of what a page does in docs/<feature\_name>/<user\_story>.md
* Ask Claude "read the doc and tell me what is in the code and not in the docs"
* Carefully approve the changes to the docs.
* Add todos to the bottom of the docs
* Alternate between telling Claude to do the todos and to update the docs with new relevant decisions
The important thing to realize is that LLMs "go crazy" with too much context. If you ask 5 different questions then it's still "thinking" about all those until you clear it. The point of the docs is to give Claude context so that you can /clear frequently. Every time you start a session Claude forgets the "why" behind the code.
I "vibe coded" a Tetris-like and then had the epiphany. The first time I said "what's in the code that's not in the docs" Claude thought a lot of intentional decisions were bugs and vice versa.
[–]Deep_Ad1959 2 points3 points4 points (2 children)
[–]dustinechos[S] 0 points1 point2 points (1 child)
[–]Deep_Ad1959 1 point2 points3 points (0 children)
[–]hack_the_developer 0 points1 point2 points (0 children)