aspnetcore-realworld-example-app AGENTS.md

aspnetcore-realworld-example-app AGENTS.md is an instructions file for Codex, OpenCode from realworld-apps/aspnetcore-realworld-example-app. It costs 553 tokens per session, scanned A, original, MIT.

A development guide for an ASP.NET Core application that implements the RealWorld API specification. ASP.NET Core is a framework for building .NET web applications, and the guide covers its source, tests, build tools, and dependencies.

In plain words
What is it for?
Use it when changing the API, integration tests, build files, package versions, or the vendored API-specification tests.
Why use it?
It tells contributors which .NET version, package rules, formatting standards, and validation commands the project expects.

Instructions file for CodexOpenCode

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 instructions/realworld-apps/aspnetcore-realworld-example-app/agents-md
Clone the repo
git clone --depth 1 https://github.com/realworld-apps/aspnetcore-realworld-example-app

Made for: Codex, OpenCode.

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 aspnetcore-realworld-example-app AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/realworld-apps/aspnetcore-realworld-example-app/agents-md.svg)](https://agentmods.dev/instructions/realworld-apps/aspnetcore-realworld-example-app/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/realworld-apps/aspnetcore-realworld-example-app/agents-md"><img src="https://agentmods.dev/badge/instructions/realworld-apps/aspnetcore-realworld-example-app/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 553 This file is loaded in full into every session.
When invoked 553 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.00553 $0.00553
Opus 5 $0.00277 $0.00277
Sonnet 5 $0.00111 $0.00111
Haiku 4.5 $0.00055 $0.00055

Measured 5d ago against content hash ec1ae8a69a3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aspnetcore-realworld-example-app AGENTS.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 5d 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.

AGENTS.md · 57 lines

How it starts

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

Repository Guidance

Overview

  • The application is an ASP.NET Core 10 API implementing the RealWorld specification.
  • src/Conduit contains the web application and its feature-oriented vertical slices.
  • tests/Conduit.IntegrationTests contains xUnit integration tests using an EF Core InMemory database.
  • build contains the Bullseye build targets used by CI.
  • realworld is a vendored git submodule containing the upstream API specification tests. Do not edit it unless the task explicitly targets the submodule.

Toolchain

  • Use the .NET SDK version pinned in global.json (10.0.302) and target net10.0.
  • Package versions are managed centrally in Directory.Packages.props.
  • Restore packages with lock files enabled. Restore updates to packages.lock.json files should be included when dependencies change.
  • Nullable reference types, recommended analyzers, code-style checks, and warnings-as-errors are enabled in Directory.Build.props.
  • CSharpier 1.3.0 is the repository formatter. The repository uses four-space indentation, file-scoped namespaces, var, explicit accessibility modifiers, and sorted System usings.

Validation

Run the standard validation target after code changes:

dotnet run --project build/build.csproj -- test

The target formats the repository, builds the solution in Release mode, and runs all test projects. To format without building, run:

dotnet run --project build/build.csproj -- format

The CI-equivalent build, test, and publish pipeline is:

dotnet run --project build/build.csproj

Run the application locally with make run-local. The API is available at http://localhost:5000, and Swagger is available at /swagger.

The optional RealWorld API suites require the realworld submodule plus Hurl or Bun/Bruno:

make submodule
make test-hurl-with-managed-server
make test-bruno-with-managed-server

Development Practices

  • Keep commands, queries, validators, handlers, and related models together under the relevant feature folder.
  • Keep controllers thin and pass the request cancellation token through to handlers and database operations.
  • Use FluentValidation for request validation and preserve the existing error response behavior.
  • Use EF Core through ConduitContext; do not introduce a second persistence abstraction without a concrete requirement.
  • Add or update integration tests for behavior changes, especially changes to the RealWorld API contract.
  • Do not commit generated build output, local SQLite databases, secrets, or changes inside the realworld submodule unless required.

Read the full file on GitHub · 57 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. 5d ago First seen · 57 lines · 553 tokens per session scan A ec1ae8a69a3f

Subscribe to this mod's changes

aspnetcore-realworld-example-app AGENTS.md is an instructions file published in the GitHub repository realworld-apps/aspnetcore-realworld-example-app (2,087 stars, last pushed 2d ago), licensed MIT. It adds 553 tokens to every session, about $0.0028 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.

Related

Other instructions, from other repositories

SSW.VerticalSliceArchitecture CLAUDE.md

Instructions for SSWConsulting/SSW.VerticalSliceArchitecture, covering ssw vertical slice architecture — agent instructions, project overview, technology stack, rules and skills.

SSWConsulting/SSW.VerticalSliceArchitecture · 1,020 tokens

Perigon.CLI copilot-instructions.md

Copilot instructions for AterDev/Perigon.CLI, covering github copilot instructions, general guidelines, 技术栈, 项目结构与分层 and 代码风格约定.

AterDev/Perigon.CLI · 1,254 tokens

generative-ui-foundry-hosted-agents AGENTS.md

Instructions for leestott/generative-ui-foundry-hosted-agents, covering agents.md, 1. architecture (the mental model), 2. golden rules (do not regress these), 3. component contracts and 3.1 agent (agent/).

leestott/generative-ui-foundry-hosted-agents · 3,510 tokens

generative-ui-foundry-hosted-agents copilot-instructions.md

Instructions for leestott/generative-ui-foundry-hosted-agents, covering what this repo is, non-negotiable conventions, when editing code, deploy & verify and testing commands.

leestott/generative-ui-foundry-hosted-agents · 916 tokens

mostlylucidweb CLAUDE.md

Claude Code instructions for scottgal/mostlylucidweb, covering claude.md, working preferences, project overview, build & development commands and .net backend.

scottgal/mostlylucidweb · 2,803 tokens

mostlylucidweb AGENTS.md

AGENTS.md instructions for scottgal/mostlylucidweb, covering repository guidelines for agentic coding, build & test commands, coding style, testing and commit guidelines.

scottgal/mostlylucidweb · 313 tokens