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

shade-imports

它能做什么

这个技能告诉 AI 智能体如何从 Shade(Ghost 的设计系统)导入内容,以及是否加载其样式表。适合为应用添加 Shade 的开发者。

适用场景

  • ✓当你在应用中添加 Shade 导入并需要正确路径的时候。
  • ✓当你把 Shade 添加到新应用中,需要知道它应当是嵌入式还是独立式的时候。
  • ✓当你构建独立的 Ghost 应用并需要其设置步骤的时候。

技能链接

https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-imports/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请帮我在 Ghost 应用中添加 Shade,并确保每个组件都从正确的路径导入。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会对照 Shade 的子路径表检查每一项导入,然后决定使用嵌入式还是独立式设置。独立应用只加载一次样式表,并在根节点渲染一个 ShadeApp。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Shade imports

Each Shade layer has its own import subpath, and whether an app loads Shade's stylesheet and ShadeApp depends on who owns its document. The rules live in Shade: Imports.

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. Take each import from the subpath table in Imports.
  2. When adding Shade to an app, decide whether it is embedded or standalone with Embedded and standalone setup.
  3. For a standalone app, such as a Ghost app, follow build-ghost-app-ui.

Self-check

  • Every Shade import in your diff names a layer subpath from the table.
  • A standalone app imports Shade's stylesheet once and renders one ShadeApp at its root; an embedded Admin app has neither.
常见问题

嵌入式和独立式有什么区别?

在 Ghost Admin 内的嵌入式应用会跳过样式表和 ShadeApp,而独立式应用则包含两者。

导入路径列在哪里?

它们位于 Shade 在线文档的 Imports 部分的子路径表中。

有没有快速检查的方法?

有。确认你的改动中每个 Shade 导入都使用该表中的路径即可。

详情

作者的原始描述

Import Shade from its layer subpaths and set up its stylesheet and ShadeApp for the surface. Use when importing from `@tryghost/shade` or adding Shade to an app.

repo: TryGhost/Ghost

热度

GitHub 星标
56k
排名
#3282
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能