Quickstart
This guide walks you through creating your first prompt, using variables, and testing dynamic resolution. You’ll be up and running in under 5 minutes.This quickstart assumes you’re using the hosted version of PromptRepo. If you want to run it locally, see the Installation guide first.
Step 1: Create an Account
Choose your authentication method
You can sign up using:
- Email/Password — Enter your email and create a password
- GitHub OAuth — Click the GitHub button to authenticate
- Google OAuth — Click the Google button to authenticate
If using email/password, you’ll receive a confirmation email. Check your inbox and click the confirmation link to activate your account.
Step 2: Create Your First Prompt
Navigate to the Create Prompt page
From the dashboard, click the Create Prompt button or navigate to
/prompts/create.Fill in the prompt details
The create prompt form has four fields:
- Title (required) — A short, descriptive name (e.g., “Code Review Assistant”)
- Description (optional) — Additional context about the prompt’s purpose
- Content (required) — The actual prompt text (supports variables with
{{variable}}syntax) - Version Note (optional) — A note describing this initial version
Example: Simple Prompt (No Variables)
Let’s create a basic code review assistant:Step 3: Use Variables for Reusable Templates
PromptRepo’s real power comes from dynamic variable resolution. Use{{variable}} syntax to create reusable templates.
Create a prompt with variables
Click Create Prompt again and add variables using double curly braces:
Define variable placeholders
PromptRepo automatically detects variables in your content. Common patterns:
{{language}}— Programming language{{framework}}— Framework or library{{task}}— Specific task or goal{{context}}— Additional context
Variables can contain spaces and special characters:
{{target audience}}, {{code_style}}, {{API-version}} are all valid.Example: Prompt with Variables
Let’s create a language-agnostic docstring generator:| Variable | Value |
|---|---|
language | Python |
framework | Google Style Guide |
code | def calculate_discount(price, percentage): ... |
Step 4: Search Your Prompts
PromptRepo includes full-text search powered by PostgreSQL’stsvector for sub-100ms query times.
Type your search query
Search matches against:
- Prompt titles
- Descriptions
- Content (including variable names)
Step 5: Version Control and History
Every edit creates a new version. Let’s test this:Make changes and add a version note
Update the content and add a descriptive version note (e.g., “Added error handling section”).
View version history
Click the History tab on the prompt detail page. You’ll see all versions with:
- Version numbers
- Creation timestamps
- Version notes
- Content diffs
PromptRepo uses a two-table versioning pattern. The
prompts table holds HEAD metadata, while prompt_versions stores immutable history. You can always restore previous versions.Step 6: Share Your Prompt
Generate a public sharing link for read-only access:Next Steps
Congratulations! You’ve created your first prompt with variables, tested resolution, searched your library, and explored version control.Explore Advanced Features
MCP Integration
Connect PromptRepo to Claude Desktop or other AI agents
Collections
Organize prompts into project-based collections
Snapshots
Create point-in-time captures of prompt states
API Reference
Explore server actions and database queries
Learn Best Practices
- Naming conventions — Use descriptive, searchable titles
- Variable design — Keep variable names short and semantic
- Version notes — Document what changed and why
- Collections — Group related prompts by project or workflow