Freewriting Prompts
pendingby Alexander Kucera
Generate AI-powered writing prompts for freewriting sessions using Anthropic's Claude.
Freewriting Prompts
Generate AI-powered writing prompts for freewriting sessions using Anthropic's Claude. Break through writer's block with creative, thought-provoking prompts delivered exactly when you need them.
Table of Contents
- Key Features
- Why This Plugin?
- Installation
- Quick Start
- Configuration
- Commands
- Settings
- Troubleshooting
- Contributing
- License
Key Features
- šÆ Two Prompt Modes: Timed notifications for writing sessions, or direct note insertion
- š¤ AI-Powered: Uses Anthropic's Claude models for creative, diverse prompt generation
- ā” Customizable Timing: Configure prompt count and delay intervals for your writing rhythm
- šØ Personalized Prompts: System prompts and examples to match your writing style
- š± Cross-Platform: Works on both desktop and mobile Obsidian
- š§ Smart Caching: Avoid redundant API calls with intelligent prompt caching
- š API Key Testing: Built-in connectivity testing with detailed feedback
- ā±ļø Real-Time Progress: Visual feedback for prompt generation and delivery
Why This Plugin?
Writer's block is real, and sometimes you need external inspiration to get the creative juices flowing. This plugin was born from the need for:
- Timed Writing Sessions: Get prompts delivered at intervals to maintain writing momentum
- Instant Inspiration: Generate multiple prompts directly in your notes when needed
- Quality Over Quantity: AI-generated prompts that are actually interesting and thought-provoking
- Seamless Integration: Works within your existing Obsidian workflow without disruption
Rather than browsing random prompt websites or books, get personalized, AI-generated prompts delivered right in your writing environment.
Perfect Plugin Combination
This plugin works exceptionally well with other freewriting tools to create a complete writing workflow:
āļø Freewriting Cleanup
Transform your messy freewriting into polished prose using AI. Perfect companion to this plugin:
- Generate inspiration with creative prompts from this plugin
- Write freely without worrying about mistakes
- Clean up the output with Freewriting Cleanup to polish your raw writing
š Digital Paper
Write without the ability to delete or edit - just like pen on paper. Perfect for true freewriting sessions:
- Enable Digital Paper mode to disable all delete functions (backspace, delete key, Ctrl+X)
- Use this plugin to generate writing prompts for inspiration
- Write continuously without stopping to edit or second-guess yourself
- Clean up afterwards using Freewriting Cleanup to polish the unedited output
Recommended Workflow:
- Generate prompts with this plugin when you need inspiration
- Enable Digital Paper mode for uninterrupted freewriting sessions
- Use Freewriting Cleanup to polish your raw, unedited writing into readable text
Installation
Method 1: Community Plugin Store (Recommended)
- Open Settings ā Community Plugins
- Disable Safe Mode if needed
- Click Browse and search for "Freewriting Prompts"
- Install and Enable the plugin
Method 2: Manual Installation
- Go to GitHub Releases
- Download the latest
main.js,manifest.json, andstyles.css - Create a folder
{VaultFolder}/.obsidian/plugins/freewriting-prompts/ - Place the downloaded files in this folder
- Reload Obsidian (
Ctrl/Cmd + Ror restart) - Enable the plugin in Settings ā Community Plugins
Method 3: BRAT (Beta Reviewer's Auto-update Tool)
- Install the BRAT plugin
- Add this repository:
https://github.com/AlexKucera/freewriting-prompts - Enable the plugin after installation
Quick Start
1. Get Your Anthropic API Key
- Visit Anthropic Console
- Create an account or sign in
- Generate an API key from the dashboard
- Copy the key (starts with
sk-ant-)
2. Configure the Plugin
- Go to Settings ā Community Plugins ā Freewriting Prompts
- Paste your API key in the Anthropic API Key field
- Click Test Connection to verify it works
- Adjust other settings as desired
3. Start Using Prompts
For Timed Writing Sessions:
- Use
Ctrl/Cmd + Pā "Show Timed Prompts" - Prompts will appear as notifications at your configured intervals
For Note Integration:
- Open any note and place your cursor where you want prompts
- Use
Ctrl/Cmd + Pā "Freewriting Prompt" - Prompts will be inserted directly into your note
Configuration
API Configuration
| Setting | Description | Default |
|---|---|---|
| API Key | Your Anthropic API key | (required) |
| Model | Claude model to use | claude-3-haiku-20240307 |
Command Configuration
| Setting | Description | Default | Range |
|---|---|---|---|
| Timed Count | Number of timed prompts | 10 | 1-50 |
| Delay Seconds | Seconds between prompts | 6 | 1-300 |
| Note Count | Prompts inserted in notes | 3 | 1-20 |
Prompt Customization
- System Prompt: Instructions for the AI on how to generate prompts
- Timed Example: Example prompt for timed sessions
- Freewriting Example: Example prompt for note insertion
Commands
Timed Freewriting Prompts
Delivers prompts as timed notifications perfect for writing sprints:
- Generates your configured number of prompts
- Shows the first prompt immediately
- Delivers remaining prompts at your specified intervals
- Each notification shows "Prompt X/Y" with the writing prompt
Use Cases:
- Timed writing sessions (Pomodoro technique)
- Breaking through writer's block
- Maintaining writing momentum
- Creative warm-up exercises
Freewriting Prompt
Inserts prompts directly into your current note:
- Generates prompts based on your settings
- Inserts them at your cursor position
- Formats as a timestamped list
- Perfect for collecting prompts for later use
Use Cases:
- Building prompt collections
- Planning writing sessions
- Creating prompt libraries
- Inspiration gathering
Stop Timed Prompts
Cancels any running timed prompt sequence.
Settings
Advanced Features
-
Test API Key: Verify your connection with detailed feedback including:
- Response time
- Token usage
- Model confirmation
- Specific error messages for troubleshooting
-
Clear Cache: Force regeneration of prompts by clearing the 10-minute cache
Supported Models
- claude-3-haiku-20240307 (fastest, most cost-effective)
- claude-3-sonnet-20240229 (balanced performance)
- claude-3-opus-20240229 (highest quality)
- claude-3-5-sonnet-20241022 (latest sonnet)
- claude-3-5-haiku-20241022 (latest haiku)
Troubleshooting
Common Issues
| Problem | Solution |
|---|---|
| "API key is required" | Enter your Anthropic API key in settings |
| "Network error" | Check internet connection and API key validity |
| "Rate limit exceeded" | Wait a moment and try again, or upgrade your Anthropic plan |
| No prompts generated | Verify API key works with the test button |
Error Messages
The plugin provides detailed error messages for different scenarios:
- 401 Unauthorized: Invalid API key
- 403 Forbidden: Account or billing issues
- 429 Rate Limited: Too many requests
- 500 Server Error: Anthropic service issues
- Network Error: Connection problems
Debug Steps
- Test API Key: Use the "Test Connection" button in settings
- Check Console: Open Developer Tools (F12) for detailed error logs
- Verify Settings: Ensure all required fields are filled
- Clear Cache: Try clearing the prompt cache
- Restart Plugin: Disable and re-enable the plugin
Getting Help
- Issues: Report bugs on GitHub Issues
- Discussions: Ask questions in GitHub Discussions
Development
Setup
# Clone the repository
git clone https://github.com/AlexKucera/freewriting-prompts.git
cd freewriting-prompts
# Install dependencies
npm install
# Start development server
npm run dev
Project Structure
freewriting-prompts/
āāā api/
ā āāā anthropicClient.ts # Anthropic API integration
āāā commands/
ā āāā timedPrompts.ts # Timed notification prompts
ā āāā notePrompts.ts # Note insertion prompts
āāā services/
ā āāā promptGenerator.ts # Prompt generation service
āāā main.ts # Plugin entry point
āāā settings.ts # Settings interface
āāā types.ts # Type definitions
Build Commands
npm run dev # Development with file watching
npm run build # Production build with type checking
npm run version # Version bump and manifest update
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Guidelines
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Follow TypeScript and ESLint conventions
- Test your changes thoroughly
- Commit with descriptive messages
- Submit a Pull Request
License
This project is licensed under the GNU General Public License v3 (GPLv3) - see the LICENSE file for details.
Support
If you find this plugin helpful, consider supporting its development:
Contact
Author: Alexander Kucera Website: alexanderkucera.com GitHub: @AlexKucera
Happy writing! šāØ
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.