Git Diff Test Scope — Offline API & Test Impact Planner

    by SunQi

    1

    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

    Security scanned

    Works with the AI Agents you already use

    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

    PriorityCategoryImpacted ComponentChange Detail
    P0Securitysrc/auth/jwt.strategy.tsModified token validation logic; high risk of lockout.
    P0API RoutePOST /auth/loginLogic change in credential verification flow.
    P1API RouteGET /user/profileDependent on updated JWT strategy; potential 401 errors.
    P2API RouteGET /healthTouched via shared import update; low functional risk.
    BLIND SPOTConfigormconfig.tsDetected 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

    1. Execute P0 test cases for the login flow using the updated JWT secret.
    2. Verify that the user profile endpoint correctly handles expired tokens.
    3. Manually inspect the ormconfig.ts changes 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    GitPython

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed10 days ago

    What's inside

    Creator

    S

    SunQi

    3 skills on Agensi

    Frequently Asked Questions

    This skill analyzes Git diffs to identify specifically impacted API routes and database tables, then generates a prioritized P0/P1/P2 testing plan so you don't have to guess which areas require manual or automated regression testing.

    It supports major web frameworks including Spring Boot, FastAPI, Flask, Express, and NestJS, and requires Python 3.9+ along with a standard Git binary for repository-level analysis.

    Unlike generic LLM prompts that may hallucinate code paths, this skill uses a deterministic logic approach to map routes and schema changes, ensuring your test scope is based on actual code rather than probabilistic guesses.

    Your purchase includes the Python-based CLI tool, the deterministic analysis logic for route and database mapping, and the Markdown reporting module for generating prioritized test plans.

    While it excels at static analysis of decorators and schema files, it cannot detect changes triggered by dynamic runtime reflection or binary bytecode, and it is intended to supplement rather than replace your automated test execution.

    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.

    Free