Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>PromptOSNew to Visual Studio Code? Get it now.
PromptOS

PromptOS

Pesandu Rashodya

|
2 installs
| (0) | Free
Grammarly-for-prompts: enhance developer prompts, show rationale and pipe to an LLM.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PromptOS - Grammarly for Your AI Prompts

Transform simple prompts into powerful, context-rich instructions that help GitHub Copilot understand exactly what you need.

Boost your AI coding assistant prompts with intelligent enhancement — right inside VS Code!


✨ What is PromptOS?

PromptOS is like having a prompt engineering expert on your team. It takes your basic prompts and enhances them with:

  • 🎯 Technical Context - Adds language-specific requirements and best practices
  • 📋 Task-Specific Guidelines - Detects what you're trying to do (bug fix, feature, refactor) and provides relevant guidance
  • 🛡️ Constraints & Quality Criteria - Ensures AI responses meet professional standards
  • 📖 Structured Output Format - Guides the AI to provide comprehensive, organized answers

Result? Better, more accurate responses from GitHub Copilot and other AI assistants.


🚀 Quick Start

Use in Copilot Chat (One-Shot Mode)

Open GitHub Copilot Chat and type:

@promptos enhance create a REST API for user authentication

That's it! PromptOS will:

  1. ✨ Enhance your prompt with technical context and best practices
  2. 🤖 Automatically generate the code using the enhanced prompt
  3. 📋 Return the complete implementation - no copy-paste needed!

Create Reusable Prompt Files

Perfect for common tasks you repeat:

  1. Command Palette → PromptOS: Create New Prompt File
  2. Write your base prompt in .github/prompts/your-prompt.prompt.md
  3. Right-click → Enhance Prompt File
  4. Use the enhanced version with any AI assistant

💡 Real Example

Your Basic Prompt:

fix the authentication bug in login.ts

PromptOS Enhanced Prompt:

# Enhanced Prompt for login.ts

## Role & Expertise
You are an expert Senior Software Engineer specializing in TypeScript with deep knowledge of:
- Authentication patterns and security best practices
- JWT token handling and session management
- Test-driven development (TDD)
- SOLID design principles

## Task Request
Fix the authentication bug in login.ts

**Task Type**: Bug Fix / Error Resolution

### Bug Fix Guidelines:
- Identify root cause through debugging
- Verify fix doesn't introduce security vulnerabilities
- Add regression tests to prevent recurrence
- Update authentication flow documentation

## Constraints & Requirements
✓ Preserve existing authentication API contracts
✓ Maintain backward compatibility with current sessions
✓ Add comprehensive error handling for auth failures
✓ Include security audit trail logging
✓ Follow OWASP authentication guidelines

## Expected Output Format
1. **Root Cause Analysis**: What caused the bug
2. **Implementation**: Fixed code with proper error handling
3. **Security Considerations**: Vulnerabilities addressed
4. **Testing**: Unit and integration test cases
5. **Documentation**: Updated auth flow diagrams

## Additional Context
- Language: TypeScript
- File: login.ts
- Quality Target: Production-ready, security-hardened code

See the difference? Your AI assistant now has crystal-clear instructions!


📖 Features

🤖 Inline Chat Integration

  • Use @promptos enhance <your prompt> directly in Copilot Chat
  • No copy-paste needed
  • Works with any GitHub Copilot subscription

📁 .prompt.md File Support

  • Create reusable prompt templates in .github/prompts/
  • Right-click any .prompt.md file → Enhance Prompt File
  • Perfect for team standards and common workflows

🧠 Intelligent Enhancement

  • Task Detection: Automatically identifies bug fixes, features, refactoring, testing, etc.
  • Smart Templates: Fallback enhancement when AI isn't available
  • Context-Aware: Uses your current file, language, and code selection

⚡ Powered by GitHub Copilot

  • Uses VS Code's Language Model API
  • No external API keys required
  • Works with your existing Copilot subscription

📋 Commands

Command Description
@promptos enhance <prompt> Enhance prompt in Copilot Chat
PromptOS: Enhance Prompt File Enhance .prompt.md file
PromptOS: Create New Prompt File Create template in .github/prompts/

🎯 Use Cases

🐛 Bug Fixes

Before: "fix the error"
After: Detailed debugging strategy with root cause analysis, testing requirements, and security considerations

✨ Feature Development

Before: "add user settings"
After: Complete implementation plan with UI/UX guidelines, state management, API contracts, and accessibility requirements

🔧 Code Refactoring

Before: "improve this code"
After: Structured refactoring approach with performance metrics, design patterns, and backward compatibility checks

✅ Test Writing

Before: "write tests"
After: Comprehensive test strategy covering unit, integration, edge cases, and code coverage targets


🛠️ Requirements

  • VS Code: Version 1.85.0 or higher
  • GitHub Copilot: Active subscription (for AI-powered enhancement)
  • Alternative: Works offline with smart template enhancement (no Copilot needed)

🔧 How It Works

graph LR
    A[Your Basic Prompt] --> B{PromptOS}
    B --> C[Detects Task Type]
    B --> D[Adds Context]
    B --> E[Structures Format]
    C --> F[Enhanced Prompt]
    D --> F
    E --> F
    F --> G[GitHub Copilot]
    G --> H[Better AI Response]
  1. You write a simple prompt
  2. PromptOS detects what you're trying to accomplish
  3. Adds technical context from your workspace
  4. Structures the request with guidelines and constraints
  5. GitHub Copilot responds with higher-quality, more accurate code

🌟 Why PromptOS?

Without PromptOS With PromptOS
❌ Vague AI responses ✅ Precise, targeted solutions
❌ Missing edge cases ✅ Comprehensive error handling
❌ Inconsistent code style ✅ Follows project conventions
❌ Unclear requirements ✅ Well-documented expectations
❌ Trial and error ✅ Right answer first time

💬 Feedback & Support

  • 💼 Questions or feedback? Connect on LinkedIn
  • 🐛 Found a bug? Reach out via LinkedIn
  • 💡 Feature ideas? Share them on LinkedIn

📄 License

MIT License © PesaDev


Transform your prompts. Elevate your code. Try PromptOS today! 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft