Code to control mapper

From GRCEngClub/claude-grc-engineering · View interactive version

Code to control mapper is an AI agent skill from the GitHub repository GRCEngClub/claude-grc-engineering. 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.

How to use this skill

Skill file

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

Supported IaC Formats

Output Format

Generates markdown reports with:

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.