/devops-skills:compliance-as-codefrom devops-skills
Turns compliance controls into executable, version-controlled checks with automated evidence collection for SOC 2, ISO 27001, or PCI audits. Maps controls to infrastructure, detects drift from compliance baselines, and proves enforcement continuously.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The traditional audit is a controlled panic: weeks of screenshotting console settings, chasing down who approved what, and hoping nothing changed between the evidence snapshot and the actual audit date. That process proves compliance at one instant in time and says nothing about the other 364 days of the year — which is exactly when the control usually drifts.
Compliance as code expresses each control as a check that runs continuously against real infrastructure, producing evidence as a byproduct of normal operation instead of a special one- time effort. The audit stops being an event you prepare for and becomes a report you already have.
If proving a control holds requires a human to go look, the control isn't actually enforced — it's hoped for.
"Encrypt data at rest" is a policy statement, not a control you can automate. "Every RDS
instance has storage_encrypted = true" is a control. Break every framework requirement (SOC
2, ISO 27001, PCI-DSS, HIPAA) down to assertions that map onto real resource attributes, IAM
configuration, or pipeline gates. Many frameworks overlap heavily — build the control library
once and map multiple frameworks onto it rather than duplicating checks per framework.
Done when: every control in scope has at least one automated check that queries live infrastructure state.
Tools like OPA/Rego, Chef InSpec, or cloud-native config rules let you express "this is what compliant looks like" as a versioned artifact that runs on a schedule or on every change, not just before an audit. Version control gives you the same review and history for a compliance rule that you'd expect for application code — a control change should go through a pull request, not a spreadsheet edit.
# compliant: every storage bucket must deny public read
deny[msg] {
input.resource_type == "storage_bucket"
input.public_access == true
msg := "bucket must not allow public access"
}
Done when: compliance checks run on a schedule independent of any upcoming audit date.
An auditor wants proof a control held over a period, not a screenshot from the morning of the audit. Pipe check results, timestamps, and remediation history into a store the audit process reads directly, so "show me evidence for control X for the last quarter" is a query, not a scavenger hunt through Slack and email threads.
Done when: producing a quarter's evidence for any control takes a query, not a manual evidence-gathering effort.
A control that passed at deploy time can silently fail six months later — someone opens a security group "temporarily," a bucket policy gets loosened for a one-off debugging session and never gets reverted. Continuous checks catch this the same day it happens rather than at the next audit cycle, when the cause is long forgotten and the exposure window was months, not hours.
Done when: a manual change that violates a control triggers an alert before the next audit, not during it.
A failed control needs a remediation path as concrete as a vulnerability finding: who owns it, what fixes it, and by when. Controls that fail silently into a dashboard nobody reads provide no more assurance than not checking at all — the goal is closed-loop remediation, not just visibility.
Done when: every failing control has an assigned owner and a remediation deadline, tracked the same way as any other production issue.
State which frameworks are in scope, what fraction of controls are automated versus still manually attested, and how evidence is generated and stored. Name the control category still verified by hand — that manual gap is where drift will hide undetected, and calling it out is more credible than claiming full automation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.