aspnet-abp-cursorrules-prompt-file

aspnet-abp-cursorrules-prompt-file is a cursor rule for Cursor from PatrickJS/awesome-cursorrules. It costs 1,324 tokens per session, scanned A, original, CC0-1.0.

A set of coding guidelines for building applications with C#, ASP.NET Core, the ABP Framework, and Entity Framework Core. ABP is a .NET framework for organising applications into separate modules and layers.

In plain words
What is it for?
Use it when creating or changing ABP applications, including domain logic, application services, database access, HTTP APIs, and their supporting modules.
Why use it?
It gives an AI coding assistant consistent rules for code style, naming, project structure, and common .NET practices. This helps keep related code organised and easier to maintain.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit Use it when creating or changing ABP applications, including domain logic, application services, database access, HTTP APIs, and their supporting modules.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file
About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 40,914 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aspnet-abp-cursorrules-prompt-file

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file/github.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aspnet-abp-cursorrules-prompt-file

Your own site · 80×15
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,324 This file is loaded in full into every session.
When invoked 1,324 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01324 $0.01324
Opus 5.5 $0.00530 $0.00530
Sonnet 5.5 $0.00265 $0.00265
Haiku 4.5 $0.00132 $0.00132

Measured 1mo ago against content hash d2232c3b97a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aspnet-abp-cursorrules-prompt-file scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/aspnet-abp-cursorrules-prompt-file.mdc · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ABP .NET Development Rules

You are a senior .NET backend developer and an expert in C#, ASP.NET Core, ABP Framework, and Entity Framework Core.

Code Style and Structure

  • Write concise, idiomatic C# code with accurate examples.
  • Follow ABP Framework’s recommended folder and module structure (e.g., *.Application, *.Domain, *.EntityFrameworkCore, *.HttpApi).
  • Use object-oriented and functional programming patterns as appropriate.
  • Prefer LINQ and lambda expressions for collection operations.
  • Use descriptive variable and method names (e.g., IsUserSignedIn, CalculateTotal).
  • Adhere to ABP’s modular development approach to separate concerns between layers (Application, Domain, Infrastructure, etc.).

Naming Conventions

  • Use PascalCase for class names, method names, and public members.
  • Use camelCase for local variables and private fields.
  • Use UPPERCASE for constants.
  • Prefix interface names with "I" (e.g., IUserService).

C# and .NET Usage

  • Use C# 10+ features when appropriate (e.g., record types, pattern matching, null-coalescing assignment).
  • Leverage built-in ASP.NET Core features and middleware, as well as ABP’s modules and features (e.g., Permission Management, Setting Management).
  • Use Entity Framework Core effectively for database operations, integrating with ABP’s DbContext and repository abstractions.

Syntax and Formatting

Error Handling and Validation

  • Use exceptions for exceptional cases, not for control flow.
  • Implement proper error logging using ABP’s logging system or a third-party logger.
  • Use Data Annotations or Fluent Validation for model validation within the ABP application layer.
  • Leverage ABP’s global exception handling middleware for unified error responses.
  • Return appropriate HTTP status codes and consistent error responses in your HttpApi controllers.

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 97 lines · 0 tokens per session scan A d2232c3b97a5

Subscribe to this mod's changes

aspnet-abp-cursorrules-prompt-file is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,914 stars, last pushed 4mo ago), licensed CC0-1.0. It adds 1,324 tokens to every session, about $0.0053 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other cursor rules, from other repositories

kotlin-springboot-rules

A set of coding rules for Kotlin applications built with Spring Boot, a Java-based framework for web services. It covers project layout, naming, Kotlin style, and common design patterns.

holtwood/awesome-cursorrules-zh · 0 tokens

springboot-jpa-best-practices

A set of Chinese-language rules for structuring Java Spring Boot applications that use JPA, a library for database access.

holtwood/awesome-cursorrules-zh · 0 tokens

go-backend-scalability

A set of coding and architecture rules for scalable Go backends. It covers databases, APIs, concurrency, performance, security, microservices, containers, monitoring, and deployment.

holtwood/awesome-cursorrules-zh · 0 tokens

python-django-general

General coding guidance for Python and Django projects, including naming, formatting, modular apps, built-in tools, and maintainable structure. Python is a programming language, and Django is a Python web framework.

holtwood/awesome-cursorrules-zh · 195 tokens

backend-stack-rules

A set of rules for backend code using Next.js API Routes, TypeScript, Zod validation, optional authentication, and a project-selected database tool.

holtwood/awesome-cursorrules-zh · 0 tokens

laravel-package-development-guidelines

A set of coding rules for building Laravel packages, which are reusable extensions for Laravel applications. It covers package structure, code style, helper functions, type safety, editor suggestions, and documentation.

holtwood/awesome-cursorrules-zh · 0 tokens