Repository navigation
feat(blocks): deco skills install ships the v8 framework skills - #800
Merged
Merged
Conversation
The v8 site workflow with the deco CLI: the .deco layout, deco schema and schema push (with CI wiring and the token it needs), deco check, content sync (pull, diff, push, drafts, publish, releases), connecting a site to Studio now that deco serve is gone, CDN delivery, deploy order and a CLI reference with flags, env vars, exit codes and --json output. Studio's "send the schema" and "connect deco serve" banners link to schema.md and serve-and-studio.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 2cdff08)
Drop `deco skills install`, which no version of the CLI has, and say where the skills live instead. Use a literal `site` in the createCMS examples (the bindings' READMEs do), state the 8.x range that shipped `deco serve`, fix the redirects-block, draft-folder and missing-schema details, add the saved-block name collisions to the check reference, and say plainly that rollback is a Studio action, not a CLI command. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit b7b1077)
…site
@decocms/blocks now ships the repo's agent skills: its build runs
scripts/pack-skills.mjs, which copies each .agents/skills folder with a
SKILL.md (no tests, fixtures or node_modules) into packages/blocks/skills
(git-ignored, listed in "files"). prepack and the release's prepareCmd both
build, so every published version carries its own skills.
deco skills install [--dir=<path>] copies them, offline, into
<site>/.claude/skills/<skill>/ (or --dir, relative to the folder that
contains .deco/). It replaces the folder of each skill it ships and leaves
every other skill alone, prints each skill it installed, and with --json
returns { dir, version, skills }.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f96fe93)
Refuse a --dir that is, or links to, the package's own skills/ folder, and test install into an empty site, re-install and a symlinked skill folder. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 566e57b)
How a section's Props type becomes the Studio form under @decocms/blocks 8: the JSDoc tags and widget aliases deco schema reads, what each TypeScript shape turns into, shapes that hurt editors, and removing fields without failing deco check. Every claim checked against typeToSchema.ts, generate.ts and the deco check validator. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit d0575c2)
- Fix the WideLayout example: a JSDoc on the same line as the opening brace is not read by the generator (checked with a probe). Document it. - Say that a bare numeric tag is written as null in the schema file. - Drop v7 claims that packages/ cannot prove (loader-backed @options, name-based color guessing, null slots in arrays). - Blocks offered for an object field: sections and matchers are never offered, and an all-optional target type needs the same named type. - Limit the declared-order claim to literal unions. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit e40df3e)
Wiring a Next.js App Router site to @decocms/nextjs 8: setup and the block map, the proxy and draft previews, rendering resolved pages in Server Components, metadata from the seo block, ISR on the assignments route, and the Studio bridge. Written from packages/nextjs and examples/nextjs-binding-smoke. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 7e6c050)
- react-dom is not a peer of @decocms/nextjs; only next and react are. - createCMS shares one instance per site (or content module), not per set of options. - decideVisitor withholds the cookie only when a draft or old release renders, not on every preview signal. - bindDraft binds the forwarded visitor and assignments on the release only when it saves an experiments or campaigns block. - The unavailable-draft case shows a separate notice, not the badge. - contentClient does not read the request itself; bindDraft does. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit f36ebe4)
Wiring a TanStack Start site to @decocms/tanstack 8: setup (createCMS, block map, vite and wrangler), the catch-all route and page server function with search params, the worker entry, server functions in place of /deco/invoke, the router and navigation, and the document, Studio framing and security headers. Every API is checked against packages/ on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit d79d144)
- Preview responses send X-Robots-Tag: noindex, nofollow (draft.ts). - The visitor cookie is withheld only when a draft or old release renders. - DEGRADED_HEADER must be "true" for the example cache to skip storing. - StudioBridge matches data-manifest-key to the id Studio sends; drop the unproven section wrapper shape. - The deco CLI reads DECO_SITE from env, .env, .dev.vars, then wrangler. - Drop the node:async_hooks bundle check (decoTanstack stubs it). - Reword the Set-Cookie collapse and the history.replaceState note. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 227cceb)
Sections, pages and loaders on @decocms/blocks 8: block functions and their Props, descriptors vs elements, client components in place of islands and HTMX, page blocks and route params, loaders as block functions with the per-client memo, the lazy built-in and per-section Suspense with skeletons, SEO fed by the same loader as the page, and the review before deco push. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 63b18d4)
- loaders.md: identity functions are content or pages, not loaders - loaders.md: the secrets example used an EmailClient type that no package exports; replace it with a key closed over an instrumented fetch - loaders.md: DEGRADED_HEADER needs every block awaited before answering - seo.md: canonicalFromBreadcrumblist picks the highest position - sections.md: props are fresh copies; loader results inside them are shared - pages.md: a replaced page types its own seo field Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit ba79bfc)
Method for turning a hardcoded site or a Figma design into Studio-editable blocks on @decocms/blocks 8 without visual change: inventory, the three content shapes, the bilingual field convention, seeding .deco/blocks and sending it as a draft, Figma MCP mapping, pixel parity, accessibility and functional checks. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 92c11d5)
- client.routes() lists only page blocks: route a collection by matching its listed entries with the pages, as the Next.js binding example does. - A host not allowed to preview renders the release with no badge and no notice; the screenshot script now waits for the draft badge. - deco check without a flag checks production on a hosted site. - Only some TanStack examples return descriptors; tanstack-rsc-smoke returns JSX. - Block functions can call currentClient(), which has no URL. - Drop the ecommerce-qa pointer (not in decocms/skills) and soften the unverified @titleby claim. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 52d8519)
Variants on @decocms/blocks 8: multivariate and first-match resolution, the experiments and campaigns saved blocks, v7 matchers from @decocms/compat-v7, custom rules, draft previews of a variant, and keeping variant pages cacheable. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit eb67d92)
Fix claims that the code does not back: parseVersion has no host check, the migration script does not fill a random matcher's cohort, v7's date matcher is renamed to `date` and reported by deco check, the campaign bound messages, queryString's Exists, and the example cache key holding the host. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 0db102d)
Images and video on v8 sites: createImageUrl and its providers, decoCdn options, the VTEX and Shopify providers, the TanStack components and the next/image loader, quality tiers, sizes and LCP preload, video audio on the media host, the v8 asset upload endpoint and the URL-rewrite procedure for asset migrations. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 106b4aa)
- Wire ImageUrlProvider through createDecoRouter's Wrap, as the @decocms/tanstack README does. - Only vtexCatalogWebp and vtexFileManager read numeric quality; vtexCatalog, vtexCatalogFrame and shopifyCdn ignore it. - deco diff hashes canonical JSON per block, so re-serializing does not mark blocks as changed there; it lists blocks, not lines. - The decoims.com self-fetch only returns with legacyHosts: [] plus sources: "all". - Source preload links carry no imageSizes. - VTEX quality numbers above 10 are rounded up; soften autoplay wording. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit bf9e643)
Edge caching and origin egress for v8 storefronts: the site-owned pageCache on createDecoWorker and its helpers, cache-key rules, the traps that lower hit rate or raise egress, Next.js equivalents, verification probes with scripts/html-anatomy.mjs, Playwright guardrails, and an anonymized case study. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit fa2819d)
Bypass headers, assignmentsKey format, where the degraded header goes, Vary on non-fingerprinted public files, purge and preview caveats, and an unverified CI timing claim dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 5760dbc)
Symptom-indexed server and render performance skill for v8 storefronts: render location and the lazy block, N+1 and duplicate upstream calls (the client's per-request memo, currentClient(), counting calls), Product payload trimming, hydration, CLS from third-party scripts, navigation and variant switching, trace reading, and Worker memory. Rewritten against packages/ on main; v7 and Fresh mechanics dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 11bde40)
Fix the streamed-route TTFB row (routing plus SEO, not the slower of the two), say that a lazy data prop needs a Lazy<T> type, replace an unverifiable VTEX latency claim with the client's retry behavior, note that the logging fetch sits below retries, guard the KV redirect example because routes runs for assets and server functions too, name deco content as codegen, and include HEAD in the redirect check. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 5f338ef)
Go-live and first-72-hours check for sites on @decocms/blocks 8: freeze and last content import, releases and rollback, the traffic ramp with abTestingRoutes, Worker runtime limits, checkout proxy headers, React/SPA leftovers, SEO and analytics parity, a QA inventory and checklist template, and a read-only preflight script. Built from the v7 go-live skills and the storefront test checklist, with every v8 API checked against packages/. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 30d7c84)
- deco check does not flag duplicate rules inside the redirects block; say so and add a jq check for duplicate sources. - The worker's default CSP on HTML without one is only frame-ancestors with Studio's origins; note what that does to proxied pages. - Security headers are added per header and only on HTML responses. - Only draft requests run their own release check, not every preview. - Preview hosts apply once a release carries previewHosts. - createInstrumentedFetch retry and circuitBreaker are off unless set. - Drop the claim tying a hang to the wrangler compatibility flag; keep the reason the code gives for deadlines on shared fetches. - x-deco-bucket is set only on answers that go through the split. - The example pageCache, not the framework, skips degraded pages. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 5b105df)
The thin @decocms/apps-* clients on v8: configuring each client, errors, retries and the VTEX circuit breaker, telemetry and upstream caching through createInstrumentedFetch, vendored v7 loaders and the src/clients files the migration writes, commerce types from @decocms/compat-v7/commerce, and VTEX cookies, sign-in, sales channel, region and orderForm sections. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 2b14266)
Fix claims that the v8 code does not support: a cart call without a cookie gets a new cart because VTEX sees no checkout.vtex.com cookie, the client still cleans the cookie it forwards, the signed-in page cache rule names buildSegment and loggedIn, and Wake's productOptions is a query, not a fragment. Drop an unverifiable VTEX 401 cause. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit d6e8673)
Rename reference/ to references/ and update every link, including the report strings in scripts/ and CLAUDE.md. Split parity.md (editor-form differences move to editor-forms.md) and framework-code.md (what stays site code moves to site-code.md). Move the installed-copy run steps into running-the-script.md to bring SKILL.md under 10KB, and point to deco-go-live, deco-tanstack-site, deco-nextjs-site and deco-storefront-caching for work after the migration. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit a1ac6e1)
- createCMS has no dev option and reads no NODE_ENV since the CDN releases change: fix framework-code.md and telemetry.md. - legacy-names.md: a date rule renamed to `date` is then reported, since deco check rejects `date`; it moves into `campaigns`. - SKILL.md: no decocms-v6-to-v7-upgrade skill exists; point at v7's deco-upgrade-6-to-7 bin instead. Links use ./references/. - native-apps.md: ^8.4 like every other step; the "fixes below" now link to editor-forms.md after the split. - Point A/B split and site-code topics at site-code.md. - Drop /next/schema pointers no code or README confirms. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit b00b9e6)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 9, 2026
|
🎉 This PR is included in version 8.11.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
tlgimenes
added a commit
that referenced
this pull request
Nov 9, 2026
`deco-site-workflow` now says how a site gets these skills: `npx deco skills install` (8.11.0+, from #800). The section and the CLI reference match `packages/blocks/src/v8/cli/skills.ts`. Studio's schema banner links to this skill and tells the agent to run the command. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Documents how to install agent skills into a site with `npx deco skills install` (8.11.0+), replacing the old instructions that said the CLI had no install command and you had to copy folders manually. - Updates `SKILL.md` with the command usage, `--dir` option, JSON output, and behavior (offline, replaces shipped skill folders, leaves others alone, exit 1 without `.deco/`). - Adds `deco skills install` to `cli-reference.md` with its flags and result schema. <sup>Written for commit f9119bc. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/decocms/blocks/pull/801?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/decocms/blocks/801?returnTo=https%3A%2F%2Fgithub.com%2Fdecocms%2Fblocks%2Fpull%2F801&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. --> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
This brings the agent skills for building sites on
@decocms/blocks8 into.agents/skills/. They come from decocms/skills, decocms/storefront-skills, decocms/migrations and the 7.x branch, and each was rewritten against the v8 code inpackages/. It also addsdeco skills install, which ships the skills with the package.It replaces #786–#799 (the one-PR-per-skill versions) with the same commits, cherry-picked onto main, plus a regenerated skills table.
deco-site-workflowdecoCLI end to end: schema and schema push on deploy, pull, push, drafts, publish, check, delivery, previewing in Studiodeco-tanstack-site/deco-nextjs-sitedeco-site-authoringdeco-cms-schemadeco-make-editabledeco-variantsdeco-images-mediadeco-storefront-cachingdeco-storefront-performancedeco-go-livedeco-apps@decocms/apps-*clientsdeco-v7-to-v8-migrationreference/→references/, split to fit the size budgets, claims correcteddeco skills installcopies the skills that ship with the installed@decocms/blocksinto the site's.claude/skills, or another folder with--dir. It works offline. Blocks' build copies.agents/skillsintopackages/blocks/skills/(git-ignored, listed infiles). Studio's banners will tell the agent to run it, then loaddeco-site-workflow.Every API, flag and path was checked twice against
packages/: once by the writer and once by an independent review. What only existed in v7 or Fresh was dropped, not ported. Customer names are anonymized.deco servewas removed in 8.10, anddeco-site-workflowsays so.🤖 Generated with Claude Code
Summary by cubic
Adds agent skills for building sites on
@decocms/blocks8 to.agents/skills/, rewritten against the v8 code inpackages/, plusdeco skills installto ship them with the package.New Features
decoCLI workflow, the TanStack and Next.js bindings, authoring, schema forms, making sites editable, variants, images/media, caching, performance, go-live, the@decocms/apps-*clients, and v7→v8 migration.deco skills installcopies the bundled skills into the site's.claude/skills(or--dir), works offline, and replaces only the folders it ships.packages/.Written for commit fd2dfcd. Summary will update on new commits.