How It Works
When you send a message, the AI:- Sees your current App.svelte code
- Sees existing design and content fields
- Generates a response with tool calls
- Executes tools to update your project
- Preview refreshes automatically
Writing Good Prompts
Be Specific
Vague
“Make it look better”
Specific
“Add more padding to the cards and use a softer shadow”
Vague
“Add a form”
Specific
“Add a contact form with name, email, and message fields. Show a success message after submission.”
Start Simple, Then Iterate
Don’t try to describe your entire app upfront. Build incrementally:Describe Behavior, Not Implementation
Implementation-focused
“Use a $state array and map over it”
Behavior-focused
“Show a list of items that updates when I add new ones”
Example Prompts
Starting a New App
Adding Features
Fixing Issues
Styling
What the AI Can Do
Write and modify code
Write and modify code
The AI writes to a single
App.svelte file using Svelte 5 with runes ($state, $derived, $effect). It uses semantic CSS classes, not Tailwind.Create design fields
Create design fields
CSS variables for colors, fonts, spacing, shadows, and border radius. These appear in the Design tab where you can adjust them visually.Types:
color, font, size, radius, shadow, textCreate content fields
Create content fields
Editable text values that appear in the Content tab. Perfect for headlines, descriptions, button labels—anything a non-developer might want to change.Types:
text, textarea, number, boolean, jsonCreate data collections
Create data collections
Database tables stored in Pocketbase. The AI can create collections with initial data and wire up realtime subscriptions.
Configure API endpoints
Configure API endpoints
Set up connections to external APIs with custom headers and methods.
Set environment variables
Set environment variables
Store API keys and secrets server-side.
Available Tools
The AI has 10 tools it can use:| Tool | Purpose |
|---|---|
write_code | Update App.svelte |
create_content_field | Add editable CMS text |
create_design_field | Add CSS variable |
create_env_var | Add environment variable |
create_endpoint | Configure external API |
create_data_file | Create database collection |
insert_records | Add records to collection |
read_config_field | Read a field value |
update_config_field | Update a field value |
update_spec | Update project specification |
What the AI Can’t Do
- Create multiple component files (single App.svelte only)
- Use Tailwind or utility CSS classes
- Access the filesystem directly
- Make network requests during generation
- Modify Pocketbase schema after creation
Tips for Better Results
1. Give Context on First Message
If you have specific requirements, mention them upfront:2. Reference What Exists
The AI can see your current code. Reference it:3. Ask for Explanations
If you want to understand the code:4. Request Mobile-First
The AI defaults to mobile-first responsive design, but you can be explicit:5. Use the History Tab
Made a mistake? Every AI response creates a snapshot. Go to the History tab and restore a previous version.Conversation Memory
The AI remembers your conversation within a session. You can:- Reference previous messages: “Actually, make that button blue instead”
- Build on what was created: “Now add a delete confirmation modal”
- Ask follow-ups: “Can you also add keyboard shortcuts?”
Custom Instructions
For project-wide guidance, add custom instructions in the project settings. These are included in every AI prompt:Common Patterns
Data with Realtime Updates
- A Pocketbase collection
- Realtime subscription with
$effect - CRUD operations (create, update, delete)
Content-Editable Text
- Create content fields
- Reference them as
content.hero_title - They appear in Content tab for editing
Design System
- Create design fields with CSS variables
- Apply them throughout the code
- They appear in Design tab with color pickers
External Data
Troubleshooting
AI isn't seeing my changes
AI isn't seeing my changes
The AI sees the current saved state. If you edited code manually, make sure it’s saved before prompting.
AI keeps making the same mistake
AI keeps making the same mistake
Be more explicit about what’s wrong:
- Bad: “That’s still broken”
- Good: “The click handler is on the wrong element - it should be on the button, not the div”
AI generated broken code
AI generated broken code
Use the History tab to restore a working version, then try a simpler prompt.
AI won't use Tailwind
AI won't use Tailwind
This is intentional. tinykit uses semantic CSS classes for better readability and easier customization through the Design tab.