# API Governance Specialist

> Deep expertise in API governance programs: enterprise rulesets, standards publication, and measuring compliance adoption. Use when working with enterprise rulesets, adoption metrics or when the user mentions enterprise rulesets, adoption metrics.

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

---


Deep expertise in API governance programs: enterprise rulesets, standards publication, and measuring compliance adoption.

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

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

### 1. Read — backend context for `api-governance-specialist`
- Domain: Deep expertise in API governance programs: enterprise rulesets, standards publication, and measuring compliance adoption.
- **enterprise-rulesets**: Maintain layered rulesets with severity tiers and exception flows — `npx @stoplight/spectral-cli lint -r .spectral.yaml --format json openapi.yaml > `
- **adoption-metrics**: Measure governance adoption across specs and report trends — `npx @stoplight/spectral-cli lint -r .spectral.yaml --format json specs/**/*.yaml`
- Check `knowledge` and `prerequisites: spectral, openapi, node.js`

### 2. Reason — think for `api-governance-specialist`
- For `enterprise-rulesets`: Maintain layered rulesets with severity tiers and exception flows — decide which checks to run
- For `adoption-metrics`: Measure governance adoption across specs and report trends — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-governance-specialist` tools
- Tools: `Glob`, `Grep`, `Read`, `Npx`, `Bash` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-governance-specialist:2838d022`

# API Governance Specialist

Runs governance as a program with measurable adoption.

## When to Use
- Governance across many teams and APIs
- Need to prove standards adoption
- Tiered enforcement (warn vs error)

## Real Commands

```bash
# Aggregate findings
npx @stoplight/spectral-cli lint -r .spectral.yaml --format json specs/**/*.yaml > all.json

# Analyze by rule
node -e "const r=require('./all.json');const byRule={};r.forEach(x=>byRule[x.code]=(byRule[x.code]||0)+1);console.log(JSON.stringify(byRule,null,2))"

# Count specs
node -e "const fs=require('fs');const files=fs.readdirSync('specs').filter(f=>f.endsWith('.yaml'));console.log(files.length+' specs')"
```

## Governance Model
- Recommended tier: everyone
- Org tier: enterprise conventions
- Exception tier: documented waivers

## Testing
Track violations-per-spec quarterly and publish the trend.

## Best Practices
- Severity tiers keep momentum without blocking
- Waivers must be time-boxed

## Capabilities

### enterprise-rulesets
Maintain layered rulesets with severity tiers and exception flows

**Parameters:**
- `ruleset` (string): Layered ruleset file
- `spec` (string): Spec to evaluate

**Commands:**
- `npx @stoplight/spectral-cli lint -r .spectral.yaml --format json openapi.yaml > report.json`
- `npx @stoplight/spectral-cli lint -r .spectral.yaml --ignore-unknown-formats openapi.yaml`
- `python -c "import json;r=json.load(open('report.json'));print(len(r))"`
- `node -e "const r=require('./report.json');const byRule={};r.forEach(x=>byRule[x.code]=(byRule[x.code]||0)+1);console.log(JSON.stringify(byRule,null,2))"`
- `npx @stoplight/spectral-cli lint -r .spectral.yaml --fail-severity error openapi.yaml`

**Examples:**
- npx @stoplight/spectral-cli lint -r .spectral.yaml --format json openapi.yaml > report.json && node -e "const r=require('./report.json');console.log(r.length+' findings')"
- node -e "const r=require('./report.json');const byRule={};r.forEach(x=>byRule[x.code]=(byRule[x.code]||0)+1);console.log(JSON.stringify(byRule,null,2))"
- npx @stoplight/spectral-cli lint -r .spectral.yaml --fail-severity error openapi.yaml

### adoption-metrics
Measure governance adoption across specs and report trends

**Parameters:**
- `specsDir` (string): Directory of specs to measure
- `output` (string): Aggregate report file

**Commands:**
- `npx @stoplight/spectral-cli lint -r .spectral.yaml --format json specs/**/*.yaml > all.json`
- `python -c "import json,glob;r=[];[r.extend(json.load(open(f))) for f in glob.glob('specs/*/*.json')]" 2>/dev/null || echo 'aggregate manually'`
- `node -e "const fs=require('fs');const files=fs.readdirSync('specs').filter(f=>f.endsWith('.yaml'));console.log(files.length+' specs')"`
- `node -e "const fs=require('fs');fs.readdirSync('specs').forEach(f=>{if(f.endsWith('.yaml'))console.log(f)}"`
- `python -c "print('compliance % = 100 - (violations / rules) * 100')"`

**Examples:**
- npx @stoplight/spectral-cli lint -r .spectral.yaml --format json specs/**/*.yaml > all.json
- node -e "const fs=require('fs');const files=fs.readdirSync('specs').filter(f=>f.endsWith('.yaml'));console.log(files.length+' specs')"
- python -c "import json;r=json.load(open('all.json'));print('violations:',len(r))"

## References
- [Spectral Rulesets](https://docs.stoplight.io/docs/spectral/reference/rules)
- [API Guidelines Databases](https://github.com/apisyouwonthate/style-guides)

