Code Style Enforcement

Enforce project-specific linting and formatting rules in TypeScript/JavaScript codebases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mkolb22/zen-plugin --skill code-style-enforcement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Style Enforcement
Source: https://github.com/mkolb22/zen-plugin/tree/main/skills/code-style-enforcement
Command: npx skills add https://github.com/mkolb22/zen-plugin --skill code-style-enforcement

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures code adheres to project-wide style rules and linting standards, reducing bikeshedding and QA costs.

Core Features & Use Cases

  • Project-convention discovery (eslint, prettier, tsconfig, editorconfig) to align rules with existing code.
  • Automated formatting and lint-fix, with language-specific conventions and clear guidance.
  • Use cases include onboarding new teams, enforcing consistent code style across modules, and maintaining a clean codebase during refactors.

Quick Start

Apply project-wide code-style rules and auto-fix linting issues across the repository.

Frequently Asked Questions about Code Style Enforcement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce project-specific code style and linting rules across a TypeScript codebase?

You can enforce project-specific code style by applying discovered conventions from eslint, prettier, tsconfig, and editorconfig. The skill identifies existing rules and auto-fixes lint errors, formatting, and import conventions across all modules in your TypeScript project.

What's the best way to auto-fix lint errors and format code during a large refactor?

Auto-fixing lint errors and formatting during a refactor is best handled by detecting existing project conventions and applying them across the codebase. The skill organizes code, enforces naming conventions, and provides language-specific guidance to maintain a clean codebase.

Does this code style enforcement approach work with existing eslint and prettier configurations?

Yes, code style enforcement works directly with existing eslint and prettier configurations. The skill implements project-convention discovery to read your current tsconfig and editorconfig files, ensuring enforced style dimensions like indentation and line length align with your established rules.

How do I standardize naming and import conventions for new teams onboarding to a JavaScript project?

To standardize naming and import conventions for onboarding teams, you apply project-wide code-style rules and document the conventions. The skill detects your project's specific style dimensions and provides clear guidance to ensure all new code adheres to established standards.

What style dimensions are covered when applying automated code formatting?

Automated code formatting covers style dimensions including indentation, quotes, semicolons, and line length. The skill defines these dimensions based on detected project conventions and applies language-specific formatting rules to ensure consistent code style.