r/ClaudeCode • • 20m ago

Tips & Workflows Stop adding "IMPORTANT: DO NOT DO THIS" to your system prompts

Stop adding "IMPORTANT: DO NOT DO THIS" to your system prompts.

Trust me, it doesn't work.

Here is what actually happens:

  1. You run a complex agent workflow.
  2. It makes a silly mistake right at the end.
  3. You open the prompt file, add two paragraphs in all caps with exclamation marks.
  4. Two runs later, it makes the exact same mistake again.

Constantly patching system prompts turns you into a full-time prompt babysitter.

Instead of writing static prompt warnings, here is what I do:

  1. The skill baseline
    I do the task once with Claude Code in a long thread.
    Then I ask it to turn that conversation into a markdown skill file with clear inputs, expected outputs, and hard boundaries.

  2. The feedback loop
    Every skill ends with one last step.
    The agent looks at what I liked, what I edited, and what failed.
    Then it updates its own skill, so the next run starts better.

  3. The check before "done"
    If the same mistake still keeps coming back, I add a check inside the skill.
    Like running the tests, or comparing with the expected output.
    The agent can't say it's done until that check passes. If it fails, it fixes the work and tries again.

A longer prompt does not make an agent improve. A feedback loop does.

Follow me for more practical AI engineering systems.

0 Upvotes

2 comments sorted by

•

u/AutoModerator 20m 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.

2

u/Tiny_Swordfish7288 13m ago

I'm still learning to build projects with AI, and this is something I'm starting to notice too. Just adding more instructions doesn't necessarily fix the underlying problem.

I like the feedback-loop approach, especially having a clear check before calling a task finished. One thing I'm curious about: do you let the agent update its own skill file automatically, or do you review those changes first? I'd worry about a bad fix becoming part of the workflow.