ソース情報
- リポジトリ
- HezaoHezao/poirot
- ソースの最終更新活動
- 2026年7月28日 12:58
- 検出された SKILL.md の言語
- 英語
- スター
- 212
- フォーク
- 15
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/HezaoHezao/poirot --skill github-authコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | github-auth |
| description | GitHub auth setup: HTTPS tokens, SSH keys, gh CLI. |
| allowed-tools | ["bash"] |
| enabled | true |
| related-skills | ["github-pr-workflow","github-code-review","github-issues"] |
| license | MIT |
| author | Adapted from hermes-agent (Nous Research, MIT) |
Sets up authentication so the agent can work with GitHub repositories, PRs, issues, and CI.
When a user asks to work with GitHub, run this check first:
git --version
gh --version 2>/dev/null || echo "gh not installed"
gh auth status 2>/dev/null || echo "gh not authenticated"
git config --global credential.helper 2>/dev/null || echo "no git credential helper"
Decision tree:
gh auth status shows authenticated → use gh for everythinggh installed but not authenticated → use "gh auth" methodgh not installed → use "git-only" methodStep 1: Create a token at https://github.com/settings/tokens (classic)
or https://github.com/settings/personal-access-tokens (fine-grained). Scope:
repo, workflow, read:org.
Step 2: Configure git credential helper:
# Store credentials (plaintext, dev machine only)
git config --global credential.helper store
# Or use a credential cache (timed, more secure)
git config --global credential.helper 'cache --timeout=3600'
Step 3: First push triggers prompt:
# Username: your GitHub username
# Password: paste your token (not your GitHub password)
git push origin main
Step 4 (optional): Set token as env var for API calls:
export GITHUB_TOKEN="ghp_xxxxxxxxxxxx"
# Add to .env for persistence
# Generate key (if no existing key)
ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/id_ed25519_github
# Start ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519_github
# Copy public key
cat ~/.ssh/id_ed25519_github.pub
# Paste at https://github.com/settings/keys
# Test
ssh -T git@github.com
# Set remote to SSH
git remote set-url origin git@github.com:owner/repo.git
# Install gh (if not present)
# macOS: brew install gh
# Linux: see https://github.com/cli/cli#installation
# Windows: winget install GitHub.cli
# Authenticate
gh auth login
# Follow prompts: choose HTTPS or SSH, authenticate via browser or token
# Verify
gh auth status
# Use gh for everything
gh repo clone owner/repo
gh pr create
gh issue list
# Test git auth
git ls-remote origin
# Test gh auth
gh api user --jq '.login'
# Test API token
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user | python3 -c "import sys,json; print(json.load(sys.stdin)['login'])"
Many skills need owner/repo. Use this reusable block:
# Determine auth method
if command -v gh &>/dev/null && gh auth status &>/dev/null; then
AUTH="gh"
else
AUTH="git"
fi
# Extract owner/repo from remote
REMOTE_URL=$(git remote get-url origin)
OWNER_REPO=$(echo "$REMOTE_URL" | sed -E 's|.*github\.com[:/]||; s|\.git$||')
OWNER=$(echo "$OWNER_REPO" | cut -d/ -f1)
REPO=$(echo "$OWNER_REPO" | cut -d/ -f2)
gh auth status or
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user.ssh-keygen in Git Bash or PowerShell (OpenSSH
client built into Windows 10+).git config --global credential.helper manager uses Windows Credential Manager.