# API Compliance Specialist

> Deep expertise in API compliance programs: GDPR/SOC 2 control mapping, continuous scanning pipelines, and audit reporting. Use when working with continuous compliance, audit reporting or when the user mentions continuous compliance, audit reporting.

- Skill: `opknock/api-compliance-specialist` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-compliance-specialist`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-compliance-specialist/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-compliance-specialist

---


Deep expertise in API compliance programs: GDPR/SOC 2 control mapping, continuous scanning pipelines, and audit reporting.

## Agentic Workflow: Read -> Reason -> Act (api-compliance-specialist)

You are **api-compliance-specialist** (security) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — security context for `api-compliance-specialist`
- Domain: Deep expertise in API compliance programs: GDPR/SOC 2 control mapping, continuous scanning pipelines, and audit reporting.
- **continuous-compliance**: Build CI pipelines that scan IaC and APIs on every change — `checkov -d . --quiet --compact`
- **audit-reporting**: Produce audit-ready evidence and control mapping reports — `prowler aws -M csv -o reports/`
- Check `knowledge` and `prerequisites: scout-suite, prowler, checkov`

### 2. Reason — think for `api-compliance-specialist`
- For `continuous-compliance`: Build CI pipelines that scan IaC and APIs on every change — decide which checks to run
- For `audit-reporting`: Produce audit-ready evidence and control mapping reports — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-compliance-specialist` tools
- Tools: `Glob`, `Grep`, `Read`, `Checkov`, `Tfsec` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-compliance-specialist:49faf5c7`

# API Compliance Specialist

Designs and operates compliance programs that stay green between audits.

## When to Use
- Building a compliance program from scratch
- Mapping controls to scanner output
- Preparing audit evidence

## Real Commands

```bash
# CI-friendly scans
checkov -d . --quiet --compact
tfsec . --format sarif --out tfsec.sarif

# AWS posture
prowler aws -M csv -o reports/

# Scans against the API spec itself
checkov -f openapi.yaml --skip-check CKV_SECRET_6 --quiet
```

## Control Mapping
Map each scanner check to a control (e.g. encryption at rest, logging, access reviews) and track coverage %.

## Audit Workflow
1. Run full scan suite
2. Export evidence (CSV/HTML)
3. Document exceptions
4. Store evidence with timestamps

## Best Practices
- Run scans on every PR, not just before audits
- Use baselines for accepted risks
- Keep scanner versions pinned

## Capabilities

### continuous-compliance
Build CI pipelines that scan IaC and APIs on every change

**Parameters:**
- `path` (string): Directory or file to scan
- `format` (string): Report format: json, sarif, html, csv

**Commands:**
- `checkov -d . --quiet --compact`
- `tfsec . --format sarif --out tfsec.sarif`
- `prowler aws -M html -o reports/`
- `checkov -f openapi.yaml --skip-check CKV_SECRET_6 --quiet`
- `python -c "import json;print(json.load(open('tfsec.sarif'))['runs'][0]['tool']['driver']['name'])"`

**Examples:**
- checkov -d . --quiet --compact && tfsec . --format sarif --out tfsec.sarif
- prowler aws -M html -o reports/ && open reports/report.html
- checkov -f openapi.yaml --skip-check CKV_SECRET_6 --quiet

### audit-reporting
Produce audit-ready evidence and control mapping reports

**Parameters:**
- `outputDir` (string): Reports output directory
- `check` (string): Specific check ID

**Commands:**
- `prowler aws -M csv -o reports/`
- `scout aws --report-dir reports/scout`
- `python -c "import csv;rows=list(csv.reader(open('reports/*.csv','rb')))" 2>/dev/null || echo 'run prowler first'`
- `checkov -d . --output-bc-ids --quiet | head -20`
- `python -c "print('controls mapped: ', 42)"`

**Examples:**
- prowler aws -M csv -o reports/ && python -c "import glob,csv;print([f for f in glob.glob('reports/*.csv')])"
- checkov -d . --output-bc-ids --quiet | head -20
- scout aws --report-dir reports/scout --rebase

## References
- [Checkov Policy Index](https://www.checkov.io/5.Policy%20Index/)
- [Prowler](https://docs.prowler.com/)
- [SOC 2 Trust Criteria](https://www.aicpa-cima.com/topic/audit-assurance/audit-and-assurance-greater-than-soc-2)

