add-bot

v2026.09.25

Add the bot account as a collaborator with push permissions to a repository

GitHub
安装命令
npx skhub add seabbs/add-bot
Markdown
SKILL.md

Add the bot account as a collaborator with push permissions to a repository.

Read bot_account, owner_account from the org's or project's CLAUDE.md ## Automation config table.

Arguments

  • Just repo name (assumes owner from config): my-repo
  • Full owner/repo: owner/my-repo
  • No argument: uses current repository from git remote get-url origin

Process

  1. Save current gh user: gh api user --jq '.login'
  2. Switch to owner account: gh auth switch --user <owner_account>
  3. Parse repository argument
  4. Add collaborator: gh api repos/{owner}/{repo}/collaborators/<bot_account> -X PUT -f permission=push
  5. Verify access: gh api repos/{owner}/{repo}/collaborators/<bot_account>
  6. Switch back to original user: gh auth switch --user {original_user}
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

2026年9月25日

分类

未分类

许可证

MIT

源路径

plugins/bot-automation/skills/add-bot

默认分支

main

最新提交

cf859a3

Tree SHA

5c81048