跳到正文
Skillpedia
界面(UI/UX)56k · #3284

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-page-header/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. 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.
  2. Compose the header from its Slots and the controls in Constructing controls. For the page around it, use shade-page-templates.
  3. Read PageHeader's current type declarations and any nearby header before implementing. Take appearance and spacing from the shared defaults.
  4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能