Agent skill
git-config
Git設定ファイル管理。.gitconfig、.gitmessage、.gitignoreの確認・編集。トリガー: git config, gitconfig, gitmessage, gitignore, git設定
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/git-config
SKILL.md
git-config スキル
dotfilesリポジトリで管理しているGit設定ファイルの確認・編集を行う。
管理対象ファイル
| ファイル | 説明 | symlink先 |
|---|---|---|
git/.gitconfig |
Gitグローバル設定 | ~/.gitconfig |
git/.gitmessage |
コミットメッセージテンプレート | ~/.gitmessage |
git/.gitignore_global |
グローバルgitignore | ~/.gitignore |
コマンド
現在のGit設定確認
git config --list --show-origin | head -30
.gitconfig の確認
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/git/.gitconfig
.gitmessage の確認
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/git/.gitmessage
.gitignore_global の確認
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/git/.gitignore_global
特定の設定値確認
git config --global user.name
git config --global user.email
git config --global core.editor
symlinkの状態確認
ls -la ~/.gitconfig ~/.gitmessage ~/.gitignore
.gitconfig の主要セクション
[user]
[user]
name = Your Name
email = your@email.com
[core]
[core]
editor = vim
excludesfile = ~/.gitignore
autocrlf = input
pager = delta
[alias]
[alias]
st = status
co = checkout
br = branch
ci = commit
...
[commit]
[commit]
template = ~/.gitmessage
[delta] (diff pager)
[delta]
navigate = true
side-by-side = true
...
実行フロー
設定確認
- 現在のGit設定を表示
- symlinkが正しく設定されているか確認
- 設定値をユーザーに報告
設定変更
- 変更対象ファイルを確認
- 変更内容をユーザーに提案
- ファイルを編集
- 変更後の設定を確認
使用例
- "git configを確認"
- ".gitconfigの内容を見せて"
- "コミットテンプレートを編集"
- "gitignoreにパターンを追加"
- "エディタをvimに変更"
Git設定の優先順位
- ローカル(リポジトリ内
.git/config) - グローバル(
~/.gitconfig) - システム(
/etc/gitconfig)
注意事項
- 変更は
git/.gitconfigに対して行う(symlinkのため~/.gitconfigに反映) - 機密情報(トークン等)は直接書かない
- 変更後は新しいターミナルまたは
source ~/.zshrcで反映確認 - エイリアスは oh-my-zsh の git プラグインと競合しないか確認
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?