claude-code-arcane 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +3 -2
- package/agents/ecommerce/ecommerce-architect.md +60 -0
- package/docs/SKILLS-CATALOG.md +20 -1
- package/docs/USER-GUIDE.md +2 -2
- package/package.json +1 -1
- package/profiles/ecommerce.yaml +48 -0
- package/skills/cart-checkout/SKILL.md +85 -0
- package/skills/cart-checkout/references/checkout-flow-spec.md +50 -0
- package/skills/commerce-analytics/SKILL.md +85 -0
- package/skills/commerce-analytics/references/ga4-ecommerce-events.md +63 -0
- package/skills/commerce-analytics/scripts/ga4_ecommerce_validate.py +134 -0
- package/skills/commerce-data-model/SKILL.md +84 -0
- package/skills/commerce-data-model/references/data-model-spec.md +79 -0
- package/skills/inventory-stock/SKILL.md +86 -0
- package/skills/inventory-stock/scripts/restock_forecast.py +173 -0
- package/skills/merchant-feed/SKILL.md +85 -0
- package/skills/merchant-feed/references/feed-attribute-map.md +47 -0
- package/skills/merchant-feed/scripts/feed_validate.py +140 -0
- package/skills/order-lifecycle/SKILL.md +86 -0
- package/skills/order-lifecycle/references/order-state-machine.md +53 -0
- package/skills/payments-architecture/SKILL.md +80 -0
- package/skills/product-listing/SKILL.md +84 -0
- package/skills/promotions-discounts/SKILL.md +80 -0
- package/skills/shipping-tax/SKILL.md +85 -0
- package/skills/storefront-architecture/SKILL.md +80 -0
- package/skills/subscription-billing/SKILL.md +81 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: storefront-architecture
|
|
3
|
+
description: "Design storefront information architecture and the page system — homepage, listing (PLP), product detail (PDP), cart, checkout, search and navigation/megamenu — plus the headless-vs-monolith decision and performance budgets. Stack-agnostic. Triggers: planning a storefront, choosing headless vs monolith, designing navigation/search."
|
|
4
|
+
argument-hint: "[design | pages | headless]"
|
|
5
|
+
category: "ecommerce"
|
|
6
|
+
user-invocable: true
|
|
7
|
+
allowed-tools: Read, Glob, Grep
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Storefront Architecture
|
|
11
|
+
|
|
12
|
+
The shopper-facing structure: how pages, navigation, and search fit together, and what platform shape to build on. Decisions here, not code — applicable to any framework.
|
|
13
|
+
|
|
14
|
+
## Before Starting
|
|
15
|
+
|
|
16
|
+
Gather: catalog size and complexity, content needs (editorial, localization), team/stack constraints, and goal (design the IA, spec the page system, or make the headless-vs-monolith call).
|
|
17
|
+
|
|
18
|
+
## How This Skill Works
|
|
19
|
+
|
|
20
|
+
| Mode | Trigger | Output |
|
|
21
|
+
|------|---------|--------|
|
|
22
|
+
| **Design** | `design` | Full IA + page system + nav/search plan |
|
|
23
|
+
| **Pages** | `pages` | Per-page-type component and content spec |
|
|
24
|
+
| **Headless** | `headless` | Architecture decision with trade-offs |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Phase 1 — The Page System
|
|
29
|
+
|
|
30
|
+
| Page type | Job | Must have |
|
|
31
|
+
|-----------|-----|-----------|
|
|
32
|
+
| **Home** | Orient + route | Value prop, primary nav, featured collections |
|
|
33
|
+
| **PLP** (listing) | Browse + filter | Facets, sort, pagination, quick-add |
|
|
34
|
+
| **PDP** (detail) | Convert | Gallery, variant selector, price, stock, CTA, trust signals |
|
|
35
|
+
| **Search** | Find | Autocomplete, typo tolerance, zero-result handling |
|
|
36
|
+
| **Cart** | Review | Editable lines, totals, clear CTA |
|
|
37
|
+
| **Checkout** | Pay | Owned by `cart-checkout` |
|
|
38
|
+
|
|
39
|
+
PDP and PLP are driven by the `commerce-data-model` (variants, attributes, facets).
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Phase 2 — Navigation & Search
|
|
44
|
+
|
|
45
|
+
- **Megamenu** mirrors the taxonomy (categories → subcategories), not collections. Keep depth ≤ 3.
|
|
46
|
+
- **Search** is a primary nav path, not a fallback — invest in autocomplete and synonyms.
|
|
47
|
+
- Stable, human-readable URLs per category/product (SEO; hand off to `seo-audit` / `schema-markup`).
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Phase 3 — Platform Shape & Performance
|
|
52
|
+
|
|
53
|
+
| Option | Best for | Cost |
|
|
54
|
+
|--------|----------|------|
|
|
55
|
+
| **Monolith** (SaaS/themed) | Speed to market, standard catalogs | Less flexibility |
|
|
56
|
+
| **Headless** (decoupled FE) | Custom UX, omnichannel, scale | Higher build/ops cost |
|
|
57
|
+
| **Composable** | Enterprise, best-of-breed | Integration complexity |
|
|
58
|
+
|
|
59
|
+
**Performance budget** (Core Web Vitals): PDP/PLP LCP < 2.5s, lazy-load below-fold imagery, prioritize the variant/price/CTA above the fold. Performance is a conversion factor, not a nice-to-have.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Output Artifacts
|
|
64
|
+
|
|
65
|
+
| Request | Output |
|
|
66
|
+
|---------|--------|
|
|
67
|
+
| Design | IA map + page system + nav/search plan |
|
|
68
|
+
| Pages | Component/content spec per page type |
|
|
69
|
+
| Headless | Decision matrix + recommendation |
|
|
70
|
+
|
|
71
|
+
A storefront architecture is **READY** when each page type has a clear job and component spec, navigation mirrors the taxonomy, search is first-class, and a performance budget is defined.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Related Skills
|
|
76
|
+
|
|
77
|
+
- **commerce-data-model**: feeds PLP/PDP structure.
|
|
78
|
+
- **cart-checkout**: owns the cart and checkout pages.
|
|
79
|
+
- **site-architecture** / **seo-audit** / **schema-markup**: SEO structure and markup.
|
|
80
|
+
- **page-cro**: conversion optimization of the page templates.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: subscription-billing
|
|
3
|
+
description: "Design recurring billing for commerce — subscription models, billing cycles, proration, trials, plan changes, and dunning/recovery for involuntary churn. Processor-agnostic; hands implementation to processor-specific skills. Triggers: designing subscriptions, modeling proration/plan changes, reducing involuntary churn via dunning."
|
|
4
|
+
argument-hint: "[design | dunning | audit]"
|
|
5
|
+
category: "ecommerce"
|
|
6
|
+
user-invocable: true
|
|
7
|
+
allowed-tools: Read, Glob, Grep
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Subscription Billing
|
|
11
|
+
|
|
12
|
+
Recurring revenue adds a time dimension that one-time commerce never faces: cycles, proration, failed renewals, and dunning. Model it correctly so revenue is predictable and involuntary churn doesn't quietly bleed the business — independent of processor.
|
|
13
|
+
|
|
14
|
+
## Before Starting
|
|
15
|
+
|
|
16
|
+
Gather: offering (subscribe-and-save, membership, SaaS-style tiers), billing cadence, trial/plan-change rules, and goal (design the model, design dunning/recovery, or audit existing billing).
|
|
17
|
+
|
|
18
|
+
## How This Skill Works
|
|
19
|
+
|
|
20
|
+
| Mode | Trigger | Output |
|
|
21
|
+
|------|---------|--------|
|
|
22
|
+
| **Design** | `design` | Subscription + cycle + proration model |
|
|
23
|
+
| **Dunning** | `dunning` | Failed-payment recovery flow |
|
|
24
|
+
| **Audit** | `audit` | Revenue-leak and churn-risk review |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Phase 1 — Subscription Model
|
|
29
|
+
|
|
30
|
+
| Concept | Decision |
|
|
31
|
+
|---------|----------|
|
|
32
|
+
| **Plan** | Price + interval + included entitlements |
|
|
33
|
+
| **Cycle** | Anchor date; calendar vs signup-aligned |
|
|
34
|
+
| **Trial** | Free / paid / card-required — and what happens at trial end |
|
|
35
|
+
| **Proration** | On upgrade/downgrade: credit unused time, charge difference |
|
|
36
|
+
| **State** | active → past_due → cancelled / paused / expired |
|
|
37
|
+
|
|
38
|
+
**Rule:** A subscription is a state machine over time — model `past_due` explicitly; it's where recoverable revenue lives. Reuse `order-lifecycle` thinking for state/events.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Phase 2 — Proration & Plan Changes
|
|
43
|
+
|
|
44
|
+
- **Upgrade:** charge prorated difference immediately or at next cycle — pick a policy and state it.
|
|
45
|
+
- **Downgrade:** typically defer to next cycle (avoid refund complexity).
|
|
46
|
+
- **Pause/skip:** common in physical subscribe-and-save; preserve the schedule.
|
|
47
|
+
- Always show the customer the next charge amount and date before confirming a change.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Phase 3 — Dunning & Involuntary Churn
|
|
52
|
+
|
|
53
|
+
Most subscription churn is **involuntary** — failed card charges, not cancellations. Recover it:
|
|
54
|
+
|
|
55
|
+
1. **Smart retries** — retry on a schedule (e.g. day 1, 3, 5, 7), not immediately; align to paydays where known.
|
|
56
|
+
2. **Pre-dunning** — warn before card expiry; prompt card update.
|
|
57
|
+
3. **Dunning emails** — escalating sequence during `past_due` with a one-click update link.
|
|
58
|
+
4. **Grace period** — keep access during retries; downgrade/cancel only after the window.
|
|
59
|
+
|
|
60
|
+
Processor specifics (retry config, webhooks) hand off to `stripe-integration-expert`.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Output Artifacts
|
|
65
|
+
|
|
66
|
+
| Request | Output |
|
|
67
|
+
|---------|--------|
|
|
68
|
+
| Design | Plan/cycle/proration/state model |
|
|
69
|
+
| Dunning | Retry schedule + email sequence + grace policy |
|
|
70
|
+
| Audit | Leak/churn findings: PASS / CONCERNS / FAIL |
|
|
71
|
+
|
|
72
|
+
A subscription billing design is **COMPLETE** when `past_due` is modeled, proration policy is explicit, the customer always sees the next charge, and a dunning sequence recovers involuntary churn.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Related Skills
|
|
77
|
+
|
|
78
|
+
- **payments-architecture**: recurring charges and webhook reliability.
|
|
79
|
+
- **stripe-integration-expert**: processor-specific subscription implementation.
|
|
80
|
+
- **churn-prevention**: voluntary-churn (cancellation) reduction.
|
|
81
|
+
- **commerce-analytics**: MRR, retention, and recovery metrics.
|