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

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

可直接粘贴的消息

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

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

  1. The installed @tryghost/shade package (its code and type definitions; it ships no docs) decides what exists: components, props and imports. Its types match the install.
  2. The docs at the address above decide how to use it.
  3. 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:

  1. Install @tryghost/shade@alpha and its peers from npm; latest is older. npm create vite scaffolds React 19, which npm refuses beside Shade, so move the React packages and types first, as Install shows.

  2. Set up Tailwind and the stylesheet.

  3. Load the Fonts.

  4. Wrap the app in ShadeApp.

  5. Follow Admin's Light and dark theme.

  6. Set the Page frame and margins.

  7. If the app keeps state in the query string, follow App state in the URL.

  8. 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

  1. Start from the page template with shade-page-templates.
  2. As the screen needs them, use shade-page-header for the header, shade-use-primitives for layout, shade-tokens-not-hex for colour, shade-no-dark-variants for dark mode and shade-imports for imports.
  3. 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.fonts lists 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.md has 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能