uipath-governance
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUiPath Governance
UiPath 治理
Uber skill for UiPath governance authoring. Two backing CLI surfaces:
| Surface | Governs | CLI |
|---|---|---|
| AOps product policy | Product feature behavior — what Studio / StudioX / Assistant / Robot / AI Trust Layer / Agent Builder can do at design-time / runtime | |
Access policy ( | Resource/tool-use boundary — when an Actor Process invokes a child Resource (Agent / Maestro / Flow / RPA / API / Case Management), is the call allowed? | |
Both surfaces share verbs (, , , , , ). The same English sentence often maps to either layer, so this skill classifies first and only then routes to the matching mechanic.
blockrestrictdenyallowrequireenforceUiPath治理创作的全能技能。基于两个CLI界面:
| 界面 | 管控范围 | CLI命令 |
|---|---|---|
| AOps产品策略 | 产品功能行为——Studio / StudioX / Assistant / Robot / AI Trust Layer / Agent Builder在设计时/运行时可执行的操作 | |
访问策略( | 资源/工具使用边界——当参与者流程调用子资源(Agent / Maestro / Flow / RPA / API / 案例管理)时,是否允许该调用? | |
两个界面共享相同的操作动词(、、、、、)。同一个英文表述通常可对应任意一层,因此本技能会先进行分类,再路由到匹配的机制。
blockrestrictdenyallowrequireenforceWhen to Use This Skill
何时使用本技能
Activate on any governance / policy / rule intent — even when the user did not name the underlying CLI:
- requests
policy / rule / guardrail / govern / gate / control - an action, model, app, URL, agent, flow, or process
block / restrict / deny / disable / disallow - a behavior or rule
require / enforce / mandate - X
allow only / permit only / limit to / restrict to - — actor- or identity-shaped governance
who can / which … can / on behalf of - framing on top of policies
compliance / posture / audit - file path,
.uipolicy,compliance standardapply standard - Standard names:
ISO 42001 - ,
check compliance,compliance posture,posture againstdrift check - ,
is my tenant compliantam I compliant with - ,
organization-wide,all tenants,entire org— org-scope full applyacross all tenants
只要涉及治理/策略/规则相关需求,即可激活本技能——即使用户未提及底层CLI:
- 包含的请求
policy / rule / guardrail / govern / gate / control - 要求某项操作、模型、应用、URL、Agent、Flow或流程
block / restrict / deny / disable / disallow - 要求某种行为或规则
require / enforce / mandate - 要求仅允许X
allow only / permit only / limit to / restrict to - 涉及——基于参与者或身份的治理
who can / which … can / on behalf of - 在策略之上的框架
compliance / posture / audit - 文件路径、
.uipolicy、compliance standardapply standard - 标准名称:
ISO 42001 - 、
check compliance、compliance posture、posture againstdrift check - 、
is my tenant compliantam I compliant with - 、
organization-wide、all tenants、entire org——全组织范围的完整应用across all tenants
Troubleshoot
故障排查
- Investigate why a governance policy isn't taking effect
- Debug deployment precedence (user > group > tenant override)
- Evaluate access-policy rules against test scenarios ()
access-policy evaluate - Troubleshoot blocked tool/workflow invocations
- Audit which policies are deployed and to whom
- Identify license-type / product mismatch causing silent no-ops
Sibling redirects:
- Platform ops (auth, Orchestrator resources, packaging, deploy) →
uipath-platform - Authoring agents / workflows / RPA themselves → /
uipath-agents/uipath-rpauipath-maestro-flow
- 调查治理策略未生效的原因
- 调试部署优先级(用户 > 组 > 租户覆盖)
- 根据测试场景评估访问策略规则()
access-policy evaluate - 排查被阻止的工具/工作流调用
- 审计已部署的策略及其受众
- 识别导致静默无操作的许可证类型/产品不匹配问题
兄弟技能重定向:
- 平台运维(认证、Orchestrator资源、打包、部署)→
uipath-platform - Agent/工作流/RPA创作 → /
uipath-agents/uipath-rpauipath-maestro-flow
Critical Rules
核心规则
- Classify before authoring. First action on any governance request is to classify intent into Branch A (AOps) or Branch B (Access). Use the priors in . Never start
references/disambiguation-guide.md/create/updateuntil classification is settled — by user wording or by the disambiguation question.delete - Classification lives at the top. Mechanic libraries assume the branch is chosen. Do not let those flows ask "did you mean the other branch?" — that question belongs here.
- One branch per mutation. A single user request produces a policy on one branch only. If the user wants both, run two sequential flows with two confirmation gates.
- Each mechanic owns its own Critical Rules. Once routed, follow the branch's rules — do not relax them from this top level.
- Never apply, restore, or remove compliance settings without user confirmation. For apply: run posture analysis first, show the plan (summary + detail). In every case: ask, then END YOUR REPLY — never run the mutating command in the same response as the confirmation question. Proceed only on an explicit in the user's next message. The user's original request is intent, not consent. Sole exception: the user explicitly waived confirmation in advance (e.g., "don't ask for confirmation") — treat the waiver as
y.y - Always show a receipt after any apply. Present the post-apply report (settings configured, manual steps needed, Applied by / date) so the user has a record. No local file write is needed — the CLI and UiPath platform are the source of truth.
- Compliance Standards is a preview feature — gate every compliance-pack flow. Append the preview disclaimer to user-facing compliance-standard responses, and on any call returning HTTP 403 / Forbidden, stop immediately (do not retry, run no further compliance commands) and tell the user the feature requires enrolling in the preview program. Exact wording + placement in
uip gov compliance-packs …. A 403 is preview-not-enabled; a 401 is a normal login failure — do NOT conflate them.references/compliance-pack/preview-gate.md - Always before any
uip logincommand.uip gov …(Access) additionally requires tenant-scoped login — seeevaluate§ Critical Rules.access-policy-overview-guide.md - Never fabricate UUIDs. Resolve every named user / group / process / agent / flow / robot / tenant via the relevant branch's lookups.
- 先分类再创作。处理任何治理请求的第一步是将意图分类为分支A(AOps)或分支B(访问策略)。参考中的优先级规则。在分类确定前,绝不能启动
references/disambiguation-guide.md/create/update操作——分类可通过用户表述或歧义消除问题完成。delete - 分类处于顶层。机制库默认分支已选定。不要让这些流程询问“你是否指另一个分支?”——该问题应在本顶层流程中提出。
- 单次变更仅对应一个分支。单个用户请求仅生成一个分支的策略。如果用户需要两个分支的策略,需运行两个连续流程并分别确认。
- 每个机制自有核心规则。路由到分支后,需遵循该分支的规则——不得在顶层放宽规则。
- 未经用户确认,绝不能应用、恢复或移除合规设置。应用前:先运行状态分析,展示计划(摘要+详情)。任何情况下:先询问,然后结束回复——绝不能在同一回复中同时发送确认问题和变更命令。仅在用户下一条消息明确回复时才可继续。用户的原始请求是意图,而非同意。唯一例外:用户明确提前豁免确认(例如“不要询问确认”)——将豁免视为
y。y - 任何应用操作后均需展示回执。呈现应用后的报告(已配置的设置、需手动完成的步骤、应用者/日期),以便用户留存记录。无需写入本地文件——CLI和UiPath平台为可信数据源。
- 合规标准为预览功能——所有合规包流程需设置准入门槛。在面向用户的合规标准回复中附加预览免责声明,且当任何调用返回HTTP 403 / 禁止访问时,立即停止(不要重试,不要运行后续合规命令),并告知用户该功能需要注册预览计划。具体措辞和位置参考
uip gov compliance-packs …。403表示未启用预览;401表示普通登录失败——请勿混淆两者。references/compliance-pack/preview-gate.md - 执行任何命令前,必须先
uip gov …。访问策略的uip login操作还需租户范围的登录——参考evaluate§ 核心规则。access-policy-overview-guide.md - 绝不能编造UUID。需通过对应分支的查询功能解析所有命名的用户/组/流程/Agent/Flow/Robot/租户。
Workflow
工作流程
- Classify the intent silently — never announce routing to the user. Internal flow labels (AOps / Access / Compliance standard) are implementation details; the user sees only the outcome. Read — it lists the strong signals for each flow, the phrase patterns that need disambiguation, and the canonical worked example. If a strong signal matches, route silently. If the phrasing is ambiguous (matches AOps or Access), ask the disambiguation question and wait for a digit reply. If the user replies with anything other than
references/disambiguation-guide.mdor1, treat it as a re-statement of intent and re-classify. Do not run any CLI command before classification is settled — the disambiguation question itself does not need2, and an unrelated request (platform ops, agent authoring) must redirect to a sibling skill before any setup happens here. If the request contains a standard name (uip),ISO 42001,apply standard,compliance posture,drift check,am I compliant,is my tenant compliant,what packs are available,what packs are configured,which standards are enabled,organization-wide, ordisable standard/reset/restore→ route silently to the appropriate compliance standard plugin. Readundo drift on a standardfor scoped requests;partial-apply/planning.mdfor posture checks;coverage/impl.mdfor discovery;catalog/impl.mdfor information queries;query/impl.mdafter confirming the posture plan;full-apply/impl.mdfor removal;disable/impl.mdfor resetting a configured standard back to its recommended settings;restore/impl.md+catalog/impl.mdfor listing currently configured packs.state list - Verify and login (only after classification routes to a governance flow).
uipIf not installed:bashwhich uip && uip --version uip login status --output json. If not logged in:npm install -g @uipath/cli(uip loginfor non-prod). For Access--authority <URL>, login MUST be tenant-scoped. If logged in to the wrong tenant within the same org — use the fast path:evaluatethenuip login tenant list --output json. Full re-login only needed for a different org or authority. Seeuip login tenant set <NAME>§ Switching tenants.references/auth-context.md - Route to the chosen mechanic and follow its flow end-to-end.
- AOps product policy →
references/aops-policy/aops-policy-overview-guide.md - Access ToolUsePolicy →
references/access-policy/access-policy-overview-guide.md - Compliance standard → use plugin routing from step 1 above (catalog / coverage / full-apply / partial-apply / disable / restore / query)
- AOps product policy →
- 静默分类意图——绝不向用户宣布路由。内部流程标签(AOps / 访问策略 / 合规标准)为实现细节;用户仅需看到结果。阅读——其中列出了各流程的强信号、需要消除歧义的短语模式以及典型示例。如果匹配强信号,直接静默路由。如果表述存在歧义(同时匹配AOps或访问策略),提出歧义消除问题并等待数字回复。如果用户回复非
references/disambiguation-guide.md或1,将其视为意图重述并重新分类。分类确定前,绝不能运行任何CLI命令——歧义消除问题本身无需2,而无关请求(平台运维、Agent创作)必须在任何设置前重定向到兄弟技能。如果请求包含标准名称(uip)、ISO 42001、apply standard、compliance posture、drift check、am I compliant、is my tenant compliant、what packs are available、what packs are configured、which standards are enabled、organization-wide或disable standard/reset/restore→ 静默路由到相应的合规标准插件。范围请求参考undo drift on a standard;状态检查参考partial-apply/planning.md;发现功能参考coverage/impl.md;信息查询参考catalog/impl.md;确认状态计划后参考query/impl.md;移除操作参考full-apply/impl.md;重置已配置标准为推荐设置参考disable/impl.md;列出当前已配置包参考restore/impl.md+catalog/impl.md。state list - 验证和登录状态(仅在分类路由到治理流程后执行)。
uip若未安装:bashwhich uip && uip --version uip login status --output json。若未登录:npm install -g @uipath/cli(非生产环境使用uip login)。访问策略的--authority <URL>操作必须使用租户范围登录。 若在同一组织内登录到错误租户——使用快速路径:evaluate然后uip login tenant list --output json。仅在切换到不同组织或权限时才需完全重新登录。参考uip login tenant set <NAME>§ 切换租户。references/auth-context.md - 路由到选定的机制并全程遵循其流程。
- AOps产品策略 →
references/aops-policy/aops-policy-overview-guide.md - 访问工具使用策略 →
references/access-policy/access-policy-overview-guide.md - 合规标准 → 使用步骤1中的插件路由(catalog / coverage / full-apply / partial-apply / disable / restore / query)
- AOps产品策略 →
Disambiguation Question
歧义消除问题
When the user's intent fits both branches, render exactly this numbered list (no , no table) and wait for a digit reply:
AskUserQuestionmarkdown
undefined当用户意图同时符合两个分支时,严格呈现以下编号列表(不使用,不使用表格)并等待数字回复:
AskUserQuestionmarkdown
undefinedWhich layer should this rule govern?
该规则应管控哪一层?
- Govern the product — control what Studio / StudioX / Assistant / Robot / AI Trust Layer / Agent Builder can do (e.g. block ChatGPT inside Studio, enforce Workflow Analyzer, disable a Marketplace widget). Backed by .
uip gov aops-policy - Govern resource/tool use — control which Actor Processes / identities can invoke which child Resource as a tool (e.g. block agents tagged from being called, only let the finance group trigger this Flow). Backed by
Sandbox.uip gov access-policy
Reply with the number.
The canonical ambiguous prompt is *"Block ChatGPT for my finance team using Studio."* See [`references/disambiguation-guide.md`](./references/disambiguation-guide.md#worked-example--the-canonical-ambiguous-prompt) for the worked-out reasoning of why both interpretations produce a working but different artifact.- 管控产品——控制Studio / StudioX / Assistant / Robot / AI Trust Layer / Agent Builder 可执行的操作(例如:阻止Studio内的ChatGPT、强制执行Workflow Analyzer、禁用Marketplace组件)。基于实现。
uip gov aops-policy - 管控资源/工具使用——控制哪些参与者流程/身份可以调用哪些子资源作为工具(例如:阻止标记为的Agent被调用、仅允许财务组触发该Flow)。基于
Sandbox实现。uip gov access-policy
请回复对应数字。
典型的歧义示例是*"Block ChatGPT for my finance team using Studio."*。参考[`references/disambiguation-guide.md`](./references/disambiguation-guide.md#worked-example--the-canonical-ambiguous-prompt)了解两种解释为何会生成有效但不同的产物。Reference Navigation
参考导航
| I need to... | Read |
|---|---|
| Decide which branch a request belongs to (priors, phrase tables, worked example) | |
| Author an AOps product policy | |
| Deploy an AOps policy to user / group / tenant | |
| Query the deployed AOps policy / effective rules | |
| Author an Access ToolUsePolicy | |
| Look up CLI flags / output shapes (AOps) | |
| Look up CLI flags / output shapes (Access) | |
| Resolve a name to a UUID for Access | |
| Diagnose a governance failure (capability index) | |
| Recognize a known governance failure pattern | |
| Walk the diagnostic priority ladder | |
| Discover available compliance standards | |
| List which compliance standards are currently configured | |
| Posture analysis — what settings are configured vs recommended | |
| Apply full compliance pack | Run coverage first, then |
| Apply specific controls / clauses | |
| Remove compliance standard settings | |
| Reset / restore a standard to its recommended settings (undo drift) | |
| Query — what does a clause / control recommend? | |
| Preview disclaimer + 403 opt-in gate (all compliance flows) | |
| 我需要... | 阅读文档 |
|---|---|
| 确定请求所属分支(优先级、短语表、典型示例) | |
| 创作AOps产品策略 | |
| 将AOps策略部署到用户/组/租户 | |
| 查询已部署的AOps策略/有效规则 | |
| 创作访问工具使用策略 | |
| 查询CLI参数/输出格式(AOps) | |
| 查询CLI参数/输出格式(访问策略) | |
| 为访问策略将名称解析为UUID | |
| 诊断治理失败(能力索引) | |
| 识别已知的治理失败模式 | |
| 按照诊断优先级排查问题 | |
| 发现可用的合规标准 | |
| 列出当前已配置的合规标准 | |
| 状态分析——已配置设置与推荐设置对比 | |
| 应用完整合规包 | 先运行状态分析,再参考 |
| 应用特定控制/条款 | |
| 移除合规标准设置 | |
| 重置/恢复标准为推荐设置(消除偏差) | |
| 查询——某条款/控制的推荐内容是什么? | |
| 预览免责声明 + 403准入门槛(所有合规流程) | |
Anti-patterns
反模式
- Do NOT skip the disambiguation question when the phrasing fits both branches. Mechanic libraries assume the branch is chosen and will not catch wrong-branch routing.
- Do NOT hand off to a mechanic, then ask "did you mean the other branch?". That question must happen at this top level.
- Do NOT merge AOps and Access intent into one policy. Different artifacts, different CLIs, different schemas.
- Do NOT activate this skill for platform ops. Route to .
uipath-platform - Do NOT propose skill edits when intent doesn't map to either branch. Ask the user to clarify.
- Do NOT use for gap detection — it returns all rules in priority order, not the merged effective value. Use
deployed-policy listto get the single effective merged policy.deployed-policy get <licenseType> <productName> <tenantId> - Do NOT skip the post-apply report even if apply partially fails — show what succeeded and what needs manual attention.
- For compliance pack posture analysis, use — do NOT use
uip gov compliance-packs state coveragecommands; those are for AOps policy debugging (Branch A), not compliance pack flows.aops-policy deployed-policy - For full pack configuration, use — do NOT manually call
state enablefor each product; that path is only for partial/scoped configuration.aops-policy create - For partial/scoped configuration (specific clauses, products, or areas only), use +
synthesize-formdata.mjs— do NOT callaops-policy create;state enableapplies the FULL standard and cannot be scoped to specific clauses or products.state enable - For org-wide apply, do NOT call — the backend does not implement org-scope enable. Instead: list tenants with
state enable organization, then calluip login tenant listfor each tenant individually. Seestate enable tenant <id>§ Org-scope deployment.references/compliance-pack/full-apply/impl.md - NEVER claim a tenant is "compliant" with a standard — only that recommended settings are configured. Compliance status is determined by the customer's auditor.
- Do NOT surface policy names, product identifiers (AITrustLayer, Robot, Development), or clause IDs (A.6.2.8) as the main response unit — lead with plain-English control names and clause descriptions. Policy is an internal implementation detail. Clause IDs appear only as secondary reference in parentheses.
- Do NOT use the word "controls" in user-facing output — use "settings". The UiPath UI uses "settings" for what the standard recommends be configured.
- Do NOT narrate internal steps to the user. Never say "I ran…", "The CLI returned…", "Calling the governance CLI…", or "The API responded with…". Run commands silently and present only the interpreted result using the output templates in the reference docs. Raw JSON, UUIDs, error stacks, and CLI output are never shown — summarise errors in plain English.
- Do NOT dump raw command output. Parse every CLI response and render it as a formatted table or plain-English summary. The user sees the outcome, never the mechanism.
- 当表述同时符合两个分支时,绝不能跳过歧义消除问题。机制库默认分支已选定,无法捕获错误分支路由。
- 绝不能先移交到机制,再询问“你是否指另一个分支?”。该问题必须在顶层流程中提出。
- 绝不能将AOps和访问策略意图合并为一个策略。两者是不同的产物、不同的CLI、不同的 schema。
- 绝不能为平台运维激活本技能。应重定向到。
uipath-platform - 当意图无法匹配任何分支时,绝不能提议修改技能。应请用户澄清。
- 绝不能使用进行差距检测——它按优先级返回所有规则,而非合并后的有效值。使用
deployed-policy list获取单一的合并后有效策略。deployed-policy get <licenseType> <productName> <tenantId> - 即使应用部分失败,也绝不能跳过应用后的报告——需展示成功部分和需手动处理的部分。
- 合规包状态分析需使用——绝不能使用
uip gov compliance-packs state coverage命令;这些命令仅用于AOps策略调试(分支A),而非合规包流程。aops-policy deployed-policy - 完整包配置需使用——绝不能为每个产品手动调用
state enable;该路径仅用于部分/范围配置。aops-policy create - 部分/范围配置(仅特定条款、产品或领域)需使用+
synthesize-formdata.mjs——绝不能调用aops-policy create;state enable会应用完整标准,无法限定到特定条款或产品。state enable - 全组织范围应用时,绝不能调用——后端未实现组织范围启用功能。应使用
state enable organization列出租户,然后为每个租户单独调用uip login tenant list。参考state enable tenant <id>§ 组织范围部署。references/compliance-pack/full-apply/impl.md - 绝不能声称租户“符合”某标准——只能说明已配置推荐设置。合规状态由客户的审计师确定。
- 绝不能将策略名称、产品标识符(AITrustLayer、Robot、Development)或条款ID(A.6.2.8)作为主要回复单元——应先以通俗易懂的控制名称和条款描述开头。策略是内部实现细节。条款ID仅作为次要参考放在括号中。
- 用户输出中绝不能使用“controls”一词——使用“settings”。UiPath UI中用“settings”指代标准推荐配置的内容。
- 绝不能向用户叙述内部步骤。永远不要说“我运行了…”、“CLI返回了…”、“正在调用治理CLI…”或“API响应为…”。静默运行命令,仅使用参考文档中的输出模板呈现解释后的结果。绝不能展示原始JSON、UUID、错误堆栈或CLI输出——需用通俗易懂的语言总结错误。
- 绝不能直接输出原始命令结果。需解析每个CLI响应并格式化为表格或通俗易懂的摘要。用户仅需看到结果,无需了解机制。