Agent skills: skills

skills writes agent skills that describe one database: a directory with a SKILL.md file for each topic, in the Agent Skills format that coding agents read. The stardust skill is the starting point; the other skills cover namespaces, queries, mutations and reactors, schemas, functions, entities, subscriptions, imports, objects and operations. Text about an optional plugin appears only when the database selects that plugin.

SettingPurposeDefault
dirOutput directory. A relative path is relative to the working directory at open.None: nothing is written
siteWebsite origin for links to the reference manuals, http or https without a path."https://www.stardustdb.com"
debounceTime without namespace saves before the plugin writes the skills.#dur "PT0.25S"
max-waitLongest time after a save before the plugin writes the skills.#dur "PT2S"

Configuration

Select this plugin with a dir when opening the database:

dust112 B
{plugins {database {path "app.db"} skills {dir ".claude/skills" debounce #dur "PT0.25S" max-wait #dur "PT2S"}}}

Usage

The plugin writes the skills when the database opens and after namespace saves, in the background. Generated reference pages describe each saved namespace, schema, query, mutation, reactor and blackhole: its source, its parameters and the call or request that runs it. With the Go SDK of the sdks plugin, a page also names the Go method. A page for each namespace of the function index lists the documented builtin functions.

The plugin owns the skill directories that it writes below dir, such as stardust and stardust-query. Each write removes the other files in them, such as the page of a deleted definition, and leaves other files in dir unchanged. A render failure changes no files. Each file is replaced atomically; a later publication failure can leave some files updated. A failure sets last-error; the next save or skills/sync tries again.

Status

The skills/status request reports the writes since the database opened. It takes no params and starts no write. skills/sync writes the skills at once and returns the same result. Without dir, it builds the files and writes nothing.

FieldMeaning
runsWrites since the database opened.
last-runWhen the last write ended, a #utc, or null before the first write.
filesThe files of the last successful write.
directoryThe output directory, or null without dir.
pendingTrue while a write waits for debounce or max-wait.
last-errorWhy the last write failed, or null when it succeeded.