Custom Prompts Guide
The Custom Prompts feature in Gemini Scribe allows you to create reusable AI instruction templates that modify how the AI assistant behaves within a session. This guide covers everything you need to know about creating and using custom prompts effectively.
Table of Contents
- Overview
- Getting Started
- Creating Custom Prompts
- Using Custom Prompts
- Advanced Features
- Examples
- Best Practices
- Troubleshooting
Overview
Custom prompts are markdown files that contain special instructions for the AI. When you apply a custom prompt to a session, it changes how the AI interacts with you — its tone, style, focus areas, and the knowledge it brings to the conversation.
Use custom prompts to:
- Customize AI behavior for different types of content
- Set a conversational style or persona (e.g., technical writer, creative coach)
- Seed the agent with background knowledge before a conversation
- Maintain consistent AI behavior across similar documents
- Share prompt templates with other users
Custom Prompts vs Skills
If you're unsure whether you need a custom prompt or a skill, here's the key difference:
| Custom Prompts | Skills | |
|---|---|---|
| Purpose | Change how the agent talks to you | Define what the agent does step-by-step |
| Best for | Style, tone, persona, background context | Repeatable workflows, multi-step procedures |
| Applied to | A session (via session settings) | Activated on demand per task |
| Example | "Respond as a technical editor using AP style" | "Read my meetings, create notes for each, add action items" |
Rule of thumb: If you want to change the agent's personality or give it background knowledge, use a custom prompt. If you have a specific procedure with discrete steps you want the agent to follow, create a skill.
Getting Started
Enable Custom Prompts
- Open Obsidian Settings
- Navigate to Gemini Scribe settings
- Find the "Custom Prompts" section
- Toggle "Enable Custom Prompts" to ON
Note: Custom prompts are disabled by default. You must enable them to use this feature.
Locate the Prompts Folder
Custom prompts are stored in: [Your Plugin State Folder]/Prompts/
For example, if your plugin state folder is gemini-scribe, prompts will be in gemini-scribe/Prompts/.
The plugin automatically creates this folder structure and adds an example prompt when you first enable the feature:
gemini-scribe/- Main plugin state foldergemini-scribe/Prompts/- Custom prompt templatesgemini-scribe/History/- Chat history files (if chat history is enabled)
Creating Custom Prompts
Quick Start with Command Palette
The easiest way to create a new custom prompt:
- Open the command palette (Ctrl/Cmd + P)
- Search for "Gemini Scribe: Create New Custom Prompt"
- Enter a name for your prompt
- Edit the generated template to suit your needs
Manual Creation
You can also create prompt files manually in your Prompts folder.
Basic Structure
Every custom prompt file has two parts:
- Frontmatter (YAML metadata)
- Prompt Content (instructions for the AI)
Frontmatter Properties
---
name: 'Your Prompt Name' # Required: Display name
description: 'What this prompt does' # Required: Brief description
version: 1 # Optional: Version number
override_system_prompt: false # Optional: Replace system prompt entirely
tags: ['category', 'use-case'] # Optional: For organization
---Special Tags
| Tag | Purpose |
|---|---|
selection-action | Makes the prompt available in the "Explain Selection" feature. See AI Writing Guide for details. |
Example: Technical Documentation Assistant
---
name: 'Technical Documentation'
description: 'Helps write clear, structured technical documentation'
version: 1
override_system_prompt: false
tags: ['documentation', 'technical']
---
You are a technical documentation specialist. When assisting with content:
## Writing Style
- Use clear, concise language
- Define technical terms on first use
- Include code examples where relevant
- Follow consistent formatting
## Structure
- Start with a brief overview
- Use logical heading hierarchy
- Include step-by-step instructions
- Add troubleshooting sections when appropriate
## Code Examples
- Provide working, tested examples
- Include comments explaining complex parts
- Show both basic and advanced usage
- Highlight common pitfalls
Always aim for documentation that is both comprehensive and accessible to readers of varying technical levels.Using Custom Prompts
Command Palette Commands
Create New Custom Prompt
- Command: "Gemini Scribe: Create New Custom Prompt"
- Purpose: Creates a new custom prompt file with a proper template
- How it works:
- Opens a modal to enter the prompt name
- Creates a new
.mdfile in your Prompts folder - Fills in the frontmatter template with helpful structure
- Automatically opens the file for editing
Applying Prompts to Sessions
Custom prompts are applied at the session level via the session settings (gear icon) in the agent panel:
- Open the agent panel
- Click the gear icon in the session header
- Select a prompt from the "Prompt Template" dropdown
- The prompt applies to all messages in that session
Visual Indicator
When a custom prompt is active, you'll see a badge in the session header showing the prompt name.
Advanced Features
System Prompt Override
For advanced users who want complete control:
- Set
override_system_prompt: truein your prompt file - Enable "Allow System Prompt Override" in plugin settings
- Your prompt will completely replace the default system instructions
Warning: Use with caution as this removes built-in safety features and Obsidian-specific knowledge.
Prompt Templates for Different Use Cases
Create specialized prompts for:
- Academic Writing: Citation formatting, scholarly tone
- Creative Writing: Character development, narrative flow
- Code Reviews: Best practices, security considerations
- Meeting Notes: Action items, key decisions
- Research Notes: Source evaluation, synthesis
Organizing Prompts
Use descriptive filenames and tags:
Prompts/
├── Writing/
│ ├── Academic Writing.md
│ ├── Creative Writing.md
│ └── Technical Writing.md
├── Coding/
│ ├── Code Review.md
│ └── Documentation.md
└── Research/
├── Literature Review.md
└── Data Analysis.mdExamples
1. Creative Writing Assistant
---
name: 'Creative Writing Coach'
description: 'Helps with storytelling, character development, and narrative flow'
version: 1
override_system_prompt: false
tags: ['creative', 'writing', 'fiction']
---
You are a creative writing coach specializing in fiction. Focus on:
- **Character Development**: Help create multi-dimensional characters with clear motivations
- **Plot Structure**: Assist with story arcs, pacing, and conflict resolution
- **Descriptive Language**: Suggest vivid imagery and sensory details
- **Dialogue**: Craft natural, character-appropriate conversations
- **Show, Don't Tell**: Convert exposition into engaging scenes
When reviewing text, provide specific suggestions for improvement while preserving the author's unique voice and style.2. Code Tutor
---
name: 'Programming Tutor'
description: 'Patient programming teacher who explains concepts clearly'
version: 1
override_system_prompt: false
tags: ['education', 'programming', 'tutorial']
---
You are a patient programming tutor. When helping with code:
1. **Explain Concepts First**: Break down the underlying principles
2. **Use Simple Examples**: Start with basic cases before complex ones
3. **Encourage Best Practices**: Mention conventions and standards
4. **Debug Together**: Guide through problem-solving rather than just providing answers
5. **Provide Resources**: Suggest documentation and learning materials
Always use encouraging language and celebrate small victories in the learning process.3. Research Assistant
---
name: 'Research Synthesizer'
description: 'Helps analyze and synthesize research materials'
version: 1
override_system_prompt: false
tags: ['research', 'academic', 'analysis']
---
You are a research assistant skilled in academic analysis. Your role includes:
## Literature Analysis
- Identify key themes and patterns across sources
- Note methodological approaches and their strengths/limitations
- Highlight gaps in current research
## Synthesis Skills
- Connect ideas from multiple sources
- Create coherent narratives from diverse materials
- Distinguish between correlation and causation
## Critical Evaluation
- Assess source credibility and potential biases
- Compare conflicting findings
- Suggest areas for further investigation
Always maintain academic objectivity and cite sources appropriately.Best Practices
1. Keep Instructions Clear and Specific
- Use bullet points and sections for organization
- Be explicit about desired behaviors
- Include examples when helpful
2. Test Your Prompts
- Try the prompt with various types of content
- Refine based on AI responses
- Iterate to improve effectiveness
3. Version Control
- Use the
versionfield to track changes - Keep backups of effective prompts
- Document what works well
4. Share and Collaborate
- Export prompts as markdown files
- Share with team members
- Build a library of proven prompts
5. Balance Specificity and Flexibility
- Too specific: AI becomes rigid
- Too general: No meaningful behavior change
- Find the sweet spot for your use case
Troubleshooting
Prompt Not Working
Check the prompt file syntax
- Ensure proper YAML frontmatter formatting
- Verify required fields (
name,description) are present
Confirm settings
- "Enable Custom Prompts" is ON
- Prompt file exists in the
[Plugin State Folder]/Prompts/folder
Check session settings
- Open the session settings (gear icon) and verify the prompt is selected
AI Behaving Unexpectedly
Review prompt instructions
- Look for contradictions
- Ensure clarity
Check override settings
- System prompt override might be removing expected behaviors
- Try with
override_system_prompt: false
Test incrementally
- Start with simple instructions
- Add complexity gradually
Performance Issues
- Very long prompts may slow responses
- Keep prompts focused and concise
- Remove unnecessary instructions
Tips for Effective Prompts
- Start Simple: Begin with basic instructions and add complexity as needed
- Use Examples: Show the AI what you want with concrete examples
- Set Boundaries: Clearly state what the AI should and shouldn't do
- Iterate: Refine your prompts based on actual usage
- Document Success: Keep notes on what works well
Conclusion
Custom prompts are a powerful way to tailor Gemini Scribe to your specific needs. By creating thoughtful, well-structured prompts, you can transform the AI into a specialized assistant for any task. Start with the examples provided, experiment with your own ideas, and build a library of prompts that enhance your Obsidian workflow.
Remember: The best prompt is one that consistently produces the results you need. Don't hesitate to experiment and refine until you find what works for you.
Further Reading
- Prompts are Code: Treating AI Instructions Like Software — The philosophy behind treating prompts as versioned, testable code