Cursor rule
.cursor/rules/naming-stuff.mdcWhen naming things - files, functions, urls, etc
Cursor rules
Quality
48/100
Scores the file, not the repository.Length
309 words
5 headings · 0 code blocksRepository
24
— · pushed 41 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Naming Conventions89When in doubt, take time to name things well. It's one of the hardest problems in10computer science.1112## Importance1314- Names are a form of documentation that never goes out of date15- Good names reduce cognitive load and make code self-documenting16- Names should reveal intent and provide context17- Time spent on naming is an investment in future understanding1819## When to Pause and Consider Naming Carefully2021The more permanent/harder to change, the more time to spend on naming:2223- Creating new models or database tables24- Defining core functions or classes25- Establishing API endpoints or URLs26- Naming background jobs or tasks27- Creating new features or components28- Defining key variables that appear throughout codebase2930Notably, don't spend excessive time on naming for simple things that are easy to change.3132## Naming Signals3334Names that accurately describe their contents:3536- `string-helpers.ts` over a generic catch-all name37- `user-profile.tsx` matching the directory's casing convention38- `auth.ts` as the final name, not a migration artifact with version suffixes3940Names that belong in their context:4142- Files matching their directory's established convention (kebab-case, PascalCase, etc.)43- Consistent suffixes where the project uses them (`.service.ts`, `.controller.ts`)44- Singular vs plural matching sibling files in the same directory4546Names that stay current:4748- Rename when the original purpose changes rather than letting name drift from contents49- Remove temporary prefixes/suffixes once migration is complete50- Consolidate when a file has outgrown its original name5152## When Names Aren't Obvious5354When a name for a new file, function, class, etc. isn't immediately obvious:5556- Pause and ask what we should name it. It's better to ask than to guess and have to57 rename later.58- Consider multiple alternatives59- Evaluate options based on:60 - Clarity and intuitiveness61 - Technical accuracy62 - Future flexibility63 - Project context64
Also in TechNickAI/ai-coding-config
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechNickAI/ai-coding-config.cursor/rules/git-commit-message.mdc · 24 | Cursor rules | archgitdeployment | 58/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/git-interaction.mdc · 24 | Cursor rules | testlint-formatstylearch+4 | 88/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/heart-centered-ai-philosophy.mdc · 24 | Cursor rules | no sections | 30/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/ruff-linting.mdc · 24 | Cursor rules | lint-format | 43/100 | 3 days ago | |
| TechNickAI/ai-coding-configAGENTS.md · 24 | AGENTS.md | stylearchgitdo-not+1 | 78/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/external-apis.mdc · 24 | Cursor rules | testtesting-strategyapi | 54/100 | 3 days ago | |
| TechNickAI/ai-coding-config.claude-plugin/CLAUDE.md · 24 | CLAUDE.md | deployment | 25/100 | 3 days ago | |
| TechNickAI/ai-coding-config.claude/AGENTS.md · 24 | AGENTS.md | archagent-behaviour | 54/100 | 3 days ago | |
| TechNickAI/ai-coding-config.claude/CLAUDE.md · 24 | CLAUDE.md | lint-formatstyletypestesting-strategy+1 | 62/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/AGENTS.md · 24 | AGENTS.md | archdo-notagent-behaviour | 56/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/autonomous-development-workflow.mdc · 24 | Cursor rules | testlint-formatgitagent-behaviour | 77/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/code-review-standards.mdc · 24 | Cursor rules | testtypestesting-strategygit+2 | 59/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/code-style-and-zen-of-python.mdc · 24 | Cursor rules | lint-formatstyledocs | 62/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/fixing-github-actions-builds.mdc · 24 | Cursor rules | setupbuilddo-notagent-behaviour | 81/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/git-worktree-task.mdc · 24 | Cursor rules | lint-formatgitagent-behaviour | 38/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/prompt-engineering.mdc · 24 | Cursor rules | setuptestlint-formatstyle+6 | 57/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/trust-and-decision-making.mdc · 24 | Cursor rules | no sections | 48/100 | 3 days ago | |
| TechNickAI/ai-coding-config.cursor/rules/user-facing-language.mdc · 24 | Cursor rules | lint-formatstylearch | 66/100 | 3 days ago | |
| TechNickAI/ai-coding-configplugins/core/agents/CLAUDE.md · 24 | CLAUDE.md | testlint-formatarchgit+1 | 66/100 | 3 days ago | |
| TechNickAI/ai-coding-configplugins/core/skills/CLAUDE.md · 24 | CLAUDE.md | lint-formatagent-behaviour | 58/100 | 3 days ago |
Diff against .cursor/rules/git-commit-message.mdc Diff against .cursor/rules/git-interaction.mdc Diff against .cursor/rules/heart-centered-ai-philosophy.mdc Diff against .cursor/rules/ruff-linting.mdc Diff against AGENTS.md Diff against .cursor/rules/external-apis.mdc Diff against .claude-plugin/CLAUDE.md Diff against .claude/AGENTS.md Diff against .claude/CLAUDE.md Diff against .cursor/AGENTS.md Diff against .cursor/rules/autonomous-development-workflow.mdc Diff against .cursor/rules/code-review-standards.mdc Diff against .cursor/rules/code-style-and-zen-of-python.mdc Diff against .cursor/rules/fixing-github-actions-builds.mdc Diff against .cursor/rules/git-worktree-task.mdc Diff against .cursor/rules/prompt-engineering.mdc Diff against .cursor/rules/trust-and-decision-making.mdc Diff against .cursor/rules/user-facing-language.mdc Diff against plugins/core/agents/CLAUDE.md Diff against plugins/core/skills/CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126 | Cursor rules | buildlint-formatstylearch+3 | 96/100 | 3 days ago |
