config-git
About
This Claude Skill interactively guides developers through Git configuration setup, verifying user identity and analyzing project context. It creates project-specific `.claude/git.local.md` files with conventional commit conventions and branch naming standards. Use it to quickly establish consistent Git workflows with scopes, types, and structured configuration.
Quick Install
Claude Code
Recommended/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/config-gitCopy and paste this command in Claude Code to install this skill
Documentation
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
user.nameanduser.emailare set - If EITHER is missing, use
AskUserQuestionto request the missing information - 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
ls -Forfind . -maxdepth 2 -not -path '*/.*'to detect project languages/frameworks - Run
git log --format="%s" -n 50(if git repo exists) to analyze existing commit message patterns and scopes
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.,
api,ui,docs) - Multi-word names: MUST convert to first letters (e.g.,
plugin-optimizer→po,user-auth→ua) - MUST NOT use full multi-word names like
plugin-optimizeroruser-authas scopes
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,branch_prefixes, ANDgitignore - "# 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
scopeslist with determined short scopes - Update
gitignoretechnologies based on detected project languages/frameworks - Keep
typesas standard conventional commit types (unless user requests changes) - Keep
branch_prefixesas shown in example (unless user requests changes) - Create or overwrite
.claude/git.local.mdin the project root - 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
GitHub Repository
Related Skills
algorithmic-art
MetaThis Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.
subagent-driven-development
DevelopmentThis skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.
executing-plans
DesignUse the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.
cost-optimization
OtherThis Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.
