Skip to content
Security
Command

/generate-policy

Generate policy-as-code from natural language requirements

From plugin
trust-center
367139 skills139 commands1 MCP
Install
$ npx -y skills add GRCEngClub/claude-grc-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/generate-policy

Context preview

What this command does when you run it.

Generate policy-as-code from natural language requirements

Command definition

generate-policy.md
description: Generate policy-as-code from natural language requirements

Generate Policy

Converts natural language compliance requirements into executable policy code.

Arguments

  • `$1` - Requirement description (required, in quotes)
  • `$2` - Output format (optional, defaults to rego)

Supported Formats

  • rego - Open Policy Agent (OPA) Rego
  • sentinel - HashiCorp Sentinel
  • aws-config - AWS Config Rule (Python)
  • terraform - Terraform policy module
  • checkov - Checkov YAML policy

Instructions

1. Run the generate-policy script:

   node plugins/grc-engineer/scripts/generate-policy.js "$ARGUMENTS"

2. The script generates policy code in the specified format.

3. Review and integrate the policy into your CI/CD pipeline.

Examples

# Generate OPA policy for S3 bucket security
/grc-engineer:generate-policy "Ensure no S3 buckets are public and all must have a 'Department' tag" rego

# Generate PCI-DSS Requirement 3 policy (protect stored data)
/grc-engineer:generate-policy "All databases storing cardholder data must use encryption at rest" aws-config

# Generate network segmentation policy for PCI-DSS Requirement 1
/grc-engineer:generate-policy "Cardholder data environment must be isolated via network segmentation" sentinel

# Generate HIPAA encryption policy
/grc-engineer:generate-policy "All PHI storage must use AES-256 encryption" terraform
Read more
Ships withtrust-center

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.

Get the whole plugin, auto-invoked
Stats
367
Stars
0
Views
82
Forks
Active
Maintenance
JavaScript
Language
1d ago
Last commit
7mo ago
Created

Repo: GRCEngClub/claude-grc-engineering