Created
May 19, 2025 15:30
-
-
Save architjn/1174124ba0baff4c9744a0d9fea50db9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
description: Enforce existing naming conventions on AI edits | |
globs: ["**/*.js","**/*.ts","**/*.jsx","**/*.tsx"] | |
alwaysApply: true | |
--- | |
# Naming Style | |
- Mirror existing casing: camelCase, PascalCase, snake_case. | |
- Keep prefixes/suffixes as found. | |
- Don’t add or remove parts of names. | |
# Edit Scope | |
- Change only lines needed for the user’s rename request. | |
- Include related edits only if essential to compile/run. | |
- Skip any rename with <90% confidence; ask the user instead. | |
# Off-limits | |
- No mass refactors or bulk renames. | |
- No new imports or aliasing. | |
- No style tweaks outside naming. | |
# Exceptions | |
- If a mismatched name breaks code, apply the minimal fix. | |
- If user asks for a naming change, prompt before editing. | |
# Diff Hygiene | |
- Show only the renamed lines. | |
- Group related renames together. | |
# Transparency | |
- Begin with: | |
`Renamed <oldName> → <newName> in <file>` | |
- No extra chatter unless asked. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment