giselle / rules
Cursor rule556 starsChanged 12 months agoApache-2.0View on GitHub
Naming convention guide for Giselle codebase
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/design-mode.mdcCursor rule
- .cursor/rules/development-guide.mdcCursor rule
- .cursor/rules/edit-workspace-tour.mdcCursor rule
- .cursor/rules/language-support.mdcCursor rule
- .cursor/rules/nodejs.mdcCursor rule
- .cursor/rules/update-ai-sdk.mdcCursor rule
- .cursor/rules/vercel-cli.mdcCursor rule
- add-modelSkill
The file
Show its rules and text
We split this naming-guide.mdc into the rules it gives an agent
13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
All filenames should use kebab-case (lowercase with hyphens)
- Distinctive: line 38
Avoid abbreviations unless they are widely known
- Distinctive: line 39
Use descriptive names that explain the purpose or behavior
- Distinctive: line 42
Use verbs or verb phrases for function names
- Distinctive: line 44
Avoid ambiguous names that could lead to misuse
- Distinctive: line 52
Use nouns or noun phrases for variable names
- Distinctive: line 54
Avoid single-letter variables except in very short scopes
- Very specific: line 62
Use prefixes like is, has, can, should for both variables and functions returning boolean values
- Distinctive: line 75
Follow consistent naming patterns across the codebase
- Distinctive: line 76
Use the same terms for the same concepts
- Distinctive: line 81
When someone reads your code, they should understand the purpose without additional context
- Distinctive: line 83
Avoid names that could be misinterpreted or used incorrectly
- Distinctive: line 84
Consider the perspective of other developers who will maintain or use your code
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Naming convention guide for Giselle codebase
globs: "**/*"
alwaysApply: true
---
# Naming Guide
## Case Conventions
1. **File Naming: kebab-case**
- All filenames should use kebab-case (lowercase with hyphens)
- Examples:
- ✅ `user-profile.ts`
- ✅ `api-client.tsx`
- ❌ `UserProfile.ts`
- ❌ `apiClient.tsx`
2. **Component Naming: PascalCase**
- React components and classes should use PascalCase
- Examples:
- ✅ `UserProfile`
- ✅ `ApiClient`
- ❌ `userProfile`
- ❌ `user-profile`
3. **Variable Naming: camelCase**
- Variables, functions, and methods should use camelCase
- Examples:
- ✅ `userEmail`
- ✅ `isActive`
- ❌ `UserEmail`
- ❌ `user-email`
## Core Principles
1. **Readability First**
- Names should be self-explanatory and immediately understandable
- Avoid abbreviations unless they are widely known
- Use descriptive names that explain the purpose or behavior
2. **Function Naming**
- Use verbs or verb phrases for function names
- Names should clearly indicate what the function does
- Avoid ambiguous names that could lead to misuse
- Examples:
- ✅ `calculateTotalPrice()`
- ✅ `validateUserInput()`
- ❌ `process()` (too vague)
- ❌ `doStuff()` (unclear purpose)
3. **Variable Naming**
- Use nouns or noun phrases for variable names
- Names should describe what the variable represents
- Avoid single-letter variables except in very short scopes
- Examples:
- ✅ `userEmail`
- ✅ `isActive`
- ❌ `x` (unless in a mathematical context)
- ❌ `temp` (unless truly temporary)
4. **Boolean Variables and Functions**
- Use prefixes like `is`, `has`, `can`, `should` for both variables and functions returning boolean values
- Make the true/false meaning clear
- For variables examples:
- ✅ `isEnabled`
- ✅ `hasPermission`
- ❌ `status` (ambiguous boolean)
- For function examples:
- ✅ `isTriggerRequiringCallsign()`
- ✅ `hasActiveSubscription()`
- ❌ `requiresCallsign()` (less clear about boolean return type)
- ❌ `checkActive()` (ambiguous about what's returned)
5. **Consistency**
- Follow consistent naming patterns across the codebase
- Use the same terms for the same concepts
- Maintain consistent casing (camelCase, PascalCase, etc.)
## Best Practices
- When someone reads your code, they should understand the purpose without additional context
- Function names should make it clear how to use them correctly
- Avoid names that could be misinterpreted or used incorrectly
- Consider the perspective of other developers who will maintain or use your codeDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

