スキル一覧に戻る
thomasgauvin

configure-git-cli

by thomasgauvin

A web application that runs Claude Agents in Cloudflare Containers using the Claude Agents SDK.

40🍴 3📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: configure-git-cli description: Configure Git CLI with GitHub authentication using environment variables (GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT) compatibility: Requires git installed and GITHUB_EMAIL, GITHUB_NAME, GITHUB_PAT environment variables set license: MIT

Configure Git CLI

When to use this skill

Use this skill before performing git operations (clone, push, commit, etc.). Required by the codebase-fix-and-pr skill.

Prerequisites

Required environment variables:

  • GITHUB_EMAIL: Email address for git commits
  • GITHUB_NAME: Name for git commits
  • GITHUB_PAT: GitHub Personal Access Token with repo and workflow scopes

Workflow

Step 1: Verify Git Installation

git --version

Step 2: Configure Git User Identity

git config --global user.email "${GITHUB_EMAIL}"
git config --global user.name "${GITHUB_NAME}"

Step 3: Configure Credentials

Enable credential storage and preload GitHub credentials:

git config --global credential.helper store
cat <<EOF > ~/.git-credentials
https://${GITHUB_NAME}:${GITHUB_PAT}@github.com
EOF
chmod 600 ~/.git-credentials

Step 4: Verify Configuration

git config user.email
git config user.name
git ls-remote https://github.com/test/test.git

All commands should succeed without prompting for credentials.

Success Criteria

  • git --version succeeds
  • git config user.email and git config user.name return correct values
  • git ls-remote succeeds without prompting

Troubleshooting

IssueSolution
Git not foundInstall git using your system package manager
Authentication failedVerify GITHUB_PAT is valid, not expired, and has repo scope
Permission deniedCheck write permissions to home directory
Credentials not workingRun rm ~/.git-credentials and reconfigure

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です