Here's a perfected chamois script. It will calculate the expected damage from Covered in Slime based on your slime resistance and level of slime.
It then compares this to your current HP and max HP. If you need healing to survive the slime, it will heal you. If the expected damage is greater than max HP, it will use a chamois. This is guaranteed to use the minimal number of chamois without getting you beaten up (as long as you can kill the slime).
Put chamois.ash in your /scripts directory. It is called by your mood
Trigger On: When an effect is gained
Check for: Coated in Slime
Command: call chamois.ash
v1.1 - Adds support for KolMafia eventually having monster data for slimes.
v1.2 - Adds support for using Hot Tub to remove slime.
v1.3 - Now reports on number of remaining chamoix.
v1.4 - Fixed restoration bug.
v1.5 - Fixed effect name since mafia is picky about that now.