askill
detect-convention

detect-conventionSafety 95Repository

WHAT: Identifies the active project convention so the correct convention skill is loaded. WHY: Org rules, standards, and agreed practices are followed. WHEN: TRIGGER at the start of any project work to load the correct convention skill.

0 stars
1.2k downloads
Updated 3/25/2026

Package Files

Loading files...
SKILL.md

Convention Detection

Scope: How to detect the active project convention from git remote URLs and directory paths. Convention rules themselves live in each convention skill.

Detect the project convention and default branch from the current git repository.

Script

~/.claude/skills/detect-convention/scripts/detect-convention.sh

Output

Three lines on stdout:

  1. Convention name (e.g. shellicar-config, eagers, hopeventures)
  2. Default branch (e.g. main, master)
  3. Protected branches (space-separated, or none if direct commits are allowed)

On failure

Prints an error to stderr and exits non-zero. The calling skill should proceed without convention-specific rules, or ask the Supreme Commander which convention to use.

How It Works

The script matches on both the git remote URL and the working directory path:

Remote patternDirectory patternConvention
github.com/shellicar/~/.claude or ~/dotfilesshellicar-config
github.com/shellicar/~/repos/@shellicar/shellicar-oss
github.com/shellicar/~/repos/shellicar/shellicar
dev.azure.com/eagersautomotive/~/repos/Eagers/eagers
dev.azure.com/hopeventures/~/repos/HopeVentures/hopeventures
dev.azure.com/Flightrac/~/repos/Flightrac/flightrac

Usage

After detecting the convention, load the corresponding <convention>-conventions skill for convention-specific rules (branch protection, commit message format, PR format, etc.).

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

55/100Analyzed 3/30/2026

Well-structured technical reference for detecting project conventions within a specific organization. Uses pattern matching on git remotes and directory paths to return convention metadata. Accurate and actionable within its scope, but heavily org-specific with minimal reusability for other contexts.

95
80
25
70
75

Metadata

Licenseunknown
Version-
Updated3/25/2026
Publishershellicar

Tags

githubllm