بنقرة واحدة
design-principles
// Code design patterns: pure functions, immutability, composition, and async. Use when designing code or functions.
// Code design patterns: pure functions, immutability, composition, and async. Use when designing code or functions.
JS/TS conventions for syntax, modules, and types. Use when writing or reviewing JavaScript/TypeScript code.
System architecture: modules, project structure, ADRs, and testing. Use when designing or reviewing systems.
CI/CD and operations practices including GitHub Actions, Kubernetes, and operational tooling. Use when working with deployment and infrastructure.
Code quality practices: error handling, validation, logging, and DRY. Use when writing or reviewing code.
Manages practice rules. Use when user states a preference or approach, or asks to add/modify rules for coding, architecture, tooling, or best practices.
Go conventions for hexagonal architecture, project structure, error handling, testing, and observability. Use when writing Go services.
| name | design-principles |
| description | Code design patterns: pure functions, immutability, composition, and async. Use when designing code or functions. |
Patterns for writing clean, maintainable, and testable code.
// Pure function with immutability
function updateUser(user: User, age: number): User {
return { ...user, age }; // new object, no mutation
}
See rules.md for complete guidelines with examples.