build-ghost-app
यह क्या करती है
यह स्किल AI एजेंट को ऐसा Ghost ऐप बनाने में मार्गदर्शन देती है जो Ghost Admin के अंदर चलता है। यह उन डेवलपर्स के लिए है जो Ghost में अपना पेज या टूल जोड़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप नया Ghost ऐप शुरू करते हैं और चाहते हैं कि वह Ghost Admin के अंदर दिखे।
- ✓जब आपको manifest फ़ाइल लिखनी है जो Ghost को आपके ऐप के बारे में बताती है।
- ✓जब आप app SDK से अपने ऐप को Ghost Admin से जोड़ना और install करना चाहते हैं।
Skill का लिंक
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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं Vite और React के साथ एक Ghost ऐप शुरू करना चाहता हूँ जो मेरे Ghost Admin के अंदर दिखे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट एक Vite और React प्रोजेक्ट सेट करता है, Ghost app SDK इंस्टॉल करता है, और एक manifest फ़ाइल लिखता है। फिर वह ऐप को एक तय लोकल पोर्ट पर चलाता है, ताकि 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.
अक्सर पूछे जाने वाले सवाल
ऐप कौन सा पोर्ट इस्तेमाल करता है?
स्किल ऐप को strict mode में पोर्ट 5190 पर सेट करती है, क्योंकि install लिंक उसी पोर्ट पर निर्भर है।
manifest फ़ाइल कहाँ जाती है?
वह 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
tinybird-cli-guidelines
56kस्थानीय विकास, branch काम, build, deploy और डेटा संभालने के लिए आपके एजेंट को Tinybird CLI कमांड में मार्गदर्शन देती है।
tinybird
56kआपके एजेंट को datasources, pipes, endpoints और materialized views के लिए Tinybird फ़ाइल फ़ॉर्मेट, SQL नियम और प्रदर्शन के तरीके सिखाती है।
build-ghost-app-ui
56kआपके एजेंट को Ghost के डिज़ाइन सिस्टम Shade से Ghost ऐप की स्क्रीन बनाने में मदद करती है, और उसे सही दस्तावेज़ और स्किल की ओर भेजती है।
shade-imports
56kआपके एजेंट को Shade के components सही layer paths से import करने और उसकी stylesheet और ShadeApp ठीक से सेट करने में मदद करती है।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।