cursor-custom-prompts

Featured

Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates. Triggers on "cursor prompts", "prompt engineering cursor", "better cursor prompts", "cursor instructions", "cursor prompt templates".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cursor Custom Prompts Create effective prompts for Cursor AI. Covers prompt engineering fundamentals, reusable templates stored in project rules, and advanced techniques for consistent, high-quality code generation. ## Prompt Anatomy A well-structured Cursor prompt has four parts: ``` 1. CONTEXT → @-mentions pointing to relevant code 2. TASK → What you want done (specific, actionable) 3. CONSTRAINTS → Rules, patterns, limitations 4. FORMAT → How the output should look ``` ### Example: All Four Parts ``` @src/api/users/route.ts @src/types/user.ts ← CONTEXT Create a new API endpoint for updating user profiles. ← TASK Constraints: ← CONSTRAINTS - Follow the same pattern as the users route - Use Zod for input validation - Return 400 for invalid input, 404 for missing user - Only allow updating: name, email, avatarUrl Return the endpoint code and the Zod schema as ← FORMAT separate code blocks. ``` ## Prompt Templates ### Template: Feature Implementation ``` @[existing-similar-feature] @[relevant-types] Implement [feature name] following the pattern in [reference file]. Requirements: - [requirement 1] - [requirement 2] - [requirement 3] Constraints: - Same error handling pattern as [reference] - Same file structure as [reference] - Include TypeScript types for all public interfaces ``` ### Template: Bug Fix ``` @[buggy-file] @Lint Errors Bug: [describe the incorrect behavior] Expected: [describe co...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category