call-behaviorist

Records and analyzes ai-badger hook execution in an append-only audit log.

2|Updated Jul 18, 2026
One-click install
npx skills add https://github.com/Arasz/ai-badger --skill call-behaviorist-arasz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: call-behaviorist
Source: https://github.com/Arasz/ai-badger/tree/main/features/common/skills/call-behaviorist
Command: npx skills add https://github.com/Arasz/ai-badger --skill call-behaviorist-arasz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? ai-badger's hooks run silently, so questions like "did that hook even fire?" or "why is the drift notice silent?" have no answer without adding print statements and re-scaffolding. This Skill turns the framework's own behavior into a queryable record, making silent hooks, stale plugin copies, and version skew visible. ## Core Features & Use Cases - Toggleable audit logging: Enable hook logging user-wide or per-project with bounded durations (capped at 24h) or standing mode, writing records to a user-level SQLite audit DB with 0600 permissions. - Health analysis: The analyze command compares hooks registered in .claude/settings.json and .ai-badger/hooks/hooks.json against observed records, producing findings like never_observed, version_skew, and always_skipped with a health verdict. - Retrieval telemetry: MCP tool-index retrieval events (hit, gate, absent, server_unindexed) are logged with an optional AI_BADGER_DEBUG_REDACT opt-out that drops the query field. - Use Case: After upgrading ai-badger, run analyze --json to confirm every wired hook fires at the new version and no stale plugin-cache copy is still running alongside the scaffold. ## Quick Start Ask the agent to enable ai-badger debug logging for four hours, work normally, then run the analyze command and write up a health report of which hooks fired.

Frequently Asked Questions about call-behaviorist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if an ai-badger hook actually ran?

Enable logging with `behaviorist.py on 4h`, work normally, then run `behaviorist.py tail` to see one line per record showing component, event, version, and project. The `analyze` command compares registered hooks against observed records automatically.

How do I enable debug logging for ai-badger hooks?

Run `behaviorist.py on [DURATION]` where duration is like 4h, 90m, or 1h30m, capped at 24 hours. Add `--project` to limit logging to the current directory, or set `AI_BADGER_DEBUG=1` for a one-off run.

Does the audit log record my code or tool inputs?

No tool input or file content is ever recorded. The one exception is the MCP retrieval query field, which is recorded by default but can be dropped from all future records by setting `AI_BADGER_DEBUG_REDACT` in the environment.

What does a version_skew finding mean in the health report?

A version_skew finding means two copies of a component ran with overlapping time ranges, typically a stale plugin cache running against a newer `.ai-badger/` scaffold. The finding names each version with the range it was observed in so you know which copy to remove.

Where is the ai-badger audit log stored and how long is it kept?

Records live in the `hook_audit` table of `~/.ai-badger/debug/audit.db`, a user-level SQLite file with 0600 permissions that never lands in a project directory or git. Records older than 60 days are pruned automatically, and `AI_BADGER_DEBUG_DIR` relocates the whole sink.