From omni-link
Detect and enforce codebase conventions during code generation. Covers naming, file organization, error handling, and testing patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/omni-link:convention-enforcerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill ensures all generated code matches the detected conventions of the target repository. Conventions are extracted by the scanner during ecosystem analysis and stored in each repo's manifest.
This skill ensures all generated code matches the detected conventions of the target repository. Conventions are extracted by the scanner during ecosystem analysis and stored in each repo's manifest.
Each repo has a detected naming convention: camelCase, snake_case, PascalCase, kebab-case, or mixed.
Rules:
_): Exempt from convention checksAuto-correction suggestions:
fetch_user_data in a camelCase repo -> suggest fetchUserDatagetUserData in a snake_case repo -> suggest get_user_datauserservice for a class -> suggest UserServiceThe scanner detects where different types of files belong:
Rules:
The scanner detects the repo's error handling pattern:
try-catch: Async functions should wrap await calls in try-catch.catch(): Promise chains should have .catch() handlersRules:
try-catch, every async function with await must have a try-catch blockDetected patterns for test organization:
co-located: Test files live next to source files (user.ts + user.test.ts)separate-directory: Test files live in tests/ or __tests__/ directoryRules:
.test.ts vs .spec.ts)Check the digest for the target repo's conventions:
conventionSummary: {
"backend": "camelCase, routes-in-src/routes/, try-catch, separate-directory tests",
"ios-app": "camelCase, Screens/ organization, do-try-catch, co-located tests"
}
Apply conventions to all generated code:
Present corrections when existing code violates conventions:
Convention note: This repo uses camelCase. The function `get_user_data`
should be renamed to `getUserData` to match the codebase convention.
When conventions conflict across repos (e.g., backend uses camelCase, shared-types uses snake_case):
The convention enforcer feeds into the anti-slop-gate. Convention violations with severity error will cause the anti-slop gate to BLOCK the code. Self-correct convention issues before presenting code rather than relying on the gate to catch them.
npx claudepluginhub sebdysart/omni-linkAnalyzes codebase to create or update .conventions/ directory with gold standards, anti-patterns, and checks for naming, imports, and patterns. Use for setting up coding standards or bootstrapping new projects.
Extracts existing project coding conventions (naming, file structure, error handling, testing, imports, API design, async patterns) and enforces them on new code. Produces a code style map in memory/patterns.md.
Analyzes existing codebase to detect and enforce project-specific coding conventions including naming, folder structure, test organization, and code style.