aspnet-abp-cursorrules-prompt-file

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

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.

agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/aspnet-abp-cursorrules-prompt-file
Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules
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. Scan, not verified.
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 $0.01324 $0.01324
Opus 5 $0.00662 $0.00662
Sonnet 5 $0.00265 $0.00265
Haiku 4.5 $0.00132 $0.00132

Measured 2d ago against content hash d2232c3b97a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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,694 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 1,324 tokens to every session, about $0.0066 per session on Opus 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.