Asi babashka

Clojure scripting without JVM startup.

install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/babashka" ~/.claude/skills/plurigrid-asi-babashka-73898f && rm -rf "$T"
manifest: skills/babashka/SKILL.md
source content

babashka

Clojure scripting without JVM startup.

Script

#!/usr/bin/env bb
(require '[babashka.http-client :as http])
(require '[cheshire.core :as json])

(-> (http/get "https://api.github.com/users/bmorphism")
    :body
    (json/parse-string true)
    :public_repos)

Tasks

;; bb.edn
{:tasks
 {:build (shell "make")
  :test  (shell "make test")
  :repl  (babashka.nrepl.server/start-server! {:port 1667})}}

Filesystem

(require '[babashka.fs :as fs])
(fs/glob "." "**/*.clj")
(fs/copy "src" "dst")

Process

(require '[babashka.process :as p])
(-> (p/shell {:out :string} "ls -la") :out)

Run

bb script.clj
bb -e '(+ 1 2)'
bb --nrepl-server