What you will be able to do
- Decide which instructions in an overloaded system prompt should become Agent Skills, which should stay global, and which belong in an MCP server
- Describe what a SKILL.md must contain for an assistant to discover the skill and know when to load it
- Diagnose why a correct skill fails to trigger, and fix it
- Choose between loading a skill once, downloading it, and loading a schema live by weighing baseline context cost against freshness and limits
Key concept
Agent Skill — A folder containing a SKILL.md file and any supporting files. It packages the instructions for one capability so they enter the agent's context only when a request matches the skill's description, not on every request the way a global instruction does.
1.Finding the instructions that don't earn their place
Agent system prompts tend to grow one capability at a time. A support agent starts with tone rules and an escalation policy. Then someone adds a twelve-step procedure for exporting a quarterly compliance report in a legacy format, which one team asks for once every few months. Every instruction in the system prompt is sent with every request, so that export procedure gets loaded into thousands of conversations that never use it. The attention budget has the full explanation of why this costs something. The relevant point here is that an always-on instruction for a rarely used capability is paid for in full on every request, whether or not it is used.
Sort the prompt by how often each instruction is needed, not by how long it is. Some instructions apply in nearly every conversation: output format, safety rules, the agent's role. Those belong in the always-on prompt. A good skill candidate has three properties. It is rarely invoked. It is self-contained, meaning it can be followed without the rest of the prompt being rewritten around it. And it is procedural: steps, examples and edge cases for one task. Databricks' design guidance points the same way. Keep prompts minimal, and give the agent only the context it needs.
Each of the obvious alternatives fails one of the two goals. Deleting the procedure cuts cost, but the quarterly export then fails whenever someone requests it. Trimming every instruction by the same percentage treats a rule used in every chat the same as one used four times a year, so it degrades the instructions the agent relies on most. Keeping the procedure in the prompt and also copying it into a skill gives two copies to maintain and leaves the baseline cost exactly where it was. Only moving the procedure into a skill both removes it from the baseline and keeps it available when the task comes up.
Checkpoint 1 of 8· Check yourself
A Databricks support agent's system prompt contains the four instructions below. You want to cut the baseline context cost without hurting task success. Which one is the best candidate to package as an Agent Skill?
A good skill candidate is rarely invoked, self-contained and procedural, so it only needs to load when a matching request arrives. Instructions used in nearly every conversation, such as role, safety and output format, belong in the always-on prompt however long they are.
“Unlike custom instructions, which are applied globally, skills are loaded automatically and only in the relevant context.”Source: docs.databricks.com
Checkpoint 2 of 8· Exam question
A Databricks support agent's system prompt has grown large because it contains full step-by-step instructions for exporting a quarterly compliance report in a legacy format, a task requested by exactly one team once every few months. All other instructions in the prompt are used in nearly every conversation. Which change best reduces baseline context cost without hurting the agent's ability to complete the quarterly export when asked?
Correct answer: A — Move the compliance-export instructions into an Agent Skill so they load only when that task is triggered
2.What a skill is made of
A skill is a folder whose required file is SKILL.md. That file opens with YAML frontmatter containing a name and a description, followed by instructions in Markdown. The frontmatter is the part that makes the skill discoverable. The assistant reads it to decide whether the current task needs the skill. It is not a JSON input schema, a compiled Unity Catalog function, or a credential. Skills follow the open Agent Skills standard, so the same format works in Genie Code, in Unity Gateway Skills published to Unity Catalog, and with coding assistants such as Claude and GitHub Copilot.
---
name: databricks-sql-guide
description: Databricks SQL conventions for writing queries — use for any Databricks SQL authoring or review.
---
# Databricks SQL guide
- Use snake_case for table, column, and CTE names.
- Prefer named CTEs over nested subqueries.
- Always filter on partition columns when they exist.
- Never use `SELECT *`; list columns explicitly.The body below the frontmatter is where the procedure goes. The recommended sections are step-by-step instructions, examples of inputs and expected outputs, and edge cases. More complex skills can also ship supporting files referenced by relative path: executable scripts, templates, or longer best-practice documents. A skill can therefore carry more than a global instruction can, because none of that material enters context until the skill is selected.
The loading works in stages. Progressive disclosure is usually described for tool schemas. Skills apply the same idea to capability instructions. Only the short name and description are consulted when the agent decides what to do. The SKILL.md body loads when a task matches. A bundled file is fetched only if the instructions call for it. On the Databricks Skills MCP server, these stages are separate calls: load_skill loads the instructions, and get_skill_files fetches bundled files.
Checkpoint 3 of 8· Fill the gap
The agent decides whether to load this skill by reading its frontmatter. Which key belongs in the blank so the agent can match a request against the skill?
---
name: databricks-sql-guide
? : Databricks SQL conventions for writing queries — use for any Databricks SQL authoring or review.
---
# Databricks SQL guide
- Use snake_case for table, column, and CTE names.
- Prefer named CTEs over nested subqueries.
- Always filter on partition columns when they exist.
- Never use `SELECT *`; list columns explicitly.SKILL.md frontmatter has a name and a description. The agent matches the request against the description to decide whether to load the body. Frontmatter is not a JSON input schema, and the instructions go in the Markdown body, not in a frontmatter key.
Checkpoint 4 of 8· Exam question
What must a Databricks Agent Skill file (SKILL.md) contain so that an AI assistant can discover it and decide when to load it?
Correct answer: A — Front-matter metadata, such as a name and description, that indicates when and how the skill should be used
3.Skill, global instruction or MCP server
Skills hold knowledge about how to do a task. They do not perform actions. That distinction settles where each kind of overloaded prompt content should go. A rule that must apply to every response stays global, because a skill loads only when its description matches and so cannot guarantee coverage. A procedure that is used rarely goes into a skill. If the agent needs to query Unity Catalog data, run SQL, search an index or call a Genie agent, it needs a callable endpoint, and that is a managed MCP server. A skill can tell the agent to use a particular MCP server, but the skill is not an MCP server, and installing skills does not configure any servers.
| Content in the overloaded prompt | Where it belongs | Why |
|---|---|---|
| Rules that apply to nearly every request (role, tone, safety) | Global instruction (system prompt or custom instructions) | Custom instructions are applied globally, so they are present every time |
| Rarely invoked, self-contained procedure (legacy export, runbook) | Agent Skill (SKILL.md plus supporting files) | Loaded automatically, and only in the relevant context |
| An action against live systems (query UC data, run SQL, call Genie) | Managed MCP server | Callable endpoints, hosted by Databricks and governed by Unity Catalog |
Mixed content is common. A legacy-export procedure that ends with the agent running a SQL query should be split. The steps, examples and edge cases go into the skill. The ability to execute the query comes from a connected MCP server, which the skill can tell the agent to use.
No. The rule has to apply to every response, but a skill loads only when a request matches its description, so some responses would not be covered. It should stay a global instruction. A procedure that is rarely invoked is the right thing to package as a skill.
Checkpoint 5 of 8· Check yourself
After moving a legacy-export runbook out of the system prompt and into an Agent Skill, a team sees that the runbook's last step has the agent run a SQL query against live Unity Catalog tables. What else does the agent need to finish the export?
A skill gives the agent knowledge of how to do a task, but it cannot act. Running SQL against live data needs a callable endpoint, which is a managed MCP server. The skill can tell the agent to use that server, but installing the skill does not configure one.
“A skill can direct an agent to a managed MCP server for a task, but the skill is not itself an MCP server”Source: docs.databricks.com
4.Why a correct skill doesn't fire
Packaging a capability as a skill is only half of the work. The skill also has to load when it is needed. Assistants select skills by matching the user's request against each skill's description. A skill whose body is complete and correct can still be skipped every time if its description doesn't say what the skill covers and when to use it.
The fix belongs in the frontmatter, not the body. Rewrite the description so it names the triggering situation. "Log utilities" says almost nothing. A description that names the request (analysing job or cluster logs to find the cause of a failure) and says when to use the skill gives the matcher something concrete. Adding body text does nothing for selection, because the body isn't read until the skill has already been chosen. How the skill was installed also doesn't matter: the Skills CLI and databricks aitools install both place skills where the assistant can discover and use them automatically. Natural-language matching is the normal way skills are selected. An @ mention is an extra manual option, not a requirement.
Several authoring rules improve how reliably a skill is selected:
- Keep each skill focused on a single task or workflow. A narrow scope makes it easier to recognise when the skill applies.
- Give it a concise, descriptive name and description.
- Include only the information the task requires, because extra detail makes a skill harder to apply reliably.
- Test new or updated skills on representative requests. In Genie Code, edits don't take effect in an active chat, so start a new one before retesting.
Checkpoint 6 of 8· Check yourself
Users keep asking things like "why did last night's ingestion job fail?", but the log-analysis skill almost never loads, even though its body is correct. Which frontmatter description is most likely to fix this?
The agent picks a skill by matching the request against its description. The description should say what the skill covers and when to use it, for one focused task. A vague label gives the matcher nothing to go on. A description that covers many tasks is too broad to match reliably. Procedure steps belong in the body, which is read only after the skill has been chosen.
“so make it specific about what the skill covers and when to reach for it”Source: docs.databricks.com
Checkpoint 7 of 8· Exam question
After packaging a rarely-used log-analysis capability as an Agent Skill, the team notices the agent frequently fails to use it even when a user explicitly asks for log analysis. The Skill's body content is correct and complete. What is the most likely cause, and what should be fixed?
Correct answer: A — The front-matter description is too vague for the assistant to match it to the user's request, so it should be rewritten to clearly describe the triggering scenario
5.Choosing a loading strategy
Skills published to Unity Catalog can be used in three ways, and each one is a different tradeoff between baseline cost, freshness and scope. Unity Gateway Skills are stored as governed objects named catalog.schema.skill. The Unity Gateway CLI (ug) connects your agent to the Databricks Skills MCP server, databricks-skill-registry. From there, a skill can be loaded once, downloaded, or loaded live as part of its whole schema.
| Strategy | How | Lifetime and freshness | Best for |
|---|---|---|---|
| Load once | Ask the agent to use the skill; it calls load_skill (and get_skill_files if needed) | This session only; nothing is saved | A one-off use |
| Download | ug skills add --names <catalog>.<schema>.<name> | Loads every session and works offline; a point-in-time copy, so re-download to get updates | The handful of skills used daily |
| Load live | ug skills add --location <catalog>.<schema> --via mcp | Always the latest published version; needs a connection; covers a whole schema | A large, fast-changing set kept current by a central team |
What each strategy adds to the baseline depends on how many skills stay connected, not on how many exist in Unity Catalog. Loading once adds nothing until the request is made: the instructions enter context through load_skill for that session and are not saved. A download is installed in the local skills folders and loads every session, so each downloaded skill is a standing cost, which is why downloads suit only the handful used daily. Live loading is the one that scales with schema size. Every skill in a connected schema appears as its own tool, named skill_<catalog>.<schema>.<skill>, so the baseline carries one tool entry per skill, and the agent loads a skill's instructions on demand when a task matches its description.
Live loading applies to a whole schema at a time and cannot be limited to one skill. For a schema of fifty skills when the agent needs only one, that means fifty tool entries in the agent's context, which reverses the saving that packaging was supposed to deliver. If you need one skill without the rest of its schema, load it once.
ug skills add --location acme.sql_skills --via mcpEach strategy has a typical way of going wrong. A downloaded skill does not update itself. If the team revises the compliance-export procedure after a format change, agents using a downloaded copy keep following the old steps until the skill is downloaded again, so task success drops even though nothing appears broken. Live loading avoids that, but it needs a connection and brings in the whole schema. Loading once adds nothing to the baseline, but nothing persists afterwards, so it has to be repeated in each session where the skill is needed.
To minimise baseline cost without hurting task success, choose based on how often the skill is used and how often it changes. Live loading a rarely used skill is acceptable when the schema is small, because the extra tool entries are then few, or when the schema is already connected for other skills the agent needs, because the entries are then already paid for and this skill adds no new baseline. Live loading a large schema for the sake of one rarely used skill is not acceptable: the cost is one entry per skill in the schema, and load once avoids it. A stable skill used every day justifies a download. A capability needed once is a load-once request.
Checkpoint 8 of 8· Match them up
Match each published Unity Catalog skill strategy to the situation where it keeps baseline context cost low without hurting task success.
Tap a term, then the definition that fits it.
Live loading connects a whole schema, so a one-off need for one skill in a big schema is a load-once request. A download is a point-in-time copy that loads every session and works offline, which suits a stable skill used daily. Live loading always serves the latest version, so it fits a large set that changes often.
“Live loading works on a whole schema at a time. You can't scope it to a single skill.”Source: docs.databricks.com
Sources5
Sources
(5)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Provide only the tools and context your agent requires, rather than an unbounded set of APIs or large irrelevant context.”
↩︎ Finding the instructions that don't earn their place“Keep prompts clear and minimal to avoid contradictory instructions, distracting information and reduce hallucinations.”
↩︎ Finding the instructions that don't earn their place - 2.https://docs.databricks.com/aws/en/genie-code/skillsOfficial docs
“This maintains an efficient context window and reduces the need to provide the same context across multiple chats.”
↩︎ Finding the instructions that don't earn their place“With skills, you can provide greater context (such as scripts, examples, and other resources) for a task than you can with instructions.”
↩︎ What a skill is made of“Unlike custom instructions, which are applied globally, skills are loaded automatically and only in the relevant context.”
↩︎ Skill, global instruction or MCP server“Narrow scope makes it easier for Genie Code to recognize when a skill applies.”
↩︎ Why a correct skill doesn't fire“When you edit an existing skill, start a new chat to apply your changes.”
↩︎ Why a correct skill doesn't fire“Unlike custom instructions, which are applied globally, skills are loaded automatically and only in the relevant context.”
↩︎ Key concept“Genie Code automatically loads skills when relevant, based on your request and the skill’s description.”
↩︎ Exam trap 2“Unlike custom instructions, which are applied globally, skills are loaded automatically and only in the relevant context.”
↩︎ Checkpoint - 3.https://docs.databricks.com/aws/en/agent-skillsOfficial docs
“Each skill is a Markdown file with front-matter metadata that describes when and how the skill should be used.”
↩︎ What a skill is made of“Skills teach the agent how to work; MCP servers let it do the work.”
↩︎ Skill, global instruction or MCP server“AI coding assistants automatically discover and load relevant skills based on the task at hand.”
↩︎ Why a correct skill doesn't fire“Skills teach the agent how to work; MCP servers let it do the work.”
↩︎ Exam trap 1“A skill can direct an agent to a managed MCP server for a task, but the skill is not itself an MCP server”
↩︎ Checkpoint - 4.
“A skill is just a folder: a SKILL.md file with instructions, plus any supporting files the agent should read.”
↩︎ What a skill is made of“The description matters most: it is what agents match against when deciding whether to use a skill”
↩︎ Why a correct skill doesn't fire“so make it specific about what the skill covers and when to reach for it”
↩︎ Checkpoint - 5.
“The agent calls the load_skill MCP tool to load the skill's instructions into context, and get_skill_files if the skill bundles supporting files.”
↩︎ What a skill is made of“Load a skill once: for this session only. Nothing is saved. Best for a one-off.”
↩︎ Choosing a loading strategy“Live loading works on a whole schema at a time. You can't scope it to a single skill.”
↩︎ Choosing a loading strategy“When a task matches a skill's description, the agent loads it on demand”
↩︎ Choosing a loading strategy“Copies are point-in-time; re-download for updates.”
↩︎ Choosing a loading strategy“Every skill in acme.sql_skills then appears as a live tool named skill_acme.sql_skills.<skill>.”
↩︎ Choosing a loading strategy“Downloaded skills live in your local skills folders (.claude/skills/ and .agents/skills/) and load every session.”
↩︎ Choosing a loading strategy“Live loading works on a whole schema at a time. You can't scope it to a single skill.”
↩︎ Exam trap 3“Copies are point-in-time; re-download for updates.”
↩︎ Exam trap 4