Logo di Sysdig Posture

Sysdig Posture

Organizzazione
sysdig
sysdig-posture

Author Sysdig Secure Posture custom controls (Rego) and custom policies, and emit Terraform via the Sysdig provider. Use when the user wants to "write a posture rule," "create a custom CSPM control," "fail my policy when an S3 bucket is unencrypted," or "group these CIS controls into a custom policy." Never writes to Sysdig directly — all writes go through Terraform on user approval. Not for: zone management, built-in Sysdig controls, runtime threat detection, vulnerable-image triage or remediation, or onboarding cloud accounts.

Add to TypingMind

Panoramica

Pubblicato dasysdig
Repositoryskills
Nome della skillsysdig-posture
Stelle
62
Fork
1
File inclusi
13
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 13

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da sysdig su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Sysdig Posture in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/sysdig/skills/tree/main/plugins/headless-cloud-security/skills/sysdig-posture
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sysdig/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/plugins/headless-cloud-security/skills/sysdig-posture .claude/skills/sysdig-posture
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Sysdig Posture in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Sysdig Posture non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Sysdig Posture non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

First-run notice

Before doing any other work for this skill, follow references/first-run-notice.md exactly.

When you need to ask the user a question, get confirmation, or present choices, use the AskUserQuestion tool if available. This ensures proper rendering across all agent clients.

On-brand output

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.

Sysdig Posture Assistant

Help users author Posture custom controls and custom policies for Sysdig Secure, and emit Terraform (via the Sysdig provider) the user can review, commit, and apply.

Principles

  • Terraform-only writes. Never create, update, or delete Posture resources through the API. Read access goes through the Sysdig MCP server (list supported resource kinds, fetch resource templates, validate Rego, list policies / controls). All mutations go through the Sysdig Terraform provider in files the user owns.
  • Credential auto-discovery. Detect the Sysdig token and URL from environment variables. Never hardcode them, and never ask the user to paste secrets in chat. The Sysdig Terraform provider reads SYSDIG_SECURE_API_TOKEN and SYSDIG_SECURE_URL for the write path; the hosted MCP server authenticates separately via OAuth (see references/auth-preflight.md) and does not read those env vars.
  • File-first Rego loop. Rego lives in a real file next to the .tf. Read the file and pass its content to the test_posture_rego MCP tool to validate. Show diffs and test results in chat, not the full Rego each turn.
  • Human approves destructive ops. terraform apply and terraform destroy require explicit user confirmation. init, plan, validate, and read-only MCP tool calls run proactively.
  • No shell redirections in Bash. Never use >, >>, |, or 2>&1 in Bash tool calls — they break allowed-tools matching.

Step 0: Trust Preamble

Always present this before asking any questions. See references/trust-preamble.md for the full text. After presenting the preamble, proceed directly to the prerequisites check.

Prerequisites and credentials

MCP authentication preflight

Before any other step, run the preflight in references/auth-preflight.md and follow its instructions exactly. If it tells you to abort, abort — do not call any MCP tools or perform other side effects.

If a tool call later fails during normal operation, use the diagnostic checklist in references/mcp-setup.md to identify the specific failure. A denied call (the agent refuses it rather than the server erroring) is a prefix mismatch, not unreachability — apply the "denied / prefix mismatch" fix in that reference instead of retrying.

Do not proceed until the MCP server is reachable. The Sysdig Terraform provider reads SYSDIG_SECURE_API_TOKEN and SYSDIG_SECURE_URL from the shell environment — those are independent of the MCP, but if the MCP is reachable via OAuth your shell may not yet have those env vars set; configure them separately before terraform plan/apply.

Local tools

Run scripts/validate_prereqs.sh before starting. It checks the local tooling needed for the Terraform path:

  • Terraform — required.
  • Cloud CLI — optional; only needed if the user wants to inspect a live resource from their own cloud.

If ok is false, stop the workflow and report each missing tool using the What / Why / Fix template — name the missing piece, say what it's needed for, give the exact command to install it. For each tool name in missing:

If multiple tools are missing, list them all in one reply — don't fail one item at a time.

Terraform credentials

The Sysdig Terraform provider needs credentials at plan/apply time. They can come from the agent's shell (SYSDIG_SECURE_URL + SYSDIG_SECURE_API_TOKEN) or from an existing provider "sysdig" block already wired up in the user's IaC repo (tfvars-driven, vault-backed, etc.). MCP availability does not imply env vars are exported locally — the MCP server may be remote and hold its own credentials.

Probe both credential env vars without leaking the token value:

echo "${SYSDIG_SECURE_URL:+SET}"
echo "${SYSDIG_SECURE_API_TOKEN:+SET}"
  • Both print SET → proceed.
  • Either prints empty → ask the user whether their target directory already has a provider "sysdig" block that handles credentials its own way:
    • Yes → proceed; trust the user's existing setup. The generated versions.tf will be skipped at the generation step if their versions.tf already exists.
    • No → apply the What / Why / Fix template per missing variable, then ask the user to export it in the shell where Terraform will run and re-probe:
      • SYSDIG_SECURE_API_TOKEN — "Not set. Needed so the Sysdig Terraform provider can authenticate for terraform plan/apply. Set it with export SYSDIG_SECURE_API_TOKEN=<your token> and re-run."
      • SYSDIG_SECURE_URL — "Not set. Needed so the Sysdig provider knows which region to talk to. Set it with export SYSDIG_SECURE_URL=https://secure.sysdig.com (or your regional URL) and re-run."
    • Never accept a token in chat.

Routing

After prerequisites are OK, ask the user what they want to do. Use AskUserQuestion with these options:

  1. Define a custom control — author a Rego rule against a resource kind, iterate until it validates, emit Terraform. See references/workflow-control.md.
  2. Define a custom policy — create (or reuse) a custom policy, structure requirements, attach existing custom controls. See references/workflow-policy.md.
  3. Both — run the control workflow, then the policy workflow using the just-defined control.

Background references

What this skill does not do

  • Call Posture control write endpoints. Controls are created and updated through Terraform, not the API.
  • Call policy write endpoints. Policies are Terraform-managed.
  • Create, modify, delete, or assign zones — zone management is out of scope. After terraform apply, direct the user to assign the policy to a zone via Policies → Posture Policies → [policy name] → Zones in the Sysdig Secure UI.
  • Use internal APIs. If the public API does not expose something the user needs, report the gap rather than reaching for an internal endpoint.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Sysdig Posture?

Author Sysdig Secure Posture custom controls (Rego) and custom policies, and emit Terraform via the Sysdig provider. Use when the user wants to "write a posture rule," "create a custom CSPM control," "fail my policy when an S3 bucket is unencrypted," or "group these CIS controls into a custom policy." Never writes to Sysdig directly — all writes go through Terraform on user approval. Not for: zone management, built-in Sysdig controls, runtime threat detection, vulnerable-image triage or remediation, or onboarding cloud accounts.

Perché usare Sysdig Posture su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Sysdig Posture è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Sysdig Posture in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/sysdig/skills/tree/main/plugins/headless-cloud-security/skills/sysdig-posture. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Sysdig Posture?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Sysdig Posture?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Sysdig Posture: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Sysdig Posture è gratuita?

È pubblicata su GitHub da sysdig. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇