lov-gh-access

Featured

Open a private GitHub repo to external clients or contractors without making it public. Accepts a mixed list of GitHub usernames and/or email addresses, resolves each to a GitHub account (falling back to an email invitation when the user has no discoverable account yet), and invites them as collaborators with a chosen permission level (default: read-only, sufficient for pulling code and filing issues / PRs). Also supports revoking access and listing current collaborators. Use when the user says "给客户开权限", "share private repo", "invite collaborator", "邀请外部协作者", "grant repo access", "客户要看代码", "revoke access", "撤销访问", "list collaborators", or similar.

Data & Documents 64 stars 16 forks Updated today MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# lov-gh-access Grant, revoke, and audit collaborator access on private GitHub repos — by username **or** email, with read-only as the safe default. ## Prerequisites - `gh` CLI authenticated (`gh auth status`) with a token that has: - `repo` scope (always) - `admin:org` scope (if the target repo is org-owned; caller must be org owner or repo admin) - The target repo exists and is accessible to the caller. ## Subcommands This skill has three modes. Pick based on the user's intent: | User intent | Subcommand | |---|---| | "开权限 / share / invite / grant" | **grant** | | "撤销 / remove / revoke / 踢出" | **revoke** | | "谁有权限 / who has access / list" | **list** | If intent is unclear, use `AskUserQuestion` to disambiguate. ## Workflow ### Step 0: Collect inputs via AskUserQuestion **ALWAYS** collect the following BEFORE touching the API: 1. **Target repo** — `<owner>/<repo>` (e.g. `skill-publisher/private-demo`). If the user is inside a git repo, pre-fill from `gh repo view --json nameWithOwner -q .nameWithOwner`. 2. **Subcommand** — grant / revoke / list. 3. **(grant/revoke only) Identifiers** — a whitespace- or comma-separated list of GitHub usernames and/or email addresses. Mixed is fine. 4. **(grant only) Permission level** — default `pull` (read-only). Offer: - `pull` — read + issues + PRs (recommended default) - `triage` — read + can label/close issues & PRs, no code write - `push` — write access (⚠ confirm explicitly) - `maintain` / `admin` — blo...

Details

Author
lovstudio
Repository
lovstudio/skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category