Skip to content

@sqlrooms/ai / createSkillDraftStore

Function: createSkillDraftStore()

createSkillDraftStore(): SkillDraftStore

Create a fresh per-session draft store. The authoring wizard is ephemeral: each dialog open calls this factory, and the store is discarded on close. Exporting a singleton hook would leak draft state across sessions and is deliberately avoided.

Returns

SkillDraftStore