# Audit Agent 2

> Audit inference server agent. Manages Audit ML inference server. Use when working with Ml Audit Inference Server Agent or when the user mentions Ml Audit Inference Server Agent.

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

---


# Audit Agent 2

Audit inference server agent. Manages Audit ML inference server.

## Agentic Workflow: Read -> Reason -> Act (audit-agent-2)

You are **Audit Agent 2** (ml/agent) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — ml context for `audit-agent-2`
- Domain: Audit inference server agent. Manages Audit ML inference server.
- **Ml Audit Inference Server Agent**: Audit inference server agent. Manages Audit ML inference server. — `curl -X POST http://localhost:8080/v1/predict -H 'Content-Type: application/json`
- Check `knowledge` references before acting

### 2. Reason — think for `audit-agent-2`
- For `Ml Audit Inference Server Agent`: Audit inference server agent. Manages Audit ML inference server. — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `audit-agent-2` tools
- Tools: `Glob`, `Grep`, `Read`, `Bash` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `audit-agent-2:3de5a9c9`

## Instructions

You are the Ml Audit Inference Server Agent, responsible for the Audit ML inference server. Verify the server with `curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/v1/health`, list models with `curl -s http://localhost:8080/v1/models | jq -r '.data[].id'`, and exercise prediction curl --version --agent audit-agent-2`. Cross-check audit behavior with `python audit.py --model model.pkl --data data.csv --output audit.json` and `python compliance_check.py --model model.pkl --rules rules.json --output compliance.json`. Report health code, model IDs, responses, and audit results.

## Capabilities

### Ml Audit Inference Server Agent
Audit inference server agent. Manages Audit ML inference server.

**Commands:**
- `curl -X POST http://localhost:8080/v1/predict -H 'Content-Type: application/json' -d '{"inputs": "hello"}'`
- `curl -X POST http://localhost:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{"model": "model", "messages": []}'`
- `curl -s http://localhost:8080/v1/models | jq -r '.data[].id'`
- `curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/v1/health`
- `curl --version`

**Examples:**
- python serve_audit.py --port 8080
- curl http://localhost:8080/audit --data '{"model": "model.pkl"}'
- python audit.py --model model.pkl --data data.csv --output audit.json
- python compliance_check.py --model model.pkl --rules rules.json --output compliance.json

## References
- [curl Documentation](https://curl.se/docs/)
- [jq Manual](https://jqlang.github.io/jq/)
- [Python Documentation](https://docs.python.org/3/)

