Github Repo Managementのロゴ

Github Repo Management

コミュニティ
AtlasOmnia
github-repo-management

github-repo-management — Clone/create/fork repos; manage remotes, releases.

概要

公開者AtlasOmnia
リポジトリdonna-starter
スキル名github-repo-management
スター
131
フォーク
9
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    AtlasOmniaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Github Repo Management」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AtlasOmnia/donna-starter/tree/main/skills/github/github-repo-management
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AtlasOmnia/donna-starter.git /tmp/donna-starter
mkdir -p .claude/skills
cp -r /tmp/donna-starter/skills/github/github-repo-management .claude/skills/github-repo-management
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGithub Repo Managementを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGithub Repo Managementを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Github Repo Managementは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

GitHub Repository Management

Create, clone, fork, configure, and manage GitHub repositories. Each section shows gh first, then the git + curl fallback.

Prerequisites

  • Authenticated with GitHub (see github-auth skill)

Setup

bash
if command -v gh &>/dev/null && gh auth status &>/dev/null; then
 AUTH="gh"
else
 AUTH="git"
 if [ -z "$GITHUB_TOKEN" ]; then
 if _hermes_env="${HERMES_HOME:-$HOME/.hermes}/.env"; [ -f "$_hermes_env" ] && grep -q "^GITHUB_TOKEN=" "$_hermes_env"; then
 GITHUB_TOKEN=$(grep "^GITHUB_TOKEN=" "$_hermes_env" | head -1 | cut -d= -f2 | tr -d '\n\r')
# Plaintext ~/.git-credentials is intentionally not used; prefer `gh auth login` or GITHUB_TOKEN in .env
 fi
 fi
fi

# Get your GitHub username (needed for several operations)
if [ "$AUTH" = "gh" ]; then
 GH_USER=$(gh api user --jq '.login')
else
 GH_USER=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user | python3 -c "import sys,json; print(json.load(sys.stdin)['login'])")
fi

If you're inside a repo already:

bash
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)

1. Cloning Repositories

Cloning is pure git — works identically either way:

bash
# Clone via HTTPS (works with credential helper or token-embedded URL)
git clone https://github.com/owner/repo-name.git

# Clone into a specific directory
git clone https://github.com/owner/repo-name.git ./my-local-dir

# Shallow clone (faster for large repos)
git clone --depth 1 https://github.com/owner/repo-name.git

# Clone a specific branch
git clone --branch develop https://github.com/owner/repo-name.git

# Clone via SSH (if SSH is configured)
git clone git@github.com:owner/repo-name.git

With gh (shorthand):

bash
gh repo clone owner/repo-name
gh repo clone owner/repo-name -- --depth 1

2. Creating Repositories

With gh:

bash
# Create a public repo and clone it
gh repo create my-new-project --public --clone

# Private, with description and license
gh repo create my-new-project --private --description "A useful tool" --license MIT --clone

# Under an organization
gh repo create my-org/my-new-project --public --clone

# From existing local directory
cd /path/to/existing/project
gh repo create my-project --source . --public --push

With git + curl:

bash
# Create the remote repo via API
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/user/repos \
 -d '{
 "name": "my-new-project",
 "description": "A useful tool",
 "private": false,
 "auto_init": true,
 "license_template": "mit"
 }'

# Clone it
git clone https://github.com/$GH_USER/my-new-project.git
cd my-new-project

# -- OR -- push an existing local directory to the new repo
cd /path/to/existing/project
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/$GH_USER/my-new-project.git
git push -u origin main

To create under an organization:

bash
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/orgs/my-org/repos \
 -d '{"name": "my-new-project", "private": false}'

From a Template

With gh:

bash
gh repo create my-new-app --template owner/template-repo --public --clone

With curl:

bash
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/owner/template-repo/generate \
 -d '{"owner": "'"$GH_USER"'", "name": "my-new-app", "private": false}'

3. Forking Repositories

With gh:

bash
gh repo fork owner/repo-name --clone

With git + curl:

bash
# Create the fork via API
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/owner/repo-name/forks

# Wait a moment for GitHub to create it, then clone
sleep 3
git clone https://github.com/$GH_USER/repo-name.git
cd repo-name

# Add the original repo as "upstream" remote
git remote add upstream https://github.com/owner/repo-name.git

Keeping a Fork in Sync

bash
# Pure git — works everywhere
git fetch upstream
git checkout main
git merge upstream/main
git push origin main

With gh (shortcut):

bash
gh repo sync $GH_USER/repo-name

4. Repository Information

With gh:

bash
gh repo view owner/repo-name
gh repo list --limit 20
gh search repos "machine learning" --language python --sort stars

With curl:

bash
# View repo details
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO \
 | python3 -c "
import sys, json
r = json.load(sys.stdin)
print(f\"Name: {r['full_name']}\")
print(f\"Description: {r['description']}\")
print(f\"Stars: {r['stargazers_count']} Forks: {r['forks_count']}\")
print(f\"Default branch: {r['default_branch']}\")
print(f\"Language: {r['language']}\")"

# List your repos
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 "https://api.github.com/user/repos?per_page=20&sort=updated" \
 | python3 -c "
import sys, json
for r in json.load(sys.stdin):
 vis = 'private' if r['private'] else 'public'
 print(f\" {r['full_name']:40} {vis:8} {r.get('language', ''):10} ★{r['stargazers_count']}\")"

# Search repos
curl -s \
 "https://api.github.com/search/repositories?q=machine+learning+language:python&sort=stars&per_page=10" \
 | python3 -c "
import sys, json
for r in json.load(sys.stdin)['items']:
 print(f\" {r['full_name']:40} ★{r['stargazers_count']:6} {r['description'][:60] if r['description'] else ''}\")"

5. Profile README and Pinned Repositories

A personal profile README requires a public repository whose name exactly matches the GitHub username and a non-empty root README.md on the default branch. Verify the special-repository flag with:

bash
gh api graphql -f query='query { repository(owner:"OWNER", name:"USERNAME") { isUserConfigurationRepository isPrivate defaultBranchRef { name } object(expression:"main:README.md") { ... on Blob { byteSize } } }'

If the repository satisfies those requirements but the README is not visible, the owner may need to open the repository in an authenticated browser and click Share to profile. Updating the README through the API does not necessarily enable profile display.

Pinned repositories can be read through GraphQL:

bash
gh api graphql -f query='query { user(login:"USERNAME") { pinnedItems(first:6, types:REPOSITORY) { nodes { ... on Repository { name url } } } } }'

GitHub does not expose a supported REST or public GraphQL mutation for changing profile pins. Use the authenticated web UI (Customize your pins) and verify afterward with the query above. Do not attempt this from a browser signed into a different GitHub account.

6. Repository Settings

With gh:

bash
gh repo edit --description "Updated description" --visibility public
gh repo edit --enable-wiki=false --enable-issues=true
gh repo edit --default-branch main
gh repo edit --add-topic "machine-learning,python"
gh repo edit --enable-auto-merge

With curl:

bash
curl -s -X PATCH \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO \
 -d '{
 "description": "Updated description",
 "has_wiki": false,
 "has_issues": true,
 "allow_auto_merge": true
 }'

# Update topics
curl -s -X PUT \
 -H "Authorization: token $GITHUB_TOKEN" \
 -H "Accept: application/vnd.github.mercy-preview+json" \
 https://api.github.com/repos/$OWNER/$REPO/topics \
 -d '{"names": ["machine-learning", "python", "automation"]}'

7. Branch Protection

bash
# View current protection
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/branches/main/protection

# Set up branch protection
curl -s -X PUT \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/branches/main/protection \
 -d '{
 "required_status_checks": {
 "strict": true,
 "contexts": ["ci/test", "ci/lint"]
 },
 "enforce_admins": false,
 "required_pull_request_reviews": {
 "required_approving_review_count": 1
 },
 "restrictions": null
 }'

8. Secrets Management (GitHub Actions)

With gh:

bash
gh secret set API_KEY --body "your-secret-value"
gh secret set SSH_KEY < ~/.ssh/id_rsa
gh secret list
gh secret delete API_KEY

With curl:

Secrets require encryption with the repo's public key — more involved via API:

bash
# Get the repo's public key for encrypting secrets
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/secrets/public-key

# Encrypt and set (requires Python with PyNaCl)
python3 -c "
from base64 import b64encode
from nacl import encoding, public
import json, sys

# Get the public key
key_id = '<key_id_from_above>'
public_key = '<base64_key_from_above>'

# Encrypt
sealed = public.SealedBox(
 public.PublicKey(public_key.encode('utf-8'), encoding.Base64Encoder)
).encrypt('your-secret-value'.encode('utf-8'))
print(json.dumps({
 'encrypted_value': b64encode(sealed).decode('utf-8'),
 'key_id': key_id
}))"

# Then PUT the encrypted secret
curl -s -X PUT \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/secrets/API_KEY \
 -d '<output from python script above>'

# List secrets (names only, values hidden)
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/secrets \
 | python3 -c "
import sys, json
for s in json.load(sys.stdin)['secrets']:
 print(f\" {s['name']:30} updated: {s['updated_at']}\")"

Note: For secrets, gh secret set is dramatically simpler. If setting secrets is needed and gh isn't available, recommend installing it for just that operation.

9. Releases

With gh:

bash
gh release create v1.0.0 --title "v1.0.0" --generate-notes
gh release create v2.0.0-rc1 --draft --prerelease --generate-notes
gh release create v1.0.0 ./dist/binary --title "v1.0.0" --notes "Release notes"
gh release list
gh release download v1.0.0 --dir ./downloads

With curl:

bash
# Create a release
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/releases \
 -d '{
 "tag_name": "v1.0.0",
 "name": "v1.0.0",
 "body": "## Changelog\n- Feature A\n- Bug fix B",
 "draft": false,
 "prerelease": false,
 "generate_release_notes": true
 }'

# List releases
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/releases \
 | python3 -c "
import sys, json
for r in json.load(sys.stdin):
 tag = r.get('tag_name', 'no tag')
 print(f\" {tag:15} {r['name']:30} {'draft' if r['draft'] else 'published'}\")"

# Upload a release asset (binary file)
RELEASE_ID=<id_from_create_response>
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 -H "Content-Type: application/octet-stream" \
 "https://uploads.github.com/repos/$OWNER/$REPO/releases/$RELEASE_ID/assets?name=binary-amd64" \
 --data-binary @./dist/binary-amd64

10. GitHub Actions Workflows

With gh:

bash
gh workflow list
gh run list --limit 10
gh run view <RUN_ID>
gh run view <RUN_ID> --log-failed
gh run rerun <RUN_ID>
gh run rerun <RUN_ID> --failed
gh workflow run ci.yml --ref main
gh workflow run deploy.yml -f environment=staging

With curl:

bash
# List workflows
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/workflows \
 | python3 -c "
import sys, json
for w in json.load(sys.stdin)['workflows']:
 print(f\" {w['id']:10} {w['name']:30} {w['state']}\")"

# List recent runs
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 "https://api.github.com/repos/$OWNER/$REPO/actions/runs?per_page=10" \
 | python3 -c "
import sys, json
for r in json.load(sys.stdin)['workflow_runs']:
 print(f\" Run {r['id']} {r['name']:30} {r['conclusion'] or r['status']}\")"

# Download failed run logs
RUN_ID=<run_id>
curl -s -L \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/runs/$RUN_ID/logs \
 -o /tmp/ci-logs.zip
cd /tmp && unzip -o ci-logs.zip -d ci-logs

# Re-run a failed workflow
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/runs/$RUN_ID/rerun

# Re-run only failed jobs
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/runs/$RUN_ID/rerun-failed-jobs

# Trigger a workflow manually (workflow_dispatch)
WORKFLOW_ID=<workflow_id_or_filename>
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/repos/$OWNER/$REPO/actions/workflows/$WORKFLOW_ID/dispatches \
 -d '{"ref": "main", "inputs": {"environment": "staging"}}'

11. Gists

With gh:

bash
gh gist create script.py --public --desc "Useful script"
gh gist list

With curl:

bash
# Create a gist
curl -s -X POST \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/gists \
 -d '{
 "description": "Useful script",
 "public": true,
 "files": {
 "script.py": {"content": "print(\"hello\")"}
 }
 }'

# List your gists
curl -s \
 -H "Authorization: token $GITHUB_TOKEN" \
 https://api.github.com/gists \
 | python3 -c "
import sys, json
for g in json.load(sys.stdin):
 files = ', '.join(g['files'].keys())
 print(f\" {g['id']} {g['description'] or '(no desc)':40} {files}\")"

Quick Reference Table

Actionghgit + curl
Clonegh repo clone o/rgit clone https://github.com/o/r.git
Create repogh repo create name --publiccurl POST /user/repos
Forkgh repo fork o/r --clonecurl POST /repos/o/r/forks + git clone
Repo infogh repo view o/rcurl GET /repos/o/r
Edit settingsgh repo edit --...curl PATCH /repos/o/r
Create releasegh release create v1.0curl POST /repos/o/r/releases
List workflowsgh workflow listcurl GET /repos/o/r/actions/workflows
Rerun CIgh run rerun IDcurl POST /repos/o/r/actions/runs/ID/rerun
Set secretgh secret set KEYcurl PUT /repos/o/r/actions/secrets/KEY (+ encryption)

よくある質問

AIスキル「Github Repo Management」では何ができますか?

github-repo-management — Clone/create/fork repos; manage remotes, releases.

TypingMindでGithub Repo Managementを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Github Repo Managementはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGithub Repo Managementをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AtlasOmnia/donna-starter/tree/main/skills/github/github-repo-managementを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Github Repo Managementを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Github Repo Managementで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGithub Repo Managementを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Github Repo Management」は無料ですか?

はい。AtlasOmniaがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇