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.
| Setting | Purpose | Default |
|---|---|---|
dir | Output directory. A relative path is relative to the working directory at open. | None: nothing is written |
site | Website origin for links to the reference manuals, http or https without a path. | "https://www.stardustdb.com" |
debounce | Time without namespace saves before the plugin writes the skills. | #dur "PT0.25S" |
max-wait | Longest time after a save before the plugin writes the skills. | #dur "PT2S" |
Configuration
Select this plugin with a dir when opening the database:
| Offset (hex) | Bytes (hex) | Meaning |
|---|---|---|
| 00 | 54 52 4F 4E | magic TRON |
| 04 | 4C 70617468 | txt "path" |
| 09 | 6C 6170702E6462 | txt "app.db" |
| 10 | 0F 0A 04000000 0900 0000 | map leaf, size 10: @4 → @9 |
| 1A | 4C 23647572 | txt "#dur" |
| 1F | 7C 5054302E323553 | txt "PT0.25S" |
| 27 | 0F 0A 1A000000 1F00 0000 | map leaf, size 10: @1A → @1F |
| 31 | 4C 23647572 | txt "#dur" |
| 36 | 4C 50543253 | txt "PT2S" |
| 3B | 0F 0A 31000000 3600 0000 | map leaf, size 10: @31 → @36 |
| 45 | 8C 6D61782D776169 74 | txt "max-wait" |
| 4E | 0F 0A 45000000 3B00 0000 | map leaf, size 10: @45 → @3B |
| 58 | 8C 6465626F756E63 65 | txt "debounce" |
| 61 | 0F 0A 58000000 2700 0000 | map leaf, size 10: @58 → @27 |
| 6B | 3C 646972 | txt "dir" |
| 6F | EC 2E636C61756465 2F736B696C6C73 | txt ".claude/skills" |
| 7E | 0F 0A 6B000000 6F00 0000 | map leaf, size 10: @6B → @6F |
| 88 | 07 12 05010000 4E00 0000 61000000 7E00 0000 | map branch, size 18, depth 0 (root), slots 0, 2, 8: @4E → @61 → @7E |
| 9A | 6C 736B696C6C73 | txt "skills" |
| A1 | 0F 0A 9A000000 8800 0000 | map leaf, size 10: @9A → @88 |
| AB | 8C 64617461626173 65 | txt "database" |
| B4 | 0F 0A AB000000 1000 0000 | map leaf, size 10: @AB → @10 |
| BE | 07 0E 00140000 A100 0000 B4000000 | map branch, size 14, depth 0 (root), slots 10, 12: @A1 → @B4 |
| CC | 7C 706C7567696E73 | txt "plugins" |
| D4 | 0F 0A CC000000 BE00 0000 | map leaf, size 10: @CC → @BE |
| DE | D4000000 00000000 | root → @D4; previous: none |
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.
| Field | Meaning |
|---|---|
runs | Writes since the database opened. |
last-run | When the last write ended, a #utc, or null before the first write. |
files | The files of the last successful write. |
directory | The output directory, or null without dir. |
pending | True while a write waits for debounce or max-wait. |
last-error | Why the last write failed, or null when it succeeded. |