agentsclimarketplace

Reitit

Skill stoating/clojure-reitit-skill/skills/reitit

Use when working with Reitit — a fast data-driven router for Clojure/ClojureScript. Activate when the user asks about route syntax, routers, Ring handlers, middleware, coercion (malli/spec/schema), OpenAPI/Swagger docs, frontend browser routing, interceptors, path/name-based routing, route conflicts, or building HTTP APIs with Reitit.From its SKILL.md

Install
npx -y skills add stoating/clojure-reitit-skill --skill reitit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.1 KB, as published. Nobody here has run it

Reitit

Reitit is a fast, data-driven router for Clojure and ClojureScript. Routes are plain data — vectors of [path route-data children*]. Every routing component (middleware, coercion, docs) reads from that data map.

Quick Decision: What do you need?

TaskGo to
Understand route syntax, router creation, path/name-based routing, route data, route conflictscore-concepts.md
Ring handler, request-method routing, middleware, content negotiation, exception handlingring.md
Coercing request params / response bodies with malli, spec, or schemacoercion.md
Generate OpenAPI 3 or Swagger 2 docsopenapi.md
Frontend/browser routing (ClojureScript, hash/HTML5 history, controllers)frontend.md
Something isn't working / weird behavior / things to avoidanti-patterns.md

Core Mental Model

Routes are pure data — a nested vector of [path ?data & children]. A router compiles that tree once at startup: it flattens paths, merges nested route data (via meta-merge), resolves conflicts, and selects the fastest matching algorithm. At request time, match-by-path or match-by-name returns a Match record containing :path-params, :data, and a compiled :result.

Ring layer (reitit-ring) extends the core router with request-method dispatch (:get, :post, …), :handler functions, and a :middleware chain that is compiled per-endpoint — middleware that declares :compile can inspect route data and return nil to skip itself entirely, yielding zero overhead for routes that don't need it.

Coercion is pluggable: attach a Coercion implementation (malli, spec, or schema) under :coercion in route data, declare :parameters / :responses schemas, then mount the coercion middleware. Coerced values arrive in request :parameters.

Modules

ArtifactPurpose
metosin/reititAll bundled
metosin/reitit-coreRouting core only
metosin/reitit-ringRing router + middleware support
metosin/reitit-middlewareCommon data-driven middleware (params, exceptions, muuntaja)
metosin/reitit-coercionCoercion protocol
metosin/reitit-schemaPlumatic Schema coercion
metosin/reitit-specclojure.spec / data-specs coercion
metosin/reitit-malli (via reitit)Malli coercion
metosin/reitit-swaggerSwagger 2 docs
fi.metosin/reitit-openapiOpenAPI 3 docs
metosin/reitit-swagger-uiIntegrated Swagger UI
metosin/reitit-frontendClojureScript frontend routing
metosin/reitit-httpPedestal-style interceptor routing
metosin/reitit-interceptorsCommon interceptors for reitit-http

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.