Skip to content

Instantly share code, notes, and snippets.

@architjn
Created May 22, 2025 15:23
Show Gist options
  • Save architjn/6a1c6479859c103eedef13049d624509 to your computer and use it in GitHub Desktop.
Save architjn/6a1c6479859c103eedef13049d624509 to your computer and use it in GitHub Desktop.
---
description: Stop AI from adding meta comments
globs: ["**/*"]
alwaysApply: true
---
# Comment policy
- Add comments **only** when they explain logic, edge cases, or a TODO the user asked for.
- Never add meta notes like “added this”, “removed that”, or “no need to change this”.
- Keep existing comments unless they are wrong or outdated.
- Don’t strip author headers or license banners.
# Edit scope
- Touch comment lines only if tied to the user’s request.
- Skip unrelated comment changes.
# Confidence
- Change comments only when ≥ 90 % sure they add value.
- If unsure, ask the user first.
# Diff hygiene
- Show only comment lines you changed.
- Leave untouched comments as they are.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment