Agent skill

behavior-log

Insert or read behavior log rows in the local database (behavior_logs). Use when recording a good/bad behavior entry, attaching a Pavlok API response JSON, adding a coach comment, or fetching recent logs via scripts/behavior_log.py.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/behavior-log

SKILL.md

Behavior Log

Use scripts/behavior_log.py to insert one record into behavior_logs or read recent logs.

Run

bash
uv run scripts/behavior_log.py write good --coach-comment "Kept focus"
bash
uv run scripts/behavior_log.py write bad --pavlok-log '{"stimulusType":"zap","stimulusValue":30}'
bash
echo '{"stimulusType":"beep","stimulusValue":100}' | uv run scripts/behavior_log.py write bad --pavlok-log -
bash
uv run scripts/behavior_log.py read 2

Inputs

  • write mode: behavior must be good or bad.
  • write mode: --pavlok-log expects a JSON object string; use - to read from stdin.
  • write mode: --coach-comment is optional free text.
  • read mode: days is a positive integer (1 = today, 2 = today + yesterday).

Notes

  • Database URL comes from DATABASE_URL (default: sqlite:///./app.db).

Didn't find tool you were looking for?

Be as detailed as possible for better results