- Home
- Skills
- Agents & Orchestration
- E Commerce Engineer (agent)
E Commerce Engineer (agent)
E Commerce Engineer (agent): Builds e-commerce systems including product catalogs, shopping carts, inventory management, and order processing
$2
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
pessimisticLockingon stock updates. - Attribute Searching: Should attributes like "Color" be in a separate table for filtered searching?
Verification
- Migration uses
constrained()for referential integrity. decrementStockmethod includes a basic guard clause for inventory levels.
Next steps
- Implement the
ProductAttributeandAttributeValuetables if you need advanced faceted search. - Add a
StockMovementlog table to track inventory changes over time. - 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
- Goal alignment The agent restates your specific e-commerce objective to ensure intent is captured correctly.
- Input audit It identifies what information you provided and lists specific assumptions for missing business rules.
- Step-wise planning It outlines the execution path before generating any code or configuration.
- Verified execution It produces the solution following Laravel coding standards and security protocols.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.