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:

TRON230 B
Offset (hex)Bytes (hex)Meaning
0054 52 4F 4Emagic TRON
044C 70617468txt "path"
096C 6170702E6462txt "app.db"
100F 0A 04000000 0900 0000map leaf, size 10: @4 → @9
1A4C 23647572txt "#dur"
1F7C 5054302E323553txt "PT0.25S"
270F 0A 1A000000 1F00 0000map leaf, size 10: @1A → @1F
314C 23647572txt "#dur"
364C 50543253txt "PT2S"
3B0F 0A 31000000 3600 0000map leaf, size 10: @31 → @36
458C 6D61782D776169 74txt "max-wait"
4E0F 0A 45000000 3B00 0000map leaf, size 10: @45 → @3B
588C 6465626F756E63 65txt "debounce"
610F 0A 58000000 2700 0000map leaf, size 10: @58 → @27
6B3C 646972txt "dir"
6FEC 2E636C61756465 2F736B696C6C73txt ".claude/skills"
7E0F 0A 6B000000 6F00 0000map leaf, size 10: @6B → @6F
8807 12 05010000 4E00 0000 61000000 7E00 0000map branch, size 18, depth 0 (root), slots 0, 2, 8: @4E → @61 → @7E
9A6C 736B696C6C73txt "skills"
A10F 0A 9A000000 8800 0000map leaf, size 10: @9A → @88
AB8C 64617461626173 65txt "database"
B40F 0A AB000000 1000 0000map leaf, size 10: @AB → @10
BE07 0E 00140000 A100 0000 B4000000map branch, size 14, depth 0 (root), slots 10, 12: @A1 → @B4
CC7C 706C7567696E73txt "plugins"
D40F 0A CC000000 BE00 0000map leaf, size 10: @CC → @BE

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.