Claude
Rename a variable everywhere, safely
Edit it in place, then copy. The highlighted parts are the ones meant to change.
The slots are named rather than numbered —
{{old}} and {{new}} beat $1 and $2 when you are reading a prompt back a month later.More prompts
Rename `{old}` to `{new}` across this file and every file that imports it. Do not touch unrelated identifiers that happen to share the name.
Claude
Rename a variable everywhere, safely
Explain what this regex matches, in plain English, one clause at a time: `{pattern}`. Then give one input it matches and one it does not.
Claude
Explain a regex, plainly
Read this diff and write a commit message: one line under 70 characters, then a blank line, then why — not what — in 1-2 sentences.
Claude
The implicit grid explanation finally made this click for me. I had been declaring rows for years without knowing why it sometimes worked anyway.
That is exactly the trap — it works right up until the content count changes. Glad it helped.
Would love a follow-up on subgrid. It is the one part I still avoid.