dont reinvent the wheel

    by Moaaz ali

    1

    Enforce a "Reuse Before Build" protocol to adopt vetted libraries instead of writing fragile custom boilerplate.

    Free

    Security scanned

    Works with the AI Agents you already use

    dont reinvent the wheel

    Example session with this skill installed

    I need to add a feature to export our order data to Excel files in our React app. Should I just build a CSV string or is there a better way?

    • Read your context and instructions
    • Compiled the dont reinvent

    I have evaluated the requirements for Excel export. Building a custom CSV string is discouraged as it lacks support for multiple sheets, cell formatting, and true .xlsx encoding.

    Recommended Solution: ExcelJS Adapter

    I recommend adopting exceljs (pinned to v4.4.0) because it allows for full workbook control and is more feature-complete than trivial CSV concatenation. Following the Adapter Boundary Pattern, I have created a reusable service to wrap this dependency.

    import ExcelJS from 'exceljs';
    
    /**
     * Enterprise-grade Excel Export Adapter
     * Encapsulates exceljs to prevent domain leakage.
     */
    export async function exportOrdersToExcel(data: any[], fileName: string) {
      const workbook = new ExcelJS.Workbook();
      const worksheet = workbook.addWorksheet('Orders');
    
      worksheet.columns = [
        { header: 'Order ID', key: 'id', width: 15 },
        { header: 'Customer', key: 'customer', width: 25 },
        { header: 'Total', key: 'total', width: 12 },
        { header: 'Status', key: 'status', width: 15 }
      ];
    
      // Apply Corporate Theme to Header
      const headerRow = worksheet.getRow(1);
      headerRow.font = { bold: true, color: { argb: 'FFFFFFFF' } };
      headerRow.fill = {
        type: 'pattern',
        pattern: 'solid',
        fgColor: { argb: 'FF1E293B' }
      };
    
      data.forEach(order => worksheet.addRow(order));
    
      const buffer = await workbook.xlsx.writeBuffer();
      const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
      const url = URL.createObjectURL(blob);
      const link = document.createElement('a');
      link.href = url;
      link.download = fileName;
      link.click();
      URL.revokeObjectURL(url);
    }
    

    Next steps

    1. Install the dependency using npm install --save-exact exceljs@4.4.0.
    2. Add @types/exceljs to your devDependencies for full TypeScript support.
    3. Import the exportOrdersToExcel helper in your Dashboard component.

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

    About this skill

    Stop writing hundreds of lines of fragile, ad-hoc boilerplate for problems already solved by the open-source community. This skill enforces a strict protocol to prevent both overengineering and the "reinventing the wheel" bias common in AI-generated code.

    What it does

    • Runtime vetting ensures libraries are compatible with your specific target runtime like .NET Framework 4.8 or Node 18 before suggesting them.
    • Library discovery identifies battle-tested open-source solutions for complex tasks like PDF generation, file uploads, and date math.
    • Triviality filtering prevents package bloat by mandating custom code for simple utilities under 30 lines.
    • 7-pillar vetting evaluates candidates based on license safety, community vitality, security, and bundle footprint.
    • Implementation patterns wraps third-party logic in application-level adapters to prevent vendor lock-in.

    How it works

    1. Discovers constraints such as target framework, host process, and environment sandboxes.
    2. Evaluates triviality to decide if the logic should be a 15-line internal helper or a vetted external dependency.
    3. Vets candidates against the 7-pillar protocol, including license checks and maintenance history.
    4. Applies adapter pattern to generate code that encapsulates the library behind a clean interface.

    Frameworks & tools

    Works across React, Next.js, .NET, Node.js, and Python. Supports standard registries like npm, NuGet, and PyPI.

    Why this beats prompting it yourself

    Standard prompts often hallucinate abandoned libraries or suggest writing complex, buggy custom logic for standard problems like timezones. This skill forces a structured architectural audit that filters for license compliance and long-term maintainability.

    Use cases

    • Avoid broken custom CSS print hacks by using isolated iframe printing libraries.
    • Replace manual date arithmetic with UTC-safe, localized standard utilities.
    • Implement secure file chunking and uploads without writing raw event handlers.
    • Standardize schema validation patterns to replace nested if-else spaghetti.

    Known limitations

    This protocol relies on the agent's knowledge of the ecosystem as of late 2026. Adoption of libraries released after mid-2027 requires manual verification of current maintenance status.

    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
    shadcnNode.js

    Permissions

    Browser
    Network Access
    Listed10 days ago

    What's inside

    Creator

    Moaaz ali

    Moaaz ali

    Frequently Asked Questions

    This skill acts as a specialized architectural gatekeeper that audits code generation to ensure standard problems are solved with industry-standard libraries rather than fragile, custom-written 'spaghetti' code.

    The skill performs a 'Triviality Filter' check; if a solution requires fewer than 30 lines of code, it will recommend a custom helper to avoid unnecessary package bloat and 'dependency hell.'

    Yes, the '7-pillar vetting' process includes a strict license safety check to ensure suggested libraries align with your project’s commercial or open-source requirements.

    It is designed for any agentic workflow supporting React, Next.js, .NET, Node.js, and Python, integrating seamlessly into your existing IDE or CI/CD agent prompts.

    The skill generates code using the Adapter Pattern, wrapping third-party logic in a clean interface so you can swap out the underlying library later without refactoring your entire codebase.

    New in Code Quality & Review

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.

    Free