build-ghost-app-ui
它能做什么
这个技能在 Ghost 应用中设置 Shade(Ghost 的设计系统),并将智能体引导至其规则。适合为 Ghost 应用构建界面、并希望它与 Ghost Admin 保持一致的开发者。
适用场景
- ✓当你构建或修改 Ghost 应用的界面的时候。
- ✓当你想为应用添加 Shade,使其外观与 Ghost Admin 相似的时候。
- ✓当你需要界面某个部分对应的 Shade 规则的时候。
技能链接
https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/build-ghost-app-ui/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我让 Ghost 应用的界面使用 Shade,看起来与 Ghost Admin 一样。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体安装 Shade 软件包,检查应用的设置,并阅读 Shade 文档中它所需组件或布局的说明。已安装的软件包决定了有哪些组件,而文档说明如何使用它们。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Build a Ghost app's UI
A Ghost app's screens use Shade (@tryghost/shade), the design system Ghost
Admin is built with. This skill sets Shade up and routes to the Shade skills
installed beside it; the rules live in Shade's docs. The app's manifest,
connect() and install belong to the build-ghost-app skill.
The docs
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. At an address, start from <address>/llms.txt and fetch web pages
with curl -s <address>/docs/<page>.md, so the text arrives exact: a web
fetch tool summarises it and refuses localhost.
When sources disagree, trust them in this order:
- The installed
@tryghost/shadepackage (its code and type definitions; it ships no docs) decides what exists: components, props and imports. Its types match the install. - The docs at the address above decide how to use it.
- Ghost's source, if it's on disk, is reference only. Never import from it, and skip its Admin-only rules.
Set up
Check each step against the app, and do the ones it's missing:
Install
@tryghost/shade@alphaand its peers from npm;latestis older.npm create vitescaffolds React 19, which npm refuses beside Shade, so move the React packages and types first, as Install shows.Set up Tailwind and the stylesheet.
Load the Fonts.
Follow Admin's Light and dark theme.
Set the Page frame and margins.
If the app keeps state in the query string, follow App state in the URL.
Add this section to the app's
AGENTS.md, creating the file if needed. Keep any line already there that says where Shade's docs are.## Shade Before building or changing a screen, use the `build-ghost-app-ui` skill. Shade docs: https://shade.ghost.org
Build a screen
- Start from the page template with
shade-page-templates. - As the screen needs them, use
shade-page-headerfor the header,shade-use-primitivesfor layout,shade-tokens-not-hexfor colour,shade-no-dark-variantsfor dark mode andshade-importsfor imports. - Read only the docs that apply to apps.
Self-check
Before finishing, confirm in Admin:
- The screen looks right in Admin's light and dark theme, and switches with it.
- Inter loads:
document.fontslists it at each weight in Fonts. - The page has no outer padding of its own.
- Nothing is styled by hand where Shade has a component, primitive or token.
- Every state (empty, loading, error) is reachable with the sample data, and uses Shade components.
- The app's
AGENTS.mdhas the Shade section.
常见问题
智能体从哪里获取 Shade 的规则?
该技能指向 Shade 的在线文档,而已安装的软件包决定了哪些组件和属性存在。
智能体需要 Ghost 的源代码吗?
不需要。该技能说明,绝不能从 Ghost 的源代码中导入,源代码仅供参考。
它会设置应用与 Ghost 的连接吗?
不会。将应用连接到 Ghost Admin 由 build-ghost-app 技能处理。
详情
作者的原始描述
Build a Ghost app's screens with Shade, Ghost's design system, and find its docs and skills. Use when building or changing a Ghost app's UI, or adding Shade to an app.
repo: TryGhost/Ghost
热度
- GitHub 星标
- 56k
- 排名
- #3281
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
tinybird-cli-guidelines
56k指导你的智能体使用 Tinybird CLI 命令进行本地开发、分支工作、构建、部署和数据管理。
tinybird
56k教你的智能体为数据源、管道、端点和物化视图编写 Tinybird 文件格式、SQL 规则和性能模式。
build-ghost-app
56k帮你的智能体使用 Vite 和 React 构建 Ghost 应用,将其连接到 Ghost Admin,并设置其清单和安装链接。
shade-imports
56k帮你的智能体从正确的路径导入 Shade 组件,并正确设置其样式表和 ShadeApp。