add-collab
Skill44 starsChanged 57 days agoApache-2.0View on GitHub
Manage GitHub collaborators on a project that uses the GitHub Actions deploy setup. Lists current collaborators, lets the user add or remove them, and explains how to do it manually. On first use (when the GitHub Actions deploy is not yet configured), it triggers the internal _setup-github-deploy helper to put the deploy infrastructure in place. The goal is to let any GitHub collaborator deploy without paying for a Vercel seat.
In this repository88 other files it gives its agents.
- accessibilitySkill
- add-2faSkill
- add-agent-dashboardSkill
- add-aiSkill
- add-analyticsSkill
- add-authSkill
- add-automationSkill
- add-backup-dbSkill
- add-cronSkill
- add-dark-modeSkill
- add-dbSkill
- add-domainSkill
- add-emailSkill
- add-github-authSkill
- add-google-authSkill
- add-i18nSkill
- _add-keyringSkill
- add-mapSkill
- add-notification-centerSkill
- add-push-notificationSkill
- add-pwaSkill
- add-roleSkill
- add-routineSkill
- add-storageSkill
- add-stripeSkill
- add-testSkill
- bootstrapSkill
- _check-depsSkill
- cleanSkill
- _collect-secretSkill
- _convert-to-turborepoSkill
- _create-agentSkill
- _create-cloudflare-workerSkill
- _create-contact-pageSkill
- _create-render-workerSkill
- _create-routineSkill
- _create-workflowSkill
- delete-projectSkill
- _detect-project-rootSkill
- _dns-brevoSkill
- _dns-cloudflareSkill
- _dns-gandiSkill
- _dns-godaddy-manualSkill
- _dns-hostingerSkill
- _dns-infomaniak-manualSkill
- _dns-ionos-manualSkill
- _dns-namecheapSkill
- _dns-ovhSkill
- _dns-porkbunSkill
- _dns-resendSkill
- _dns-squarespace-manualSkill
- eco-auditSkill
- _ensure-aiSkill
- _ensure-vaultSkill
- _generate-secretSkill
- geoSkill
- _get-secretSkill
- gscSkill
- _hash-passwordSkill
- _migrate-workersSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use plain, non-technical business language.
- Distinctive: line 12
When generating user-facing content for the scaffolded project (UI labels, emails, copy), write it in the user's language too.
- Distinctive: line 23
Run two checks in parallel:
- Very specific: line 39
If any of these is missing, the setup is incomplete → invoke the _setup-github-deploy internal skill, wait for it to complete, then …
- Distinctive: line 41
If everything is in place, tell the user:
- Distinctive: line 71
If there's only the owner (you), tell the user:
- Distinctive: line 92
Wait for the user's response.
- Distinctive: line 108
If the user explicitly asks for another role, accept these values:
- Distinctive: line 115
After each successful add, confirm:
- Distinctive: line 118
If the API call fails (user not found, already a collab, etc.), report the error and continue with the other actions.
- Distinctive: line 122
If the user gave a number from the list, resolve it to a username first.
- Distinctive: line 133
After each successful remove, confirm:
- Distinctive: line 138
If the user tries to remove themselves (the owner), refuse:
- Distinctive: line 145
After processing all the user's actions, ask:
- Distinctive: line 148
If yes → return to Step 2 (re-list to show the updated state).
- Distinctive: line 149
If no → continue to Step 6.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add Collab - Manage GitHub collaborators
Communication
- Detect the user's language from the conversation (the user's own messages, anywhere in the session - not just this invocation: a bare slash command like
/bootstrapcarries no language signal by itself). If nothing in the conversation gives a signal, fall back to the OS locale (node -e "console.log(Intl.DateTimeFormat().resolvedOptions().locale)") before defaulting to English. ALWAYS reply in that language for every user-facing message: questions, progress, confirmations, summaries, errors - including any example text quoted in this skill, which is illustrative and must be translated, never sent verbatim. - Use plain, non-technical business language. Never expose internal script names (*.mjs) or jargon; describe actions in human terms.
- When generating user-facing content for the scaffolded project (UI labels, emails, copy), write it in the user's language too.
- Show progress as a short natural-language checklist (in-progress and done states).
You manage the GitHub collaborators of the current project.
This skill assumes the project is hosted on GitHub and deployed via Vercel. The first time it runs on a new project, it sets up GitHub Actions as the deploy mechanism (via the _setup-github-deploy helper). On subsequent runs, it skips straight to collaborator management.
Step 1 - Detect whether GitHub Actions deploy is already configured
Run two checks in parallel:
# Check 1 - workflow file exists locally
test -f .github/workflows/deploy.yml && echo "workflow:yes" || echo "workflow:no"
# Check 2 - the 3 Vercel secrets exist on GitHub
gh secret list 2>/dev/null | awk '{print $1}'The setup is complete only if all 4 conditions are true:
.github/workflows/deploy.ymlexists locally- Secret
VERCEL_ORG_IDis listed - Secret
VERCEL_PROJECT_IDis listed - Secret
VERCEL_TOKENis listed
If any of these is missing, the setup is incomplete → invoke the _setup-github-deploy internal skill, wait for it to complete, then continue to Step 2.
If everything is in place, tell the user:
✅ Collaborative deployment is already configured on this project. I'll go straight to managing the collaborators.
Then continue to Step 2.
Step 2 - List current collaborators
Get the repo identifier:
gh repo view --json nameWithOwner -q .nameWithOwnerList all collaborators:
gh api repos/{owner}/{repo}/collaborators -q '.[] | {login, role: .role_name, permission: (if .permissions.admin then "admin" elif .permissions.push then "push" elif .permissions.triage then "triage" else "read" end)}'Replace {owner}/{repo} with the value returned above.
Display the list to the user. Format example:
👥 Current collaborators on repo
{owner}/{repo}
- you - admin (owner)
- alice - push (can commit, push, open PRs)
- bob - triage (can view and triage issues, cannot commit)
Total: 3 collaborators
If there's only the owner (you), tell the user:
👥 Current collaborators
You are the only collaborator on repo
{owner}/{repo}for now.
Step 3 - Ask what the user wants to do
Tell the user:
What would you like to do?
- Add a collaborator - give me their GitHub username (e.g.
alice).- Remove a collaborator - give me their username or their number in the list above.
- You can do both in a single sentence, for example: "Add charlie and remove bob".
- Or reply nothing / skip to exit without changing anything.
💡 You can also do everything manually from the GitHub interface at any time:
- Add → GitHub → your repo → Settings → Collaborators and teams → Add people → type the username → choose the role.
- Remove → GitHub → your repo → Settings → Collaborators and teams → find the person → click Remove.
Wait for the user's response.
Step 4 - Process the user's request
Parse the user's natural-language response. Identify each requested action (additions and removals can be combined in one message).
For each ADD action
gh api repos/{owner}/{repo}/collaborators/{username} -X PUT -f permission=pushpermission=push is the recommended default - the collaborator can commit, push, open PRs, and trigger the deploy workflow, but cannot change repo settings or delete branches.
If the user explicitly asks for another role, accept these values:
pull- read-only (can clone, can't push)triage- can manage issues/PRs without write accesspush- default (can commit and push)maintain- push + can manage some repo settings (but not destructive)admin- full control, including deleting the repo (use with caution)
After each successful add, confirm:
✅ Invitation sent to {username} (role:
push). They'll receive a GitHub email to accept before they get access to the repo.
If the API call fails (user not found, already a collab, etc.), report the error and continue with the other actions.
For each REMOVE action
If the user gave a number from the list, resolve it to a username first.
gh api repos/{owner}/{repo}/collaborators/{username} -X DELETEThis is silent on success (HTTP 204). Verify with:
gh api repos/{owner}/{repo}/collaborators -q '.[].login' | grep -x "{username}" || echo "removed"After each successful remove, confirm:
✅ {username} has been removed from the collaborators.
⚠️ Important: they can no longer push or trigger a deploy. But the deployments they already triggered stay online - nothing is rolled back automatically. If you want to remove a specific deployment, do it manually from your Vercel dashboard.
If the user tries to remove themselves (the owner), refuse:
❌ You can't remove yourself from a repo you own. If you want to transfer ownership, do it from GitHub → Settings → Transfer ownership.
Step 5 - Loop or finish
After processing all the user's actions, ask:
Would you like to do anything else? (add / remove / skip)
If yes → return to Step 2 (re-list to show the updated state). If no → continue to Step 6.
Step 6 - Final summary
Show the updated collaborator list one last time (re-run Step 2's gh api command), then:
✅ Done
Here's how to manage your collaborators going forward:
- With me: just run
/add-collabagain any time.- Manually on GitHub:
- Add → Settings → Collaborators and teams → Add people
- Remove → Settings → Collaborators and teams → find the person → Remove
All the collaborators you added can now deploy without paying for a Vercel seat: on every push to a branch, GitHub Actions builds a preview; on every push to
main, GitHub Actions deploys to production.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

