babashka

📁 plurigrid/asi 📅 Jan 29, 2026
8
总安装量
8
周安装量
#33925
全站排名
安装命令
npx skills add https://github.com/plurigrid/asi --skill babashka

Agent 安装分布

codex 8
opencode 7
gemini-cli 7
claude-code 7
github-copilot 7
mcpjam 6

Skill 文档

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