skill-code-qualitylisted
Install: claude install-skill saitarrun/sdlc-workflow
# Skill: Code Quality Standards & Metrics
## Overview
Code quality is the cornerstone of maintainable, secure, and performant software. This skill provides a comprehensive framework for enforcing quality across five dimensions: static analysis, testing, architecture, security, and CI/CD automation.
## 1. Static Code Quality & Standards
### Linting & Style Enforcement
**What**: Enforce language-specific style guides with automated tools
- **JavaScript/TypeScript**: ESLint + Prettier
- **Python**: Pylint + Black + isort
- **Go**: golangci-lint + gofmt
- **Java**: Checkstyle + Spotless
**Why**: Consistent code style reduces cognitive load, prevents merge conflicts, and catches common mistakes early.
**How to Enforce**:
```yaml
# .eslintrc.js or similar
extends: ['recommended', 'prettier']
rules:
no-console: warn
no-unused-vars: error
max-lines: [warn, { max: 300 }]
```
Configure pre-commit hook:
```bash
husky install
npx husky add .husky/pre-commit "npm run lint:fix"
```
### Naming Conventions
**Standard Patterns**:
- **Variables/functions**: camelCase (JavaScript, Python, Java)
- **Classes**: PascalCase
- **Constants**: SCREAMING_SNAKE_CASE
- **Files**: lowercase with hyphens (components) or snake_case (modules)
- **Avoid**: Single-letter vars (except loop counters), cryptic abbreviations, `data`, `temp`, `info`, `obj`
**Example Violations**:
```javascript
// ❌ Bad
const d = new Date();
const temp = calculateTotal(items);
function x() { return 42; }
// ✓ Good