/dapr-skills:migrate-workflow-typescriptfrom dapr-skills
Analyzes an existing TypeScript/Node.js app and incrementally migrates it to Dapr building blocks (service invocation, pub/sub, state, secrets, etc.) one approved change at a time.
Ships in dapr-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill is different in kind from create-workflow-typescript: it does not scaffold a new project — it analyzes an existing TypeScript/Node.js application, proposes a mapping of its existing integration points onto Dapr building blocks (service invocation, pub/sub, bindings, jobs, state, secrets, workflow), and applies only the changes the user confirms, one at a time, verifying after each. It never rewrites whole files and never assumes a fixed business scenario — the existing code is the spec.
This skill touches code the user did not ask you to create from scratch. Treat every write as something that must be individually justifiable, reversible, and verified — not something to batch through.
You MUST follow these phases in strict order. Do not skip the safety phase, and do not apply any change before the user has approved the plan.
## Show final message. Do NOT add any other text, summary, or commentary after it.The following must be installed by the user before this skill can run:
git, with the target repository already checked outAdditional runtime dependency (added during migration, not before): npm package @dapr/dapr version 3.19.0.
scope_root. Otherwise default to the current working directory and confirm it back in one line.scope_root contains a Node.js project (package.json at or above the scope). If not, stop and tell the user this skill targets Node.js/TypeScript projects.dapr.yaml, a resources/ (or components/) folder with Dapr Component YAML, or @dapr/dapr already in package.json. If found, treat this as extending an existing migration, not a fresh one — read what's already there so Phase 5 doesn't duplicate components, and limit Phase 3 to whatever hasn't been migrated yet. Phase 2 (safety setup) still runs in full — existing adoption never skips it.http) from package.json dependencies — later phases need this to know how routes and middleware are structured.package.json scripts (e.g. build, test, lint). These are what Phase 6 runs after every change — this skill does not invent its own verification command when the project already has one.This phase exists because, unlike create-workflow-typescript, every subsequent phase edits code the user already depends on.
git status. If the working tree is not clean, stop and ask the user to commit or stash first — never start a migration on top of uncommitted, unrelated changes.dapr-migration), or continue on the current branch? Follow their answer; if they don't have a preference, create the branch.git push regardless of what's chosen here — that always requires a separate, explicit ask.Read-only. Do not write or edit anything in this phase. See REFERENCE.md for the full detection heuristics (grep patterns and package.json markers) for each of the 7 categories:
KEYS/SCAN) have no direct Dapr state equivalent and are coupled to the get/set/del of the same key family — see REFERENCE.md.Also detect the existing backing infrastructure for each candidate (which Redis/Postgres/Kafka/RabbitMQ/cloud SDK is already in use) — the component YAMLs proposed in Phase 5 must point at what the app already runs against, never default to a fresh Redis the app doesn't use today. See REFERENCE.md for the infra-to-component mapping table.
Emit the Migration Assessment Report using the exact format in ../dapr-shared/migrate-report-format.md. This is the only output of this phase — no changes yet.
After the report, ask the user which items to proceed with: all Recommended items (default suggestion), a specific subset by rule id, or none yet (stop here). Explicitly confirm before Phase 5 — a report is not consent to modify code.
Only for the categories with at least one approved item, and only for what Phase 1 didn't already find in place:
@dapr/dapr (version 3.19.0) to package.json dependencies.dapr.yaml (or add an entry to an existing one) and a resources/ folder.REFERENCE.md for the templates. Do not add components for categories with no approved items.See REFERENCE.md for the full file templates and dapr run wiring (APP_PORT/DAPR_HTTP_PORT/DAPR_GRPC_PORT, matching the conventions in create-workflow-typescript).
Process approved items in this fixed order — least invasive and easiest to verify first, most invasive last — regardless of the order they appeared in the report:
For each individual item (not each category — one call site at a time):
Edit at the exact detected call site. Do not rewrite the whole file, and do not touch code unrelated to this item.git add <file>... and run git commit -m "<message naming the single item migrated>". Otherwise run no git add or git commit at all. Never git push.See REFERENCE.md for the verified before/after transformation for each category, and for the service invocation caveat (the full benefit requires the called service to also run behind a sidecar — note this in the report rather than silently assuming it).
Create or update a DAPR_MIGRATION.md file in scope_root (do not overwrite an existing project README) with:
dapr run -f .), reusing ../dapr-shared/running-locally-dapr.md.IMPORTANT: This is the LAST step. Your final output MUST be ONLY the message below — no preamble, no summary, no additional commentary, only replace the placeholders with actual values:
Migrated of approved items to Dapr on branch . Open DAPR_MIGRATION.md in <scope_root> for what changed, what was deferred, and how to run it locally.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub diagrid-labs/dapr-skills --plugin dapr-skills33 skills in this plugin
/add-pubsub-dotnetAdds Dapr pub/sub to an existing .NET (ASP.NET Core, plain or Aspire) project. Edits only after you approve a plan. Use for "add pub/sub to my .NET project" or "subscribe this ASP.NET app to a topic". For a new project use create-pubsub-dotnet./add-pubsub-pythonAdds Dapr pub/sub to an existing Python FastAPI app. Edits only after you approve a plan. Use for "add pub/sub to my FastAPI app" or "make this Python service subscribe to a Dapr topic". For a new app use create-pubsub-python./add-workflow-dotnetAdds Dapr Workflow, activities and management endpoints to an existing .NET (ASP.NET Core, plain or Aspire) project after you approve a plan. Use for "add a workflow to my .NET project" or "make this process a durable workflow". For a new project use create-workflow-dotnet. For Diagrid use the diagrid plugin.Other plugins' skills for the same job