convention-enforcer

Detect and enforce codebase naming, file organization, error handling, and testing conventions.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/Sebdysart/omni-link-hustlexp --skill convention-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convention-enforcer
Source: https://github.com/Sebdysart/omni-link-hustlexp/tree/main/skills/convention-enforcer
Command: npx skills add https://github.com/Sebdysart/omni-link-hustlexp --skill convention-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that all code generated or modified adheres to the established naming, organization, error handling, and testing conventions of the target repository, preventing inconsistencies and improving code quality.

Core Features & Use Cases

  • Naming Convention Enforcement: Ensures variables, functions, and classes follow the repository's detected style (e.g., camelCase, snake_case).
  • File Organization Guidance: Directs new files to their appropriate directories based on detected patterns (e.g., routes, models, tests).
  • Error Handling Standardization: Enforces consistent error handling patterns like try-catch or .catch().
  • Testing Pattern Adherence: Ensures test files are created using the repository's preferred structure (co-located or separate directory).
  • Use Case: When generating a new API endpoint, this skill will ensure the route handler is placed in the correct directory, the function is named using camelCase, and a try-catch block is included for error handling, matching the backend's conventions.

Quick Start

Use the convention-enforcer skill to ensure the newly generated service file adheres to the project's naming and organization conventions.

Frequently Asked Questions about convention-enforcer

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

FAQPage Schema
How do I enforce code conventions automatically during code generation?

To enforce code conventions automatically, you need a tool that analyzes repository manifests for established styles like camelCase or snake_case and applies them during code generation. This skill detects existing patterns and ensures new code adheres to them.

What is the best way to ensure generated API endpoints follow existing file organization patterns?

The best way to ensure file organization compliance is to analyze the repository's directory structures for routes, models, and tests. This skill directs newly generated files to their appropriate directories based on those detected patterns.

How do I standardize error handling patterns like try-catch across new code?

Standardizing error handling requires enforcing consistent patterns like try-catch or .catch() across the codebase. This skill ensures compliance with these specific error handling patterns during code generation.

Can I ensure test files match the repository's preferred testing patterns?

Yes, you can ensure test files match repository patterns by analyzing whether the project uses co-located tests or a separate directory. This skill enforces testing pattern adherence based on the detected structure.

Does naming convention enforcement work with both snake_case and PascalCase styles?

Yes, naming convention enforcement works with snake_case and PascalCase styles. The skill detects the repository's established naming conventions for variables, functions, and classes, then ensures generated code matches them.

Why does generated code sometimes not match the existing repository's directory structure?

Generated code misses directory structure conventions when the generation process lacks repository manifest analysis. This skill solves that by analyzing manifest patterns for routes and models to direct new files appropriately.