- Home
- Skills
- Testing & Debugging
- Git Diff Test Scope — Offline API & Test Impact Planner
Git Diff Test Scope — Offline API & Test Impact Planner
by SunQi
Zero-dependency offline Git diff analyzer extracting affected HTTP routes (Spring/FastAPI/Flask/Express/NestJS), DB tables, blind spots, and P0/P1/P2 test scopes.
Free
Git Diff Test Scope — Offline API & Test Impact Planner
Example session with this skill installed
Analyze the diff in 'fix-auth.patch' for a NestJS project and generate a prioritized regression testing plan.
- Read your context and instructions
- Compiled the git diff test
I have analyzed the provided unified diff 'fix-auth.patch'. The analysis identified modifications to the authentication middleware and three specific controller routes.
Regression Testing Scope Report
| Priority | Category | Impacted Component | Change Detail |
|---|---|---|---|
| P0 | Security | src/auth/jwt.strategy.ts | Modified token validation logic; high risk of lockout. |
| P0 | API Route | POST /auth/login | Logic change in credential verification flow. |
| P1 | API Route | GET /user/profile | Dependent on updated JWT strategy; potential 401 errors. |
| P2 | API Route | GET /health | Touched via shared import update; low functional risk. |
| BLIND SPOT | Config | ormconfig.ts | Detected env var changes; verify DB credentials manually. |
Impact Summary:
- Routes Impacted: 3
- Security Zones: 1 (Auth Middleware)
- Database Tables: 0 (No migrations detected)
Next steps
- Execute P0 test cases for the login flow using the updated JWT secret.
- Verify that the user profile endpoint correctly handles expired tokens.
- Manually inspect the
ormconfig.tschanges as static analysis cannot verify external environment variables.
Connects securely to your tools. The creator never sees your data.
About this skill
Before a release or hotfix, QA teams often choose between slow full regression or risky guesswork. Git Diff Test Scope analyzes unified diffs or local commit ranges completely offline using Python 3.9+ standard library only (scripts/diff_scope.py):
- Multi-Framework Route Extraction: Detects affected endpoints in Spring Boot (@RequestMapping + method annotations), FastAPI, Flask, Express, and NestJS.
- Database & Migration Detection: Extracts touched tables from .sql, *Mapper.xml, and migration files.
- P0 / P1 / P2 Risk Prioritization: Automatically elevates auth/RBAC/middleware, DB schema, and API route edits to P0; services/configs to P1; docs/tests to P2.
- Blind-Spot Honesty & Fail-Closed: Flags dynamic reflection (Class.forName, Method.invoke), dynamic Python imports, and gateway rewrite rules for manual QA review; fails closed on empty/invalid diffs.
Open Source (MIT License, Free) — Full source code, sample PR diff, unit tests, and CI available in repository sunqi-2025/git-diff-test-scope on GitHub.
Static analysis only; ignores runtime reflection and third-party binaries. Requires unified diff format. Does not execute code or migrations.
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 10 days ago
- Free with an Agensi account
- Software
Git
Python
Permissions
What's inside
Creator
SunQi
3 skills on Agensi
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.