More screenshots

    Works with the AI Agents you already use

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

    Money-back 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.

    • Requires full access to code files or diff input: This skill audits provided code blocks or Git diffs; it does not directly query live database instances or external API endpoints.
    • Code execution non-interference: The skill performs static logic checks, risk pattern matching, and structure analysis; it does not execute active unit test suites or compile binaries.
    • Framework-agnostic pattern matching: Highly tailored for TypeScript, JavaScript, Python, and SQL workflows. Domain-specific DSLs may require explicit context in the prompt for optimal diff generation.

    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 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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    Permissions

    No special permissions declared or detected

    Listed2 months ago

    What's inside

    Frequently Asked Questions

    The skill acts as a specialized auditor for your codebase, focusing specifically on eliminating dead code paths, fixing N+1 database queries, and securing asynchronous logic like unhandled promise rejections. It helps developers maintain high performance and code hygiene by catching architectural risks that standard linters or generic AI reviews often miss.

    This skill is designed for the Agensi platform and integrates seamlessly with popular Git-based workflows. It is optimized for TypeScript and JavaScript environments, providing specific support for modern asynchronous patterns and database interaction libraries.

    Setup is straightforward through the Agensi dashboard; once installed, you simply connect your repository and configure the skill to trigger during PR creation or as part of a scheduled refactoring task. No complex manual installation or local environment configuration is required.

    You receive the full skill logic package, including the deterministic review engine and pre-configured severity matrices. All future updates, bug fixes, and performance optimizations for the skill are included with your purchase and applied automatically via the marketplace.

    Unlike tools that only flag issues, this skill provides a structured severity matrix and ready-to-use refactored code blocks. You can review the suggested changes and copy-paste the optimized code directly into your project, significantly reducing the time spent on manual refactoring.

    New in Code Quality & Review