convention-learner

Detects project-specific coding conventions from existing codebase patterns.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill convention-learner-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convention-learner
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/convention-learner
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill convention-learner-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents inconsistent or incorrect code style changes by learning the conventions of an existing codebase and using evidence to guide naming, structure, and enforcement decisions.

Core Features & Use Cases

  • Convention detection from code patterns: Learns naming, modifiers/suffixes, record vs class usage, and folder organization by analyzing representative public API and project structure.
  • Configuration-aware enforcement: Detects and respects explicit rules in .editorconfig and Directory.Build.props, ensuring project rules override kit defaults.
  • Evidence-based reviews and documentation: Summarizes detected conventions and flags deviations, with guidance to document conventions in CLAUDE.md for team continuity.

Quick Start

Run the convention learner for the project to detect naming, structure, and style patterns and then apply them when generating or reviewing new code.

Frequently Asked Questions about convention-learner

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

FAQPage Schema
How do I detect coding conventions from an existing codebase?

To detect coding conventions, analyze existing codebase patterns including public API structures, naming schemes, and folder organization. This process extracts evidence of project-specific styles to guide consistent code generation and review.

How do I enforce .editorconfig rules during code review?

You can enforce .editorconfig rules by detecting and respecting explicit project configurations alongside Directory.Build.props. This ensures that your project's explicit style rules override generic defaults during code review and generation.

What is the best way to ensure code generation matches project conventions?

The best way to ensure code generation matches project conventions is to systematically analyze the project structure and existing public API patterns first. This evidence-based approach prevents inconsistent style changes by matching the codebase's naming and structure.

How do I document detected architecture patterns for project onboarding?

You document detected architecture patterns by summarizing the learned naming, structure, and style conventions. This summary provides actionable guidance that can be recorded in team continuity files like CLAUDE.md for new developer onboarding.

Does static analysis work with record vs class usage patterns?

Static analysis works with record vs class usage patterns by examining representative public API code. It learns these specific structural choices and flags deviations to maintain consistency across the existing codebase.