dapr-code-generator

Generates Dapr-ready Python scaffolding for services, workflows, and actors.

4|3|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/Sahib-Sawhney-WH/dapr-claude-plugin --skill dapr-code-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dapr-code-generator
Source: https://github.com/Sahib-Sawhney-WH/dapr-claude-plugin/tree/main/skills/code-generator
Command: npx skills add https://github.com/Sahib-Sawhney-WH/dapr-claude-plugin --skill dapr-code-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill generates production-ready Python code for DAPR microservices, workflows, and actors, accelerating project bootstrapping and consistency.

Core Features & Use Cases

  • FastAPI microservice scaffold: Generates a complete DAPR-enabled FastAPI service.
  • Workflow service skeleton: Generates workflow runtime and activities.
  • Actor service scaffold: Provides a ready-to-run actor service skeleton.

Quick Start

Use the code generator to scaffold a new DAPR service by specifying the service name and desired pattern; the tool outputs a ready-to-run project structure.

Frequently Asked Questions about dapr-code-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a production-ready DAPR microservice in Python?

Scaffold a DAPR microservice by specifying the service name and desired pattern—FastAPI, workflow, or actor. The generator outputs a complete project structure with health endpoints, logging, state management, pub/sub, and service invocation templates ready to deploy.

Can I use DAPR with FastAPI for building microservices?

Yes. DAPR integrates with FastAPI through this code generator, which produces a fully configured FastAPI service with DAPR sidecars, request routing, and all required middleware for production microservice architectures.

What does a DAPR workflow scaffold include?

A DAPR workflow scaffold includes the workflow runtime, activity definitions, and structured boilerplate to orchestrate distributed tasks. The generator creates ready-to-run templates for defining workflows and their associated activities.

How do I set up state management and pub/sub in a DAPR service?

The DAPR code generator includes state management and pub/sub templates within the FastAPI microservice scaffold. Generated code provides structured patterns for persisting state and subscribing to events without manual configuration.

Do I need to write DAPR boilerplate manually for each microservice?

No. This generator eliminates manual boilerplate by outputting production-ready code templates for microservices, workflows, and actors. Each generated service includes health checks, logging, and DAPR integration patterns.

What's the fastest way to build multiple DAPR actor services?

Use the actor service scaffold to generate ready-to-run actor skeletons with state management and service invocation patterns built in. Repeat the generation process for each actor type to maintain consistency across your system.