Agent skill

Cursor Custom Prompts

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates.

MITAuto-check passedAI & LLM Engineering

Install Cursor Custom Prompts

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill cursor-custom-prompts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace cursor-custom-prompts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/cursor-custom-prompts .claude/skills/cursor-custom-prompts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cursor-custom-prompts
GitHub stars
2.8k
Token cost
~2.3k tokens
SKILL.md length
441 words
Files
9 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates.

  • Works in 4 steps: State the scope, inputs, constraints,… → Keep prompts free of credentials,… → Evaluate the prompt against a fixture,… → …
  • Prompt engineering cursor
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 9 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cursor Custom Prompts is an agent skill from jeremylongshore/tons-of-skills-marketplace. 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".

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/.cursorrules-integration.md`, `references/advanced-techniques.md` and `references/best-practices.md`). Compatibility notes: Designed for Claude Code

It sits in AI & LLM Engineering, covering Prompt engineering. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Prompt engineering cursor
  • Better cursor prompts
  • Cursor instructions
  • Cursor prompt templates

Example prompts

  • “cursor prompts”
  • “prompt engineering cursor”
  • “better cursor prompts”
  • “/cursor-custom-prompts”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(cmd:*)

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. State the scope, inputs, constraints, acceptance checks, and explicit non-goals.
  2. Keep prompts free of credentials, customer data, and contradictory instructions; reference reviewed rules rather than duplicating them.
  3. Evaluate the prompt against a fixture, inspect the diff/output, and version shared prompts through normal review.
  4. Retire or revise prompts that produce policy, quality, or security regressions.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(cmd:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.cursor.com
    • platform.openai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Cursor Custom Prompts loads about 2.3k tokens when it runs, and up to ~3.8k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 441 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 441 words, ~2,253 tokens.

Download SKILL.mdSave it as .claude/skills/cursor-custom-prompts/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
cursor-custom-prompts
description
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".
allowed-tools
Read, Write, Edit, Bash(cmd:*)
compatibility
Designed for Claude Code
version
1.19.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, cursor, cursor-custom

Cursor Custom Prompts

Overview

Create reusable prompts that encode approved engineering practice without injecting secrets, bypassing repository controls, or replacing human review.

Prerequisites

  • A defined task class, source-of-truth repository rules, and a maintainer for prompt changes.
  • A non-sensitive evaluation fixture and review path for any shared prompt.

Instructions

  1. State the scope, inputs, constraints, acceptance checks, and explicit non-goals.
  2. Keep prompts free of credentials, customer data, and contradictory instructions; reference reviewed rules rather than duplicating them.
  3. Evaluate the prompt against a fixture, inspect the diff/output, and version shared prompts through normal review.
  4. Retire or revise prompts that produce policy, quality, or security regressions.

Output

  • A versioned, scoped reusable prompt with expected checks and a named owner.

Error Handling

ConditionSafe response
Prompt generates over-broad changesNarrow its file/task constraints and require a diff review.
Prompt conflicts with repository rulesTreat rules as authoritative and update/remove the prompt.
Prompt includes sensitive dataRemove it, follow exposure procedure, and replace with sanitized placeholders.

Examples

For a test-writing prompt, specify the exact target module, existing test framework, failure behavior, and command to run. Review the generated test diff and reject it if it changes production code or hard-codes secrets.

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 correct behavior]
Steps to reproduce: [1, 2, 3]

The error message is: [paste error]

Find the root cause and suggest a fix. Do not change
the public API surface.
Template: Code Review
@[file-to-review]

Review this code for:
1. Logic errors or edge cases
2. Security vulnerabilities (injection, XSS, auth bypass)
3. Performance issues (N+1 queries, unnecessary re-renders)
4. TypeScript type safety (any casts, missing generics)
5. Naming and readability

List issues as: [severity] [line/area] [description] [suggestion]
Template: Test Generation
@[source-file] @[existing-test-file]

Generate tests for [function/class name] covering:
- Happy path with valid inputs
- Edge cases: empty input, null, undefined, max values
- Error cases: invalid input, missing required fields
- Async behavior: success and failure scenarios

Follow the same test structure as [existing-test-file].
Use [vitest/jest/pytest] assertions.
Template: Refactoring
@[file-to-refactor]

Refactor this code to [goal]:
- [specific change 1]
- [specific change 2]

Do NOT change:
- The public API (function signatures, return types)
- The test behavior (existing tests must still pass)
- External imports

Storing Prompts as Project Rules

Convert frequently used prompts into .cursor/rules/ for automatic injection:

yaml
# .cursor/rules/code-generation.mdc
---
description: "Standards for AI-generated code"
globs: ""
alwaysApply: true
---
When generating code, always:
1. Add JSDoc comments on all exported functions
2. Include error handling (never let functions throw unhandled)
3. Use named exports (never default exports)
4. Add `import type` for type-only imports
5. Prefer const arrow functions for pure utilities
6. Use discriminated unions over boolean flags

When generating TypeScript:
- Strict mode: no `any`, no `as` casts without justification
- Prefer `unknown` over `any` for unknown types
- Use `satisfies` operator for type narrowing
- Infer types where TypeScript can; annotate where it cannot
yaml
# .cursor/rules/test-patterns.mdc
---
description: "Test generation standards"
globs: "**/*.test.ts,**/*.spec.ts"
alwaysApply: false
---
When generating tests:
- Use describe/it blocks with readable descriptions
- Arrange/Act/Assert pattern (AAA)
- One assertion per test (prefer multiple focused tests)
- Mock external dependencies, not internal utilities
- Use factory functions for test data (not inline objects)
- Name test files: {module}.test.ts colocated with source
Show full SKILL.md (175 more words)Show less

Advanced Prompting Techniques

Chain of Thought

Force the AI to reason before generating:

@src/services/billing.service.ts

I need to add proration logic for subscription upgrades.

Before writing code, first:
1. List the variables involved (current plan, new plan, billing cycle)
2. Show the proration formula with a concrete example
3. Identify edge cases (upgrade on last day, downgrade, free trial)

Then implement based on your analysis.
Few-Shot Examples

Provide examples of what you want:

Convert these function signatures to the Result pattern:

Example input:
  async function getUser(id: string): Promise<User>

Example output:
  async function getUser(id: string): Promise<Result<User, NotFoundError>>

Now convert these:
- async function createOrder(input: CreateOrderInput): Promise<Order>
- async function deleteAccount(userId: string): Promise<void>
- async function sendEmail(to: string, body: string): Promise<boolean>
Negative Constraints

Tell the AI what NOT to do:

Create a React form component for user registration.

DO NOT:
- Use class components
- Use any CSS-in-JS library
- Add client-side validation (server validates)
- Use controlled inputs for every field (use react-hook-form)
- Import anything not already in package.json
Iterative Refinement

Build up complexity in steps:

Turn 1: "Create a basic Express route for GET /api/products"
Turn 2: "Add pagination with page and limit query params"
Turn 3: "Add filtering by category and price range"
Turn 4: "Add sorting by any field with asc/desc direction"
Turn 5: "Add input validation and comprehensive error responses"

Each turn adds one layer. The AI maintains context from previous turns.

Common Prompt Anti-Patterns

Anti-PatternProblemBetter Approach
"Make it better"Too vague"Add error handling for network failures"
"Rewrite everything"Scope too large"Refactor the validation logic in lines 40-80"
No context filesAI guesses patternsAlways add @Files references
Wall of text promptAI misses key pointsUse numbered lists and headers
"Do what you think is best"AI makes assumptionsSpecify requirements explicitly

Enterprise Considerations

  • Prompt libraries: Maintain a team-shared library of effective prompts in a wiki or docs/ directory
  • Standardization: Use .cursor/rules/ to encode team prompt standards so all developers get consistent behavior
  • Security: Never include real credentials, PII, or regulated data in prompts
  • Reproducibility: Document effective prompts alongside their output for knowledge sharing

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in skills/.curated/cursor-custom-prompts of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/.cursorrules-integration.md
  • references/advanced-techniques.md
  • references/best-practices.md
  • references/domain-specific-prompts.md
  • references/errors.md
  • references/examples.md
  • references/prompt-engineering-fundamentals.md
  • references/prompt-templates.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Cursor Custom Prompts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cursor Custom Prompts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cursor Custom Prompts this skilljeremylongshore/tons-of-skills-marketplace2.8k—~2.3kAutomated safety check: PassMIT
Create Simple Promptpnp/copilot-prompts893—~2.6kAutomated safety check: PassMIT
Codex Fable5baskduf/FableCodex437—~1.6kAutomated safety check: PassAGPL-3.0
Prompt Engineering Patternswshobson/agents40k—~1.3kAutomated safety check: PassMIT
System Prompt Writing Guidecashew-labs/libretto904—~570Automated safety check: PassMIT
Lintlang Audithermes-labs-ai/lintlang140—~1.8kAutomated safety check: PassApache-2.0

Similar skills

  • Create Simple Prompt

    pnp/copilot-prompts

    This skill should be used when the user asks to "create a new prompt sample", "add a new prompt sample", "scaffold a new prompt sample", "create a prompt contribution", "add a prompt", or needs to…

    893 GitHub stars~2.6k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Codex Fable5

    baskduf/FableCodex

    Apply a Claude Fable 5 inspired operating style inside Codex.

    437 GitHub stars~1.6k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.

    40k GitHub stars~1.3k tokensUpdated 6 days ago
    AI & LLM EngineeringAuto-check passed
  • System Prompt Writing Guide

    cashew-labs/libretto

    Lays out a minimal, iteration-first approach to writing system prompts for LLM agents, with model-specific notes for Claude, GPT, Gemini, and Codex.

    904 GitHub stars~570 tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Lintlang Audit

    hermes-labs-ai/lintlang

    Audit a named AI agent config, system prompt, tool-definition or instruction file (YAML, JSON, Markdown, text, or Python) with the released LintLang CLI, on request.

    140 GitHub stars~1.8k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • AI Wrapper Product

    davila7/claude-code-templates

    Expert in building products that wrap AI APIs (OpenAI, Anthropic, etc.) into focused tools people will pay for.

    33k GitHub starsUsed in 4 repos~1.7k tokens
    AI & LLM EngineeringAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Cursor Custom Prompts

What does Cursor Custom Prompts do?

Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates. Cursor Custom Prompts is an agent skill from jeremylongshore/tons-of-skills-marketplace. Create effective custom prompts for Cursor AI using project rules, prompt engineering patterns, and reusable templates.

When should I use Cursor Custom Prompts?

Cursor Custom Prompts fits situations like: prompt engineering cursor; better cursor prompts; Cursor instructions; Cursor prompt templates.

How do I install Cursor Custom Prompts in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill cursor-custom-prompts -a claude-code`. Or copy the skill folder (skills/.curated/cursor-custom-prompts in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/cursor-custom-prompts in your project. Claude Code loads it when a task matches its description.

How do I install Cursor Custom Prompts in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill cursor-custom-prompts -a codex`. Or copy the skill folder (skills/.curated/cursor-custom-prompts in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/cursor-custom-prompts in your project. Codex loads it when a task matches its description.

Can I use Cursor Custom Prompts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill cursor-custom-prompts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cursor-custom-prompts, .gemini/skills/cursor-custom-prompts, .github/skills/cursor-custom-prompts and .opencode/skills/cursor-custom-prompts in your project.

What does Cursor Custom Prompts need to run?

SKILL.md names no scripts, command-line tools or credentials: Cursor Custom Prompts is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(cmd:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Cursor Custom Prompts access the network?

SKILL.md names 2 domains. As links in the text: docs.cursor.com and platform.openai.com. This is read from the text; nothing was executed.

Is Cursor Custom Prompts safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cursor Custom Prompts use?

Cursor Custom Prompts is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cursor Custom Prompts use?

About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Cursor Custom Prompts?

Skills that share tags, products or a category with Cursor Custom Prompts: Create Simple Prompt (pnp/copilot-prompts, 893 stars), Codex Fable5 (baskduf/FableCodex, 437 stars), Prompt Engineering Patterns (wshobson/agents, 40k stars) and System Prompt Writing Guide (cashew-labs/libretto, 904 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cursor Custom Prompts?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.