Skip to content
Security
Command

/record-automation-metrics

Write automation coverage metric snapshots into grc-data/metrics

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

Command definition

record-automation-metrics.md
description: Write automation coverage metric snapshots into grc-data/metrics

Record Automation Metrics

Writes reporting-friendly automation metric rows into `./grc-data/metrics/` so `/report:automation-coverage` has real historical snapshots to compare.

The command always writes these metric IDs:

  • `automation.coverage_pct`
  • `automation.controls_automated`
  • `automation.controls_manual`
  • `automation.controls_total`

Use it in one of three modes:

1. **Derived mode** for `fedramp-low`, `fedramp-moderate`, `fedramp-high`, or `fedramp-20x-ksi`, where the toolkit can count automated controls from the evidence collector config. This is a **tooling-capability baseline**, not proof that your program is already running every automation in production. 2. **Manual mode** for any framework alias, where you provide the total and automated counts directly. Use this for operator-observed reporting. 3. **Framework metadata total mode** for framework plugins that publish `framework_metadata.framework_controls_mapped`, where you provide only the operator-observed automated count and the command derives the total. 4. **Batch mode** with `--config=<path>`, where a scheduler can write multiple framework snapshots in one run.

Metric rows follow [`docs/GRC-DATA.md`](../../../docs/GRC-DATA.md) and `schemas/metric.schema.json`.

Usage

/grc-engineer:record-automation-metrics <framework> [provider] [options]

Arguments

  • `$1` - Framework alias or FedRAMP scope
  • `$2` - Provider in derived mode (optional, defaults to `aws`)

Common options

  • `--controls-total=<n>` - Required for manual mode unless paired with

`--controls-manual`

  • `--controls-automated=<n>` - Required for manual mode
  • `--controls-manual=<n>` - Optional manual count override
  • `--from-framework-metadata` - Derive `controls_total` from the framework

plugin manifest, leaving `controls_automated` operator-observed

  • `--recorded-at=<iso8601>` - Observation timestamp (defaults to now)
  • `--window-start=<iso8601>` - Optional reporting window start
  • `--window-end=<iso8601>` - Optional reporting window end
  • `--window-label=<label>` - Optional period label like `2026-W16` or

`current-week`

  • `--dimension=<key=value>` - Extra dimensions; may be repeated
  • `--source=<string>` - Optional provenance override
  • `--out-dir=<path>` - Override `./grc-data/metrics/`
  • `--config=<path>` - YAML or JSON config for batch mode
  • `--dry-run` - Print rows instead of writing files

Instructions

1. Run the writer directly:

   node plugins/grc-engineer/scripts/record-automation-metrics.js "$ARGUMENTS"

For batch mode, point it at the example config:

   node plugins/grc-engineer/scripts/record-automation-metrics.js \
     --config=plugins/grc-engineer/examples/automation-metrics.yaml \
     --window-label=current-week

2. Commit the generated files under `./grc-data/metrics/`, or let your CI job publish them into the repo on a schedule.

3. Rerun `/report:automation-coverage` after you have at least two snapshots seven or more days apart.

Examples

# Derive coverage for FedRAMP Moderate on AWS
/grc-engineer:record-automation-metrics fedramp-moderate aws --window-label=2026-W16

# Derive coverage for FedRAMP 20x on GCP
/grc-engineer:record-automation-metrics fedramp-20x-ksi gcp --window-label=2026-W16

# Record an operator-observed SOC 2 snapshot
/grc-engineer:record-automation-metrics soc2 --controls-total=64 --controls-automated=22 --window-label=2026-W16

# Derive the total from SOC 2 plugin metadata, but keep the automated count observed
/grc-engineer:record-automation-metrics soc2 --controls-automated=22 --from-framework-metadata --window-label=2026-W16

# Add an extra business-unit dimension
/grc-engineer:record-automation-metrics iso27001 --controls-total=93 --controls-automated=40 --dimension=business_unit=platform --window-label=2026-W16

# Write multiple snapshots from a config file
/grc-engineer:record-automation-metrics --config=plugins/grc-engineer/examples/automation-metrics.yaml --window-label=current-week
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