decocms/blocks

blocks — deco's CMS framework: block runtime, Studio admin protocol, codegen CLI, and TanStack Start / Next.js bindings

5Stars on the repository
29Mods indexed here, across every type
4d agoLast push, which is what freshness is scored on
noneNo LICENSE: all rights reserved, so bodies are not copied

deco-migrate-script

01

decocms/blocks

Skill Claude CodeCodex

Automated migration script that converts Deco storefronts from Fresh/Preact/Deno to TanStack Start/React/Cloudflare Workers. Runs 8 phases (analyze, scaffold, transform, cleanup, report, verify, bootstrap, compile). Use when running the migration script, debugging its output, extending it with new transforms, or…

5 4d ago A 97 tokens

decocms/blocks

Skill Claude CodeCodex

Migrates a Next.js App Router site off the abandoned @decocms/[email protected] /next, /core, /node export tiers onto the current @decocms/blocks, @decocms/blocks-admin, and @decocms/nextjs packages. Use when a site's package.json pins @decocms/start to a 5.x-next prerelease, or imports from @decocms/start/next…

5 4d ago A 111 tokens

decocms/blocks

Skill Claude CodeCodex

Reconcile a migrated TanStack repo against upstream changes that landed on the Fresh/Deno source repo after the migration cut. Runs deco-reconcile to produce one diff per changed file, then ports each one by hand — a rebase, not a re-migration. Use when a migration has been running for weeks and the source repo kept…

5 4d ago A 118 tokens

decocms/blocks

Skill Claude CodeCodex

Consolidated migration skill for Deco storefronts. Phase-based playbook for Fresh/Preact/Deno to TanStack Start/React/Cloudflare Workers. Covers all phases from scaffold to async rendering, plus post-migration patterns, hydration fixes, navigation, search, matchers, and islands elimination. Single entry point — all…

5 4d ago A 82 tokens

decocms/blocks

Skill Claude CodeCodex

Upgrades an already-TanStack site from the monolithic @decocms/[email protected] + @decocms/[email protected] to the split 7.x packages (@decocms/blocks, @decocms/tanstack, @decocms/blocks-admin, @decocms/blocks-cli, @decocms/apps-). Use when a TanStack Start site's package.json pins @decocms/start to 6.x and/or @decocms/apps to 5.x.…

5 4d ago A 146 tokens

vtex-cart-v2

06

decocms/blocks

Skill Claude CodeCodex

Cart v2 for VTEX storefronts — modular, granular, framework-agnostic. Explains the thesis (reduce cart API traffic, lazy cart creation, projection/sections fragmentation), the available hooks and loaders, and how to wire them in a Next.js or TanStack Start site.

5 4d ago A 64 tokens

run-migration

07

decocms/blocks

Skill Claude CodeCodex

Run the Fresh/Deno → TanStack Start migrator from this repo against a target site workspace. Resets the target to its Fresh/Deno state (origin/main), then runs the local migration script. Use for testing the migrator on real sites. For sites ALREADY on TanStack that just need the @decocms/[email protected] → split-7.x package…

5 4d ago C 97 tokens

deco-api-call-dedup

08

decocms/blocks

Skill Claude CodeCodexCursor

Detect and fix N+1 / duplicate API call patterns in Deco storefront section loaders (VTEX Catalog, Intelligent Search, checkout simulation, Shopify). Covers detection (loops calling per-product APIs inside .map()/await, redundant fetches for data already on the Product object) and fixes (vtexCachedFetch SWR cache…

5 4d ago A 171 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Port the VTEX commerce app from deco-cx/apps (Fresh/Deno) to @decocms/apps-start (TanStack Start/Node). The goal is to mirror the original production code that runs on thousands of stores, adapting only what is necessary for TanStack/Node. Covers full structural mapping (141 files → apps-start equivalent), adaptation…

5 4d ago C 136 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Audit and fix the VTEX integration in @decocms/apps-start (TanStack Start). Covers cookie propagation (vtexFetchWithCookies, buildAuthCookieHeader), expectedOrderFormSections, salesChannel injection, HttpOnly cookie handling, Intelligent Search cookie generation, useCart/useUser/useWishlist hooks, and TypeScript…

5 4d ago A 102 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Cache layout sections (Header, Footer, Theme) across @decocms/blocks and @decocms/tanstack to avoid redundant CMS resolution and API calls on every navigation. Covers resolvedLayoutCache in resolve.ts, layoutInflight dedup in sectionLoaders.ts, pageInflight dedup in cmsRoute.ts, registerLayoutSections, staleTime in…

5 4d ago A 125 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Configure CMS-driven routes in @decocms/tanstack using cmsRouteConfig, cmsHomeRouteConfig, and admin routes. Covers the catch-all route ($.tsx), homepage route (index.tsx), admin protocol routes (meta, render, invoke), ignoreSearchParams for variant selection, staleTime/gcTime configuration, cache headers, and…

5 4d ago A 102 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Architecture reference for deco-cx/deco — the core Deco framework for Fresh/Deno. Covers the resolution engine (Resolvable → Resolver pipeline), block system (sections, loaders, actions, flags, matchers, handlers, apps, workflows), runtime request flow (Hono + Fresh/HTMX), DecofileProvider (state management), manifest…

5 4d ago A 154 tokens

deco-e2e-testing

14

decocms/blocks

Skill Claude CodeCodexCursor

Implement end-to-end performance tests for any Deco e-commerce site with lazy section tracking, cache analysis, and observability. Use this skill when asked to set up e2e tests, create performance testing infrastructure, or test user journeys on a Deco/VTEX site.

5 4d ago A 61 tokens

deco-edge-caching

15

decocms/blocks

Skill Claude CodeCodexCursor

Configure edge caching for Deco storefronts on Cloudflare Workers using createDecoWorkerEntry (@decocms/tanstack), and cacheHeaders, detectCacheProfile, routeCacheDefaults (@decocms/blocks/sdk/cacheHeaders). Use when setting up worker-entry caching, tuning Cache-Control headers, adding cache profiles for commerce page…

5 4d ago A 104 tokens

deco-full-analysis

16

decocms/blocks

Skill Claude CodeCodexCursor

Run a full analysis of a Deco site - generates AGENTS.md with architecture, navigation flows, caching inventory, block health, and optimization findings. Includes 114 learnings from real sites as 9 checklists.

5 4d ago A 48 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Fast incident response skill for Deco engineering team. Rapidly identifies known issues from past learnings, proposes solutions, and guides debugging for new incidents. Optimized for speed - get to root cause in minutes, not hours.

5 4d ago A 51 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Perform a deep dive analysis of CDN metrics, cache performance, error rates, and traffic patterns for a Deco site. Use this skill to identify performance bottlenecks, optimize cache hit rates, and reduce error rates.

5 4d ago A 49 tokens

decocms/blocks

Skill Claude CodeCodexCursor

How server functions (invoke) work in Deco storefronts — the generate-invoke pipeline that bridges @decocms/apps pure functions to TanStack Start createServerFn with top-level declarations. Covers the root cause of CORS issues with VTEX API calls, why createServerFn must be top-level, the three-layer architecture…

5 4d ago A 145 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Manage Deco site configuration (env vars, scaling, resources) via the Kubernetes state secret and trigger redeployment. Handles multi-cloud deployment across AWS and GCP clusters.

5 4d ago A 39 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Debug memory issues on current blocks sites. Cloudflare Workers (@decocms/tanstack) sites are diagnosed via the tail-worker exceededMemory/exceededCpu capture in ClickHouse plus wrangler tail/dev — there is no live production process to attach to. Node/RSC (@decocms/nextjs) sites use Node's own --inspect CDP flow…

5 4d ago A 90 tokens

decocms/blocks

Skill Claude CodeCodexCursor

LEGACY. Discover optimal autoscaling parameters for a Deno/Fresh Deco site running on Knative/Kubernetes, by analyzing Prometheus metrics. Correlates CPU, concurrency, and latency to find the right scaling target and method. Does NOT apply to current @decocms/tanstack (Cloudflare Workers) or @decocms/nextjs (Node)…

5 4d ago A 85 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Generate a context-aware QA checklist for any Deco storefront by analyzing its sections, components, routes, and interactive patterns. Use when testing after migrations, upgrades, major refactors, or before deploying to production. Produces checklists scoped to the actual components in the site, not generic…

5 4d ago B 67 tokens

decocms/blocks

Skill Claude CodeCodexCursor

Optimize product variant selection in Deco TanStack storefronts. Eliminates server re-fetches when switching SKU variants of the same product using replaceState, adds loading states for cross-product variant navigation, and removes preload="intent" from variant links to prevent double-fetch. Use when variant changes…

5 4d ago A 85 tokens