mirror of
https://github.com/penpot/penpot.git
synced 2026-09-14 07:59:36 +00:00
Every skill in .opencode/skills now carries a "When to use" section:
triggers in any phrasing plus the matching /command for the flow
skills, one-line triggers for the utility skills, an
explicit-invocation mirror for ste, and the proactive case for
resolve-git-conflicts.
code-review-criteria drops its old usage bullets ("before merging any
PR ...") for the same role pattern as plan-review-criteria: loaded by
the reviewer subagent of the review-code flow, redirect there to
review code. Flow and criteria skills no longer compete for the same
trigger.
AI-assisted-by: omen-alpha
44 lines
1.3 KiB
Markdown
44 lines
1.3 KiB
Markdown
---
|
|
name: nrepl-eval
|
|
description: Evaluate Clojure code via nREPL using the standalone scripts/nrepl-eval.mjs CLI tool.
|
|
---
|
|
|
|
# nREPL Eval
|
|
|
|
Evaluate Clojure (or ClojureScript) code via a running nREPL server using
|
|
`scripts/nrepl-eval.mjs`.
|
|
|
|
Full documentation: `mem:scripts/nrepl-eval` (file: `.serena/memories/scripts/nrepl-eval.md`)
|
|
|
|
## When to use
|
|
|
|
- Evaluating Clojure or ClojureScript code against the running nREPL
|
|
sessions (backend 6064, frontend 3447) — live inspection, patching, or
|
|
debugging.
|
|
|
|
## Quick Reference
|
|
|
|
```bash
|
|
./scripts/nrepl-eval.mjs [options] [<code>]
|
|
```
|
|
|
|
| Flag | Description | Default |
|
|
|------|-------------|---------|
|
|
| `--backend` | Connect to backend nREPL (port 6064) | — |
|
|
| `--frontend` | Connect to frontend nREPL (port 3447) | — |
|
|
| `-p, --port PORT` | nREPL server port | `6064` |
|
|
| `-H, --host HOST` | nREPL server host | `127.0.0.1` |
|
|
| `-t, --timeout MS` | Timeout in milliseconds | `120000` |
|
|
| `--reset-session` | Discard stored session and start fresh | — |
|
|
| `-e, --last-error` | Evaluate `*e` to retrieve the last exception | — |
|
|
| `-h, --help` | Show help message | — |
|
|
|
|
## Examples
|
|
|
|
```bash
|
|
./scripts/nrepl-eval.mjs '(+ 1 2 3)'
|
|
./scripts/nrepl-eval.mjs --backend '(+ 1 2 3)'
|
|
./scripts/nrepl-eval.mjs --frontend '(js/alert "hi")'
|
|
./scripts/nrepl-eval.mjs -e
|
|
```
|