github-account-ops
БесплатноЗапускает вложенные скриптыНе проверенUse when cleaning/publishing a whole GitHub account.
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
GitHub Account Ops (account-wide, not per-repo)
Use this when the ask is about the ACCOUNT, not one repo: "handle my GitHub so I don't grant access per project", "clean up my repos / project names", "make my work public for my portfolio", "set up my profile", "audit for leaks".
Bundled github-auth / github-repo-management cover per-repo basics (clone,
create, releases, secrets). This skill adds what they miss: headless-safe auth,
account inventory, pre-publish leak audit, visibility flips, and authorship rewrite.
Support files:
scripts/repo_secret_scan.sh— two-layer leak scan (gitleaks + custom patterns), masked output.scripts/rewrite_authors.sh— git-filter-repo authorship rewrite incl. live-clone realignment.references/personal-account-tidyup.md— full walkthrough, false-positive catalogue, profile/Pages/vault recipes.references/profile-polish-recipe.md— the content-update loop for the account's public face: profile README / portfolioindex.htmlPUT-with-sha, bio PATCH, Pages build status, live-string read-back.references/publishing-artifact-pack.md— publishing a local pack (skills, templates) as a public repo: include/exclude boundary, identifier scrub, fresh-clone verification, rename-with-redirect.
1. Centralize auth (kill the per-project keys)
Diagnosis that explains "I had to grant a key for every project": a fine-grained
token only sees the repos it was scoped to. Fix = one OAuth token via gh, then
credential.helper=store for git.
gh auth login # or the device flow in github-auth (headless-safe)
gh auth setup-git # git credential helper -> no more per-project grants
gh auth status # scopes should include repo, workflow (+ read:org)
Headless boxes (VPS/container, no dbus keyring):
export GH_TOKEN=$(grep '^GH_TOKEN=' ~/.hermes/.env | cut -d= -f2- | tr -d '\n\r')
timeout 30 gh auth status # without GH_TOKEN this can hang forever with no output
Keep the token in ~/.hermes/.env as BOTH GITHUB_TOKEN and GH_TOKEN, plus a
~/.git-credentials line so plain git push works too. Never print token values
in chat — [REDACTED].
Pitfalls learned the hard way:
- Do NOT set
git config --global credential.https://github.com.helper ""to "suppress prompts" — it removes the store helper andgit ls-remotethen dies withcould not read Username. - Never extract JSON fields with
sed 's/.*"login": *"\([^"]*\)".*/\1/': sed is greedy, so a pretty-printed response leaves the variable holding the whole JSON body andhosts.ymlbecomes invalid YAML ("failed to load config"). Parse withpython3 -c "import sys,json; print(json.load(sys.stdin)['login'])".
Scope escalation later (gh auth refresh)
Extra scopes (user = edit profile name/bio; delete_repo = delete repos) need a
second device authorization. The token is REPLACED — re-sync .env +
~/.git-credentials from ~/.config/gh/hosts.yml afterwards, or later calls keep
using the old token.
# terminal(pty=true, background=true); read the code with process(action='log')
printf '\n' | gh auth refresh -h github.com -s user,delete_repo
A missing scope surfaces as 404, not 403 — PATCH /user → Not Found means
no user scope; gh names the scope it wants in the error text.
2. Inventory before touching anything
gh repo list --limit 50 --json name,visibility,description,isFork,pushedAt,primaryLanguage
gh api user -q '"name: \(.name) | bio: \(.bio) | blog: \(.blog)"'
find ~ -maxdepth 4 -name .git -type d # local clones, remotes, tokens in URLs
Profile README lives in a repo named <login>/<login> — missing repo = no profile page.
3. Pre-publish leak audit (ALWAYS before making repos public)
Run scripts/repo_secret_scan.sh (or by hand): gitleaks over full history + all
branches, plus custom patterns for telegram bot tokens, 64-hex keys, base58 keys,
+62 phones, and any .env*/*.db ever tracked.
Scan from INSIDE each repo. Scanning from a parent dir with grep -r . re-reads
every sibling repo and reports identical findings under every repo name.
Classify each hit before believing it (print length + first 4 chars, never the value):
placeholder .env.example / README templates; generic-api-key on 44-char base58
Solana mint addresses in tests; 87-88 char base58 = tx signatures; 43-char
program IDs = public on-chain data. These are all benign.
4. Publish, rename, Pages
gh repo edit OWNER/REPO --visibility public --accept-visibility-change-consequences
gh api -X PATCH repos/OWNER/REPO -f name=new-name # rename: PATCH, there is NO /rename endpoint
gh api -X POST repos/OWNER/REPO/branches/old/rename -f new_name=main
gh api -X PATCH repos/OWNER/REPO -f default_branch=main
echo '{"source":{"branch":"main","path":"/"}}' | gh api -X POST repos/OWNER/REPO/pages --input -
Old URLs redirect after a rename. A just-enabled Pages site 404s for ~1 min while bu
Установить github-account-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл github-account-ops?
Use when cleaning/publishing a whole GitHub account.
Как установить скилл github-account-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл github-account-ops запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic