# Phel Repl

> Evaluate Phel expressions to verify behavior. Use when you need to test Phel code interactively.

- Skill: `phel-lang/phel-repl` (Agent Skill)
- Install (CLI): `npx skillmds@latest add phel-lang/phel-repl`
- Raw SKILL.md: https://api.skillmd.com/api/skills/phel-lang/phel-repl/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: phel-lang (https://skillmd.com/u/phel-lang)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/phel-lang/phel-repl

---


# Phel REPL

Evaluate Phel expressions to verify behavior without writing test files.

## Instructions

1. Take the expression from `$ARGUMENTS` (or ask for one if empty).

2. Evaluate it using the Phel CLI `eval` command:
   ```bash
   timeout 10 ./bin/phel eval '$ARGUMENTS'
   ```

   Or read the expression from stdin with `-`:
   ```bash
   echo '$ARGUMENTS' | timeout 10 ./bin/phel eval -
   ```

   For multi-form snippets that need a namespace, write a temp file:
   ```bash
   echo '(ns repl-test) $ARGUMENTS' > /tmp/phel-repl-test.phel
   timeout 10 ./bin/phel run /tmp/phel-repl-test.phel
   ```

3. Report the result. If there's an error, explain what went wrong.

## Examples

```
/phel-repl (+ 1 2)
/phel-repl (map inc [1 2 3])
/phel-repl (defn greet [name] (str "Hello, " name "!"))
```

