Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Prompt Library Mcp PluginNew to Visual Studio Code? Get it now.
Prompt Library Mcp Plugin

Prompt Library Mcp Plugin

Prompt Library Mcp Plugin

|
3 installs
| (0) | Free
A generic prompt library for GitHub Copilot Chat
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Prompt Library VS Code Extension

A minimal VS Code extension that provides a generic prompt library for GitHub Copilot Chat. The extension reads prompt/agent markdown files under .github/ and makes them available as chat commands.

Features

  • Generic prompt library system that reads from markdown files
  • Easy to extend with new prompts
  • Integration with GitHub Copilot Chat

Available Commands

/code-review

Runs the code review prompt.

/Test

Generates test cases.

/ultimate-secure-fix

Scans the current file for security vulnerabilities.

/update-impl

Refactors code to use Java 8 features.

Project Structure

.
├── .github/
│   ├── agents/               # Agent instructions (YAML frontmatter)
│   └── prompts/              # Prompt templates
├── src/
│   └── extension.ts          # Main extension code
├── package.json              # Extension manifest
├── tsconfig.json            # TypeScript configuration
└── README.md

How to Use

  1. Install dependencies:

    npm install
    
  2. Compile the extension:

    npm run compile
    
  3. Press F5 in VS Code to launch the extension in a new Extension Development Host window

  4. Open GitHub Copilot Chat and use one of:

    • @prompt-library /code-review
    • @prompt-library /Test
    • @prompt-library /ultimate-secure-fix
    • @prompt-library /update-impl

Adding New Prompts

To add a new prompt:

  1. Create a new markdown file in the prompts/ folder (e.g., prompts/my-prompt.md)
  2. Write your prompt content in the markdown file
  3. Add a new command in package.json under contributes.chatParticipants[0].commands
  4. Add an entry to the COMMAND_PROMPT_MAP in src/extension.ts mapping the command name to the prompt file

Development

  • Compile: npm run compile
  • Watch mode: npm run watch

Requirements

  • VS Code 1.106.0 or higher
  • GitHub Copilot extension
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft