code-style

Enforce code style and formatting rules in JavaScript/TypeScript projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/legacy3/wowlab --skill code-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-style
Source: https://github.com/legacy3/wowlab/tree/main/.claude/skills/code-style
Command: npx skills add https://github.com/legacy3/wowlab --skill code-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce code style and formatting preferences to ensure a uniform codebase.

Core Features & Use Cases

  • Control Flow Brackets: Always use brackets for conditionals and loops.
  • DRY Principle: Encourage reuse of utilities and avoid duplicating logic.
  • No Legacy Code: Remove obsolete patterns and avoid maintaining multiple approaches.

Quick Start

Apply style guidelines during writing or review to ensure bracket usage, DRY practices, and removal of legacy code.

Frequently Asked Questions about code-style

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

FAQPage Schema
How do I enforce consistent code style and formatting across my JavaScript project?

Code style enforcement uses linting rules to automatically detect and resolve formatting inconsistencies. Apply style guidelines during writing or code review to ensure bracket usage in control flow, DRY practices, and removal of legacy patterns across your codebase.

Why should I always use brackets in conditionals and loops?

Mandatory brackets in control flow prevent errors from single-line constructs without braces and ensure consistent, readable code. This eliminates ambiguity and reduces bugs introduced by missing braces in conditionals and loops.

How do I detect and remove unused imports and obsolete code patterns?

Automated style enforcement scans your codebase to identify unused imports and legacy patterns. The tool flags these issues during code review or writing, enabling you to clean up obsolete code and maintain a single, modern approach throughout the project.

Can I enforce DRY principles and prevent duplicate utility logic?

Yes. Code style enforcement detects duplicate logic and encourages reuse of existing utilities before creating new ones. This ensures consistent patterns and prevents maintenance overhead from multiple implementations of the same functionality.

What's the best way to maintain formatting consistency during code review?

Apply style guidelines as part of your review process to catch bracket usage, DRY violations, and legacy patterns before merge. Automated detection resolves stylistic inconsistencies early, reducing review cycles and ensuring uniform formatting across contributors.