home/roleplay/eg-clamp

eg Clamp

GPTClaudeGemini··636 copies·updated 2026-07-14
eg-clamp.prompt
src/x.js has a clamp(n, lo, hi) helper that should clamp n to the inclusive range [lo, hi], but values above hi come back unclamped (clamp(42, 0, 10) returns 42). Fix it.

when to use it

Community prompt sourced from the open-source GitHub repo elon-choo/fablever (MIT). A "eg Clamp" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

elon-choo/fablever · MIT