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.
curl -O https://raw.githubusercontent.com/RorroRojas3/awesome-claude-copilot/main/.github/instructions/aspnet-rest-apis.instructions.mdgit clone --depth 1 https://github.com/RorroRojas3/awesome-claude-copilotWrote 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.
[](https://agentmods.dev/instructions/rorrorojas3/awesome-claude-copilot/aspnet-rest-apis)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 8d ago First seen · 68 lines · 526 tokens per session scan A 46dc1ec2f760
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.
Other instructions, from other repositories
plan-forge api-patterns.instructions.md
API patterns for .NET — REST conventions, ProblemDetails, pagination, versioning, error responses.
plan-forge errorhandling.instructions.md
Error handling patterns — Exception hierarchy, ProblemDetails responses, error boundaries, global exception middleware.
graftcode graftcode-dotnet.instructions.md
Instructions for grft-dev/graftcode, covering graftcode — .net backend services, when this applies (always), authoritative docs (source of truth), golden rules and service = .net class library.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).