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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Take each import from the subpath table in Imports.
- When adding Shade to an app, decide whether it is embedded or standalone with Embedded and standalone setup.
- 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
ShadeAppat 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
评论
- …
同一仓库的更多技能
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 应用的界面,并将它指向正确的文档和技能。