create-simple-batch-cart

Generates a spreadsheet-style batch-editing cart drawer for Glyvio plugin projects.

1|Updated Jun 11, 2026
One-click install
npx skills add https://github.com/devena/glyvio-forge --skill create-simple-batch-cart-devena
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: create-simple-batch-cart
Source: https://github.com/devena/glyvio-forge/tree/main/claude/skills/create-simple-batch-cart
Command: npx skills add https://github.com/devena/glyvio-forge --skill create-simple-batch-cart-devena

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building a bulk-editing interface in a Glyvio plugin requires wiring together many framework-specific pieces — routes, state, DTO layouts, spreadsheet import/export, and single-transaction persistence — and getting any of the non-obvious rules wrong (wrong interceptor base class, misplaced upload flags, unbounded SQL IN clauses) produces silent failures. This Skill generates a complete, correct SimpleBatchCart implementation from a small set of inputs. ## Core Features & Use Cases - Full batch cart generation: Creates the route class, state, DTO, and view class extending SimpleBatchCart, with all 8 required abstract methods implemented. - Spreadsheet import/export: Optionally enables allowUpload/allowDownload on state and implements getSpreadsheetLayout and getDtoSpreadsheetFromLine for bulk row import. - Inline column editing: Uses generateSimple*DtoLayout helpers to build typed editable columns with built-in "change all" bulk-edit support. - Use Case: You need a screen where warehouse staff paste a spreadsheet of 500 stock items, adjust quantities inline, and save everything in one transaction — provide the cart name, entity, and editable columns, and the Skill emits the full BatchStockEdit cart file plus route registration. ## Quick Start Ask the agent to create a SimpleBatchCart named BatchStockEdit in the my_plugin namespace at route /batch-stock-edit for the StockItem entity with editable name and quantity columns and spreadsheet import enabled.

Frequently Asked Questions about create-simple-batch-cart

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a bulk-editing table view in a Glyvio plugin?▼

Extend glyvio_core.SimpleBatchCart with your state and DTO types, implement all 8 abstract methods including getDtoLayout and getEntitiesFromDto, then register the route via routerService.loadRoutes. This Skill generates the complete file from a cart name, namespace, route path, and target entity.

How to enable spreadsheet import in a SimpleBatchCart?▼

Set state.allowUpload = true inside initState, then implement getSpreadsheetLayout to map spreadsheet headers to DTO fields and getDtoSpreadsheetFromLine to convert each parsed row into a DTO item. These flags live on state, not on the design object.

What is the difference between SimpleCart and SimpleBatchCart in Glyvio?▼

SimpleCart edits a single item through form sections, while SimpleBatchCart renders a spreadsheet-like table where many DTO rows are added, edited inline, and saved together in one batch. Batch carts also have built-in spreadsheet and attachment delegates that SimpleCart lacks.

Why does my batch cart interceptor not intercept anything?▼

The interceptor likely extends SimpleCartListener, which only targets SimpleCart and lacks batch hooks like getDtoLayout or onUpdateItem. Extend glyvio_core.SimpleBatchCartInterceptor with both state and DTO type parameters instead.

How do I handle thousands of ids returned from a batch filter modal?▼

Chunk the ids into groups of about 100 and run one addFilterOperator query per chunk instead of a single unbounded IN clause, which risks oversized SQL. A sequential per-id loop also works but is much slower for large selections.