detect-convention
CommunityAutomatically detect repository conventions
Authorshellicar
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Detects which organizational convention and default branch apply to the current Git repository by examining the git remote URL and the working directory path, enabling consistent branch, commit, and PR rules to be applied.
Core Features & Use Cases
- Match remote URL patterns and directory path patterns to return a convention identifier such as shellicar-config, shellicar-oss, shellicar, eagers, hopeventures, or flightrac.
- Resolve the repository default branch via origin/HEAD and provide a protected-branches listing (or none) to guide automation.
- Use Case: At the start of work on a repository, automatically determine and load convention-specific rules so commits and pull requests follow organizational standards.
Quick Start
Run the detect-convention script in the repository to receive the convention name, default branch, and protected branches as JSON.
Dependency Matrix
Required Modules
gitsedgrep
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: detect-convention Download link: https://github.com/shellicar/skills/archive/main.zip#detect-convention Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.