awesome-claude-copilot: Instructions file for GitHub Copilot

.github/instructions/aspnet-rest-apis.instructions.md

awesome-claude-copilot aspnet-rest-apis.instructions.md is an instructions file for GitHub Copilot from RorroRojas3/awesome-claude-copilot. It costs 526 tokens per session, scanned A, original, MIT.

Guidelines for building REST APIs with ASP.NET Core. REST APIs let programs exchange data over HTTP using resources, URLs, requests, and responses.

In plain words
What is it for?
Use them when creating or reviewing ASP.NET Core 10 APIs built with controllers or Minimal APIs, including their endpoints and project organization.
Why use it?
They provide consistent expectations for API structure, routing, status codes, validation, dependency injection, testing, and documentation.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is RorroRojas3/awesome-claude-copilot's own configuration. It tells GitHub Copilot how to work on awesome-claude-copilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything awesome-claude-copilot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RorroRojas3/awesome-claude-copilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/RorroRojas3/awesome-claude-copilot/main/.github/instructions/aspnet-rest-apis.instructions.md
Clone the repo
git clone --depth 1 https://github.com/RorroRojas3/awesome-claude-copilot

Made for: GitHub Copilot.

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 awesome-claude-copilot aspnet-rest-apis.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis/github.svg)](https://agentmods.dev/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis)
Your own site
<a href="https://agentmods.dev/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis"><img src="https://agentmods.dev/badge/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis/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 awesome-claude-copilot aspnet-rest-apis.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis"><img src="https://agentmods.dev/badge/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 526 This file is loaded in full into every session.
When invoked 526 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.00526 $0.00526
Opus 5 $0.00263 $0.00263
Sonnet 5 $0.00105 $0.00105
Haiku 4.5 $0.00053 $0.00053

Measured 8d ago against content hash 46dc1ec2f760, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

awesome-claude-copilot aspnet-rest-apis.instructions.md 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 8d 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.

.github/instructions/aspnet-rest-apis.instructions.md · 68 lines

How it starts

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

ASP.NET REST API Development

Instructions

  • Build REST APIs on ASP.NET Core 10, using Web API controllers or Minimal APIs.
  • Apply best practices for API design, testing, documentation, and deployment.
  • Note the reasoning behind non-obvious design decisions; no tutorial-style explanations unless asked.
  • General C# standards (naming, formatting, nullability, data access, logging) live in csharp.instructions.md.

API Design

  • Design resource-oriented URLs with appropriate HTTP verbs, status codes, content negotiation, and consistent response formatting.
  • Choose controllers or Minimal APIs per project requirements; keep the choice consistent within a service.

Project Structure

  • Create projects from the ASP.NET Core 10 Web API template.

Controller-Based APIs

  • Use attribute routing and the [ApiController] attribute; name resources RESTfully.
  • Inject dependencies via constructors.
  • Pick action return types deliberately: ActionResult<T>, IActionResult, or specific types.

Minimal APIs

  • Organize endpoints with route groups.
  • Use parameter binding, validation, and dependency injection as in controllers.
  • Structure larger Minimal API applications for readability.

Authentication and Authorization

  • Authenticate with JWT Bearer tokens; integrate Microsoft Entra ID where applicable.
  • Apply role-based or policy-based authorization.
  • Secure controller-based and Minimal APIs consistently.

Validation and Error Handling

  • Validate with DataAnnotations or FluentValidation; customize validation responses when the default shape does not fit.
  • Handle exceptions globally in middleware; return Problem Details (RFC 9457) responses consistently.

Versioning and Documentation

  • Version APIs — controllers and Minimal APIs alike.
  • Document endpoints, parameters, responses, and authentication with Swagger/OpenAPI.

Testing

  • Unit test controllers, Minimal API endpoints, and services; add integration tests for endpoints.
  • Mock dependencies; test authentication and authorization logic.

Read the full file on GitHub · 68 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. 8d ago First seen · 68 lines · 526 tokens per session scan A 46dc1ec2f760

Subscribe to this mod's changes

awesome-claude-copilot aspnet-rest-apis.instructions.md is an instructions file published in the GitHub repository RorroRojas3/awesome-claude-copilot (0 stars, last pushed 13d ago), licensed MIT. It adds 526 tokens to every session, about $0.0026 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-09-01.