- Добавлен skill gitea для автоматизации git операций - Добавлены правила безопасности для работы с credentials - Указан публичный URL проекта: https://git.softuniq.eu/UniqueSoft/APAW - Реализованы безопасные методы аутентификации (SSH, tokens, credential store)
1.2 KiB
1.2 KiB
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
- Use search tools to understand existing patterns
- Check package.json/cargo.toml for available libraries
- Read neighboring files for style conventions
- Identify existing utilities that can be reused
Implementation Priority
- Make it work
- Make it clean
- 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:
const userCount = users.length;
const isValidEmail = email.includes('@');
Early returns:
function processUser(user) {
if (!user) return null;
if (!user.active) return inactiveResponse();
return processActive(user);
}