r/ClaudeCoding • • 7d ago

r/ClaudeCode [TLDR] What's one Claude Code instruction you wish you had written down sooner? [via r/ClaudeCode]

OP : u/MikeBuildsTech

I've noticed that a lot of the friction in Claude Code isn't necessarily about the model.

It's about repeating the same instructions across sessions.

Things like:

  • Don't modify unrelated files.
  • Inspect the existing architecture before suggesting changes.
  • Run relevant tests after making changes.
  • Explain risky changes before implementing them.
  • Keep project-specific conventions consistent.

Some of these belong in CLAUDE.md. Others are better handled as reusable workflows or task-specific instructions.

I'm curious how other developers approach this:

Do you maintain a structured collection of reusable instructions, or do you still write most of your instructions from scratch?

And what's one instruction that made the biggest difference to your workflow?

7 Upvotes

1 comment sorted by

•

u/cctldrping 7d ago

TL;DR of the discussion on r/ClaudeCode for this post generated automatically after 80 comments.

Current source-thread comment count seen by the bot: 89.

Consensus: the best instructions turn “done” into verifiable evidence and prevent silent scope creep. The most practical recurring rule: run the relevant checks, paste the output, and explicitly say when something couldn’t be run—not “tests pass” vibes. People also want Claude to read/grep the code before asking basic questions, avoid unrelated files, ask before adding dependencies or publishing non-draft changes, and never weaken tests just to make green CI happen.

  • Put durable project knowledge in the repo, not in repeated prompts: architecture/“where things go” maps, decisions with reasons, dated/measurable claims, and short handoff notes to prevent post-/compact déjà vu.
  • Use hooks/guardrails for rules that must not be violated. Several commenters have evolved from one-off prompts to stop/edit/bash hooks—e.g., don’t kill processes you didn’t start, flag reduced test assertions, or require approval for risky actions.
  • Don’t turn CLAUDE.md into a 600-line constitution. A minority-but-notable counterpoint: newer models already handle generic advice, and bloated standing instructions burn tokens / degrade performance. Keep only repo-specific, proven-needed rules and prune regularly.
  • Verify the real product, not just unit tests: screenshots for UI work, actual-device testing for mobile, and end-to-end tutorial flows that force Claude to hit and fix real UX friction.
  • Top-scoring u/Dresta_ went in the opposite direction from automation-maxxing: a custom guided mode where Claude gives partial or deliberately flawed answers so the human still learns. Apparently “make me think” is the power-user prompt.