create-agent-python

create-agent-python is a skill for Claude Code, Codex from diagrid-labs/dapr-skills. It costs 78 tokens per session (3,024 once invoked), scanned C, original, MIT.

A guided setup for creating a durable AI agent application in Python with Dapr Agents or supported framework wrappers. Durable means an agent run can continue after a process restart.

In plain words
What is it for?
Use it to scaffold a Python Dapr agent, or run an existing LangGraph, CrewAI, Strands, or similar agent framework on Dapr Workflow.
Why use it?
It organizes the setup of single-agent or multi-agent applications whose model calls, tools, and workflow steps need to be retained and resumed.

Skill for Claude CodeCodex

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

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 skills/diagrid-labs/dapr-skills/create-agent-python
Any agent
npx skills add diagrid-labs/dapr-skills --skill create-agent-python
Clone the repo
git clone --depth 1 https://github.com/diagrid-labs/dapr-skills

Made for: Claude Code, Codex.

Or install dapr-skills, the plugin that ships this one along with the rest of its 18 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-agent-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-agent-python.svg)](https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-agent-python)
Your own site
<a href="https://agentmods.dev/skills/diagrid-labs/dapr-skills/create-agent-python"><img src="https://agentmods.dev/badge/skills/diagrid-labs/dapr-skills/create-agent-python.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00078 $0.03024
Opus 5 $0.00039 $0.01512
Sonnet 5 $0.00016 $0.00605
Haiku 4.5 $0.00008 $0.00302

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

Security

Grade C, and why

create-agent-python scanned grade C with 2 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s https://pypi.org/pypi/diagrid/json | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['info']['version']); print('\n'.join(e for e in d['info']['provides_extra'] if e not in ('agent-core','all')))"

Makes network callslowCapability

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

- Bash(curl:*)
skills/create-agent-python/SKILL.md · 230 lines

How it starts

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

Create a Python Agent Application

Overview

This skill describes how to create a durable AI agent application in Python. Two paths are supported:

  • Native — the dapr-agents SDK. This is the Dapr Agents framework proper; it is Python-only. Its DurableAgent runs on Dapr Workflow, reaches the LLM through a Dapr conversation component, and persists conversation memory in a Dapr state store.
  • Framework wrappers — the diagrid distribution, which runs an agent you have already written in another framework (LangGraph, CrewAI, Strands, …) on Dapr Workflow so that each node / LLM call / tool call becomes a durable activity. One distribution, one extra per framework.

Single agent or coordinator + specialists, either way.

Execution Order

You MUST follow these phases in strict order:

  1. Check specification — Check if the user specified what needs to be built.
  2. Project Setup — Create all files and folders.
  3. Verify — Verify that the project builds.
  4. 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.
  5. Show final message — Your LAST output MUST be EXACTLY the message defined in the ## Show final message section. Do NOT add any other text, summary, or commentary after it.

Check specification

If you don't have enough context what to build, ask the user the following clarifying questions one by one using an interview style:

  1. What is the purpose of the agent (or agent team)? This becomes the agent's role and instructions.
  2. Topology: a single agent, or a coordinator + N specialists?
  3. Framework: dapr-agents (native, the default) or one of the diagrid wrapper extras. Resolve the wrapper list at this point rather than reciting one — see "Resolving the framework list" below.
  4. Pattern (only if Q3 selected native dapr-agents AND Q2 selected single-agent): augmented-llm (default), prompt-chaining, routing, parallelization, orchestrator-workers, or evaluator-optimizer. Skip this question entirely if the user picked a wrapper extra — those frameworks define their own agent loop and the pattern concept does not apply.
  5. Tool definitions: name, purpose, and argument schema for each tool the agent should expose.
  6. LLM provider: OpenAI, Anthropic, Google Gemini, or local Ollama. Native dapr-agents routes this through a Dapr conversation component; wrappers usually let the wrapped framework call the provider directly with an API key from the environment.
  7. Include observability by default? (recommended: yes for native dapr-agents; default no for wrappers — they ship their own observability.)
  8. Project name — used as the folder name. Don't use spaces.

Read the full file on GitHub · 230 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. 5d ago First seen · 230 lines · 78 tokens per session scan C cd79e76f43c4

Subscribe to this mod's changes

create-agent-python is a skill published in the GitHub repository diagrid-labs/dapr-skills (12 stars, last pushed 12d ago), licensed MIT. It adds 78 tokens to every session and 3,024 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

airflow-new-sdk

Guide for implementing a brand-new language SDK for Airflow (AIP-108). Use this skill when a contributor wants to add support for a new programming language — designing the Python coordinator, implementing the wire protocol in the target language, writing the bundle format, and structuring the PR. Trigger on phrases…

apache/airflow · 127 tokens

airflow-java-sdk

Guide for contributing to the Airflow Java SDK (AIP-108). Use this skill whenever a contributor is working in the java-sdk/ directory or on the Java coordinator in task-sdk/src/airflow/sdk/coordinators/java/ — whether they want to add a feature, write tests, fix a bug, understand the architecture, or prepare a PR.…

apache/airflow · 119 tokens

dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed…

K-Dense-AI/scientific-agent-skills · 69 tokens

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

K-Dense-AI/scientific-agent-skills · 56 tokens

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use…

K-Dense-AI/scientific-agent-skills · 73 tokens

cobrapy

Constraint-based metabolic modeling (COBRA). FBA, FVA, gene knockouts, flux sampling, SBML models, for systems biology and metabolic engineering analysis.

K-Dense-AI/scientific-agent-skills · 38 tokens