--- name: review-workflow-activity description: Read-only audit of Dapr Workflow activities in .NET, Python and Java for idempotency, retries, error boundaries and conventions, with DWF-ACT-NNN findings. Use for "review workflow activities" or "audit Dapr activities". allowed-tools: - Read - Grep - Glob --- # Review Dapr Workflow — Activities ## Overview Scans the bodies of Dapr Workflow activity classes/functions for idempotency issues, swallowed exceptions, payload size risks, cancellation handling, and convention violations. Read-only: this skill never modifies source files. Workflow body code and management endpoints are out of scope and are covered by `review-workflow-determinism` and `review-workflow-management`. ## Execution Order You MUST follow these phases in strict order. Do not load files outside the agreed scope, and do not write or edit any files. 1. **Resolve scope** — Read [`../dapr-shared/review-scope-prompt.md`](../dapr-shared/review-scope-prompt.md) and follow it to set `scope_root`. 2. **Detect target** — Read [`../dapr-shared/review-detect-target.md`](../dapr-shared/review-detect-target.md) and follow it to produce `language` and `activity_files` (and, for `java`, `workflow_files`, which DWF-ACT-014 also checks). If `activity_files` is empty, emit the "Nothing to review" report defined in `review-report-format.md` with the reason `no activity files found in ` (no rule id, not counted in `Found:`) and stop. 3. **Load checklist** — Based on `language`, read exactly one of: - `dotnet` or `aspire` → [`../dapr-shared/review-activity-dotnet.md`](../dapr-shared/review-activity-dotnet.md) - `python` → [`../dapr-shared/review-activity-python.md`](../dapr-shared/review-activity-python.md) - `java` → [`../dapr-shared/review-activity-java.md`](../dapr-shared/review-activity-java.md) 4. **Scan** — For each activity file in scope, apply every rule from the loaded checklist using `Grep` and `Read`. For each match, capture `file:line`, the rule id, and a short evidence snippet. Confirm the match is inside an activity body (see "Cross-reference" in each checklist) before promoting it from "Please verify" to a graded severity. 5. **Report** — Format every finding using the canonical template from [`../dapr-shared/review-report-format.md`](../dapr-shared/review-report-format.md). Group by severity, then rule id, then file path. 6. **Show final message** — Your last output is the report. Do not append a summary or next-action prompt other than the `## Next steps` block defined by the report format. Clarifying questions are always allowed during the review (see the report format); once answered, the report is still your last output. ## Prerequisites - Read access to the project directory. - No build, compile, or run step is required — this skill is fully static. ## Allowed tools `Read`, `Grep`, `Glob` only. The skill MUST NOT call `Bash`, `Write`, or `Edit`. ## Rules The full rule list, including detection patterns, severities, and suggested fixes, lives in the loaded language checklist: - [.NET / Aspire rules](../dapr-shared/review-activity-dotnet.md) — `DWF-ACT-001` … `DWF-ACT-012` - [Python rules](../dapr-shared/review-activity-python.md) — `DWF-ACT-001` … `DWF-ACT-011` - [Java rules](../dapr-shared/review-activity-java.md) — `DWF-ACT-001` … `DWF-ACT-015` (`DWF-ACT-005`, `-008` and `-012` do not apply) Rule ids are stable across releases. New rules append; deprecated rule ids are reserved. ## Show final message The last thing you emit MUST be the report from step 5, including the `## Next steps` section. The `## Next steps` block should suggest: - Run `review-workflow-determinism` next if it has not yet been run on this scope. - Run `review-workflow-management` next if any management files exist. - Re-run this skill after fixes if any critical findings were reported. Do not add any text after the report.