Skills Overview
The skill definition on this page is adapted from the Agent Skills description, which frames skills as lightweight, self-contained capability packages that agents can discover, load, and apply on demand.
What is a skill?โ
In DB-GPT, a skill is a reusable capability package that gives an agent a structured way to solve a task.
Instead of relying only on free-form reasoning, a skill provides a stable execution pattern for a specific kind of work.
Skill definitionโ
Adapted from the Agent Skills description, a skill can be understood as:
- a lightweight extension format for giving agents specialized knowledge and workflows
- a package of know-how, not just facts, APIs, or prompts
- a progressive-disclosure unit that can be discovered first and fully loaded only when needed
- a self-contained bundle of instructions, scripts, templates, and reference files
- a way to make agent behavior more consistent, repeatable, and domain-aware
In DB-GPT terms, a skill is not just โsomething the model knows.โ It is a packaged workflow that helps the agent decide:
- what problem it is solving
- what tools it should use
- what order the steps should follow
- what outputs should be produced
- what constraints it should obey
What a skill usually containsโ
A DB-GPT skill package often includes:
- a name
- instructions in
SKILL.md - optional scripts
- optional templates
- optional static resources or examples
At its core, a skill is a folder containing a SKILL.md file. This file includes metadata and instructions that tell an agent how to perform a specific task. Skills can also bundle scripts, templates, and reference materials.
my-skill/
โโโ SKILL.md # Required: instructions + metadata
โโโ scripts/ # Optional: executable code
โโโ references/ # Optional: documentation loaded as needed
โโโ assets/ # Optional: templates, output resources, static files
Skill anatomyโ
Following the structure used by DB-GPT's own skill-creator guidance, a skill is organized as a small self-contained package:
| Part | Required | Purpose |
|---|---|---|
SKILL.md | Yes | Defines the skill's identity and instructions |
scripts/ | No | Stores executable code such as Python or shell helpers |
references/ | No | Stores documents that can be loaded into context only when needed |
assets/ | No | Stores templates, fonts, icons, boilerplate files, or other output resources |
SKILL.mdโ
SKILL.md is the entry point of the skill. It usually contains:
- metadata such as
nameanddescription - the workflow instructions the agent should follow
- guidance on when to read additional references or use bundled resources
scripts/โ
Use scripts/ for executable helpers, such as:
- Python data-processing utilities
- shell scripts
- report-generation helpers
- automation code used by the skill
references/โ
Use references/ for supporting knowledge that should not always live inside SKILL.md, such as:
- API documentation
- business logic references
- schemas
- workflow guides
- policy or domain documents
This keeps SKILL.md smaller while still making deeper context available when the task requires it.
assets/โ
Use assets/ for files that support the output rather than the reasoning process, such as:
- HTML templates
- icons and logos
- fonts
- boilerplate frontend files
- report resources
Why skills matterโ
Skills are useful when:
- a workflow should be standardized
- the task requires domain-specific reasoning
- reporting or analysis should follow a known pattern
- the agent should use curated instructions instead of improvising everything
How skills workโ
The common execution pattern is:
- The agent identifies that a task matches a skill.
- The skill instructions are loaded.
- The agent follows the skill-defined workflow.
- The required tools are executed.
- The final answer, report, or page is returned.
Skills and built-in toolsโ
Skills often orchestrate the built-in execution tools together:
load_skillโ load the skill instructionssql_queryโ retrieve structured data if neededcode_interpreterโ compute metrics, transform data, and generate chartsshell_interpreterโ run shell commands when requiredhtml_interpreterโ render the final report or webpage
Practical examplesโ
Financial report analysisโ
A financial-report skill can define:
- how to inspect uploaded reports
- how to compute indicators and compare periods
- how to generate charts and summaries
- how to render the final HTML report
CSV / Excel analysisโ
A data-analysis skill can define:
- how to inspect a dataset
- how to calculate core metrics
- how to visualize outputs
- how to turn the result into a reusable report
Good practicesโ
- use skills when the workflow should be repeatable
- follow the skill instructions strictly
- prefer the tools required by the skill over ad-hoc alternatives
- use
html_interpreterfor final report rendering when the skill produces a webpage or report
Next stepโ
See How to Use Skill for the practical workflow.