Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →GitHub repos: create, clone, fork, archive (gh CLI + git)
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 99% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 142% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 38% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 6% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 242% | 0% |
Create, clone, fork, configure, and manage GitHub repositories using the gh CLI and git. Covers repo creation, branch management, secrets, and repo settings.
powershell# Create public repo and clone locally gh repo create my-new-project --public --clone # Create private repo with description gh repo create my-new-project --private --description "Internal API service" # Create repo from local directory cd "C:\Users\<you>\Projects\myapp" gh repo create my-new-project --source=. --private --push
powershell# Clone via gh (handles auth automatically) gh repo clone owner/repo-name # Clone to specific directory gh repo clone owner/repo-name ./local-folder # Clone with SSH explicitly git clone git@github.com:owner/repo-name.git
powershell# Fork to your account and clone locally gh repo fork owner/repo-name --clone # Fork to an organization gh repo fork owner/repo-name --org my-org
powershell# Your repos gh repo list --limit 30 # Organization repos gh repo list my-org --limit 50 # Filter by language gh repo list --language python --limit 20
powershell# List remote branches git branch -r # Create and push a new branch git checkout -b feature/my-feature git push -u origin feature/my-feature # Delete a remote branch git push origin --delete feature/old-branch # List branches via gh gh api repos/owner/repo/branches | python -m json.tool
powershell# View repo details gh repo view owner/repo-name # View in browser gh repo view owner/repo-name --web # Edit repo description and topics gh repo edit owner/repo-name --description "Updated description" --add-topic "api,python"
powershell# List secrets gh secret list # Set a secret gh secret set DATABASE_URL --body "postgresql://user:pass@host/db" # Set from a file gh secret set PRIVATE_KEY < private_key.pem # Delete a secret gh secret delete OLD_SECRET
powershell# Archive (read-only, not deleted) gh repo archive owner/repo-name # Delete — IRREVERSIBLE — direct user to do this manually # gh repo delete owner/repo-name --yes ← do not run this for the user
"Create a new private GitHub repo for my Python scripts" → Use step 1: gh repo create my-python-scripts --private --clone.
"Fork the fastapi repository so I can contribute" → Use step 3: gh repo fork tiangolo/fastapi --clone.
"Add my API key as a GitHub Actions secret" → Use step 7: gh secret set API_KEY --body "...".
gh repo delete for the user; direct them to do it in the GitHub web UIgh secret set are write-only in the GitHub UI — they cannot be read back after creationOther measured skills in the registry, with their headline benchmark lift.