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

shade-page-templates

它能做什么

这个技能告诉 AI 智能体为新界面选择正确的页面类型,并从其模板开始。适合在基于 Shade 的界面中构建新页面的开发者。

适用场景

  • ✓当你在 Ghost 应用中开始一个新页面、路由或界面的时候。
  • ✓当你想围绕页面内容重新组织布局的时候。
  • ✓当你需要判断某个界面是列表页还是详情页的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我想在 Ghost 应用中为订单构建一个新的列表页,并从正确的模板开始。”

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

工作原理

智能体会说明页面类型,例如列表或详情,然后从该模板开始。接着,它会使用相关技能添加页面头部和正文内容。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Shade page templates

A new screen starts with one question: what page type is this? The answer picks the template, and the template supplies the chrome. The rules live in Page types.

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. Name the page type from Page types: list page, detail page, or one of the shapes not in the taxonomy.
  2. Start from that type's template and the Example. For shapes without a template, assemble the page as that section says.
  3. Compose it with Composing a page.
  4. Build the header's controls with shade-page-header, and lay out the body with shade-use-primitives.

Self-check

  • You can name the page type, and the template matches it.
  • Every rule in Composing a page holds for your page.
常见问题

有哪些页面类型?

该技能列出了列表页和详情页,以及文档中列出的其他几种结构。

如果没有合适的模板怎么办?

该技能说明,对于没有模板的结构,应按照文档的描述来组装页面。

哪些技能与它配合使用?

它会把页面头部交给 shade-page-header 技能,把正文布局交给 shade-use-primitives 技能。

详情

作者的原始描述

Start a Ghost screen from the Shade page template for its page type. Use when starting a new page, route or screen, or when restructuring a page's chrome.

repo: TryGhost/Ghost

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能