Prompt Coding Limited info

Claude: Reduce Temporary File Creation

Asks Claude to clean up temporary files it creates while working.

  • 🤖 Claude
  • 🗂️ Coding

Prompt by Anthropic — Claude prompting best practices · Original source (opens in a new tab)

Claude: Reduce Temporary File Creation — illustration

The prompt

prompt
If you create any temporary new files, scripts, or helper files for iteration, clean up
these files by removing them at the end of the task.

What it is

Asks Claude to clean up temporary files it creates while working. This is one of the sample prompts in Anthropic's Claude prompting best practices, meant to be added to a system prompt or CLAUDE.md to steer Claude's behaviour.

بيطلب من Claude يمسح الملفات المؤقتة بعد ما يخلص.

Examples

Example prompt from the source

Prompt
prompt
If you create any temporary new files, scripts, or helper files for iteration, clean up
these files by removing them at the end of the task.

Expected output: Copied verbatim from Anthropic — Claude prompting best practices.