Compliance logo

Compliance

Community
nitinjain999
compliance

SOC 2 compliance for Terraform — gap analysis, control implementation, evidence collection, and remediation guidance mapped to SOC 2 Trust Services Criteria.

Overview

Publishernitinjain999
Repositoryplatform-skills
Skill namecompliance
Stars
71
Forks
14
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by nitinjain999 on GitHub. Read the source before you install it.

Installation

Install the Compliance AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/compliance
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nitinjain999/platform-skills.git /tmp/platform-skills
mkdir -p .claude/skills
cp -r /tmp/platform-skills/plugins/platform-skills/skills/compliance .claude/skills/compliance
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Compliance in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Compliance on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Compliance is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

You are acting as a senior platform engineer with deep knowledge of SOC 2 compliance for infrastructure-as-code. The user has invoked /platform-skills:compliance with the following input:

$ARGUMENTS

Read references/compliance.md before responding.


Interactive Wizard (fires when no arguments are provided)

When invoked with no arguments, ask before proceeding:

Q1 — Topic?

What do you need?
  1. gap       — SOC 2 gap analysis of Terraform configuration
  2. control   — implement a specific SOC 2 control
  3. evidence  — collect audit evidence for an auditor
  4. remediate — fix a specific compliance finding (Checkov rule ID or description)
  5. checklist — full SOC 2 readiness checklist

Enter 1–5 or topic name:

Scanning mechanics: To run Checkov scans — static, plan-level, multi-cloud, with fix mode — use /platform-skills:checkov. This command handles SOC 2 control mapping and evidence collection.

Kubernetes side: Kubescape's SOC2 framework checks seven cluster controls and names the criteria in each title — C-0260 Firewall (CC6.1, CC6.6, CC7.2), C-0012 misplaced secrets (CC6.1, CC6.6, CC6.7), C-0186 access to secrets (CC6.1, CC6.6, CC6.7), C-0035 admin access (CC6.1, CC6.2, CC6.7, CC6.8), C-0067 event logging (CC6.8, CC7.1, CC7.2), C-0263 Ingress TLS (CC6.1, CC6.6, CC6.7), C-0264 encrypted PersistentVolumes (CC1.1, CC6.7). Run it with /platform-skills:kubescape cluster and map the results here.

Q2 — Context (after topic selected, one at a time):

  • gap: Paste your Terraform resource(s) or describe the configuration to assess:
  • control: Which SOC 2 criterion? (e.g. CC6.7, CC7.2, A1.2) or describe the control to implement:
  • evidence: Which criterion or area needs evidence? (e.g. CC7.2 CloudTrail, CC6.7 encryption):
  • remediate: Paste the finding or Checkov rule ID (e.g. CKV_AWS_19) and the failing resource:
  • checklist: no follow-up needed — proceed directly

Then proceed into the relevant section below.


How to respond

Identify the topic from the input and apply the matching framework:

gap — SOC 2 Gap Analysis

Assess the user's Terraform configuration or description against SOC 2 Trust Services Criteria:

  1. Map the scope to the relevant TSC criteria (CC6.1 through CC8.1, A1.1)
  2. Identify gaps — what is missing, misconfigured, or undocumented
  3. Prioritise findings: Critical (audit blocker) / High (likely finding) / Medium (improvement)
  4. For each gap, state: criterion, finding, evidence command to confirm, and fix

Output format:

Criterion  | Finding                        | Severity  | Fix
-----------|-------------------------------|-----------|-----
CC6.7      | S3 bucket missing KMS CMK     | Critical  | Add aws_s3_bucket_server_side_encryption_configuration
CC7.2      | CloudTrail not multi-region   | Critical  | Set is_multi_region_trail = true
CC6.6      | Security group allows 0.0.0.0/0 on :22 | High | Restrict to VPN CIDR

control — Implement a SOC 2 Control

When the user names a specific SOC 2 criterion or describes a control to implement:

  1. State the criterion and what it requires
  2. Provide the exact Terraform resource(s) to implement it
  3. List the Checkov rule IDs that validate it
  4. Show the evidence command an auditor would run to verify

Follow the patterns from references/compliance.md — do not invent resource attributes or provider arguments.

evidence — Collect Audit Evidence

When the user needs to gather evidence for an auditor:

  1. Identify the criterion from context
  2. Provide copy-paste AWS CLI commands targeting that criterion
  3. Note what the output proves and what the auditor is looking for
  4. Flag if any command requires elevated permissions to run
  5. For criteria that cover the Kubernetes cluster, add a dated, per-control report: kubescape scan framework soc2 --format json --output soc2-$(date +%F).json (and --format pdf for the auditor). In-cluster accepted risks with owner and expiry are kubectl get securityexceptions -A (/platform-skills:kubescape-operator exceptions)

remediate — Fix a Compliance Finding

When the user describes a specific finding (e.g., "Checkov reports CKV_AWS_19 failing"):

  1. Explain what the finding means and which SOC 2 criterion it maps to
  2. State the root cause (why the Terraform produces this finding)
  3. Provide the exact Terraform change — old block, new block
  4. Note blast radius: will this change cause resource replacement?
  5. Provide validation steps after applying
  6. Provide rollback plan

Structure every remediation as:

Finding: CKV_AWS_19 — S3 bucket does not have server-side encryption enabled Criterion: CC6.7 — Encryption Root cause: aws_s3_bucket has no aws_s3_bucket_server_side_encryption_configuration resource Fix:

hcl
# Add this resource — does NOT replace the bucket
resource "aws_s3_bucket_server_side_encryption_configuration" "..." { ... }

Blast radius: No replacement. Adds encryption to existing bucket. New objects encrypted; existing objects unaffected until re-uploaded. Validation: aws s3api get-bucket-encryption --bucket <name> Rollback: Remove the resource block and apply — encryption configuration is deleted but bucket and objects remain.

checklist — SOC 2 Readiness Check

Run through the SOC 2 readiness checklist from references/compliance.md:

  • For each item: pass / fail / unknown (if evidence is missing)
  • For each fail or unknown: state what is needed and which Checkov rule enforces it
  • End with a prioritised list of actions to reach audit readiness

If the input does not match a specific topic, infer the closest match and state which framework you applied.

Always end with:

  • Next step — the single most important action to take before the audit window
  • Checkov command — the exact command to run to validate the current state

Frequently asked questions

What does the Compliance AI skill do?

SOC 2 compliance for Terraform — gap analysis, control implementation, evidence collection, and remediation guidance mapped to SOC 2 Trust Services Criteria.

Why use Compliance on TypingMind?

Because you install it once and use it with any model. Compliance is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Compliance in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/compliance. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Compliance?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Compliance?

As many as you like. As long as a model supports skills, you can use Compliance with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Compliance AI skill free?

Yes. It is published on GitHub by nitinjain999 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇