← ClaudeAtlas

parallelization-exampleslisted

Parallelization Examples and Patterns
tstapler/dotfiles · ★ 8 · Data & Documents · score 52
Install: claude install-skill tstapler/dotfiles
# Parallelization Examples and Patterns ## Real-World Examples of Parallel Feature Implementation ### Example 1: E-Commerce Shopping Cart Feature **Feature Requirements:** - Add items to cart - Update quantities - Calculate totals with tax - Apply discount codes - Persist cart across sessions - Real-time inventory checking **Sequential Approach (Traditional):** ``` 1. Research existing cart implementations (1 hour) 2. Design cart data model (30 min) 3. Implement backend API (3 hours) 4. Build frontend components (3 hours) 5. Create database migrations (1 hour) 6. Write tests (2 hours) 7. Documentation (30 min) Total: 11 hours ``` **Parallelized Approach:** ```markdown ## Phase 0: Parallelization Analysis (15 min) Components: - Frontend: Cart UI component (Independence: HIGH) - Backend: Cart API service (Independence: HIGH) - Database: Cart schema (Independence: HIGH) - Inventory: Real-time check service (Independence: MEDIUM) - Tests: Unit/Integration/E2E (Independence: HIGH) Parallelization Score: 8/10 ## Phase 1: Interface Definition (30 min) Cart API Contract: POST /api/cart/items - Add item PUT /api/cart/items/:id - Update quantity DELETE /api/cart/items/:id - Remove item GET /api/cart - Get cart POST /api/cart/discount - Apply discount Data Models: CartItem: {id, productId, quantity, price} Cart: {id, userId, items[], discount, total} ## Phase 2: Parallel Execution (2 hours) [Launching all agents simultaneously:] @feature-implementat