Skip to content
Security
Command

/generate-policy

Generate policy-as-code from natural language requirements

From plugin
trust-center
430140 skills140 commands1 MCP
> /plugin marketplace add GRCEngClub/claude-grc-engineering

Command definition

generate-policy.md
description: Generate draft policy templates from natural language requirements

Generate Policy

This prototype selects a fixed template only for exact supported phrases, not a reliable interpretation of arbitrary requirements. **Output is a draft, not an enforceable policy.** Independently review, adapt, and test it before any use. Templates may miss requirements or add unrelated checks; for example the S3 template always includes a Department tag check. No compliance coverage is inferred.

Arguments

  • Requirement description (required, in quotes)
  • Output format (optional, defaults to rego)

Available templates

  • `Ensure no S3 buckets are public`: `rego`, `sentinel`, `aws-config`
  • `All EC2 instances must have encryption enabled`: `rego` only

Matching ignores case and surrounding or repeated whitespace; any other wording, extra clauses, or unsupported format combinations fail without generating files. Even semantically equivalent wording is rejected. Terraform and Checkov are not implemented.

Instructions

Parse `$ARGUMENTS` as a quoted requirement followed by an optional format. Pass the actual requirement as the first CLI argument and the format, if supplied, as the second. Preserve the entire requirement as one argument; do not substitute an example or silently change either value. Pass arguments safely without interpreting their contents as shell syntax. Omit the second argument when no format was supplied so the script defaults to `rego`. If the requirement is missing or the arguments are ambiguous, ask the user rather than guessing. Propagate errors without producing a substitute draft.

For example, only for a request for this specific requirement and format:

node plugins/grc-engineer/scripts/generate-policy.js "Ensure no S3 buckets are public" rego

Inspect the draft and validate it against representative compliant and noncompliant inputs. Do not deploy it as-is.

Read more
@grcengclub
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.

430101 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
430
Star history of GRCEngClub/claude-grc-engineering on GitHub, a chart by star-history.com

Other commands on trust-center.

research

research

Command

Start or resume an academic research project — idea through literature, methodology, writing, feedback, and publishing

collect

collect

Command

Query AWS for compliance-relevant configuration across IAM, S3, CloudTrail, EBS, and emit findings conforming to the v1 contract.

setup

setup

Command

Install the frdocx-to-froscal-ssp Python pipeline and verify its dependencies. Idempotent.

retrieve

retrieve

Command

Retrieve a single AWS Secrets Manager secret value to stdout or a 0600-permission file. Opt-in retrieval mode — never writes to…

scan

scan

Command

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,…

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

ironclaw13d13k
@nearai@nearaiInstall Command
audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

@trailofbits@trailofbitsInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@awarexone@awarexoneInstall Command