Landing 技能验证
- 作者仓库星标 0
- 作者仓库 skills-registry
Landing Page Demo Sections
Use this for marketing page body sections in the landing page starter. Keep generic DatoCMS schema design and record operations in the shared DatoCMS skills.
Prerequisites
Before schema or content operations:
- Confirm the shared DatoCMS
agent-skillsplugin is available. If it is missing, ask whether the user already has it installed; if not, request installation before continuing. - Expect the DatoCMS MCP to be installed and running. If live schema or content facts are needed and MCP is unavailable, pause and ask the user to install or start it.
- Inspect live schema/content through MCP before assuming API keys, localized fields, validators, singleton records, or allowed blocks.
Existing section pattern
Marketing pages use this chain:
- A DatoCMS block record appears inside localized
page.sections. - The route query adds an inline fragment in
app/[locale]/(common-layout)/[slug]/query.graphql. - The block fragment lives under
components/blocksWithVariants/<Typename>/fragment.graphql. - A React renderer lives under
components/blocksWithVariants/<Typename>/<Variant>/. app/[locale]/(common-layout)/[slug]/Content.tsxswitches onsection.__typenameand display option fields.- GraphQL types are regenerated after query or fragment changes.
Existing section blocks: HeroSection, FeatureListSection, BrandSection, VideoSection, DetailSection, ReviewSection, PricingSection, FeaturedPostsSection, TeamSection, FaqSection, StatsSection, AboutIntro, AllPostsSection, RedirectSection, and ChangelogSection.
Workflow for section changes
- Confirm the request is about a regular page body section, not layout, docs, content-record maintenance, or route plumbing.
- Inspect the target
Pagerecord and thesectionsvalidator through MCP. - Reuse an existing block type and variant when it matches the request.
- If a new block type or field is needed, route modeling decisions to
datocms-content-modelingand schema implementation to the shared DatoCMS implementation skills or MCP. - For end-to-end requests, update the real target
Page.sectionsvalue, not only the code:- preserve existing sections and ordering unless the user specifies placement;
- for localized
sections, update all existing locale values unless the user requested one locale; - reuse existing linked records where possible;
- if the page was published and the change should be public, publish the updated record.
- Add or update the fragment and renderer under
components/blocksWithVariants/**. - Update the route query and
Content.tsxswitch with the generated__typenameand display option value. - Regenerate GraphQL types.
- Verify the section in published rendering and draft/live preview.
Guardrails
- Shared header, footer, navigation, notification, logo, social links, and theme color belong to
landing-page-demo-layout. - Docs home, docs pages, docs sidebar, and docs tree structure belong to
landing-page-demo-docs. - Blog, author, tag, testimonial, pricing tier, changelog, and legal records belong to
landing-page-demo-content-recordsunless the renderer itself changes. - New route-backed types, preview links, static params, metadata, and SEO-analysis mapping belong to
landing-page-demo-routing-preview. - Keep unknown section types safely ignored.
Acceptance criteria
- The page query types include the section data.
- The target
Page.sectionscontains the intended block when content work is requested. - Localized sections keep the intended locale coverage.
- The section renders in published mode and draft/live preview.
- Existing sections still render unchanged.
- GraphQL type generation and build pass after code changes.
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: datocms/next-landing-page-demo — distributed by TomeVault.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Before schema or content operations: Confirm the shared DatoCMS agent-skills plugin is available. If it is missing, ask whether the user already has it installed; if not, request installation before continuing. Expect the DatoCMS MCP to be installed and…
Marketing pages use this chain: A DatoCMS block record appears inside localized page.sections. The route query adds an inline fragment in app/[locale]/(common-layout)/[slug]/query.graphql.
Confirm the request is about a regular page body section, not layout, docs, content-record maintenance, or route plumbing. Inspect the target Page record and the sections validator through MCP. Reuse an existing block type and variant when it matches the…
Shared header, footer, navigation, notification, logo, social links, and theme color belong to landing-page-demo-layout. Docs home, docs pages, docs sidebar, and docs tree structure belong to landing-page-demo-docs. Blog, author, tag, testimonial, pricing…
The page query types include the section data. The target Page.sections contains the intended block when content work is requested. Localized sections keep the intended locale coverage.
# Landing Page Demo Sections
Use this for marketing page body sections in the landing page starter. Keep generic DatoCMS schema design and record operations in the shared DatoCMS skills.
## Prerequisites
Before schema or content operations:
- Confirm the shared DatoCMS `agent-skills` plugin is available. If it is missing, ask whether the user already has it installed; if not, request installation before continuing.
- Expect the DatoCMS MCP to be installed and running. If live schema or content facts are needed and MCP is unavailable, pause and ask the user to install or start it.
- Inspect live schema/content through MCP before assuming API keys, localized fields, validators, singleton records, or allowed blocks.
## Existing section pattern
Marketing pages use this chain:
1. A DatoCMS block record appears inside localized `page.sections`.
2. The route query adds an inline fragment in `app/[locale]/(common-layout)/[slug]/query.graphql`.
3. The block fragment lives under `components/blocksWithVariants/<Typename>/fragment.graphql`.
4. A React renderer lives under `components/blocksWithVariants/<Typename>/<Variant>/`.
5. `app/[locale]/(common-layout)/[slug]/Content.tsx` switches on `section.__typename` and display option fields.
6. GraphQL types are regenerated after query or fragment changes.
Existing section blocks: HeroSection, FeatureListSection, BrandSection, VideoSection, DetailSection, ReviewSection, PricingSection, FeaturedPostsSection, TeamSection, FaqSection, StatsSection, AboutIntro, AllPostsSection, RedirectSection, and ChangelogSection.
## Workflow for section changes
1. Confirm the request is about a regular page body section, not layout, docs, content-record maintenance, or route plumbing.
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Prerequisites → Existing section pattern → Workflow for section changes → Guardrails → Acceptance criteria
要点 -> Use this for marketing page body sections in the landing page starter. · - Confirm the shared DatoCMS agent-skills plugin is available. · 1. A DatoCMS block record appears inside localized page.sections. · 1. Confirm the request is about a regular page body section, not layout, docs, content-record maintenance, or route plumbing. · - Shared header, footer, navigation, notification, logo, social links, and theme color belong to landing-page-demo-layout. · - The page query types include the section data.
文件/命令 -> agent-skills · page.sections · app/[locale]/(common-layout)/[slug]/query.graphql · components/blocksWithVariants/<Typename>/fragment.graphql · components/blocksWithVariants/<Typename>/<Variant>/ · app/[locale]/(common-layout)/[slug]/Content.tsx · section.typename · Page
内容 SHA-256 -> 1163e91a58ca
方法与流程
适用与边界
原文中的明确线索
agent-skills、page.sections、app/[locale]/(common-layout)/[slug]/query.graphql、components/blocksWithVariants/<Typename>/fragment.graphql、components/blocksWithVariants/<Typename>/<Variant>/、app/[locale]/(common-layout)/[slug]/Content.tsx、section.typename、Page