Skip to main content

Overview

The @artifactuse/prompts package provides system prompts that teach AI models how to generate Artifactuse artifacts.

Installation

Usage

Include prompts in your AI’s system message:

Available Prompts

Selective Import

Only include what you need to minimize token usage:

Helper Functions

CommonJS

Example: Creative Assistant

How Prompts Work

Each prompt contains:
  1. Trigger conditions - When to generate the artifact
  2. Format specification - Code block syntax
  3. Schema - Required and optional properties
  4. Rules - Constraints and best practices
The AI learns to output properly formatted code blocks that Artifactuse can render.