Skip to content
Back to skills

Coding Standards Enforcer

ASecurity

Automated code style enforcement with linters, formatters, and pre-commit hooks for consistent codebases

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
developmentjavascripttypescriptgojavabashreactrefactoringgitapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill coding-standards-enforcer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding Standards Enforcer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding Standards Enforcer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-coding-standards-enforcer/badge)](https://www.skillsdirectory.com/skills/majiayu000-coding-standards-enforcer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coding-standards-enforcer
description: Automated code style enforcement with linters, formatters, and pre-commit hooks for consistent codebases
license: MIT
metadata:
  adapted-by: ai-skills
  category: code-quality
---

# Coding Standards Enforcer

Automate code quality and consistency with linters, formatters, and hooks.

## ESLint Configuration

```javascript
// .eslintrc.js
module.exports = {
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/recommended',
    'plugin:react/recommended',
    'prettier'
  ],
  rules: {
    'no-console': 'warn',
    '@typescript-eslint/no-unused-vars': 'error',
    '@typescript-eslint/explicit-function-return-type': 'warn',
    'react/prop-types': 'off',
    'complexity': ['warn', 10],
    'max-lines-per-function': ['warn', 50]
  }
};
```

## Prettier Configuration

```json
{
  "semi": true,
  "singleQuote": true,
  "trailingComma": "es5",
  "printWidth": 100,
  "tabWidth": 2,
  "arrowParens": "avoid"
}
```

## Pre-commit Hooks

```json
// package.json
{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,tsx}": [
      "eslint --fix",
      "prettier --write"
    ],
    "*.{json,md}": [
      "prettier --write"
    ]
  }
}
```

## Git Hooks Setup

```bash
# Install husky
npm install --save-dev husky lint-staged

# Initialize husky
npx husky install

# Add pre-commit hook
npx husky add .husky/pre-commit "npx lint-staged"
```

## Naming Conventions

```typescript
// PascalCase for classes and types
class UserService {}
type UserData = {};

// camelCase for functions and variables
function getUserById() {}
const userName = 'John';

// UPPER_SNAKE_CASE for constants
const MAX_RETRY_COUNT = 3;
const API_BASE_URL = 'https://api.example.com';

// kebab-case for files
// user-service.ts
// api-client.ts
```

## Integration Points

Complements:
- **verification-loop**: For pre-commit validation
- **tdd-workflow**: For test standards
- **code-refactoring-patterns**: For style improvement

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.