A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for e-commerce architecture (Shopify Storefront, Medusa.js, Saleor), product catalogs, cart/checkout UX, and order management / Panduan ahli arsitektur e-commerce (Shopify, Medusa.js, Saleor), katalog produk, UX keranjang/checkout, dan manajemen pesanan.
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
Production guide for high-converting e-commerce architectures, headless storefronts (Medusa.js v2, Shopify Storefront API, Saleor), inventory atomicity, and multi-rail payment integrations (DOKU Checkout, SNAP BI, Stripe). Covers atomic stock reservations to prevent race-condition overselling during flash sales, cart session state machines, structured schema markup (Product, Offer, BreadcrumbList), and localized checkout workflows.
Prevents overselling during high-concurrency flash sales using row-level pessimistic locking (FOR UPDATE):
// src/services/inventory.service.ts
import { db } from '@/lib/db';
import { sql } from 'drizzle-orm';
export interface ReserveStockResult {
success: boolean;
orderId?: string;
errorMessage?: string;
}
export async function reserveProductStockAtomic(
productId: string,
requestedQuantity: number,
orderId: string
): Promise<ReserveStockResult> {
return await db.transaction(async (tx) => {
// 1. Lock the inventory row strictly for update
const [product] = await tx.execute(sql`
SELECT id, stock_quantity, price_cents, is_active
FROM products
WHERE id = ${productId}
FOR UPDATE
`);
if (!product || !product.is_active) {
return { success: false, errorMessage: 'Product is unavailable.' };
}
if (product.stock_quantity < requestedQuantity) {
return { success: false, errorMessage: 'Insufficient stock remaining.' };
}
// 2. Decrement available inventory atomically
await tx.execute(sql`
UPDATE products
SET stock_quantity = stock_quantity - ${requestedQuantity},
updated_at = NOW()
WHERE id = ${productId}
`);
// 3. Create provisional stock reservation record (15-minute TTL)
await tx.execute(sql`
INSERT INTO stock_reservations (order_id, product_id, quantity, expires_at)
VALUES (${orderId}, ${productId}, ${requestedQuantity}, NOW() + INTERVAL '15 minutes')
`);
return { success: true, orderId };
});
}
// src/workflows/create-order-workflow.ts
import { createWorkflow, WorkflowResponse, StepResponse, createStep } from '@medusajs/framework/workflows-sdk';
const reserveInventoryStep = createStep(
'reserve-inventory-step',
async ({ orderId, items }: { orderId: string; items: any[] }, { container }) => {
// Execute atomic reservation
return new StepResponse({ status: 'reserved', orderId }, { orderId, items });
},
async (compensatingData, { container }) => {
// Compensation logic if downstream payment fails: roll back reserved stock
console.log(`[Compensation] Releasing reserved stock for order ${compensatingData.orderId}`);
}
);
export const placeAtomicOrderWorkflow = createWorkflow(
'place-atomic-order',
function (input: { orderId: string; items: any[]; paymentDetails: any }) {
const reservation = reserveInventoryStep(input);
return new WorkflowResponse(reservation);
}
);
// src/components/seo/ProductSchema.tsx
export function ProductSchema({ product }: { product: any }) {
const schema = {
'@context': 'https://schema.org',
'@type': 'Product',
name: product.title,
image: product.thumbnailUrl,
description: product.description,
sku: product.sku,
offers: {
'@type': 'Offer',
price: (product.priceCents / 100).toFixed(2),
priceCurrency: 'IDR',
availability: product.inStock ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
url: `https://vibesstore.internal/products/${product.handle}`,
},
};
return <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }} />;
}
modern-web-guidance: HTML5/CSS standards, modern checkout forms, and web payment APIs.design-system-architect: Storefront design tokens, product cards, pricing badges, and cart drawers.tailwind-expert: Responsive e-commerce grid layouts, gallery carousels, and checkout steps.ui-ux-pro-max: High-converting cart/checkout UX, tabular prices (tabular-nums), and 5-state interactive buttons.visual-ui-auditor: Multimodal vision auditing of product storefronts, checkout flows, and mobile responsiveness.anti-slop: Anti-slop e-commerce UI craft, eliminating fake placeholder items and broken cart drawers.doku-payment-gateway: Manages DOKU Checkout modals, QRIS generation, and SNAP BI webhooks.search-engine-expert: Implements full-text and faceted search for catalogs.nextjs-app-router-expert: Fast Server Components for product detail pages with instant SSR.seo: Validates JSON-LD schema markup and Core Web Vitals compliance.<a name="bahasa-indonesia"></a>
Panduan produksi untuk arsitektur e-commerce tingkat lanjut, headless storefront (Medusa.js v2, Shopify Storefront API, Saleor), atomisitas inventaris, dan integrasi pembayaran multi-jalur (DOKU Checkout, SNAP BI, Stripe). Mencakup reservasi stok atomik untuk mencegah overselling saat flash sale, mesin state keranjang belanja, markup skema terstruktur (Product, Offer), dan alur checkout terlokalisasi.
// src/lib/payments/doku-checkout.ts
export async function createDokuPaymentLink(order: { id: string; amount: number; customer: any }) {
const response = await fetch('https://api.doku.com/checkout/v1/payment', {
method: 'POST',
headers: {
'Client-Id': process.env.DOKU_CLIENT_ID!,
'Request-Id': order.id,
'Request-Timestamp': new Date().toISOString(),
'Signature': generateDokuHmacSignature(order),
'Content-Type': 'application/json',
},
body: JSON.stringify({
order: {
invoice_number: order.id,
amount: order.amount,
currency: 'IDR',
},
customer: {
name: order.customer.name,
email: order.customer.email,
},
}),
});
return await response.json();
}
SELECT ... FOR UPDATE di dalam transaksi database saat mengurangi stok agar dua pengguna tidak dapat membeli unit barang terakhir secara bersamaan.Product dan Offer agar informasi harga dan ketersediaan stok muncul langsung di hasil pencarian Google.modern-web-guidance: Standar HTML5/CSS, form checkout modern, dan API pembayaran web.design-system-architect: Token desain etalase, kartu produk, badge harga, dan drawer keranjang.tailwind-expert: Tata letak grid e-commerce responsif, carousel galeri, dan langkah checkout.ui-ux-pro-max: UX keranjang/checkout berkonversi tinggi, harga tabular (tabular-nums), dan tombol 5-state.visual-ui-auditor: Audit visual multimodal untuk etalase produk, alur checkout, dan responsivitas mobile.anti-slop: Desain UI e-commerce anti-slop, mengeliminasi barang dummy palsu dan drawer keranjang rusak.doku-payment-gateway: Menangani otentikasi webhook SNAP BI dan verifikasi pembayaran.search-engine-expert: Menyediakan fitur pencarian faset (filter merk, kategori, harga).nextjs-app-router-expert: Menyajikan halaman produk dengan waktu muat ultra-cepat melalui streaming SSR.seo: Mengoptimalkan indeks pencarian dan struktur metadata produk.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Web accessibility testing with axe-core, Playwright, and WCAG 2.2 / Pengujian aksesibilitas web axe-core, Playwright, dan WCAG 2.2.
日本語の概要は準備中です。原文の説明を表示しています。
Model cascading & complexity-scored routing (Grok, Gemini, Claude) / Routing kaskade model & scoring kompleksitas (Grok, Gemini, Claude).
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
日本語の概要は準備中です。原文の説明を表示しています。
Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.
日本語の概要は準備中です。原文の説明を表示しています。