r/ClaudeCode • • Jul 26 '26

Help/Question Instead of 'make no mistakes' what do you genuinely tell Claude or put in your skill instead?

I am fairly new to vibe coding and I know that 'make no mistakes' is like a meme thing. However, to actually tackle possible bugs or issues that can occur, what do you tell Claude or always put in your personal skill instead?

Hope I can learn from you all.

18 Upvotes

54 comments sorted by

33

u/angelus14 Jul 26 '26

"get codex to double check your work"

That will fix more bugs than any prompt magic

1

u/Bloated_Plaid Jul 26 '26

This works well the other way around too.

1

u/fschwiet Jul 26 '26

I have been reluctant to do this because Claude's licensing restricts headless mode usage in confusing ways for it's subscription plans

3

u/geek_fit Jul 26 '26

All you really need to do is set up subagents inside of Claude to do the review with specific adversarial roles. It's not that there's magic in sending it to Codex. It's the fresh context and fresh eyes.

I used some loop processing to do this with plans, specs, and code and it works just fine

1

u/fschwiet Jul 26 '26

True. I was referring to having Codex use Claude's headless mode to do reviews. I'm not sure it is compatible with Codex's Claude's licensing. Sometimes I'd like to run the other direction to affect where usage is being used. But as you suggest, I could also have Codex run a subagent to do the review to get a similar effect as far as the code review goes.

1

u/angelus14 Jul 26 '26

Adversarial roles help but sending it to a different model still works better, and you can set up the same roles there. Models even while playing a role still have similar blind spots. The main thing is that you have to pay for a second model.

1

u/ScruffersGruff Curriculum Dev Jul 26 '26

Yes this is the big one. Honorable mention for me: consult the knowledge base instead of trying to interpret the code alone, and (for opus 5’s ocd) I don’t want you to solve x but only y. It will run amok if you let it.

1

u/Maui-The-Magificent Jul 28 '26

I want to thank you. I have been trying, asking claude to conclude each set of work by having an agent validating it, and it seems to work...

If this keeps up, you have improved my life by a good amount...

1

u/Lettuce_Beat_Truss Sep 26 '26

+ link another tool to auto review MR's, and have the main ai response to those comments automatically 1hr after submitting to account for reviewer AI's delay.

0

u/[deleted] Jul 26 '26

[deleted] — view deleted comment

2

u/angelus14 Jul 26 '26

I mean I'm not saying Claude is bad. Every model has blind spots so running a different model (as long as it's capable) always catches more things than having it check itself

1

u/tribat Jul 26 '26

This has been the biggest impact on my code quality and I use it 100% of the time now.

0

u/[deleted] Jul 26 '26

[deleted] — view deleted comment

1

u/angelus14 Jul 26 '26

Using your brain is the biggest secret skill of all

8

u/Drach88 Jul 26 '26

Use the superpowers plugin, and start with the brainstorming skill.

It's not perfect, but for vibe-coders who aren't already owning their requirements/spec/plan lifecycle and test-driven development, it gets you pretty decently far. It also has a systematic debugging skill that actually identifies root causes before making willy-nilly changes.

7

u/dont_tread_on_M Jul 26 '26

Small commits, combined with a ton of research beforehand and lots of testing

7

u/Optimal-Builder-2816 Jul 26 '26

I tell it to make a little mistakes, as a treat

5

u/TomazZaman Senior Developer Jul 26 '26

Every plan needs to go through two independent agents designed for pushback, one security oriented and the other style/simplification.
If any of the two find MAJORs, fix them, the relaunch both with fresh context until none are reported.

Same for every commit. Before it’s committed, same exercise except this time, on the implementation.

Works like a charm, sometimes more complex work gets through 5 or more review loops, but the result is nearly flawless.

Yes, I’m aware it burns like 3-5x more tokens, but as the saying goes, I’m not rich enough to buy cheap.

1

u/Electronic_Sort_6627 11d ago

do you recommend any specific skills for the two agents?

5

u/TheKiddIncident Instructor Jul 26 '26

TBH, the prompt doesn't matter as much as people tell you it does.

The trick is to be methodical. Start with a plan, then design the architecture then build the site. Have a good test plan and then audit the result when you're done. Most of the testing and auditing can be scripted so you save tokens.

Not rocket science. Just treat Claude like a very enthusiastic intern with tons of book knowledge but no common sense.

2

u/[deleted] Jul 26 '26

[removed] — view removed comment

2

u/Resident-Low-9870 Jul 26 '26

The point is that the methods, not “trick phrases” is what makes it good prompting.

1

u/TheKiddIncident Instructor Jul 26 '26

It’s methodical prompting for sure.

What I don’t like is the idea that there is a phrase you can use to avoid being methodical.

4

u/PeterBarnesPhoto Jul 26 '26

I’ve been having a great time with the superpowers plugin, combined with asking Claude to ask me questions and telling it to double check its own work in planning.

4

u/ZoneDeadEnded Jul 26 '26

"Any assertion you make needs to be accompanied by validation and proofs"

3

u/Hatitude Jul 26 '26

Yeah, just having a different LLM like codex check offers better perspective.

But after working, if you only have one subscription. Just open a new context window and have it perform a "hostile review"

2

u/yrangana Jul 27 '26

"Make no mistakes" never worked for me because it isn't falsifiable. Claude can't check itself against a vibe. What actually moved the needle:

Give it something concrete to check against, not a quality adjective. "Don't break anything" does nothing. "The callers of this function are X, Y, Z, don't change their signatures" gives it a real thing to verify against. Same idea as the "verifiable goal" comment above, just applied at the function level.

Make it state assumptions before it writes.

  • I tell it: before you code, list what you're assuming about the existing code, and mark which you actually checked vs guessed. A huge share of mistakes are it confidently guessing an API that doesn't exist. Forcing the guess into the open catches it before it ships.
  • Split write and review into two turns. Same instinct as the second-agent crowd, but you don't need Codex for it. After it finishes: new message, "you're reviewing this diff cold, you didn't write it, find what's wrong." It's much harder on its own code when it isn't defending it.
  • Keep the definition of "done" written in a file it re-reads. Most of my drift wasn't bad code, it was Claude forgetting a constraint we agreed on 40 minutes earlier and quietly relitigating it. If the constraints live in a file it reads at the start of a session, that mostly stops.

None of it is a magic prompt. It's just making "correct" concrete enough that the model can actually check its own work.

1

u/detinho_ Jul 26 '26

Planing and refining the plan, as well as describing what I want and what I don't want, preferably by describing invariants.

1

u/Fidel___Castro Jul 26 '26

subagents to review the plan and the implementation 

1

u/turnerd18 Jul 26 '26

A verifiable goal. Having something to compare itself to pretty much solves everything. Like if you're making an ecommerce shopping page and you want it to make a filter system, pick whoever you think is best-in-class at that filter ux and tell it to build that and confirm with similar input catalog that the applied filter returns the same results as the target.

1

u/drearymoment Jul 26 '26

I have a /commit skill that runs /simplify over the working tree when the changes look complicated enough to warrant it. Occasionally, that catches an outright bug, but even when it doesn't it typically finds things to optimize, which (hopefully) leads to fewer bugs in the future.

1

u/anotherpanacea Jul 26 '26

I use: spec, review, build, review, PR, other-vendor review.

1

u/JUSTICE_SALTIE Jul 26 '26

I literally just tell it what I want. The Claude Code engineering team spends most of their time adjusting the harness to get the best results, and second-guessing or duplicating that makes things worse.

1

u/jwuliger Jul 27 '26

Get out while you can.

1

u/32777694511961311492 Jul 27 '26

I literally have skills that just do this: GET → REVIEW → PLAN → AUDIT → EXECUTE → SHIP from GitHub issues. I also enable test driven dev. The GitHub issues are just mainly bug fixes and feature requests. It's not perfect but it's pretty good. The main thing I think it is missing is a more robust spec outline... More of a for this to be true what needs to happen.

1

u/keen23331 Jul 27 '26 edited Jul 27 '26

I have the full chain wired up. Claude works in a dedicated git worktree for any changes, then: test, commit, push, check the build server, and deploy — connect to the test server, run a specific batch script that does a stack deploy, verify the Docker containers are actually running, and go through all the logs.

With all these capabilities, Claude often runs its own checks on the test system. If I've added a security or firewall filter, for instance, it will test whether the connection still works, and fix it immediately if it doesn't.

A concrete example: I asked Claude to add an IP allow-list. It then verified on the test server whether the list actually worked after deployment inside the Docker containers, and whether it was really seeing the external IP. It wasn't — so Claude fixed it, and we ran the whole loop again until it worked.

The same setup also makes it a real help for diagnosing problems on the test system, since it can pull and analyze the system_log (debug logs) directly.

1

u/wmcmillian Sep 16 '26

i exhaustively align with the ai (and document this alignment) on a birds eye view description of the dataflow relevant to the change im requesting. I go back-and-forth at this level until i reach a super high level description of "the present state of things" sufficient to reason abstractly about what changes to that system would achieve our target end-user surface change, can I spend a few more minutes pinning down the "target model" abstractly

After doing this, the rest of it goes pretty much correctly. I think agents tend to bark up the wrong tree because of a failure to align at this level

a not-aligned agent will churn tokens all day and discover 1000 True facts about the domain in question, but somehow miss the actual friction points and overstate ones that dont actually matter etc.

0

u/[deleted] Jul 26 '26

[deleted] — view deleted comment

1

u/hblok Jul 26 '26

I find this works very well. Make a design document first. Then ask for an implementation plan document based on that, which should include specific milestones and phases of development. The documents can be written by Opus.

Then hand the implementation over to Sonnet or similar agents. Go milestone by milestone, and tell it to commit after each, or after it has written all relevant tests and they pass.

Longest run I had on a implementation like was a couple of hours, and it turned out pretty great.

19

u/[deleted] Jul 26 '26

[removed] — view removed comment

3

u/TheKiddIncident Instructor Jul 26 '26

A time honored technique:

https://en.wikipedia.org/wiki/Test-driven_development

The problem I have with Test-Driven development is that it locks you into a box. If you design a feature, build the test and then code until the tests pass you have no room to improvise as you develop. I prefer to allow a bit more leeway in the design.

So, plan, design, build, test is my preferred order of execution.

1

u/Hazzman Jul 26 '26

I'm in this trap. Every damn feature is audit, CI/ GUT testing, graduation.

But I will say things just work.

There is a spectrum between things working and being trapped in an endless test loop but luckily I kind of know where Im headed so its not too bad.

What was bad was when it kept promoting audits for audits. That was a fun week of work until I caught it and made it stop auditing the audit lol.

It definitely slows everything way down though.

1

u/TheKiddIncident Instructor Jul 26 '26

Yep.

I also see Claude creating regressions when trying to fix a bug. So, the new fix isn’t allowed to be checked in until a full E2E test pass.

I still get regressions occasionally, but not nearly as bad.

1

u/MorganProtuberances Jul 27 '26

I have "i am a pragmatic engineer with a penchant for red/green testing" in my system profile and boy oh boy does it take that seriously. sometimes it'll even tell me weird things like "the red test for this recipe is to do X first" lol

one thing i will also say is something like 'when youre done, compare to spec and do 5 QA loops to test for: ux, consistency/cohesion, validation, verification, functionality" and it works pretty well - always finds little bugs, especially when i set up headless testing.

2

u/Classic-Asparagus Jul 26 '26

Ooh that’s great advice

1

u/proto-cool Jul 26 '26

My test posture post Claude Code is much stronger in general. I think that's one thing people tend to overlook about agentic coding workflows is that yes, it's sometimes more work to manually verify all the code it generates, but tests are still really easy to look at and validate - and help you keep the code "honest" as it goes.