E Commerce Engineer (agent)

    by Laravel Company

    1

    E Commerce Engineer (agent): Builds e-commerce systems including product catalogs, shopping carts, inventory management, and order processing

    $2

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    E Commerce Engineer (agent)

    Example session with this skill installed

    Design a database schema for a product catalog that supports multiple variants like size and color, including inventory tracking for each SKU in Laravel.

    • Read your context and instructions
    • Compiled the e commerce engineer

    I will design a Laravel-compliant database schema for a multi-variant product catalog with SKU-level inventory tracking.

    Technical Specification: Multi-Variant Product Catalog

    // Database Migration for Products and Variants
    Schema::create('products', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->string('slug')->unique();
        $table->text('description')->nullable();
        $table->boolean('is_active')->default(true);
        $table->timestamps();
    });
    
    Schema::create('skus', function (Blueprint $table) {
        $table->id();
        $table->foreignId('product_id')->constrained()->onDelete('cascade');
        $table->string('code')->unique(); // e.g., TSHIRT-RED-L
        $table->decimal('price', 12, 2);
        $table->integer('stock_quantity')->default(0);
        $table->json('option_values'); // Stores ['size' => 'L', 'color' => 'red']
        $table->timestamps();
    });
    
    // Eloquent Model Relationships
    class Product extends Model {
        public function skus() {
            return $this->hasMany(Sku::class);
        }
    }
    
    class Sku extends Model {
        public function product() {
            return $this->belongsTo(Product::class);
        }
    
        public function decrementStock(int $quantity) {
            if ($this->stock_quantity < $quantity) {
                throw new \Exception("Insufficient stock for SKU: {$this->code}");
            }
            return $this->decrement('stock_quantity', $quantity);
        }
    }
    

    Summary

    Proposed a normalized schema using a products table for base metadata and a skus table for variants and inventory. This avoids table bloat and allows for easy querying of specific item availability.

    Assumptions

    • Each SKU has a unique identifier (code).
    • Pricing is managed at the SKU level rather than the product level.
    • Variations are simple key-value pairs stored as JSON for flexibility.

    Risks and open questions

    • Race Conditions: High-frequency checkouts may need pessimisticLocking on stock updates.
    • Attribute Searching: Should attributes like "Color" be in a separate table for filtered searching?

    Verification

    • Migration uses constrained() for referential integrity.
    • decrementStock method includes a basic guard clause for inventory levels.

    Next steps

    1. Implement the ProductAttribute and AttributeValue tables if you need advanced faceted search.
    2. Add a StockMovement log table to track inventory changes over time.
    3. Configure Spatie Laravel Sluggable for the product slugs.

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

    About this skill

    Building reliable e-commerce systems requires balancing complex logic like inventory race conditions with strict security standards. This skill transforms your agent into a senior engineer specialized in the Laravel e-commerce ecosystem. It eliminates the trial-and-error of prompting by enforcing a strict architectural and security framework for every feature.

    What it does

    • Catalog architecture Designs product schemas, category hierarchies, and attribute systems.
    • Transaction logic Builds shopping cart flows, checkout processes, and order management.
    • Inventory control Implements logic for stock levels, reservations, and multi-warehouse tracking.
    • Security enforcement Applies specific guidelines for payment handling and data privacy.
    • Assumption logging Identifies missing requirements instead of hallucinating missing data.

    How it works

    1. Goal alignment The agent restates your specific e-commerce objective to ensure intent is captured correctly.
    2. Input audit It identifies what information you provided and lists specific assumptions for missing business rules.
    3. Step-wise planning It outlines the execution path before generating any code or configuration.
    4. Verified execution It produces the solution following Laravel coding standards and security protocols.
    5. Structured output You receive a consistent report including a summary, technical details, risks, and verification steps.

    Frameworks & tools

    This skill is built for the PHP and Laravel ecosystem. It adheres to modern Laravel conventions, Eloquent ORM patterns, and standard web security practices for commercial applications.

    Why this beats prompting it yourself

    Generic prompts often ignore the "boring" but critical parts of e-commerce like race conditions during checkout or PCI-DSS implications. This skill uses a pre-defined set of Laravel standards and security rules that are applied consistently, preventing the agent from taking shortcuts.

    Use cases

    • Scaffold a robust shopping cart with tax and shipping calculations.
    • Design a database schema for complex product variants and stock.
    • Review existing Laravel commerce code for security vulnerabilities.
    • Document order processing workflows and payment state machines.

    Known limitations

    Focuses primarily on Laravel and PHP. It does not perform actual payment gateway transactions or live infrastructure deployments.

    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

    Money-back guarantee

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

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    Permissions

    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    This skill transforms a general-purpose AI into a senior Laravel engineer that enforces strict architectural patterns for catalogs, inventory logic, and secure checkout flows, preventing common mistakes like race conditions or insecure data handling.

    The skill is designed to work with any major LLM (like GPT-4, Claude 3.5, or Gemini) that supports custom system instructions or agentic workflows, provided the environment supports PHP/Laravel context.

    You receive the specialized skill definition, the configuration framework for the agent's logic, and a set of standardized templates for generating consistent e-commerce architectural reports.

    While the agent can design logic for tax, shipping, and payment states, it does not execute live API calls to gateways or perform actual cloud infrastructure deployments for security reasons.

    The agent follows modern Laravel standards (v10/v11) and Eloquent ORM best practices; updates are released periodically to align with the latest Laravel security advisories and framework releases.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.