/code-to-control-mapper
Maps infrastructure code (Terraform, Kubernetes, CloudFormation) to compliance controls (ISO 27001, SOC 2, NIST 800-53). Analyzes IaC files and generates compliance evidence mappings showing which controls are satisfied.
$ npx -y skills add GRCEngClub/claude-grc-engineering --skill code-to-control-mapper --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/code-to-control-mapper
Context preview
The summary Claude sees to decide when to auto-load this skill.
Maps infrastructure code (Terraform, Kubernetes, CloudFormation) to compliance controls (ISO 27001, SOC 2, NIST 800-53). Analyzes IaC files and generates compliance evidence mappings showing which controls are satisfied.
SKILL.md
code-to-control-mapper.SKILL.mdname: code-to-control-mapper
description: Maps infrastructure code (Terraform, Kubernetes, CloudFormation) to compliance controls (ISO 27001, SOC 2, NIST 800-53). Analyzes IaC files and generates compliance evidence mappings showing which controls are satisfied.
allowed-tools: Bash, Read, Glob, Write, Edit
Code-to-Control Mapper
Maps infrastructure-as-code (IaC) files to specific compliance framework controls. Translates technical implementations into audit-ready compliance evidence.
Quick Commands
**Map a Terraform file to SOC 2:**
node plugins/grc-engineer/scripts/map-control.js main.tf SOC2
**Map Kubernetes manifests to ISO 27001:**
node plugins/grc-engineer/scripts/map-control.js k8s/deployment.yaml ISO27001
**Map CloudFormation template to NIST 800-53:**
node plugins/grc-engineer/scripts/map-control.js template.yaml NIST80053
Supported Frameworks
- **SOC2** - Service Organization Control 2 (CC6.1, CC7.2, etc.)
- **ISO27001** - ISO/IEC 27001 (Annex A controls)
- **NIST80053** - NIST Special Publication 800-53
- **PCIDSS** - Payment Card Industry Data Security Standard
- **HIPAA** - Health Insurance Portability and Accountability Act
- **GDPR** - General Data Protection Regulation
Supported IaC Formats
- **Terraform** (.tf, .tfvars)
- **Kubernetes** (.yaml, .yml)
- **CloudFormation** (.yaml, .json)
- **Ansible** (.yml)
- **Pulumi** (.ts, .js, .py)
Output Format
Generates markdown reports with:
- Control ID and description
- Evidence location (file:line)
- Compliance status (Satisfied/Partial/Not Satisfied)
- Recommendations for improvement
Example Output
# Compliance Mapping Report
## SOC 2 - CC6.1: Logical and Physical Access Controls
**Status:** ✅ Satisfied
**Evidence:**
- `main.tf:45` - `aws_db_instance` with `storage_encrypted = true`
- `main.tf:52` - IAM role with least privilege policy
**Mapping:** Data at rest encryption via AWS KMS satisfies encryption requirements.
Prerequisites
- IaC file to analyze
- Optional: Framework name (defaults to SOC2)
Read more
name: code-to-control-mapper description: Maps infrastructure code (Terraform, Kubernetes, CloudFormation) to compliance controls (ISO 27001, SOC 2, NIST 800-53). Analyzes IaC files and generates compliance evidence mappings showing which controls are satisfied. allowed-tools: Bash, Read, Glob, Write, Edit
Code-to-Control Mapper
Maps infrastructure-as-code (IaC) files to specific compliance framework controls. Translates technical implementations into audit-ready compliance evidence.
Quick Commands
**Map a Terraform file to SOC 2:**
node plugins/grc-engineer/scripts/map-control.js main.tf SOC2
**Map Kubernetes manifests to ISO 27001:**
node plugins/grc-engineer/scripts/map-control.js k8s/deployment.yaml ISO27001
**Map CloudFormation template to NIST 800-53:**
node plugins/grc-engineer/scripts/map-control.js template.yaml NIST80053
Supported Frameworks
- **SOC2** - Service Organization Control 2 (CC6.1, CC7.2, etc.)
- **ISO27001** - ISO/IEC 27001 (Annex A controls)
- **NIST80053** - NIST Special Publication 800-53
- **PCIDSS** - Payment Card Industry Data Security Standard
- **HIPAA** - Health Insurance Portability and Accountability Act
- **GDPR** - General Data Protection Regulation
Supported IaC Formats
- **Terraform** (.tf, .tfvars)
- **Kubernetes** (.yaml, .yml)
- **CloudFormation** (.yaml, .json)
- **Ansible** (.yml)
- **Pulumi** (.ts, .js, .py)
Output Format
Generates markdown reports with:
- Control ID and description
- Evidence location (file:line)
- Compliance status (Satisfied/Partial/Not Satisfied)
- Recommendations for improvement
Example Output
# Compliance Mapping Report ## SOC 2 - CC6.1: Logical and Physical Access Controls **Status:** ✅ Satisfied **Evidence:** - `main.tf:45` - `aws_db_instance` with `storage_encrypted = true` - `main.tf:52` - IAM role with least privilege policy **Mapping:** Data at rest encryption via AWS KMS satisfies encryption requirements.
Prerequisites
- IaC file to analyze
- Optional: Framework name (defaults to SOC2)
Open-source GRC Engineering resource for Claude. claude-grc-engineering turns technical evidence from cloud, SaaS, code, and security tools into framework-aligned findings, gap reports, remediation guidance, evidence packages, and OSCAL workflows.
Repo: GRCEngClub/claude-grc-engineering
Other skills on trust-center.
- /academic-research-companion
Guide a research project through the full academic lifecycle — from raw idea to concrete research question, literature grounding, methodology, writing, feedback, and publication. Use this skill whenever the user shares a research idea, asks to "flesh out" a topic, wants sources
Open skill - /aws-inspector-expert
Expertise in evaluating AWS accounts for compliance — what checks are meaningful, which SCF controls they map to, and how to interpret aws CLI output.
Open skill - /azure-inspector-expert
Expertise in evaluating Azure subscription findings from azure-inspector and mapping them to SCF controls.
Open skill - /crowdstrike-inspector-expert
Interpret CrowdStrike Falcon findings for sensor coverage, policy visibility, and host group scoping.
Open skill - /datadog-inspector-expert
Interpret datadog-inspector findings and translate Datadog monitoring, audit, log-retention, SSO, and RBAC results into GRC evidence and remediation.
Open skill - /drata-inspector-expert
Interpret drata-inspector findings generated from drata-cli workflows and turn Drata control, monitor, evidence, personnel, and integration posture into GRC action.
Open skill

