shade-page-header
它能做什么
这个技能指导 AI 智能体使用 Shade 的 PageHeader 规则构建页面顶部的头部区域。适合构建管理界面、并希望头部保持一致的开发者。
适用场景
- ✓当你为新界面添加页面头部的时候。
- ✓当你更改页面头部中的按钮或操作的时候。
- ✓当你需要检查头部在不同屏幕尺寸下的表现的时候。
技能链接
https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-page-header/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在报表页面中添加一个头部,包含搜索框、一个筛选器和一个主要的导出按钮。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把页面操作分为图标按钮、次要按钮和一个主要按钮,然后使用文档中规定的插槽构建头部。它会在改动所影响的每种状态下检查头部。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Shade page header
The rules live in the PageHeader design contract.
Docs links use https://shade.ghost.org. If the project's AGENTS.md says
where Shade's docs are (another address, or a source folder), use that
instead. Fetch web pages with curl -s.
Workflow
- Read the contract. Sort the screen's actions into icon-only utilities, labelled secondaries and an optional primary, and decide the order within each group, following Order and hierarchy.
- Compose the header from its
Slots and the
controls in
Constructing controls.
For the page around it, use
shade-page-templates. - Read PageHeader's current type declarations and any nearby header before implementing. Take appearance and spacing from the shared defaults.
- Exercise every state the change affects with Review a header.
Self-check
- Every state in the review list that your change touches has been exercised.
- Report which routes, widths and themes you verified, and fix failures before marking the header complete.
常见问题
按钮应该如何排序?
该技能把操作分为三组,并在每组内按设计约定设置顺序。
它涵盖整个页面布局吗?
不直接涵盖。其余部分的布局由页面模板技能处理。
它如何检查结果?
它使用一份头部状态审查清单,包括不同路由和屏幕宽度,来测试改动。
详情
作者的原始描述
Build or revise a page header with Shade's PageHeader contract. Use when adding a page header, changing its actions, or reviewing action order, search, filtering, dropdowns, tooltips or responsive behaviour in a header.
repo: TryGhost/Ghost
热度
- GitHub 星标
- 56k
- 排名
- #3284
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
tinybird-cli-guidelines
56k指导你的智能体使用 Tinybird CLI 命令进行本地开发、分支工作、构建、部署和数据管理。
tinybird
56k教你的智能体为数据源、管道、端点和物化视图编写 Tinybird 文件格式、SQL 规则和性能模式。
build-ghost-app
56k帮你的智能体使用 Vite 和 React 构建 Ghost 应用,将其连接到 Ghost Admin,并设置其清单和安装链接。
build-ghost-app-ui
56k帮你的智能体使用 Ghost 的设计系统 Shade 构建 Ghost 应用的界面,并将它指向正确的文档和技能。