More screenshots

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+18 more

    Automated PR Review & Pruner

    1

    Audits Git diffs and code modules to detect dead code paths, N+1 queries, and unhandled promise rejections.

    $9.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Automated PR Review & Pruner

    Automated PR Review & Pruner

    Example session with this skill installed

    Review this pull request diff for bugs, memory leaks, and dead code. Clean up any issues and output the optimized code:

    import { fetchUser, fetchPermissions, unusedHelper } from './api';
    
    export async function processUsers(userIds: string[]) {
      const unusedVar = "debug_mode";
      
      for (let i = 0; i < userIds.length; i++) {
        const user = await fetchUser(userIds[i]);
        const perms = await fetchPermissions(user.id);
        console.log(user, perms);
      }
    
      return true;
      console.log("Processing complete");
    }
    
    • Read your context and instructions
    • Compiled the automated pr review
    • Generated the document
    ### 📋 Audit Findings & Severity Report | Severity | Location | Issue Type | Summary | | :--- | :--- | :--- | :--- | | 🔴 **Critical** | `processUsers()` loop | Performance / N+1 | Sequential `await` calls inside `for` loop cause high latency. | | 🟡 **Warning** | Line 13 | Unreachable Code | `console.log` placed directly after an unconditional `return`. | | 🟡 **Warning** | Line 1 & Line 4 | Dead Code | Unused import `unusedHelper` and unused variable `unusedVar`. | --- ### 🔍 Detailed Fixes 1. **Async Bottleneck Resolution:** Converted sequential `for` loop `await` calls into parallelized `Promise.all()` execution to reduce total execution time from O(N) network requests to O(1) sequential delays. 2. **Dead Code Stripping:** Removed unused variable `unusedVar` and unused import `unusedHelper`. 3. **Unreachable Code Removal:** Purged execution block following the explicit `return true` statement. --- ### ✨ Cleaned Master Output ```typescript import { fetchUser, fetchPermissions } from './api'; export async function processUsers(userIds: string[]): Promise { const userResults = await Promise.all( userIds.map(async (id) => { const user = await fetchUser(id); const perms = await fetchPermissions(user.id); return { user, perms }; }) ); userResults.forEach(({ user, perms }) => { console.log(user, perms); }); return true; }

    automated-pr-review-pruner.pdf

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Prune unreachable logic and unused variables from legacy modules.Convert N+1 database loops into efficient batch queries.Identify and fix floating promises to prevent runtime crashes.Simplify complex nested conditionals using guard clauses.

    About this skill

    Automated PR Review & Dead-Code Pruner is a deterministic code review engine built for Agensi. Unlike generic AI code reviews that focus on superficial style formatting, this skill focuses strictly on high-impact architectural issues, runtime risks, dead code elimination, and database performance bottlenecks.

    Core Capabilities

    • Dead Code & Unreachable Logic Removal: Automatically flags and strips unused symbols, orphaned imports, unreachable branches, and redundant variable assignments.
    • Async & Resource Management Audit: Catches floating promises, unhandled rejections, dangling event listeners/timers, and sequential await bottlenecks that should be parallelized with Promise.all().
    • Database & Algorithmic Efficiency: Identifies N+1 query patterns inside loops and high cyclomatic complexity (nested loops >3 levels deep) to suggest clean guard clauses.
    • Refactored Code Delivery: Generates structured severity matrices alongside zero-fluff, copy-paste ready refactored code blocks.

    Compatible Workflows

    Ideal for continuous integration checks, pull request audits, legacy codebase refactoring, and daily developer code hygiene routines.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    • One-time purchase, yours forever

    Listedtoday

    Frequently Asked Questions