Uipath Tasks 标志

Uipath Tasks

社区
marcelocruzrpa
uipath-tasks

Generates UiPath Tasks workflows — Form Tasks (CreateFormTask, WaitForFormTaskAndResume, GetFormTasks) with form.io schemas and FormData bindings, External Tasks (CreateExternalTask, WaitForExternalTaskAndResume) for system-in-the-loop patterns, and Task Management (CompleteTask, AssignTasks) for programmatic task operations. Self-contained skill with generators, lint rules, and scaffold hooks loaded via uipath-core's plugin system (plugin_loader.py). Use when the user mentions Tasks, form tasks, external tasks, human-in-the-loop approval, task assignment, task completion, recovery workflows, or any Persistence.Activities usage.

概览

发布者marcelocruzrpa
代码仓库uipath-ai-skills
技能名称uipath-tasks
星标数
110
复刻数
20
附带文件
26
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 26 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 marcelocruzrpa 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Uipath Tasks AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/marcelocruzrpa/uipath-ai-skills/tree/main/uipath-tasks
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marcelocruzrpa/uipath-ai-skills.git /tmp/uipath-ai-skills
mkdir -p .claude/skills
cp -r /tmp/uipath-ai-skills/uipath-tasks .claude/skills/uipath-tasks
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Uipath Tasks,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Uipath Tasks。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Uipath Tasks 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

UiPath Tasks Skill

Generate Tasks workflows for human-in-the-loop, system-in-the-loop, and task management patterns in UiPath.

Plugin architecture: This skill's extensions/ directory is auto-discovered by uipath-core's plugin_loader.py. Generators, lint rules, scaffold hooks, namespaces, and known activities are registered at import time — no manual wiring needed. Core's generate_workflow.py, validate_xaml, and scaffold_project.py query the plugin registries at runtime.

Plugin API contract (v2)

This skill is the canonical example for out-of-tree plugin authors. The contract:

  • REQUIRED_API_VERSION = 2 must be declared at the top of extensions/__init__.py. Plugins on v1 (or with no declaration) fail to load with a clear API version mismatch error and any partial registrations are rolled back.
  • Registration entry points added in v2: register_version_profile(package, profile_version, profile_dict) and register_band_profile_mapping(band, package, profile_version) — used by lint 122 (version-band drift). Call register_band_profile_mapping once per (band, package) pair. Registering after the lint module is already imported automatically invalidates the lint caches, so the new entries take effect on the next lint pass without any reload.
  • Atomic commit: every register_* call made during a plugin's load (including from submodules imported from __init__.py) is captured in the registry snapshot. If __init__.py raises before completing, all registrations from that plugin are reverted. The registry is never observed in a partially-loaded state by other plugins or by core.
  • Out of scope for rollback: non-registry side effects (file writes, env vars, threads spawned at import time, monkey-patches). Confine those to lazy paths invoked after a successful load.
  • Test that load succeeded: assert plugin_loader.get_load_failures() == [] after load_plugins(). A plugin that raised during load surfaces in that list with its filename and exception.

Worked example: see uipath-tasks/extensions/__init__.py:34 (the REQUIRED_API_VERSION = 2 declaration) and :310-312 (the Persistence/1.4 profile + band-25/26 mapping calls).

Extensions (Plugin System)

uipath-tasks/
├── SKILL.md
├── references/
│   ├── tasks.md       ← Form Tasks + form.io + Action Types Comparison
│   ├── external-tasks.md      ← External Tasks (system-in-the-loop)
│   └── task-management.md     ← GetFormTasks, CompleteTask, AssignTasks
└── extensions/
    ├── __init__.py             ← Registers all AC components with plugin_loader
    ├── generators.py           ← 7 generators (form, external, task management)
    ├── lint_rules.py           ← AC-10, AC-11, AC-12, AC-26
    ├── scaffold_hooks.py       ← enable_persistence_support
    └── battle_test_grading.py  ← 8 battle test scenario graders

What gets registered:

  • 7 generators: create_form_task, wait_for_form_task, create_external_task, wait_for_external_task, get_form_tasks, complete_task, assign_tasks
  • 4 lint rules: AC-10 (Form Create/Wait mismatch), AC-11 (FormData key mismatch), AC-12 (External Create/Wait mismatch), AC-26 (persistence in sub-workflow)
  • 1 scaffold hook: auto-enables supportsPersistence when Persistence.Activities is in deps
  • 3 namespaces: upaf (FormTask), upae (ExternalTask), upat (Tasks)
  • 7 known activities: CreateFormTask, WaitForFormTaskAndResume, CreateExternalTask, WaitForExternalTaskAndResume, GetFormTasks, CompleteTask, AssignTasks

When To Read Which Reference

TaskRead
Create a form task workflowreferences/tasks.md → Create Form Task + FormData Bindings
Design a form.io form schemareferences/tasks.md → Form.io Component Reference
Wait for human approval / resumereferences/tasks.md → Wait for Form Task and Resume
Any PDD with "for each X" / "multiple X" / "batch of X" / N rows (default for N-item approvals, not advanced)references/tasks.md → Shadow Task Pattern
Compare action types (Form vs External)references/tasks.md → Action Types Comparison
Create an external task (system-in-the-loop)references/external-tasks.md → Create External Task
Wait for external system resolutionreferences/external-tasks.md → Wait for External Task and Resume
Retrieve existing tasks (recovery workflow)references/task-management.md → Get Form Tasks
Complete a task programmaticallyreferences/task-management.md → Complete Task
Assign a task to a user/groupreferences/task-management.md → Assign Tasks
Escalation / reassignment patternsreferences/task-management.md → Escalation Pattern
Task lifecycle statesreferences/task-management.md → Task Lifecycle States
Persistence constraintsreferences/tasks.md → Prerequisites (Main.xaml constraint)
Lint issues on AC workflowsreferences/tasks.md → Validation & Lint Rules + external-tasks.md → Validation
Scaffold a project with persistenceScaffold hook in extensions/scaffold_hooks.py — auto-runs via core's scaffold_project.py
Validate AC workflow XAMLLint rules in extensions/lint_rules.py — auto-run via core's validate_xaml --lint
Resolve NuGet versionsUse uipath-core's resolve_nuget.py for UiPath.Persistence.Activities + UiPath.FormActivityLibrary

Ground Rules

  • AC-1: Always use generators. Never write Tasks XAML by hand. Use generators via JSON specs or Python API (auto-loaded from extensions/generators.py).
  • AC-2: Persistence activities MUST stay in Main.xaml. WaitForFormTaskAndResume, WaitForExternalTaskAndResume, and all Wait*AndResume activities are persistence points — they serialize workflow state to Orchestrator. They ONLY work in the entry-point file. AC-26 enforces this.
  • AC-3: Both NuGet packages are required for Form Tasks. UiPath.Persistence.Activities (runtime) AND UiPath.FormActivityLibrary (form designer UI). External Tasks and Task Management only need UiPath.Persistence.Activities.
  • AC-4: supportsPersistence: true must be in project.json runtimeOptions when using Wait*AndResume activities. Scaffold sets this automatically.
  • AC-5: FormData keys must match form.io component keys. (Form Tasks only.) AC-11 validates key presence.
  • AC-6: Always include a submit button as the last form.io component. (Form Tasks only.)
  • AC-7: Wrap Create*Task in RetryScope. Orchestrator API calls can transiently fail.
  • AC-8: External tasks have NO form. Don't use FormLayout/FormData on CreateExternalTask — use TaskData dict.
  • AC-9: Task Management activities are NOT persistence points. GetFormTasks, CompleteTask, AssignTasks can be used in sub-workflows.
  • AC-Shadow: Shadow Task Pattern is the default shape for N-item approvals. When the PDD / workflow processes N items from a collection (DataTable rows, list, etc.) and each needs a human task, emit one ui:ForEachRow / ui:ForEach that only calls CreateFormTask and appends the returned FormTaskData to a List(Of FormTaskData), followed by a second ui:ForEach (at the root-Sequence level) that runs WaitForFormTaskAndResume + decision handling per task. The List(FormTaskData) variable MUST be initialized — set Default="[New System.Collections.Generic.List(Of UiPath.Persistence.Activities.FormTask.FormTaskData)()]" on the variable declaration (or pass "default": "[...]" in the JSON spec). A null List throws Value cannot be null. (Parameter 'TargetObject') on the first InvokeMethod.Add. Never emit inline Create → Wait per item, and never unroll the loop into hardcoded If Rows.Count >= N / Rows(0..N-1) blocks. The inline form ties up the robot for the sum of all wait times instead of the max; the unrolled form additionally bypasses AC-27. See references/form-tasks.md → Shadow Task Pattern (default for N-item batches). Loop-nested case enforced by AC-27; unrolled case enforced by AC-34.

Capabilities

  1. CreateFormTask — Form task with form.io schema, FormData bindings (In/Out/InOut), storage bucket, task catalog, priority levels
  2. WaitForFormTaskAndResume — Long-running persistence, task action capture, updated FormTaskData output
  3. Form.io schema design — textfield, textarea, number, select, checkbox, datagrid (DataTable binding), htmlelement (Mustache templates), columns, button
  4. FormData direction bindings — In (read-only), Out (user-entered), InOut (editable pre-populated, DataTable ↔ datagrid)
  5. Shadow task pattern — Non-blocking multi-task orchestration
  6. CreateExternalTask — System-in-the-loop task for external systems (JIRA, Salesforce, ServiceNow)
  7. WaitForExternalTaskAndResume — Suspend until external system completes task via API
  8. GetFormTasks — Retrieve existing tasks from Orchestrator (recovery workflows, cross-process)
  9. CompleteTask — Programmatic task completion (escalation, timeout, batch operations)
  10. AssignTasks — Assign tasks to user or group (SingleUser, AllUsersInGroup)
  11. Validation — AC-10, AC-11, AC-12, AC-26

Reference Files

FileCoverage
references/tasks.mdForm Tasks — prerequisites, CreateFormTask, FormData, form.io, WaitForFormTask, patterns, lint, Config keys
references/external-tasks.mdExternal Tasks — CreateExternalTask, WaitForExternalTask, TaskData dict, external system completion
references/task-management.mdTask Management — GetFormTasks, CompleteTask, AssignTasks, recovery pattern, escalation pattern, lifecycle

Quick Generator Reference

GeneratorActivityPrefixKey Args
gen_create_form_task()CreateFormTaskupaf:task_title_expr, task_output_variable, form_layout_json, form_data=
gen_wait_for_form_task()WaitForFormTaskAndResumeupaf:task_input_variable
gen_create_external_task()CreateExternalTaskupae:task_title_expr, task_output_variable, task_data=
gen_wait_for_external_task()WaitForExternalTaskAndResumeupae:task_input_variable
gen_get_form_tasks()GetFormTasksupaf:output_variable, filter_expr=
gen_complete_task()CompleteTaskupat:task_id_expr, action_expr=
gen_assign_tasks()AssignTasksupat:task_id_expr, user_name_or_email=

JSON spec "gen" values: create_form_task, wait_for_form_task, create_external_task, wait_for_external_task, get_form_tasks, complete_task, assign_tasks

Common Hallucinations

WrongRightImpact
TaskObject=TaskOutput= (Create) / TaskInput= (Wait)Studio crash — property doesn't exist
EnableDynamicForms="False"EnableDynamicForms="True"Form designer button does nothing
Persistence activity in sub-workflowMove to Main.xamlRuntime error — bookmark context unavailable
Missing UiPath.FormActivityLibraryAdd explicitly alongside Persistence.Activities"Install FormActivityLibrary" error in Studio
"supportsPersistence": falseSet to true in project.json runtimeOptionsWaitFor*AndResume fails at runtime
FormLayout= on CreateExternalTaskUse TaskData dict insteadProperty doesn't exist on external tasks
FormData on CreateExternalTaskUse TaskData dict insteadProperty doesn't exist on external tasks

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Uipath Tasks AI 技能有什么作用?

Generates UiPath Tasks workflows — Form Tasks (CreateFormTask, WaitForFormTaskAndResume, GetFormTasks) with form.io schemas and FormData bindings, External Tasks (CreateExternalTask, WaitForExternalTaskAndResume) for system-in-the-loop patterns, and Task Management (CompleteTask, AssignTasks) for programmatic task operations. Self-contained skill with generators, lint rules, and scaffold hooks loaded via uipath-core's plugin system (plugin_loader.py). Use when the user mentions Tasks, form tasks, external tasks, human-in-the-loop approval, task assignment, task completion, recovery workflow...

为什么在 TypingMind 中使用 Uipath Tasks?

因为您只需安装一次,就能搭配任何模型使用。Uipath Tasks 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Uipath Tasks?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/marcelocruzrpa/uipath-ai-skills/tree/main/uipath-tasks。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Uipath Tasks?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Uipath Tasks 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Uipath Tasks 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Uipath Tasks AI 技能免费吗?

是的。marcelocruzrpa 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇