SKILL.md
Repentance
Use scripts/repentance.py to execute pending punishments and update daily_punishments.
Run
uv run scripts/repentance.py
Inputs
This script takes no CLI arguments.
Environment
PAVLOKTYPEPUNISHis required (e.g.,zap,vibe,beep).PAVLOKVALUEPUNISHis required (integer).PUNISHINTERVALSECis optional (integer, default1).PAVLOKAPIKEYis required byscripts/pavlok.py.- If using
zap,LIMITDAYPAVLOKCOUNTSandLIMITPAVLOKZAPVALUEare required.
Outputs
Prints a single line of JSON:
{"executed": 2}
Notes
- Processes
daily_punishmentsrows inpendingorfailedstate. - Marks rows
runningwhile executing, updatesexecuted_count, and setsfailedon errors or rate limits. - Always creates a new pending
daily_punishmentsrow after processing. - Database URL comes from
DATABASE_URL(default:sqlite:///./app.db).