More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 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

    Security 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

    📋 Audit Findings & Severity Report

    SeverityLocationIssue TypeSummary
    🔴 CriticalprocessUsers() loopPerformance / N+1Sequential await calls inside for loop cause high latency.
    🟡 WarningLine 13Unreachable Codeconsole.log placed directly after an unconditional return.
    🟡 WarningLine 1 & Line 4Dead CodeUnused import unusedHelper and unused variable unusedVar.

    🔍 Detailed Fixes

    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

    import { fetchUser, fetchPermissions } from './api';
    
    export async function processUsers(userIds: string[]): Promise<boolean> {
      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;
    }
    

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

    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 use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    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 1 month ago

    • Passed all security checks, Safe to install

    Listed1 month ago

    What's inside

    Frequently Asked Questions