- Home
- Skills
- Technical Documentation
- branch change audit
branch change audit
Audit branch changes against main, grouping modified files by service and status for fast PR reviews.
Free
Works with the AI Agents you already use
branch change audit
Example session with this skill installed
Run a branch audit against origin/main for the services/ directory and group the changes.
- Read your context and instructions
- Compiled the branch change audit
I have performed a diff between origin/main and the current branch, focusing on the services/ directory.
Branch Change Audit
| Metric | Value |
|---|---|
| Baseline | origin/main |
| Total Services | 2 |
| Total Files | 5 |
services/api-gateway
Aservices/api-gateway/src/middleware/auth.tsMservices/api-gateway/package.jsonRservices/api-gateway/config.yaml<-services/api-gateway/settings.yaml
services/user-auth
Mservices/user-auth/src/handler.goDservices/user-auth/temp_script.sh
Next steps
- Review the renamed
config.yamlto ensure no environment variables were lost. - Verify that the deletion of
temp_script.shdoes not break any local CI scripts. - Run
scripts/generate_audit.shto save this report asCHANGE_AUDIT.mdfor the PR.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual branch reviews are prone to missing files, especially in monorepos where changes span multiple services. Identifying exactly what changed since branching from main requires tedious git commands and manual grouping.
What it does
- Service-level grouping Categorizes changes by service or directory key using path segment analysis.
- Status preservation Tracks and reports the specific nature of changes including additions, modifications, deletions, and renames.
- Automated baseline detection Resolves the correct upstream branch automatically, checking symbolic refs and remote HEAD.
- Rename tracking Clearly maps file movements showing the transition from old paths to new locations.
- Scope filtering Limits audits to specific sub-directories like
apps/orservices/when requested.
How it works
- Identify baseline The skill probes the environment to find the upstream target branch, typically
origin/mainororigin/master. - Execute diff Runs a
name-statusdiff between the baseline and the current HEAD to capture the exact delta. - Parse and group Organizes raw git output into a structured hierarchy based on repository folders.
- Generate report Outputs a summary to the chat or writes a
CHANGE_AUDIT.mdfile for PR documentation.
Frameworks & tools
This skill utilizes Git CLI and shell scripting. It is compatible with any repository structure, including complex monorepos managed with tools like Nx, Turborepo, or Lerna.
Why this beats prompting it yourself
Standard LLM prompts often hallucinate change lists or fail to correctly resolve the git baseline. This skill uses specific CLI sequences to ensure every file status is accurate and properly grouped by service, saving you from manual diff parsing.
Use cases
- Generating a pre-PR impact assessment to verify only intended files were touched.
- Auditing monorepo changes to identify which microservices require deployment.
- Creating a structured changelog for team review sessions.
- Troubleshooting unexpected behavior by listing all modifications since the last stable merge.
Known limitations
Requires a local git environment with an established origin to detect the baseline automatically. Does not include unstaged or uncommitted local changes in the branch-to-branch diff.
Requires Git CLI access. Only audits committed changes (HEAD vs baseline); does not include unstaged work. Works best with repositories using standard directory-based service structures.
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 any payment.
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
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account