create-ai-block
Installation
SKILL.md
Create an AI Block
Author and save the AI Block prompt; do not generate, preview, or simulate the narrative. The block produces its own narrative when it runs.
Resolve scope
- Explicit
@VizBlock:dashboard_uname.viz_unamementions mean exactly those visualizations. - "This tab" means
@Tab:dashboard_uname.view_uname— the tab currently in the user's view — which includes all visualizations within it. - "This dashboard" means
@Dashboard:dashboard_uname, which includes all visualizations across its tabs. - Referencing a tab or dashboard, rather than listing individual visualizations, keeps the AI Block current automatically: it updates on its own as visualizations are added or removed.
- If scope is missing, ask the user to choose the relevant tab, the full dashboard, or specific visualizations. Do not guess.
- An AI Block cannot use another AI Block as its source. Ask for non-AI-Block sources if one is included.
Compose the prompt
Build the prompt from three components, combined into one instruction in the order the user stated them:
- Source — the scope resolved above, carried as its
@VizBlock:/@Tab:mention or left implicit for "this dashboard." - Content requirement — the user's requested angle: summary, key insights, comparison, callout, ranked findings, etc.
- Output style — tone and length the user stated, if any.