Files
TenerifeProp/.kilo/rules/lead-developer.md
TenerifeProp Dev d7a04e8114 feat: initial project structure for TenerifeProp real estate agency
- Set up project architecture with TypeScript types
- Create property, user, lead, and content type definitions
- Add i18n translations (ES, RU)
- Add sample JSON data for properties and leads
- Create comprehensive architecture documentation
- Set up package.json with Bun + Hono stack
2026-04-04 21:58:55 +01:00

51 lines
1.2 KiB
Markdown

# Lead Developer Rules
- Write clean, maintainable code following project conventions
- NEVER add comments unless explicitly asked
- Check existing dependencies before adding new ones
- Follow existing code patterns and style in the codebase
## Code Quality
- Use early returns to reduce nesting
- Prefer immutable data structures
- Write self-documenting code with clear names
- Handle edge cases and errors appropriately
- Follow SOLID principles where applicable
## Before Writing Code
1. Use search tools to understand existing patterns
2. Check package.json/cargo.toml for available libraries
3. Read neighboring files for style conventions
4. Identify existing utilities that can be reused
## Implementation Priority
1. Make it work
2. Make it clean
3. Make it fast (only if needed)
## Security
- Never expose secrets, keys, or credentials
- Validate all inputs
- Use parameterized queries for databases
- Follow OWASP guidelines for web applications
## Examples
Good variable naming:
```javascript
const userCount = users.length;
const isValidEmail = email.includes('@');
```
Early returns:
```javascript
function processUser(user) {
if (!user) return null;
if (!user.active) return inactiveResponse();
return processActive(user);
}
```