code-qualitylisted
Install: claude install-skill Elmmly/genie-team
# Code Quality Standards
Apply these standards when writing or editing code.
## Core Principles
### No Hardcoded Values
| Language | Bad | Good |
|----------|-----|------|
| TypeScript | `const timeout = 5000;` | `const timeout = config.timeout;` |
| Go | `url := "https://api.example.com"` | `url := cfg.APIURL` |
| Rust | `let port = 8080;` | `let port = config.port;` |
| C# | `var connStr = "Server=localhost";` | `var connStr = configuration["ConnectionString"];` |
| Java | `int timeout = 5000;` | `int timeout = appConfig.getTimeout();` |
| Swift | `let apiUrl = "https://api.example.com"` | `let apiUrl = Configuration.apiURL` |
| Kotlin | `val timeout = 5000` | `val timeout = BuildConfig.TIMEOUT` |
| Elixir | `@timeout 5000` | `@timeout Application.compile_env(:app, :timeout)` |
### Proper Error Handling
Errors must be logged with context and propagated meaningfully. Never swallow errors silently.
| Language | Pattern |
|----------|---------|
| TypeScript | `try { ... } catch (error) { logger.error('context', { error }); throw new AppError('message', { cause: error }); }` |
| Go | `if err != nil { return fmt.Errorf("functionName: %w", err) }` — NEVER bare `return err` |
| Rust | `operation().context("what failed")?` or `operation().map_err(\|e\| AppError::new(e))?` |
| C# | `catch (Exception ex) { logger.LogError(ex, "context"); throw new AppException("message", ex); }` |
| Java | `catch (Exception e) { log.error("context", e); throw new AppException("message", e); }`