/generate-policy
Generate policy-as-code from natural language requirements
$ npx -y skills add GRCEngClub/claude-grc-engineering --agent claude-codeHow 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.mddescription: 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
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
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 commands on trust-center.
- /research
Start or resume an academic research project — idea through literature, methodology, writing, feedback, and publishing
Open command - /collect
Query AWS for compliance-relevant configuration across IAM, S3, CloudTrail, EBS, and emit findings conforming to the v1 contract.
Open command - /setup
Install the frdocx-to-froscal-ssp Python pipeline and verify its dependencies. Idempotent.
Open command - /status
Check the deployment status of the trust center.
Open command - /scan
Run testssl.sh against one or more HTTPS endpoints and emit v1 Findings mapped to SOC 2, NIST 800-53, PCI DSS 4.0.1, ISO 27001, and SCF controls.
Open command - /compliance-posture
Serve a localhost compliance posture dashboard from monitor-continuous JSON
Open command

