- Home
- Skills
- Code Quality & Review
- Repo Access Audit
More screenshots
Works with the AI Agents you already use
Repo Access Audit
Audit GitHub repository permissions to find access drift, stale invites, and single points of failure.
$9
Repo Access Audit
Example session with this skill installed
Audit my repositories for any access drift against my grants.csv file and identify any repos where I am the sole maintainer.
- Read your context and instructions
- Compiled the repo access audit
- Generated the data export
I have completed the access audit for 12 repositories. I identified 3 instances of access drift and 2 repositories at risk due to a low bus-factor.
Repository Access Audit — dev-lead-user
Generated 2024-05-20 · 12 repos in scope · 8 people · 5 findings
Answer in one paragraph
Two contractors still have write access despite being marked for removal in the baseline. Your ‘core-api’ and ‘legacy-auth’ repos are single points of failure with only one admin. You should prioritize revoking ghost access for contractor-joe before freezing the new baseline.
Coverage
Audited 11 of 12 repos. Unavailable: 1 (internal-tooling-v3).
Team-derived access: not included. Invitations visible: yes.
Matrix
| Person | web-app | core-api | docs-site | Max |
|---|---|---|---|---|
| dev-lead-user | admin | admin | admin | admin |
| dev-ana | write | — | read | write |
| contractor-joe | write | — | — | write |
| deploy-bot 🤖 | write | write | — | write |
Findings
1. Ghost access — contractor-joe on web-app
Live: write · Baseline: none · Evidence: user present in live API, absent from grants.csv.
Action: Review then remove.
2. Sole maintainer — core-api, legacy-auth
Write/admin count is 1. Evidence: only dev-lead-user has write access.
Action: Add a second maintainer to reduce bus-factor risk.
Remediation, in order
| # | Action | Command | Risk | Consequence |
|---|---|---|---|---|
| 1 | Remove Collab | gh api -X DELETE repos/acme/web-app/collaborators/contractor-joe | safe | Revokes write access immediately. |
| 2 | Add Admin | Manual Action | confirm | Reduces risk of repo becoming unrecoverable. |
Next steps
- Run the provided
DELETEcommand forcontractor-joe. - Add a backup administrator to the
core-apirepository. - Run
node scripts/audit.mjs --freezeonce the cleanup is verified.
grants.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Managing repository permissions becomes a black box as teams grow. Engineering leads and founders often cannot verify who has write access across dozens of repositories or find lingering access from offboarded contractors without manual clicking. This skill audits GitHub repository permissions to identify security gaps and single points of failure.
What it does
- Permission Matrixing generates a person-by-repository map of all direct collaborators.
- Drift Detection compares live GitHub state against a recorded baseline to find unauthorized access.
- Risk Identification flags repositories with only one maintainer or excessive administrator sprawl.
- Invite Tracking surfaces pending or stale invitations that haven't been accepted.
- Remediation Scripting provides exact
ghCLI commands to revoke or downgrade access safely.
How it works
- Identity Check verifies the
ghCLI authentication and current user scope. - Data Collection runs read-only API calls to fetch direct collaborators and pending invitations.
- Reconciliation compares live data against a
grants.csvbaseline (if provided) to identify drifts or expired access. - Reporting generates a Markdown and a self-contained HTML report with a prioritized findings list.
Frameworks & tools
This skill requires the GitHub CLI (gh) for data collection and Node.js (18+) for the reconciliation and reporting scripts.
Why this beats prompting it yourself
Generic prompts often miss inherited permissions or fail to distinguish between no data and no risk. This skill implements a strict four-level access model and specific bus-factor heuristics to ensure coverage gaps are reported as findings rather than ignored.
Use cases
- Auditing permissions before offboarding a developer or agency.
- Conducting quarterly access reviews for security compliance.
- Performing due-diligence repo audits during an acquisition.
- Identifying automation bots that have excessive write permissions.
Known limitations
Does not audit code content, secrets, or 2FA status. Team-derived or organization-wide permissions are out of scope unless explicitly queried. Requires an authenticated GitHub CLI session.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Accounts
GitHub
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.