# Repo Access Audit

> Audit GitHub repository permissions to find access drift, stale invites, and single points of failure.

Repo Access Audit is a paid AI agent skill on Agensi by Trust Williams, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Trust Williams](https://www.agensi.io/creators/trust-williams)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/repo-access-audit
- Tags: code-review, github-api, security-audit, devops-tooling, compliance

## 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 `gh` CLI commands to revoke or downgrade access safely.

### How it works
1. **Identity Check** verifies the `gh` CLI authentication and current user scope.
2. **Data Collection** runs read-only API calls to fetch direct collaborators and pending invitations.
3. **Reconciliation** compares live data against a `grants.csv` baseline (if provided) to identify drifts or expired access.
4. **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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Repo Access Audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific security risks does the Repo Access Audit identify that I might miss manually?

This skill identifies 'access drift' (unauthorized changes from a baseline), 'bus-factor' risks where only one person has access, and lingering invites from offboarded contractors that could pose a security threat.

### What technical prerequisites are needed to run this audit skill?

The skill requires the GitHub CLI (`gh`) and Node.js (18+). It works by executing read-only API calls through your authenticated session to ensure your credentials never leave your local environment.

### Does this skill support auditing organization-level permissions or just individual repositories?

While the skill focuses on direct collaborators for precision, it can identify excessive admin sprawl and single points of failure across any repository where the authenticated user has metadata access.

### What assets are included in the purchase of this skill?

You receive the core audit logic, a reporting engine that generates Markdown and HTML summaries, and a remediation script generator that provides ready-to-use GitHub CLI commands for fixing findings.

### Can I use this skill to compare my current GitHub state against a previously approved list of users?

Yes, if you provide a `grants.csv` file, the skill will automatically flag any live permissions that do not match your recorded baseline, making it ideal for quarterly compliance reviews.

### Will this skill automatically make changes to my repository permissions?

To ensure security and privacy, this skill performs read-only data collection; it will never automatically revoke access, but instead provides a script for you to review and run manually.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
