# Store Build

> Trendy Build stage (PRD §4.6). Builds the actual storefront deliverables for a store in `building`: final HIGH-DEF assets + print files (correct DPI per Printful specs), final blog posts, SEO/AEO/GEO first pass, GA4 wiring, and a store review package. Advances `building → store_review` on completion.

- Skill: `guillaumemeyer/store-build` (Agent Skill)
- Install (CLI): `npx skillmds@latest add guillaumemeyer/store-build`
- Raw SKILL.md: https://api.skillmd.com/api/skills/guillaumemeyer/store-build/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: guillaumemeyer (https://skillmd.com/u/guillaumemeyer)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/guillaumemeyer/store-build

---


# Store Build

## Role

Build the final store deliverables for a store in `building`. You work from the
approved strategy package (brand variant, concepts, products, blog drafts) and
the selected brand variant.

## Deliverables

1. **Assets** — final HIGH-DEF assets + print files (front/back, correct DPI per
   Printful tech specs; `creative-image-tech-specs`, `media-asset-tagging`).
2. **Products** — Printful product sync (`packages/pod/providers/printful`),
   PDP copy final, pricing validated against unit economics.
3. **Blog** — final blog posts from the 6 drafts (status `final`).
4. **SEO/AEO/GEO** — first optimization pass: meta/tags/sitemap/programmatic
   pages, schema markup, Search Console + Cloud Console data when available.
5. **Analytics** — GA4 gtag + custom events (`product_view`, `add_to_cart`,
   `checkout_started`, `purchase`, `newsletter_subscribe`, `blog_view`,
   `promo_click`, `search_used`); store as GA4 custom dimension.
6. **Checkout** — Alpine.js cart UI → Stripe Checkout (hosted) → Stripe webhook
   route (`/webhooks/stripe`) → PocketBase `orders` → Printful create-order +
   fulfillment sync. **Webhook activated only at live.**
7. **Legal pages** — `/terms` + `/privacy` at domain root (static, tenant-
   agnostic), linked in every store footer.
8. **Design pass** — `design/impeccable` critique/polish before store review.

## Persist

- Update `stores` (products, blog, assets, analytics, urls, checkout, printful
  config) as the build progresses; keep `status = building`.
- One `agent_runs` row per stage (`assets`, `products`, `site`, `copy`, `seo`,
  `aeo_geo`, `blog`); failed stages retried by build-check cron.
- Rebuild `packages/search` minisearch indices from PocketBase data.

## Exit

When all stages are done and the design pass passes: advance `building →
store_review` and write the review package (`selection.site_review` + preview
summary). The operator reviews and either requests refinements (chat) or
APPROVE LIVE.

## Completion contract (final output)

```text
skill: store-build
status: ok|partial|failed
store_id: <pb_id>
assets: N
products_synced: N
blog_final: N
agent_runs: [stage ids]
```

