create-pubsub-python

create-pubsub-python is a skill for Claude Code from diagrid-labs/dapr-skills. It costs 97 tokens per session (3,640 once invoked), scanned A, original, MIT.

A project setup procedure for building a Dapr pub/sub application in Python with FastAPI. Dapr provides application services such as messaging; pub/sub lets one program publish messages that another program receives.

In plain words
What is it for?
It creates a FastAPI publisher, subscriber, or both, with declarative, programmatic, or streaming subscriptions. It also prepares the project to run with Dapr and verifies that it installs and compiles.
Why use it?
It provides a defined structure for the publisher, subscriber, shared message format, and subscription setup instead of requiring each part to be connected 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 FastAPI publisher, subscriber, or both, with declarative, programmatic, or streaming subscriptions. It also prepares the project to run with Dapr and verifies that it installs and compiles.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-pubsub-python"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-pubsub-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,640 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.00097 $0.03640
Opus 5.5 $0.00039 $0.01456
Sonnet 5.5 $0.00019 $0.00728
Haiku 4.5 $0.00010 $0.00364

Measured yesterday against content hash d452275a2267, 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-python 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. How to run: `dapr run -f .` from the project root, and how to try it with curl plus a link to `pubsub.http`.
skills/create-pubsub-python/SKILL.md · 200 lines

How it starts

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

Create Dapr Pub/Sub Python Application

Overview

This skill creates a Dapr pub/sub application in Python: a FastAPI publisher, a subscriber or both, sharing the message contract the user described and one dapr.yaml. The subscriber uses a declarative (default), programmatic or streaming subscription.

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 project installs and compiles.
  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.

Python packages (handled during project setup): dapr 1.18.3, dapr-ext-fastapi 1.18.3 (programmatic subscriber only), fastapi 0.118.2, pydantic 2.12.0, uvicorn 0.37.0. Optional: the Diagrid Dapr Dev Dashboard.

Read the full file on GitHub · 200 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 · +43 lines d452275a2267
  2. 3d ago First seen · 157 lines · 97 tokens per session scan A 9e36c89408aa

Subscribe to this mod's changes

create-pubsub-python is a skill published in the GitHub repository diagrid-labs/dapr-skills (13 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 3,640 once invoked, about $0.0004 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