/speakeasy:manage-risk-policy-audiencefrom Speakeasy Platform
Inspect and safely change who a risk policy targets in an explicit Speakeasy AI Control Plane project, with confirmed administrator audience changes and clear refusals for unavailable self-exclusion.
Ships in Speakeasy Platform. 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.
None: SKILL.md is the whole skill.
If this connection lists call_platform_tool instead of the tools this workflow names, find each named tool with search_platform_tools, describe it with describe_platform_tool, then run it with call_platform_tool and the same arguments. Whether a tool exists for you is decided by describe_platform_tool with its exact name, not by tools/list or one page of search results: a name returned in not_found is unavailable to you, so say so rather than guess. The call itself still checks your access. When execute is also listed, a multi-step read may run in execute with tools.search, tools.describe and tools.call on platform--<tool name> paths. End each execute run at a confirmation point and ask the user before any write.
Use the executing client's authenticated Platform MCP connection. Installing this skill grants no authority. Live membership, organization-admin permission, explicit-project authorization, and the risk-mutation rollout remain authoritative. Never request credentials or use another client's identity.
list_projects through this client's connection. Ask the user to choose the exact project slug. If discovery is incomplete or the requested project is unavailable, stop; never substitute Default or another project.list_risk_policies for that project and ask the user to select the exact policy. Names are not unique: retain the returned policy ID rather than guessing from a name. Follow pagination for discovery, or accept an exact user-supplied policy ID and verify it directly.get_risk_policy for the exact project and policy. Inspect its current audience, compatibility, and opaque version. Keep principal URNs, policy IDs, versions, and idempotency keys as internal tool arguments rather than displaying them as user instructions. A policy audience is a set of positive user/role grants, not a list of exceptions or proof of effective membership.For “remove me,” explain that self-removal and effective exclusion are unavailable pending organization-scoped coordination of audience grants. remove_self_from_risk_policy remains discoverable to external organization administrators but always refuses before database transactions or receipt replay. Do not claim that deleting a positive user grant proves the requester is no longer covered.
Stop without writing. Do not bypass this refusal with change_risk_policy_audience, general audience replacement, policy disablement, role or membership changes, a risk exclusion, or reconstruction of Everyone as today's member list. Never infer a human from managed-assistant attribution. A separately requested administrator change to direct positive grants is a different outcome, not a workaround for self-exclusion.
For a separately requested incremental administrator change, use change_risk_policy_audience through an external OAuth organization-admin connection. Managed assistants cannot discover or invoke this tool, and their policy reads omit exact audience identities.
get_risk_policy for the exact target immediately before writing. If the audience changed, obtain confirmation again. Call change_risk_policy_audience with the exact project_slug, policy_id, fresh expected_version, stable idempotency_key, confirmed: true, and both add_principals and remove_principals arrays. Each list is bounded to 100 user/role URNs; the resulting targeted audience must contain 1–100 principals. Use an empty array for the unchanged side; at least one array must be nonempty. The tool atomically preserves all audience entries outside the delta and unrelated policy settings.For a separately requested administrator audience change through an external OAuth connection, use update_risk_policy only for a complete replacement, not an incremental request. Managed-assistant reads omit exact audience identities, and managed assistants cannot replace audiences. Read the exact policy first and obtain explicit confirmation of the complete replacement—not merely one addition or deletion. Omit every unrelated patch field. Use patch.audience with type, principal_urns, and confirm: true, plus the usual project, policy, expected version, and idempotency key.
targeted requires a nonempty list of valid organization user or role principal URNs (at most 100 entries). Preserve every principal outside the explicitly confirmed change. Use exact trusted selections; never guess identifiers or use names as identities.everyone requires an empty principal_urns array. This broadens the policy to everyone and needs explicit confirmation of that effect. It is never a fallback for a failed targeted update.If another grant change prevents the write, report that no change was made and retry only after a fresh policy read and renewed confirmation.
After any write, call get_risk_policy again for the same project and policy. Verify the intended audience and preservation of unrelated policy fields. A receipt replay proves a historical commit, not current state. On a version conflict, read again and obtain renewed confirmation before using a new key; never retry with a different target.
Report only the supported outcome: the committed audience change and whether the fresh read confirms it. Do not claim a permanent exemption, retroactive removal of findings, or immunity from other policies or future audience changes. If verification fails, distinguish the committed result from incomplete current-state verification.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
17 skills in this plugin
/add-existing-mcp-serversUse when migrating MCP servers already configured in a local agent client (Claude Code, Codex, Cursor, Gemini CLI, VS Code or another client) to an explicit Speakeasy AI Control Plane project as remote MCPs, including discovering which servers are missing and optionally restricting them to the organization's Tailscale private network./add-mcp-from-catalogAdd a reviewed MCP Catalogue server to an explicit AICP project through the Speakeasy AI Control Plane Platform MCP./add-mcp-from-remote-urlAdd a user-supplied remote MCP server URL to an explicit AICP project through the Speakeasy AI Control Plane Platform MCP./author-signals-and-sensorsCreate or update reusable signals and message sensors in an explicit Speakeasy AI Control Plane project, with confirmed atomic authoring and live verification./configure-private-mcp-accessConfigure the address and network access of an existing MCP server or gateway in an AICP project, then check whether its plugin package reflects the new address./create-guardrail-from-descriptionUse when an administrator of a Speakeasy AI Control Plane project says what they want to catch or prevent, in the dashboard's Guardrails terms or their own words, rather than which detectors to enable. Creates one risk policy in an explicit project from a use-case preset or a bespoke prompt-based guardrail through the Platform MCP.npx claudepluginhub speakeasy-api/marketplace --plugin speakeasy