{ "name": "doc-file-warning", "version": "1.0.0", "enabled": true, "description": "Warn before creating documentation files to avoid unnecessary documentation", "when": { "type": "preToolUse", "toolTypes": ["write"] }, "then": { "type": "askAgent", "prompt": "You are about to create or modify a file. If this is a documentation file (README, CHANGELOG, docs/, etc.) that was not explicitly requested by the user, consider whether it's truly necessary. Documentation should be created only when:\n\n1. Explicitly requested by the user\n2. Required for project setup or usage\n3. Part of a formal specification or requirement\n\nIf you're creating documentation that wasn't requested, briefly explain why it's necessary or skip it. Proceed with the write operation if appropriate." } }