ws-ESP32-S3-CAM: Command for Claude Code

.claude/commands/audit-wavs.md

audit-wavs is a command for Claude Code from chayuto/ws-ESP32-S3-CAM. It costs 0 tokens per session (871 once invoked), scanned A, original, MIT.

An offline checker for event-recording WAV files, which are audio files. It creates numeric measurements, spectrogram images that show sound frequencies over time, and YAMNet reference labels.

In plain words
What is it for?
Use it to audit cry-detect-01 recordings, create per-file and per-segment audio manifests, render spectrograms, and produce YAMNet FP32 labels.
Why use it?
It lets you inspect many recordings without listening to each one by hand. The generated files give you both measurements and visual checks.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is chayuto/ws-ESP32-S3-CAM's own configuration. It tells Claude Code how to work on ws-ESP32-S3-CAM itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ws-ESP32-S3-CAM configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chayuto/ws-ESP32-S3-CAM. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chayuto/ws-ESP32-S3-CAM/main/.claude/commands/audit-wavs.md
Clone the repo
git clone --depth 1 https://github.com/chayuto/ws-ESP32-S3-CAM

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-wavs

README.md
[![agentmods](https://agentmods.dev/badge/commands/chayuto/ws-esp32-s3-cam/audit-wavs/github.svg)](https://agentmods.dev/commands/chayuto/ws-esp32-s3-cam/audit-wavs)
Your own site
<a href="https://agentmods.dev/commands/chayuto/ws-esp32-s3-cam/audit-wavs"><img src="https://agentmods.dev/badge/commands/chayuto/ws-esp32-s3-cam/audit-wavs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-wavs

Your own site · 80×15
<a href="https://agentmods.dev/commands/chayuto/ws-esp32-s3-cam/audit-wavs"><img src="https://agentmods.dev/badge/commands/chayuto/ws-esp32-s3-cam/audit-wavs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00871
Opus 5 $0.00000 $0.00436
Sonnet 5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

Measured 12d ago against content hash 4f496c5cd533, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

audit-wavs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/audit-wavs.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit captured event WAVs

Run the full offline audit pipeline on a directory of cry-detect-01 event WAVs. Produces numeric manifests, per-file spectrogram PNGs, and YAMNet FP32 oracle labels — no human listening required.

Usage: /audit-wavs <dir>

<dir> is a directory laid out as:

<dir>/
├── wavs/                      ← 40 s, 16 kHz mono int16 WAVs
├── triggers.jsonl             ← optional, ledger from /record/trigger
└── (outputs written here after run)

Typical example: /audit-wavs logs/night-20260418


What the pipeline does

Three stages, orchestrated by projects/cry-detect-01/tools/audit_pipeline.sh:

  1. Numeric featurestools/audit_wavs.py
    • manifest.csv / manifest.jsonl — one row per WAV (32 columns)
    • segments.csv / segments.jsonl — one row per 0.96 s / 0.48 s hop segment (~82 per 40 s file). Time-domain RMS envelope, ZCR, clipping; spectral centroid, rolloff, flatness; 6 energy bands; F0 + HNR.
  2. Spectrogramstools/render_specgrams.py
    • specgrams/<stem>.png — mel spectrogram (125 Hz – 7.5 kHz, log axis)
      • RMS envelope + 0.48 s segment grid. Useful when Claude is doing the audit: PNGs are readable via the Read tool.
  3. YAMNet FP32 oracletools/score_yamnet.py
    • yamnet_files.csv — per-file max/mean of cry-relevant classes
    • yamnet_segments.csv — per 0.96 s frame scores for: baby_cry_infant, crying_sobbing, baby_laughter, speech, child_speech, babbling, screaming, laughter plus the top-3 activated class ids / names.

Segment grids align: segments.csv and yamnet_segments.csv share (file, seg_idx) identity, so heuristic + oracle columns can be joined 1:1.

Environment

Uses <repo>/.venv-analysis — Python 3.13 with numpy, scipy, matplotlib, tensorflow, tensorflow-hub. Create it once with:

python3.13 -m venv .venv-analysis
.venv-analysis/bin/pip install 'setuptools<81' numpy scipy matplotlib tensorflow tensorflow-hub

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 85 lines · 0 tokens per session scan A 4f496c5cd533

Subscribe to this mod's changes

audit-wavs is a command published in the GitHub repository chayuto/ws-ESP32-S3-CAM (5 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 871 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.