Decide when to use a skill
Use a skill for a repeatable procedure that applies to a particular task. Keep behavior that should apply to every conversation in the agent’s instructions. For example, “Use concise language and explain unfamiliar terms” belongs in the agent’s instructions because it applies to every response. A multi-step process for investigating a KPI drop belongs in a skill because the agent only needs it for that analysis. If part of your agent’s instructions has grown into a self-contained workflow that only applies to certain requests, move that workflow into a skill. Skills can use the business context available from the semantic layer and knowledge documents, but they should not copy that context into every workflow. For the complete guide to choosing where agent guidance belongs, see Effective analytics with agents.This page covers custom skills for Lightdash AI agents. To give coding agents guidance for editing Lightdash projects, see Agent skills.
Create or attach a skill
Custom skills live in a shared organization library. Attach a skill to each agent that should be able to use it. Developers and admins can create, edit, and attach skills. Anyone who can use an agent can use the skills attached to it.1
Open the agent's settings
Go to Ask AI, choose the agent, and open its Setup page. Create the agent first if it has not been saved yet.
2
Add a skill
In Skills, click Add skill. Choose an existing skill from the organization library, or select Create new skill.
3
Describe the workflow
Enter a name, description, and instructions. The name becomes the slash command, so use a short name such as
investigate-kpi-change. The description should explain both what the skill does and when the agent should use it.4
Save the skill
Click Create skill. Lightdash adds it to the organization library and attaches it to the current agent.
Use a skill
An agent can use an attached skill in two ways:- Automatically — ask your question normally. When the request matches a skill’s description, the agent can load the instructions and follow them.
- On demand — type
/in the message composer, search by name or description, and select a skill. Add the task details after the command, for example/investigate-kpi-change weekly active users in EMEA. You can invoke one skill per message.
$ARGUMENTS where those details should appear.
Write effective skills
Start with a prompt you already repeat or a workflow an experienced analyst already follows. Spell out the sequence, the checks they make, and the mistakes they know to avoid. For example, instead of writing:description for context that helps people and agents, and an ai_hint for agent-only disambiguation and query guidance.
Keep each skill focused on one coherent workflow. If several analyses follow the same process, prefer one reusable skill over separate versions for every metric or team.
Example SKILL.md
Lightdash stores each skill as a SKILL.md file. The editor creates this file for you, but seeing the structure can help you write clearer instructions:
name and description are required. Names use lowercase letters, numbers, and single hyphens. A clear description is especially important because the agent uses it to decide when to load the skill automatically.
Use skills through MCP
The Lightdash MCP server exposes custom skills to compatible AI clients. When an agent is active in the MCP session, the client can discover the skills attached to that agent. Without an active agent, it can discover the organization skills the caller has permission to view.Manage skills as code
Use agents as code to review skills in Git and move them between environments. A skill folder contains itsSKILL.md and can include supporting Markdown files under resources/.