Explorateur d'effets Sandestin

VérifiéSûr

Explorez les effets, actions et espaces réservés disponibles dans un projet Sandestin. Utilisez des fonctions comme describe, grep et sample pour inspecter le système de dispatch et générer des exemples d'invocations.

Spar Skills Guide Bot
DeveloppementIntermédiaire
8002/06/2026
Claude Code
#clojure#effects#discoverability#repl

Recommandé pour

Notre avis

Explorer les effets, actions et placeholders disponibles dans un projet Sandestin via la fonction dispatch.

Points forts

  • Permet de découvrir rapidement toutes les capacités du système
  • Supporte la recherche par mot-clé ou expression régulière
  • Génère des exemples d'invocation concrets
  • Affiche les dépendances système requises

Limites

  • Nécessite que le dispatch soit déjà créé
  • Fonctionne uniquement avec des projets Clojure utilisant Sandestin
  • Les résultats dépendent de la qualité des schémas définis
Quand l'utiliser

Quand vous devez explorer ou documenter les effets, actions ou placeholders d'un projet Sandestin.

Quand l'éviter

Quand vous n'utilisez pas Sandestin ou que vous cherchez des fonctionnalités hors de ce cadre.

Analyse de sécurité

Sûr
Score qualité90/100

The skill is purely informational, documenting how to use a Clojure library for exploring effects. It contains no dangerous commands or instructions, and declares no tools.

Aucun point d'attention détecté

Exemples

List all effects
List all available effects in my Sandestin project using the dispatch function.
Search for user-related actions
Find all actions related to 'user' in the Sandestin dispatch.
Get sample invocation
Show me an example invocation for the effect :myapp.user/create in my Sandestin project.

name: fx-explore description: Discover available effects, actions, and placeholders in a Sandestin project. Use when asking what effects exist, searching for functionality, or needing example invocations. Keywords: effects, actions, dispatch, describe, grep, sample.

Sandestin Effect Explorer

Discover and understand available effects, actions, and placeholders.

Important: All discoverability functions operate on the dispatch function, not registries. You must first create a dispatch via (s/create-dispatch [registries...]) before using these functions.

About Sandestin

Sandestin is a Clojure effect dispatch library with schema-driven discoverability. Effects are dispatched as vectors like [:myapp/save-user {:name "Alice"}].

GitHub: https://github.com/brianium/sandestin

Check if Installed

Look for the dependency in deps.edn:

io.github.brianium/sandestin {:git/tag "v0.3.0" :git/sha "2be6acc"}

Install if Missing

Add to deps.edn under :deps:

{:deps
 {io.github.brianium/sandestin {:git/tag "v0.3.0" :git/sha "2be6acc"}}}

Workflow

1. Find the Dispatch

Search for create-dispatch to locate the project's dispatch namespace.

2. Explore via REPL

(require '[ascolais.sandestin :as s])
(require '[<dispatch-ns> :refer [dispatch]])

;; List everything
(s/describe dispatch)

;; Filter by type
(s/describe dispatch :effects)
(s/describe dispatch :actions)
(s/describe dispatch :placeholders)

;; Search by keyword
(s/grep dispatch "user")
(s/grep dispatch #"save|create")

;; Get details on specific item
(s/describe dispatch :some.ns/effect-name)

;; Generate sample invocation
(s/sample dispatch :some.ns/effect-name)

;; See system requirements
(s/system-schema dispatch)

Output Format

Summarize findings:

### Effects

**:myapp.db/query** - Execute a SQL query
  Requires: [:datasource]
  Example: [:myapp.db/query "SELECT * FROM users" 42]

### Actions

**:myapp.user/create** - Create user and send welcome email
  Expands to: db insert + email send

Key Functions

| Function | Purpose | |----------|---------| | (s/describe dispatch) | List all items | | (s/describe dispatch :key) | Details for specific item | | (s/grep dispatch "pattern") | Search by string/regex | | (s/sample dispatch :key) | Generate sample data | | (s/system-schema dispatch) | System requirements |

Skills similaires