/headless-cloud-security:sysdig-account-setupfrom headless-cloud-security
Guides baseline setup for a new Sysdig Secure tenant: teams/users/roles, vulnerability policies, compliance posture assignments, and runtime detection policies. Idempotent with confirmation before mutations.
Ships in headless-cloud-security. 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.
Before doing any other work for this skill, follow references/first-run-notice.md exactly.
This skill describes steps by capability, not by tool name: ask a structured question, get explicit confirmation, write a file, run a command. Follow references/agent-capabilities.md for how to do each one with your agent's tools, and what to do when a capability is missing — including when nobody can answer a question.
If you're ever asked to generate a custom report or document — not this skill's normal output — keep it on-brand per references/on-brand-output.md, or hand off to the sysdig-report skill if it's installed. Opt-in guidance, never a requirement.
You configure the operational baseline of a freshly connected Sysdig Secure
tenant. Onboarding connects the infrastructure; this skill leaves the account
usable. All work is done through the Sysdig MCP server — no API token or
curl is needed; the MCP's authenticated session (the same one used for reads)
performs the writes, and the write tools encapsulate the API's sharp edges
(mandatory team scopes, posture replace-semantics, full-object policy updates).
It is modular — the user picks which domain(s) to set up:
Out of scope (do not attempt here): fine-grained policy/rule/control tuning, SSO/SAML, SCIM, and per-user profile preferences. Those are separate milestones. If the user asks, say they are not part of this baseline yet and point them to a future session.
list_teams".curl fallback.Confirm the caller can make the changes: call get_current_user (and
get_user_permissions if needed). Baseline setup needs admin-level permissions;
each flow needs different ones:
teams.create, users.create, memberships.editsecure.vm.policies.writeposture-policies.editpolicies.editIf the user is not an Admin (or lacks the permission for a selected flow), stop for that flow and tell them they need an Admin — do not attempt its mutating steps.
Ask which baseline(s) the user wants to set up now (one question, multi-select):
Run the selected flows in order; a user may pick any combination. Skip the flow(s) they don't choose.
list_teams, list_users, list_roles.Interview the user on how they want teams organized. Offer baseline options:
secure-prod, secure-dev; a
common baseline.For any team that should be scoped to specific zones, offer the zone list via
list_zones and collect zone_ids (otherwise all zones). Do not create anything
yet — collect intent.
Present the built-in standard team roles from the ROLE_TEAM_* table in the
reference (these are always available; do not rely on list_roles, which
returns only tenant-defined custom roles and is empty on a fresh tenant).
get_default_role takes a role's display name and returns the permissions it
grants — use it to explain trade-offs. For each team, pick the
standard_team_role new members get by default and pass the ROLE_TEAM_*
enum (not the display name). Only surface custom roles (list_roles →
custom_team_role_id) if the user explicitly wants one. Collect intent.
Collect the users to add: email (required), first/last name, target team + role,
and whether they are an account Admin. Also ask whether to send each user an
invitation email now: create_user defaults to send_activation_email: false
(creates the account silently — no email), and only send_activation_email: true
emails the person so they can activate/log in. Since "Invite users" implies they
should be able to log in, confirm this choice explicitly — sending the email is
the outward-facing act. Collect intent; do not create yet.
Confirm and apply in dependency order, matching against the Step A1 lists:
create_team (for product: secure the
tool auto-includes the mandatory HOST_CONTAINER scope — pass explicit
scopes only to narrow what data the team sees; set zone visibility
separately via is_all_zones (default) xor zone_ids). Present → update_team
if fields differ, else skip. Skip immutable/system default teams.create_user; set
send_activation_email: true only for users the person chose to invite
(that email send is the outward-facing act — confirm it specifically);
otherwise it defaults to false and the account is created silently. Present →
skip creation (optionally update_user for name/admin fixes).save_team_membership (idempotent upsert) with the
chosen standard_team_role, using the numeric team_id/user_id resolved
from the list_teams/list_users results.Confirm each batch separately. Report every action as
created / updated / skipped / failed with the resource name. On a tool
error, surface the message and stop that batch — do not retry blindly.
Read references/vm-policies.md first — model (bundles
list_vulnerability_policies (existing policies + their stages) and
list_vulnerability_bundles (available rule sets). Summarize; mutate nothing.
Interview:
pipeline, runtime, registry. Default baseline =
pipeline + runtime. Note a pipeline stage gates CI by its mere presence
(a failing scan can break the build) — call this out. Do not add
admission_control with behaviour: reject unless the user explicitly asks — it
can block Kubernetes deployments.Severe vulnerabilities with a Fix; match by
name in list_vulnerability_bundles and pass its id. Collect intent.Match policies by name (Step B1 list). Missing → create_vulnerability_policy;
present → update_vulnerability_policy if bundles/stages differ, else skip.
Confirm before creating any gating stage (pipeline, or admission_control
with reject) — state the blast radius. Report
created/updated/skipped/failed. Never delete an existing policy unless the
user explicitly asks.
Read references/compliance.md first. A compliance standard = a posture policy; you make it active by assigning it to a zone.
list_posture_policies (is_custom=false, is_active=true) → the catalog of
built-in standards (each has id, name, zones[]).list_zones → the zones to assign to.get_zone_posture_policies({ zone_id }) per candidate zone → current
assignment. Summarize which standards are already assigned where. Mutate nothing.Interview: which standard(s) (e.g. CIS AWS Foundations, PCI DSS, NIST, or
All Posture Findings as a broad default) and which zone(s). Match standards by
name in the catalog and use their id. Collect intent.
Per (zone, standards): if all chosen IDs are already assigned, skip. Otherwise
call set_zone_posture_policies({ zone_id, policy_ids, mode: "add" }) — add
(the default) unions with the current assignment, so other standards on the zone
are preserved. Only use mode: "replace"/"remove" on explicit request (replace
is destructive — confirm). Pass only IDs read from the catalog. Confirm before
applying. Report assigned/skipped/failed per (zone, standard).
Read references/runtime-policies.md first. Runtime policies are on/off; this flow does the initial enablement of recommended managed policies — no per-rule tuning.
list_runtime_policies. Summarize per type (falco, drift, malware,
machine_learning, k8s_audit, cloud types, windows): how many managed
(origin: Sysdig) exist and how many are already enabled. Mutate nothing.
Interview: which detection categories are relevant to the connected environment
(e.g. falco/drift/malware/k8s_audit for Kubernetes; a cloud type only
where that cloud is connected). Default proposal = enable the managed
(origin: Sysdig) policies for the relevant categories that are currently off.
Collect intent. Do not propose bulk-disabling.
Per policy: if already at the desired state, skip (pre-check). Otherwise call
update_runtime_policy({ policy_id, enabled }) — the tool does the
read-modify-write (full-object PUT) for you. Confirm before a bulk enable — it
raises alert volume (it does not block workloads). Never bulk-disable managed
policies or delete any policy unless explicitly asked. Report
enabled/disabled/skipped/failed.
list_* reads — nothing is persisted; a re-run re-discovers current state.references/agent-capabilities.md (opens in a new tab)references/auth-preflight.md (opens in a new tab)references/compliance.md (opens in a new tab)references/first-run-notice.md (opens in a new tab)references/on-brand-output.md (opens in a new tab)references/runtime-policies.md (opens in a new tab)references/teams-users-roles.md (opens in a new tab)references/trust-preamble.md (opens in a new tab)references/vm-policies.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sysdig/skills --plugin headless-cloud-security8 skills in this plugin
/sysdig-investigateInvestigate and prioritize vulnerable images in a Sysdig-monitored environment via two flows, routed from the user's goal. Plans flow — plan-driven prioritization: pick an admin-configured Plan (or explore ranked jobs under an ad-hoc scope and measure) and walk the prioritized remediation jobs one at a time. Findings flow — ad-hoc findings analysis: filter, regroup, sort, and page vulnerability findings the way the Vulnerability Management UI table does. Hands any chosen image off to /sysdig-remediate, which owns tickets, PRs, job tracking, and job closing. Triggers on: "investigate", "what should I fix", "what should I fix first", "show me my vulnerable images", "prioritize vulnerabilities", "which images are affected by CVE-...", "show me all Critical CVEs in production", "/sysdig-investigate". Not for opening PRs, applying fixes, or creating/updating tickets — use /sysdig-remediate for all of those.
/sysdig-onboardingInteractive onboarding assistant for Sysdig Secure. Guides users through connecting AWS, GCP and Azure cloud accounts, Kubernetes clusters (including Windows nodes), and Linux hosts to Sysdig, plus serverless workload scanning (AWS ECS/Fargate, AWS Lambda, GCP Cloud Run). Presents security capabilities in plain language instead of jargon. Supports guided (interview) and autonomous (all-at-once) modes. Generates Terraform configurations for cloud accounts and Helm values for Kubernetes, validates prerequisites, deploys, and verifies connectivity.
Other plugins' skills for the same job