phel-repl
Evaluate a Phel expression to verify behaviour without writing a test
SKILL.md.claude/skills/phel-repl/SKILL.md
GitHub/phel-repl
- Take the expression from
$ARGUMENTS(ask if empty). - Eval via the Phel CLI:
timeout 10 vendor/bin/phel eval "$ARGUMENTS" - For multi-line snippets or
(require phel.pdo)setup, drop into a scratch file:printf '%s\n' '(ns repl-scratch (:require phel.pdo))' '$ARGUMENTS' > /tmp/phel-pdo-repl.phel timeout 10 vendor/bin/phel run /tmp/phel-pdo-repl.phel - Report the result. On error, name the layer (resolution / interop / DB).
Examples
/phel-repl (pdo/get-available-drivers (pdo/connect "sqlite::memory:"))
/phel-repl (pdo/quote (pdo/connect "sqlite::memory:") "I'm fine.")