Skip to content
Star

Use AI to build with Ghost UI

Give a coding assistant the task, constraints, and source it needs to make a reviewable change.

How do I give an AI coding assistant useful context?

Start with the outcome a person should achieve, the current component or page, and the limits of the change. Link the relevant Ghost component and setup pages, identify the state the application owns, and ask the assistant to use the existing copyable recipe where one exists. A prompt like “make a settings form clearer on mobile” is more actionable when it names the page, fields, narrow-screen behavior, and what counts as done.

Start at the page catalog, or open a page’s Markdown from its Copy menu. That source includes the documentation and code examples without requiring a browser to operate the preview. Ghost distributes component source through its registry. That source is useful to an agent because it can inspect the actual public API instead of inventing props from a screenshot. Use Component design and technical writing skills in your own project to give the assistant a consistent method for building and documenting components. Skills guide a tool; they do not replace source review or grant the application a runtime dependency.

How is Ghost source installed?

Follow Installation to import the published @collectivecreation/ghost-ui npm package or copy editable component source with shadcn. Tell your agent which path the app uses so it follows the matching imports and CSS setup.

How can I keep generated changes small and reviewable?

Ask the tool to inspect existing callers before changing a shared component. Have it state the source owner, expected API change, and a direct check. Keep product state and external effects in the application unless the task explicitly changes the component contract. Require the agent to distinguish a local demo from server behavior, and to report which checks it actually performed.

A generated patch should preserve existing style, types, accessible names, and error handling. Review every changed file and compare the rendered outcome when appearance or interaction changed. Build success does not prove that the component answers the user's task. For prose or content changes, review the writing and links directly instead of running unrelated application pipelines.

Inspiration

Ask for the smallest change that proves the user outcome.

What should I do when the assistant invents an API?

Ask it to verify the prop and callback against the component's own documentation page and installed source. Use UI architecture to choose the reusable owner. If the recipe omits a required stylesheet, helper, or state update, it is not complete. Prefer linking the actual page recipe over asking for a fresh snippet. If the component has no suitable composition, describe the gap before changing the public API.

How do external AI references fit?

shadcn/ui is a useful reference for editable source workflows and documents helpers for Vercel and TanStack AI; its source conventions and APIs are its own. Untitled UI and ReUI are references for product patterns and content categories. These references do not prove search ranking, code quality, accessibility, or parity. Compare a specific pattern and verify it against Ghost's current source. Use AI as a drafting and navigation aid; a human or responsible maintainer still owns the product decision and final review.