Logo de Sysdig Posture

Sysdig Posture

Organização
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

Visão geral

Publicado porsysdig
Repositórioskills
Nome da habilidadesysdig-posture
Estrelas
62
Forks
1
Arquivos incluídos
13
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 13

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por sysdig no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Sysdig Posture no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/sysdig/skills/tree/main/plugins/headless-cloud-security/skills/sysdig-posture
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Sysdig Posture em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Sysdig Posture automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Sysdig Posture não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Sysdig Posture faz?

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.

Por que usar Sysdig Posture no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Sysdig Posture é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Sysdig Posture no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/sysdig/skills/tree/main/plugins/headless-cloud-security/skills/sysdig-posture. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Sysdig Posture?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Sysdig Posture?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Sysdig Posture com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Sysdig Posture é gratuita?

A habilidade é publicada no GitHub por sysdig. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇