docs-doc-group
Use when writing a landing page for a docs data node with children, such as a component family or reference family navigation hub.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when writing a landing page for a docs data node with children, such as a component family or reference family navigation hub.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when changing any retikz apps/docs content, route data, i18n, demo, SourceLinks, or schema reference before loading the matching page-type skill.
Use when retikz needs multiple independent LLMs to review the same fixed code, ADR, implementation plan, test contract, commit, or working-tree snapshot before a gate or delivery decision.
Use when an Alpha ADR needs a pre-implementation capability gate, or a Beta milestone needs code-based completeness and package-boundary auditing.
Use when planning a retikz architecture direction, version roadmap, or alpha feature that may need a long-lived ADR before implementation.
Use when retikz work is primarily refactoring, reorganization, renaming cleanup, modularization, or internal simplification and should start from a reviewed implementation plan before code changes.
Use when retikz implementation, adversarial testing, and docs are complete, and an ADR or beta TODO needs changelog, contract consistency review, roadmap status updates, or final human acknowledgement.
| name | docs-doc-group |
| description | Use when writing a landing page for a docs data node with children, such as a component family or reference family navigation hub. |
data/<module>.ts 里有 children 的 Page / SubPage)写它自己的落地页:contents/<module>/<...>/<group>/index.{zh,en}.mdxcomponents/node、components/draw、reference/schema、reference/runtimedocs-doc-principle 拿通用规则;配图细节走 docs-figure-contract分组页是新手的导航入口,不是维护者的目录索引。导言先解释“这一组帮你解决哪类问题、核心抽象是什么、负责与不负责什么、应该从哪页开始读”,再列成员职责;不要默认读者已经知道 Kernel / Sugar / Reference / runtime 这些分层术语。
分组节点(data/<module>.ts 里带 children)有自己的 index.{zh,en}.mdx,放在分组目录根:
contents/kernel/components/node/
index.{zh,en}.mdx # 分组落地页(本 skill)
overview/index.{zh,en}.mdx # 子页(叶子,走 docs-doc-component)
text/ ...
coordinate/ ...
description 渲染在 H1 下当导言/<module>/<section>/<group>(3 段),路由已支持分组节点是会被继续嵌套的路由前缀,id 优先用单个英文单词,不要连字符(basics 而非 basic-concepts、model 而非 core-concepts);连字符只留给一个词说不清的叶子页。详见 docs-doc-principle 的「路由 id 命名」。
新行为:分组不再「重定向到首个子项」。principle 里若还写着「分组没有 mdx / 重定向」以本 skill 为准。
分组页回答**「这一组是什么、几块怎么协作、从哪开始读」;子页(overview / 各组件 / 各 schema)回答「完整 props、全部用法、字段表」**。
hideCode)按顺序:
| 段 | 必需 | 内容 |
|---|---|---|
| 导言 | ✅ | frontmatter description(一句话定位,渲染在 H1 下)+ 一段正文:这一组在整体里负责什么 |
| 配图 | 可选(组件家族建议有) | 一张 <ComponentPreview ... hideCode /> 叙述性插图,展示家族成员 / 关系 / 管线 |
## 职责一览 | ✅ | 一张表,逐个子项说职责(见「两类表」) |
## 章节内容 | ✅ | <LinkedCard> 网格,每个子页一张卡 |
frontmatter title + description 始终在;正文不写 # 标题(H1 走 DocPage)。
Sugar/Kernel 只对组件成立,参考类没有这个轴,表要换。
components/* 下的分组,如 node / draw)列:组件 | 类型 | 职责 | 适合场景(en:Component | Type | Responsibility | Use it when)
类型 填 Sugar / Kernel,权威来源是 concepts/layers:
Layout / Node / Coordinate / Path / StepDraw / Text / Way(DrawWay) / 相对坐标字符串Way 归 Sugar(Draw 的 way 写法),Arrow 标「通用 / Shared」(Path、Draw 共用的箭头配置)reference/* 下的分组,如 schema / runtime)不是组件,Sugar/Kernel 不适用。列换成:主题 | 职责 | 何时查阅(en:Topic | Responsibility | Reach for it when),并在导言后加一句参考层提示:
> 这里是参考层,不是组件文档;写图请从 [组件](/kernel/components/layout) 开始。
每个 child 一张卡,LinkedCard 是注册过的 MDX 元素:
## 章节内容
<div className="my-6 grid grid-cols-1 gap-4 sm:grid-cols-2">
<LinkedCard href="/kernel/components/node/overview">
<span className="font-semibold">Node</span>
<span className="mt-1 text-center text-sm text-muted-foreground">形状、文字、样式、定位与标签的完整用法</span>
</LinkedCard>
{/* ……每个子页一张 */}
</div>
href 指向子页真实路径(/ 开头走 react-router);改子页 id 时一起改font-semibold 子页名(与 sidebar i18n label 对齐),第二行 text-sm text-muted-foreground 一句话定位sm:grid-cols-2)| 分组 | 图 |
|---|---|
| 组件家族(node / draw) | 家族 / 解剖图:成员(及 Sugar→Kernel 关系)画在一张图上,灰色备注在下方点注 |
| 参考家族(runtime) | 管线示意:JSX → IR → Scene → 渲染目标,灰注各 API 在哪起作用 |
| 参考家族(schema) | 可省;schema 是数据形状,表 + 卡足够 |
图一律走 docs-figure-contract:hideCode、备注灰色(关键字 gray)且置于被标注元素下方、强调色用 darkorange、纯技术 label 用单文件。
主题 | 职责 | 何时查阅hideCode# 标题 —— H1 走 DocPagepnpm --filter @retikz/docs dev # 点分组主体进落地页、点 chevron 展开、卡片链接都通