realrashid/cart/cart-development

Claude Code and agent skill by realrashid/cart

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Build and manage shopping cart functionality including adding items, calculating totals, and managing multiple cart instances.

Install

npx vskill@latest install realrashid/cart/cart-development

SKILL.md

Cart Development

When to use this skill

Use this skill when implementing shopping cart features, e-commerce workflows, or wishlist management in Laravel applications using the realrashid/cart package.

Features

  • Publish configuration (vendor:publish tag: cart-config).
  • Manage multiple cart instances (e.g., 'main', 'wishlist').
  • Add, update, and remove items with custom options and associated models.
  • Automatically calculate subtotals, taxes, and totals based on cart contents.

Examples

Adding an item to the cart
php
use RealRashid\Cart\Facades\Cart;
Cart::add('id_1', 'Product 1', 2, 19.99, ['size' => 'L']);
Updating cart item quantity
php
Cart::update($rowId, 3); // Update quantity to 3
Cart::update($rowId, ['name' => 'New Product Name']); // Update other details
Associating a cart item with an Eloquent model
php
Cart::associate($rowId, 'App\Models\Product');
$item = Cart::get($rowId);
echo $item->model->name; // Access associated product model
Showing cart contents and totals
php
$cartItems = Cart::content();
$total = Cart::total();
$tax = Cart::tax();

Implementation tips for AI agents

  • Use Cart::instance('wishlist') for multiple cart purposes within the same session.
  • Leverage model association to avoid manual database lookups when displaying cart items.
  • Suggest php artisan vendor:publish --tag=cart-config to customize default tax rates and storage settings.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
110
Repository forks
7
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/realrashid/cart/cart-development/badge)](https://verified-skill.com/skills/realrashid/cart/cart-development)

Something wrong with this skill or its page? Tell us.