build-ghost-app
하는 일
이 스킬은 Ghost Admin 안에서 실행되는 Ghost 앱을 만드는 과정을 AI 에이전트에게 안내합니다. Ghost에 자신만의 페이지나 도구를 추가하려는 개발자에게 맞습니다.
사용하는 경우
- ✓Ghost Admin 안에 나타날 새 Ghost 앱을 시작할 때.
- ✓Ghost에 앱을 알리는 매니페스트 파일을 작성해야 할 때.
- ✓앱 SDK로 Ghost Admin에 연결하고 앱을 설치하고 싶을 때.
스킬 링크
https://github.com/TryGhost/Ghost/blob/main/apps/shade/dev-skill/ghost-app-ui-dev-setup/build-ghost-app/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Vite와 React로 제 Ghost Admin 안에 표시되는 Ghost 앱을 시작해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 Vite와 React 프로젝트를 설정하고, Ghost 앱 SDK를 설치한 뒤 매니페스트 파일을 씁니다. 그다음 Ghost Admin이 앱을 불러올 수 있도록 고정된 로컬 포트에서 앱을 제공합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
앱은 어느 포트를 쓰나요?
설치 링크가 그 포트에 의존하므로, 스킬은 엄격 모드에서 포트 5190을 쓰도록 설정합니다.
매니페스트 파일은 어디에 두나요?
public 폴더에 ghost-app.json 파일로 두며, 그러면 앱의 로컬 주소에서 제공됩니다.
이 스킬은 앱 화면도 다루나요?
아닙니다. 화면은 별도의 build-ghost-app-ui 스킬을 가리킵니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 56k
- 순위
- #3280
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
tinybird-cli-guidelines
56k에이전트가 로컬 개발, 브랜치 작업, 빌드, 배포, 데이터 관리를 위해 Tinybird CLI 명령을 사용하도록 안내합니다.
tinybird
56k에이전트가 데이터소스, 파이프, 엔드포인트, 구체화된 뷰를 위한 Tinybird 파일 형식, SQL 규칙, 성능 패턴을 익히도록 돕습니다.
build-ghost-app-ui
56k에이전트가 Ghost 디자인 시스템 Shade로 Ghost 앱의 화면을 만들도록 돕고, 맞는 문서와 스킬을 안내합니다.
shade-imports
56k에이전트가 올바른 레이어 경로에서 Shade 컴포넌트를 가져오고, 스타일시트와 ShadeApp을 올바르게 설정하도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.