brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: explain why you want something and Claude aims better

Claude
~/tips/tip-claude-explain-the-why

Keep the answer under 100 words, because it goes in an SMS.

Adds the reason behind an instruction to a Claude prompt so the answer fits your goal better.

A bare rule gets followed bare. A rule with a reason gets followed with some sense.

The prompting guide says that giving the motivation behind an instruction, so explaining why a behavior matters, gives Claude more information about your goals and helps it deliver more targeted responses.

Keep the answer under 100 words, because it goes in an SMS.

Do not use bullet points, because the text is read aloud by a screen reader.

Compare that with a plain “keep it short” and “no bullets”. With the reason attached, Claude can make sensible calls in the cases you did not think of, like what to do with a table or a long number.

This is how I would brief a human colleague, too. Nobody follows “just do it this way” as well as they follow a reason. Models are not people, but the guide says the same effect holds, and it costs one extra clause.

The caveat: the reason has to be true and short. A paragraph of background is just a longer prompt, and the first sentence still has to carry the task. One why per rule is plenty.

Further reading: Prompting best practices – Claude docs, On this site: wrap each part of a long Claude prompt in its own XML tag, On this site: put the long document first and your question last in Claude

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link