install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/config-git" ~/.claude/skills/majiayu000-claude-skill-registry-config-git && rm -rf "$T"
manifest:
skills/data/config-git/SKILL.mdsource content
Interactive Git Configuration
Set up Git user identity and create project-specific configuration file
.claude/git.local.md with conventional commit scopes, types, and branch naming conventions.
Current Git Config Context: !
git config --list --show-origin
Phase 1: Verify User Identity
Goal: Ensure git user.name and user.email are configured
Actions:
- Review the "Current Git Config Context" above
- Check if
anduser.name
are setuser.email - If EITHER is missing, use
to request the missing informationAskUserQuestion - Set the values globally (or locally if user specifies) using
git config
Phase 2: Analyze Project Context
Goal: Understand project structure and existing commit patterns
Actions:
- Run
orls -F
to detect project languages/frameworksfind . -maxdepth 2 -not -path '*/.*' - Run
(if git repo exists) to analyze existing commit message patterns and scopesgit log --format="%s" -n 50
Phase 3: Determine Scopes
Goal: Generate appropriate commit scopes based on project structure
CRITICAL - Scope Naming Rules:
- ALL scopes MUST be short (single words or abbreviations only)
- Single words: use as-is (e.g.,
,<word1>
,<word2>
)<word3> - Multi-word names: MUST convert to first letters (e.g.,
→<multi-word-name>
,<mwn>
→<another-example>
)<ae> - MUST NOT use full multi-word names like
or<multi-word-name>
as scopes<another-example>
Actions:
- Propose a list of commit scopes based on analysis
- Ensure all scopes follow the naming rules above
- Request user input ONLY if genuine ambiguity exists
Phase 4: Generate Configuration File
Goal: Create
.claude/git.local.md with complete structure from example template
CRITICAL - Template Requirements:
- Use the ENTIRE example file structure as template
- Preserve ALL sections from the example:
- YAML frontmatter with
,scopes
,types
, ANDbranch_prefixesgitignore - "# Project-Specific Git Settings" section
- "## Usage" section with all bullet points
- "## Additional Guidelines" section with all bullet points
- YAML frontmatter with
Actions:
- Read the example configuration file:
${CLAUDE_PLUGIN_ROOT}/examples/git.local.md - Replace the
list with determined short scopesscopes - Update
technologies based on detected project languages/frameworksgitignore - Keep
as standard conventional commit types (unless user requests changes)types - Keep
as shown in example (unless user requests changes)branch_prefixes - Create or overwrite
in the project root.claude/git.local.md - Read the file back to verify it matches the example's complete structure
Output:
.claude/git.local.md file with project-specific configuration
Phase 5: Confirmation
Goal: Inform user of successful configuration
Actions:
- Confirm configuration is complete
- Show the location of the created file