create-pubsub-dotnet

create-pubsub-dotnet is a skill for Claude Code from diagrid-labs/dapr-skills. It costs 117 tokens per session (4,434 once invoked), scanned A, original, MIT.

A project setup procedure for building a Dapr pub/sub application in .NET. Dapr is a runtime that provides services such as messaging; pub/sub lets one program publish messages that another program receives, using Redis as the message broker.

In plain words
What is it for?
It creates a publisher, a subscriber, or both, with declarative, programmatic, or streaming subscriptions. It also supports running the application with the Dapr command-line tool or .NET Aspire.
Why use it?
It gives a .NET developer a defined way to create the publisher, subscriber, shared message format, and subscription configuration instead of wiring these pieces together manually.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dapr-skills plugin — 29 skills shipped together

Good fit It creates a publisher, a subscriber, or both, with declarative, programmatic, or streaming subscriptions. It also supports running the application with the Dapr command-line tool or .NET Aspire.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/diagrid-labs/dapr-skills/create-pubsub-dotnet
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.

Any agent
npx skills add diagrid-labs/dapr-skills --skill create-pubsub-dotnet
Clone the repo
git clone --depth 1 https://github.com/diagrid-labs/dapr-skills

Made for: Claude Code.

Or install dapr-skills, the plugin that ships this one along with the rest of its 29 skills.

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 create-pubsub-dotnet

README.md
[![agentmods](https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-pubsub-dotnet/github.svg)](https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-pubsub-dotnet)
Your own site
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-pubsub-dotnet"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-pubsub-dotnet/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 create-pubsub-dotnet

Your own site · 80×15
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-pubsub-dotnet"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-pubsub-dotnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00117 $0.04434
Opus 5.5 $0.00047 $0.01774
Sonnet 5.5 $0.00023 $0.00887
Haiku 4.5 $0.00012 $0.00443

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

Security

Grade A, and why

create-pubsub-dotnet scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Run and try it: the start command, curl examples for the endpoints in the publisher `Program.cs`, and a link to `pubsub.http`.
skills/create-pubsub-dotnet/SKILL.md · 217 lines

How it starts

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

Create Dapr Pub/Sub .NET Application

Overview

This skill creates a new Dapr pub/sub application in .NET: a publisher, a subscriber or both, sharing the message contract the user described and one Redis-backed pubsub component. The subscriber uses a declarative (default), programmatic or streaming subscription, and the app runs with dapr run -f . or with .NET Aspire.

The application is built from the user's own domain. There is no built-in sample scenario: the event, its fields, its topic and what the subscriber does with it all come from the Check specification interview, and every template is filled in from the placeholder vocabulary in ../dapr-shared/pubsub-placeholders.md.

Execution Order

You MUST follow these phases in strict order:

  1. Check specification - Check if the user specified what needs to be built; infer first, then ask.
  2. Check optional tools — Check whether the Diagrid Dapr Dev Dashboard is installed and remember the result. Never stop, ask or install for this.
  3. Project Setup — Create all files and folders.
  4. Verify — Verify that the solution builds.
  5. Create README.md — Create a readme that summarizes what is built and how to run & test the application. Do not provide instructions at the end of this phase.
  6. Show final message - Your LAST output MUST be EXACTLY the message defined in the ## Show final message section: the closing sentence followed by the Dev Dashboard recommendation. Do NOT add any other text, summary, or commentary.

Prerequisites

The following must be installed by the user before this skill can run. Do not run the check-prereq skills; assume the prerequisites are installed.

Read the full file on GitHub · 217 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday Changed · +41 lines f2ba48a68ec1
  2. 3d ago First seen · 176 lines · 117 tokens per session scan A fa1ac36c1e75

Subscribe to this mod's changes

create-pubsub-dotnet is a skill published in the GitHub repository diagrid-labs/dapr-skills (13 stars, last pushed 2d ago), licensed MIT. It adds 117 tokens to every session and 4,434 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.

Related

Other skills, from other repositories

csharp-developer

Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps. Builds REST APIs using minimal or controller-based routing, configures database access with Entity Framework Core, implements async patterns and cancellation, structures applications with CQRS via MediatR, and scaffolds Blazor…

Jeffallan/claude-skills · 102 tokens

dotnet-core-expert

Use when building .NET 8 applications with minimal APIs, clean architecture, or cloud-native microservices. Invoke for Entity Framework Core, CQRS with MediatR, JWT authentication, AOT compilation.

Jeffallan/claude-skills · 47 tokens

aspnet-core

Guidelines for ASP.NET Core web development covering API design, authentication, caching, and best practices.

Mindrally/skills · 23 tokens

dotnet

Guidelines for .NET backend development with C#, ASP.NET Core, and Entity Framework Core.

Mindrally/skills · 21 tokens

csharp-dotnet

Use when building on .NET 8+ with C# 12. Covers nullable reference types, records, async/await correctness, minimal APIs, dependency injection, and EF Core query performance. Trigger on "async deadlock in my asp.net app", "turn on nullable reference types", "ef core is doing n+1 queries", "set up a minimal api in .net…

nimadorostkar/Claude-Skills-collection · 100 tokens

neo-dotnet-minimal-apis

Use this skill when building, debugging, refactoring, or reviewing ASP.NET Core Minimal APIs, lightweight endpoints, route groups, endpoint filters, typed results, OpenAPI metadata, or high-performance .NET API services without controllers.

Benknightdark/neo-skills · 53 tokens