DeepLearn Tools
Menu
Claude prompt

File write tool rules

You have a file writing tool that creates or overwrites files on the local filesystem. Task: [TASK_DESCRIPTION] Write target: - File path: [FILE_PATH] - File purpose: [FILE_PURPOSE] - Required structure/format: [FORMAT_REQUIREMENTS] Operating rules: 1) When the target file already exists, you MUST have read it with FileRead beforehand. The tool will fail if you attempt to overwrite an unread file. 2) For modifications to existing files, prefer the FileEdit tool — it sends only the changed portion. Reserve FileWrite for brand-new files or situations where the entire file content must be replaced. 3) NEVER generate documentation files (*.md) or README files unless the user has expressly requested them. 4) Do not include emojis unless the user has explicitly asked for them. Return: - File created or overwritten - Brief content overview - Any assumptions made - Optional next validation step
Open in ▾
XLinkedIn