compliance
Skill71 starsChanged 8 days agoApache-2.0View on GitHub
SOC 2 compliance for Terraform — gap analysis, control implementation, evidence collection, and remediation guidance mapped to SOC 2 Trust Services Criteria.
We split this skill into the rules it gives an agent
11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read references/compliance.md before responding.
- Distinctive: line 20
When invoked with no arguments, ask before proceeding:
- Distinctive: line 43
checklist: no follow-up needed — proceed directly
- Distinctive: line 73
When the user names a specific SOC 2 criterion or describes a control to implement:
- Very specific: line 80
Follow the patterns from references/compliance.md — do not invent resource attributes or provider arguments.
- Distinctive: line 84
When the user needs to gather evidence for an auditor:
- Very specific: line 94
When the user describes a specific finding (e.g., "Checkov reports CKV_AWS_19 failing"):
- Distinctive: line 113
Blast radius: No replacement. Adds encryption to existing bucket.
- Distinctive: line 115
Rollback: Remove the resource block and apply — encryption configuration is deleted but bucket and objects remain.
- Very specific: line 119
Run through the SOC 2 readiness checklist from references/compliance.md:
- Distinctive: line 127
If the input does not match a specific topic, infer the closest match and state which framework you applied.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
<user-input>$ARGUMENTS</user-input>
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
SOC2framework 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 clusterand 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:
- Map the scope to the relevant TSC criteria (CC6.1 through CC8.1, A1.1)
- Identify gaps — what is missing, misconfigured, or undocumented
- Prioritise findings: Critical (audit blocker) / High (likely finding) / Medium (improvement)
- 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 CIDRcontrol — Implement a SOC 2 Control
When the user names a specific SOC 2 criterion or describes a control to implement:
- State the criterion and what it requires
- Provide the exact Terraform resource(s) to implement it
- List the Checkov rule IDs that validate it
- 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:
- Identify the criterion from context
- Provide copy-paste AWS CLI commands targeting that criterion
- Note what the output proves and what the auditor is looking for
- Flag if any command requires elevated permissions to run
- 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 pdffor the auditor). In-cluster accepted risks with owner and expiry arekubectl 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"):
- Explain what the finding means and which SOC 2 criterion it maps to
- State the root cause (why the Terraform produces this finding)
- Provide the exact Terraform change — old block, new block
- Note blast radius: will this change cause resource replacement?
- Provide validation steps after applying
- 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:
# 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
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- kortix-ai/suna★ 20ksame name
- wp-media/wp-rocket★ 767same name
- vivy-yi/xiaohongshu-skills★ 455same name
- anthropics/claude-for-financial-advisors★ 131same name
- autosendhq/email-skills★ 18same name
- Lukasbrujula/claude-code-framework★ 4same name
- Percival-Labs/engram★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- copilot-academy/od-octocat-supply-compliance-docs★ 1same name
- Abdox-menara/guard-skills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/keda.mdcCursor rule
- .cursor/rules/kubernetes.mdcCursor rule
- .cursor/rules/platform-skills.mdcCursor rule
- .cursor/rules/terraform.mdcCursor rule
- code-reviewSkill
- platform-skillsSkill
- ai-governanceSkill
- awesome-docsSkill
- aws-profileSkill
- awsSkill
- azureSkill
- backup-drSkill
- chaosSkill
- checkovSkill
- cluster-upgradeSkill
- commitSkill
- composite-actionsSkill
- datadogSkill
- debugSkill
- documentSkill
- doraSkill
- dynatraceSkill
- finopsSkill
- fluxcdSkill
- gateway-apiSkill
- github-actionsSkill
- gitopsSkill
- helmchartSkill
- karpenterSkill
- kedaSkill
- kingfisherSkill
- kubernetesSkill
- kubescape-operatorSkill
- kubescapeSkill
- kyvernoSkill
- linkerdSkill
- linuxSkill
- mcpSkill
- observabilitySkill
- opaSkill
- openshiftSkill
- platform-skillsSkill
- preflightSkill
- productSkill
- progressive-deliverySkill
- pr-reviewSkill
- renovateSkill
- runtime-securitySkill
- secretsSkill
- self-improveSkill
- setup-agentsSkill
- supply-chainSkill
- terraformSkill
- token-optimizerSkill
- triageSkill
- trivySkill
- zizmorSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

