From replicant
Use when working with Replicant — a data-driven rendering library for Clojure(Script). Activate when the user asks about rendering hiccup to the DOM or strings, virtual DOM reconciliation, aliases (defalias/aliasfn), data-driven event handlers, life-cycle hooks (on-mount, on-update, on-unmount), mounting/unmounting animations, replicant/key, node memory (remember/recall), replicant.dom/render, replicant.string/render, set-dispatch!, or structuring a pure-function UI with Replicant.
How this skill is triggered — by the user, by Claude, or both
Slash command
/replicant:replicantThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Replicant is a data-driven rendering library for Clojure(Script). It renders hiccup to DOM nodes (ClojureScript) or strings (Clojure or ClojureScript). The central idea: **the UI is a pure function of application state**. Call it. Get hiccup. Repeat. Replicant does exactly what's needed to update the DOM.
Replicant is a data-driven rendering library for Clojure(Script). It renders hiccup to DOM nodes (ClojureScript) or strings (Clojure or ClojureScript). The central idea: the UI is a pure function of application state. Call it. Get hiccup. Repeat. Replicant does exactly what's needed to update the DOM.
No components. No local state. No subscriptions. No framework lifecycle. Just data in, hiccup out.
| Task | Go to |
|---|---|
Understand the rendering model, hiccup syntax, render, unmount, set-dispatch! | core-concepts.md |
Define and use reusable hiccup fragments with defalias / aliasfn | aliases.md |
| Wire up click handlers, keyboard events, data-driven dispatch | event-handlers.md |
Mount/unmount callbacks, CSS transition hooks, replicant/key, node memory | life-cycle-hooks.md |
Server-side rendering to strings, replicant.string/render | core-concepts.md |
| Something isn't working / unexpected behavior / things to avoid | anti-patterns.md |
app-state → (render-fn app-state) → hiccup → replicant.dom/render → DOM
render-fn is a pure function — no side effects, no local atomsreplicant.dom/render every time state changes; Replicant diffs and patches the DOMset-dispatch!Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
npx claudepluginhub stoating/clojure-replicant-skill --plugin replicant