Agent skills
ptzsim ships Agent Skills — self-contained instruction packages (a SKILL.md plus references/ and scripts/) — that any project can install, so its AI coding agent (Claude Code, GitHub Copilot, Vibe Code, Cursor, Codex, …) implements a reference-conformant PTZ camera interface and validates it against this simulator. The skills live in .agents/skills/ in the repository; agents that scan .agents/skills/ (GitHub Copilot, OpenAI Codex, Mistral Vibe, …) pick them up in this repo directly.
The skills
| Skill | What it teaches | Bundled files |
|---|---|---|
ptz-reference-interface | Entry point: choose the protocol (comparison matrix, ports, official specs), implementation workflow, validation, documenting deviations | references/protocol-selection.md |
visca-interface | VISCA over RS-232/422 and VISCA over IP (UDP 52381): framing, command/inquiry set, ACK/completion/error replies, the two command sockets, sequence numbers, value ranges | references/visca-transports.md, references/visca-commands.md, scripts/visca_conformance.py |
onvif-ptz-interface | ONVIF Profile S/T PTZ service: Device/Media/PTZ operations, generic coordinate spaces, SOAP 1.2 fault chains, WS-Discovery (UDP 3702), WS-Security UsernameToken PasswordDigest and HTTP digest auth | references/onvif-services.md, references/onvif-spaces-faults-auth.md, references/soap-examples.md, scripts/onvif_conformance.py |
pelco-d-interface | Pelco-D serial over RS-485/RS-422: 7-byte frames + checksum, 4-byte general response, command-2 motion bitmask, extended preset opcodes, speed fields 0x00..0x3F / 0x40 turbo, position set/query, addressing 1..255 | references/pelco-d-frames.md, scripts/pelco_conformance.py |
ndi-ptz-interface | NDI PTZ (Vizrt): ndi_capabilities announcement and the ntk_ptz_* XML metadata commands on the NDI stream (pan/tilt + speed with sign flip, zoom, focus, presets 0..99, white balance) with NDI value ranges | references/ndi-ptz-metadata.md, scripts/ndi_metadata_check.py |
ptz-conformance-testing | Validate any camera interface against the ptzsim reference: run it as the camera for your client, or smoke-test your own camera-side endpoint; conformance checklists incl. client-side pitfalls and known deviations, ptzsim.testing client assertions | references/ptzsim-usage.md, references/conformance-checklist.md |
Install into your project
Install the skills with the skills CLI straight from this repository — no clone needed, .agents/skills/ is one of the CLI's standard discovery directories:
npx skills add stritti/ptz-simulator --list # list the skills in this repo
npx skills add stritti/ptz-simulator --skill visca-interface # install one skill
npx skills add stritti/ptz-simulator --all -y # all skills into every agentUse -g to install into your personal skill directories (e.g. ~/.claude/skills/) instead of the project, when the project should not commit the skill files: npx skills add stritti/ptz-simulator --skill visca-interface -a claude-code -g -y. npx needs Node on the PATH of the shell that runs it: when Node comes from nvm (or fnm, asdf, …) and an agent runs the command in a non-interactive shell such as bash -lc, the shell profile that loads nvm is not read and npx is not found; run it in your interactive shell, or load nvm first (. ~/.nvm/nvm.sh && npx skills add …).
Choose the agents with -a (e.g. -a claude-code -a copilot --yes). The skills are listed at skills.sh/stritti/ptz-simulator and discoverable with npx skills find ptz.
Skill directories per agent
| Agent | Project skills | Personal skills |
|---|---|---|
| GitHub Copilot / VS Code | .github/skills/, .claude/skills/, .agents/skills/ | ~/.copilot/skills/, ~/.agents/skills/ |
| Claude Code | .claude/skills/ | ~/.claude/skills/ |
| Mistral Vibe | .vibe/skills/, .agents/skills/ (trusted dir) | ~/.vibe/skills/, ~/.agents/skills/ |
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ |
| Cursor | .cursor/skills/ | ~/.cursor/skills/ |
| Gemini CLI | .gemini/skills/ | ~/.gemini/skills/ |
Using the bundled conformance scripts
The skills ship two standard-library-only smoke tests (Python 3.8+) that exit 0 only when every wire-level check passes. Point them at your camera-side endpoint:
python3 visca_conformance.py --host 192.168.1.50 --transport sony # VISCA over IP, UDP 52381
python3 visca_conformance.py --host 192.168.1.50 --transport tcp --port 5678
python3 pelco_conformance.py --port /dev/ttyUSB0 --address 1 # Pelco-D over serial
python3 ndi_metadata_check.py messages.xml # NDI PTZ metadata XML (offline)
python3 onvif_conformance.py --host 192.168.1.50 --port 8080 --user admin --password secret --discoveryTo validate a client, run the simulator and point the client at it instead — see testing ONVIF clients and testing VISCA clients in the guide.
Validation
tests/test_skills.py checks the SKILL.md frontmatter (name rules, description ≤ 1024 chars, ≤ 500 lines), that relative links resolve and that the bundled scripts compile — run it with uv run pytest.