build-ghost-app
What it does
This skill guides an AI agent through building a Ghost app that runs inside Ghost Admin. It is for developers who want to add their own page or tool to Ghost.
When to use it
- ✓When you start a new Ghost app and want it to appear inside Ghost Admin.
- ✓When you need to write the manifest file that tells Ghost about your app.
- ✓When you want to connect your app to Ghost Admin with the app SDK and install it.
Skill link
https://github.com/TryGhost/Ghost/blob/main/apps/shade/dev-skill/ghost-app-ui-dev-setup/build-ghost-app/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to start a Ghost app with Vite and React that shows up inside my Ghost Admin.”
5 new skills a week. 1 minute to read.
How it works
The agent sets up a Vite and React project, installs the Ghost app SDK, and writes a manifest file. It then serves the app on a fixed local port so Ghost Admin can load it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Build a Ghost app
A Ghost app runs as a full page in a frame inside Ghost Admin. Build it in this
folder, the one with AGENTS.md, as a Vite, React and TypeScript app with npm.
These steps make it show up in Admin. For its screens, use the
build-ghost-app-ui skill.
npm create vite won't scaffold into a folder that already has files without
--overwrite, which deletes them. Scaffold into a new subfolder, then move its
files up into this folder and remove the subfolder.
Connect the app
SDK.
@tryghost/app-sdkisn't on npm yet. Install it from the folder:npm install ./vendor/tryghost-app-sdk.tgz. It brings its one dependency,@quilted/threads.Fixed port. In
vite.config.ts, setserver: { port: 5190, strictPort: true }. The install link depends on the port.Manifest. Serve it as
public/ghost-app.json, so it's athttp://localhost:5190/ghost-app.json:{ "id": "org.example.<app-slug>", "name": "<App name>", "description": "<One sentence on what the app does.>", "author": { "name": "<Author>", "url": "https://example.com" }, "accent_color": "#<six-digit hex>", "icon": { "name": "<icon-name>" }, "surfaces": [{ "type": "admin_page", "url": "/" }] }Every field is required,
author.urltoo, and Admin rejects fields it doesn't know.icon.nameis any Lucide icon name in kebab case, such asmegaphoneorlayout-list; Admin draws it onaccent_color.Connect before rendering. Admin keeps the frame hidden until the app calls
connect(), and gives up after 10 seconds. Insrc/main.tsx, await it before rendering React:import { connect, GhostAppError } from '@tryghost/app-sdk' try { const ghost = await connect() // apply ghost.theme.mode (step 5), then render the app } catch (error) { if (error instanceof GhostAppError && error.code === 'not_framed') { // Opened outside Admin: render only a short "Open this app in Ghost Admin" message } else { // Render a short "Couldn't connect to Ghost" message with error.message } }Opened directly at
http://localhost:5190/, the page isn't framed, so it shows only that message. That's expected.Theme.
ghost.theme.modeis'light'or'dark', andghost.onThemeChange(theme => …)fires when the publisher switches; it returns a function that unsubscribes. Apply the mode before the first render and follow changes. How Shade takes the mode is in thebuild-ghost-app-uiskill, at its "Light and dark theme" step.Install link. With
npm run devrunning, the publisher installs the app from:http://localhost:2368/ghost/#/apps/install?manifest=http%3A%2F%2Flocalhost%3A5190%2Fghost-app.json
Hand over
You can't open Ghost Admin yourself, so the publisher checks the app there.
When you're done, check that npm run dev starts on port 5190 and npm run build
passes, stop the dev server, and give them the install link with anything they
should check in Admin.
FAQ
Which port does the app use?
The skill sets the app to port 5190 in strict mode, because the install link depends on that port.
Where does the manifest file go?
It goes in the public folder as ghost-app.json, so it is served at the app's local address.
Does this skill cover the app's screens?
No. The skill points to a separate build-ghost-app-ui skill for the screens.
Details
Original description by the author
Connect a Ghost app to Ghost Admin with the app SDK, and serve its manifest and install link. Use when building a Ghost app, connecting it to Admin, writing its manifest or installing it.
repo: TryGhost/Ghost
Popularity
- GitHub stars
- 56k
- Ranking position
- #3280
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
tinybird-cli-guidelines
56kGuides your agent through Tinybird CLI commands for local development, branch work, building, deploying, and managing data.
tinybird
56kTeaches your agent Tinybird file formats, SQL rules, and performance patterns for datasources, pipes, endpoints, and materialized views.
build-ghost-app-ui
56kHelps your agent build the screens of a Ghost app with Shade, Ghost's design system, and points it to the right docs and skills.
shade-imports
56kHelps your agent import Shade components from the right layer paths and set up its stylesheet and ShadeApp correctly.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.