Write better prompts, get better AI responses! Instantly transform rough ideas into polished, structured prompts that unlock the full power of ChatGPT, Claude & LLMs.
✨ What is PromptLint?
PromptLint is a VS Code extension that helps you write better prompts for AI systems like ChatGPT, Claude, and other LLMs. It takes your rough, unstructured prompts and transforms them into clear, well-organized prompts that get better results.
🎯 Key Features
- One-Click Refactoring - Select any text and instantly improve it
- Interactive Panel - Dedicated UI for writing and refining prompts
- Multiple Output Options - Replace text, open in new tab, or copy to clipboard
- Context Menu Integration - Right-click to refactor selected text
- Supports Multiple LLMs - Works with OpenAI, Claude, and compatible APIs
📸 Screenshots
Interactive Prompt Editor Panel


🚀 Getting Started
Installation
- Open VS Code
- Go to Extensions (
Cmd+Shift+X / Ctrl+Shift+X)
- Search for "PromptLint"
- Click Install
Setup Your API Key
- Open VS Code Settings (
Cmd+, / Ctrl+,)
- Search for "PromptLint"
- Enter your OpenAI API key in the Api Key field
- (Optional) Change the model or endpoint

💡 Tip: Get your API key from OpenAI Platform
📖 How to Use
Method 1: Interactive Panel
- Press
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type "PromptLint: Open Prompt Editor Panel"
- Enter your rough prompt in the text area
- Click "✨ Refactor Prompt"
- Copy the improved prompt!
Method 2: Refactor Selected Text
- Select any text in your editor
- Either:
- Press
Cmd+Shift+P → "PromptLint: Refactor Selected Prompt"
- Or Right-click → "PromptLint: Refactor Selected Prompt"
- Choose where to output:
- Replace Selection - Replaces the selected text
- Open in New Tab - Creates a new file with the result
- Copy to Clipboard - Copies for pasting elsewhere
⚙️ Configuration
| Setting |
Default |
Description |
promptlint.apiKey |
"" |
Your OpenAI or Claude API key |
promptlint.apiEndpoint |
https://api.openai.com/v1/chat/completions |
API endpoint URL |
promptlint.model |
gpt-4 |
Model to use (e.g., gpt-4o-mini, gpt-4-turbo) |
promptlint.maxTokens |
2048 |
Maximum tokens for responses |
Using with Claude
To use with Anthropic's Claude:
{
"promptlint.apiEndpoint": "https://api.anthropic.com/v1/messages",
"promptlint.model": "claude-3-sonnet-20240229"
}
🔄 Example
Before (Raw Prompt)
write code for login
After (Refactored by PromptLint)
# Role
You are an expert software developer specializing in authentication systems.
# Task
Create a secure user login implementation with the following requirements:
## Requirements
- User authentication with email/username and password
- Input validation and sanitization
- Secure password handling (hashing)
- Session management
- Error handling for invalid credentials
## Constraints
- Follow security best practices (OWASP guidelines)
- Include comments explaining the code
- Handle edge cases gracefully
## Output Format
Provide the complete code with:
1. Required imports/dependencies
2. Main login function
3. Helper functions
4. Example usage
Please specify the programming language/framework you'd like me to use.
🛠️ Commands
| Command |
Description |
PromptLint: Open Prompt Editor Panel |
Opens the interactive prompt editor |
PromptLint: Refactor Selected Prompt |
Refactors the currently selected text |
❓ FAQ
Q: Which LLM models are supported?
A: Any OpenAI-compatible API (GPT-4, GPT-3.5, Claude, etc.)
Q: Is my API key secure?
A: Yes, it's stored in VS Code's secure settings storage
Q: Why am I getting "Rate limit exceeded"?
A: Your API key has hit its usage limit. Check your OpenAI dashboard or try a different model like gpt-4o-mini
Q: Can I use this offline?
A: No, it requires an internet connection to reach the LLM API
📝 Changelog
See CHANGELOG.md for version history.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature)
- Commit your changes (
git commit -m 'Add some AmazingFeature')
- Push to the branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
👨💻 Author
Santan Sharma
⭐ Support
If you find PromptLint helpful, please:
- ⭐ Star the repository
- 📝 Leave a review on the VS Code Marketplace
- 🐛 Report issues on GitHub
Made with ❤️ by Santan Sharma