Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
"source": "pstack",
"description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence."
},
{
"name": "ai-prompt-snippets",
"source": "ai-prompt-snippets",
"description": "Reusable AI prompt commands for common coding workflows in Cursor."
},
{
"name": "gmail",
"source": "third_party/gmail",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Official Cursor plugins for popular developer tools, frameworks, and SaaS produc
| `cursor-sdk` | [Cursor SDK](cursor-sdk/) | Cursor | Developer Tools | Build apps, scripts, and automations with the TypeScript SDK. |
| `orchestrate` | [Orchestrate](orchestrate/) | Cursor | Developer Tools | Fan large tasks out across parallel cloud agents with planners, workers, verifiers, and structured handoffs. |
| `pstack` | [pstack](pstack/) | Lauren Tan | Developer Tools | if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. |
| `ai-prompt-snippets` | [AI Prompt Snippets](ai-prompt-snippets/) | sarathkumar1207 | Developer Tools | Reusable AI prompt commands for common coding workflows in Cursor. |
| `gmail` | [Gmail](third_party/gmail/) | Cursor | Productivity | Search, read, draft, and manage email. |
| `google-drive` | [Google Drive](third_party/google-drive/) | Cursor | Productivity | Search, read, create, and share files. |
| `google-calendar` | [Google Calendar](third_party/google-calendar/) | Cursor | Productivity | Search events and schedule meetings. |
Expand Down
29 changes: 29 additions & 0 deletions ai-prompt-snippets/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "ai-prompt-snippets",
"displayName": "AI Prompt Snippets",
"version": "1.0.0",
"description": "Reusable AI prompt commands for common coding workflows in Cursor.",
"author": {
"name": "sarathkumar1207"
},
"homepage": "https://github.com/cursor/plugins",
"repository": "https://github.com/cursor/plugins",
"license": "MIT",
"logo": "assets/logo.svg",
"keywords": [
"ai",
"prompts",
"commands",
"code-review",
"testing",
"documentation"
],
"category": "developer-tools",
"tags": [
"ai",
"prompts",
"productivity"
],
"commands": "./commands/",
"skills": "./skills/"
}
5 changes: 5 additions & 0 deletions ai-prompt-snippets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 1.0.0

- Initial release with reusable AI prompt commands and a prompt-snippets skill.
21 changes: 21 additions & 0 deletions ai-prompt-snippets/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 sarathkumar1207

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions ai-prompt-snippets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# AI Prompt Snippets

AI Prompt Snippets gives Cursor users reusable AI commands for everyday coding tasks.

## Commands

- Explain selected code
- Review selected code
- Write tests
- Refactor for readability
- Generate documentation

## Skill

The included `prompt-snippets` skill helps agents use concise, scoped prompts for common development workflows.

## Usage

Install the plugin in Cursor, open the command palette, and run one of the AI Prompt Snippets commands while a file or selection is active.

For best results, select the relevant code before running a command.
8 changes: 8 additions & 0 deletions ai-prompt-snippets/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions ai-prompt-snippets/commands/explain-selected-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: explain-selected-code
description: Explain the selected code clearly and identify important behavior, dependencies, and risks.
---

# Explain selected code

Explain the selected code in clear, practical language.

Include:

- What the code does
- The main control flow
- Important inputs and outputs
- External dependencies or side effects
- Any confusing, risky, or surprising behavior

Keep the explanation concise and point to specific lines or symbols when useful.
18 changes: 18 additions & 0 deletions ai-prompt-snippets/commands/generate-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: generate-docs
description: Generate concise documentation for the selected code, command, function, or module.
---

# Generate documentation

Generate concise documentation for the selected code.

Include:

- Purpose
- Inputs and outputs
- Important options or configuration
- Example usage when helpful
- Known limitations or assumptions

Match the documentation style already used in the project.
18 changes: 18 additions & 0 deletions ai-prompt-snippets/commands/refactor-for-readability.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: refactor-for-readability
description: Refactor selected code to improve readability while preserving existing behavior.
---

# Refactor for readability

Refactor the selected code to improve readability without changing behavior.

Guidelines:

- Keep the change small and focused.
- Preserve public APIs and observable behavior.
- Prefer clearer names and simpler control flow.
- Avoid introducing new dependencies.
- Mention any behavior that could not be verified from local context.

After the refactor, summarize the changes and recommend validation steps.
18 changes: 18 additions & 0 deletions ai-prompt-snippets/commands/review-selected-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: review-selected-code
description: Review selected code for bugs, edge cases, maintainability issues, and missing tests.
---

# Review selected code

Review the selected code as if it is part of a pull request.

Prioritize:

- Bugs or incorrect behavior
- Edge cases
- Security or privacy risks
- Missing tests
- Readability and maintainability problems

Report findings first, ordered by severity. For each finding, explain the risk and suggest a concrete fix.
16 changes: 16 additions & 0 deletions ai-prompt-snippets/commands/write-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: write-tests
description: Generate focused tests for the selected code using the project's existing test style.
---

# Write tests

Write focused tests for the selected code.

Before writing tests:

- Inspect nearby tests and reuse the existing style.
- Cover normal behavior, edge cases, and failure paths.
- Avoid broad rewrites unless the current code is hard to test.

After writing tests, explain what scenarios are covered and how to run the relevant test command.
20 changes: 20 additions & 0 deletions ai-prompt-snippets/skills/prompt-snippets/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: prompt-snippets
description: Use reusable AI prompts for common coding workflows in Cursor, including explanations, reviews, tests, refactors, and documentation.
---

# Prompt snippets

## When to use

- You want a consistent prompt for a repeated AI coding task.
- You are helping a beginner ask Cursor for better coding assistance.
- You want review, test, refactor, or documentation prompts that are scoped to the current code.

## Instructions

1. Ask the user to select the relevant code or file when context is unclear.
2. Prefer focused prompts that mention the expected output format.
3. Preserve the existing project style unless the user asks for a broader change.
4. Call out assumptions before making code changes.
5. Suggest validation steps after generating or changing code.