产品介绍

Install and use Skills

A Skill supplies instructions that the model can read on demand. Installing an existing Skill usually means placing its directory correctly: the model first sees its name and description, then uses a file tool to read the body. This guide verifies that flow with a Skill requiring no extra plugin. See the Skill development guide when writing more complex Skills.

Prerequisites

  • Complete source deployment so Server and TUI can run. Package users use the corresponding dataagent and dataagent-cli commands.
  • A working model supporting tool calls and a repository-root .env containing LLM_MODEL, LLM_BASE_URL, and LLM_API_KEY.
  • An independent demo Home. Existing installations can retain their own Home while preserving model, plugin, and other configuration.

A Skill does not install tools, Python packages, or external services mentioned in its instructions. Prepare those capabilities according to the Skill provider's instructions. The minimal example below only needs the main Agent's existing file-reading capability.

Start a minimal instance first

From the repository root, choose a new Home and save the minimal model configuration. If it already contains configuration, preserve that file and merge the required fields instead of overwriting it.

export DATAAGENT_HOME="$HOME/.dataagent-skill-demo"
mkdir -p "$DATAAGENT_HOME"

Save the following as $DATAAGENT_HOME/config.yaml:

schema_version: 4
dataagent:
  model: primary
  entry: null
models:
  primary:
    provider: openai
    name: $env{LLM_MODEL}
    base_url: $env{LLM_BASE_URL}
    api_key: $env{LLM_API_KEY}
plugins:
  enabled: []

entry: null uses the main Agent. Standalone Home Skills need no entry in plugins.enabled. See configuration for file selection and environment precedence.

uv run --no-sync dataagent serve --env-file .env

Connect in another terminal and first send an ordinary question to confirm that the model responds:

npm run start:tui -- --runtime-url http://127.0.0.1:8790

The port comes from YAML server.port, defaulting to 8790. If occupied, change the listener configuration and TUI URL together. See the TUI guide for installation, build, and existing-server connection commands.

Install into the Server's Home

Use this directory layout:

<home>/skills/
  report-summary/
    SKILL.md

For an existing Skill package, copy the entire directory containing SKILL.md, retaining its reference files. This is a file-copy command, not a DataAgent installation subcommand:

cp -R /absolute/path/to/report-summary "$DATAAGENT_HOME/skills/"

If you have no package, create its directory first:

mkdir -p "$DATAAGENT_HOME/skills/report-summary"

Then save this minimal content as $DATAAGENT_HOME/skills/report-summary/SKILL.md:

---
name: report-summary
description: Summarize a short progress report into facts, unknowns, and a next step.
---

# Report summary

Read the user's supplied progress report. Return exactly three bullet points:
- Facts: information explicitly stated in the report.
- Unknowns: missing information that prevents a firm conclusion.
- Next step: one action that follows from those facts and unknowns.
Do not invent measurements or claim to have executed any external action.

name and description must be nonempty. Prefer lowercase letters, numbers, and hyphens, matching the directory name. Discovery uses skills/<directory>/SKILL.md under Home; a skills/ directory beside --config is not discovered automatically. The same Skill name pointing to different files fails compilation. See Skill metadata for full rules.

Verify that the model reads and uses it

Send the next turn through TUI connected to the same Server:

Read the report-summary Skill first, then use it to organize this update:
Today we processed 12 orders. The refund total is still unverified.
Tomorrow we need to reconcile the refund details.

Expect Facts, Unknowns, and Next step items. Check the evidence as well:

  1. Expand the TUI tool call and confirm that read_file read skills/report-summary/SKILL.md in the Server's Home.
  2. Confirm that the tool returned the actual Skill body. A name appearing in metadata proves discovery, not that the body was read.
  3. Check that the answer uses the supplied facts and treats the refund total as unknown. The model saying “loaded” is insufficient evidence.

For later inspection, use <home>/runtime/users/<user>/sessions/<thread>/traces/ for this session. Find the read_file input path and returned content in the actual OTLP file, then follow the main Agent's subsequent model output; see trace files. Filenames use native run IDs. Use the actual TUI session ID.

Update and disable

Official Server checks extension changes while preparing the next turn. Ask again after adding, changing, or removing a Skill; an active turn keeps its existing graph. Correct invalid files before retrying a failed refresh. Changes to models, Home, or dataagent.entry still require restarting.

Direct Python SDK callers rerun prepare_runtime and create_agent; do not assume an existing Agent refreshes automatically. Disable a standalone Skill by moving the whole directory outside Home's skills/ scan root. Renaming its directory alone can leave it discoverable. Plugin-provided Skills follow plugin enablement; see installing and using plugins.

Direct compiled entries such as dataagent.entry: nl2sql do not assemble the main Agent's Skill middleware, so they cannot verify the main-Agent Skill in this guide. See the Skill development guide for subagent inheritance and custom scopes.

Troubleshooting

Symptom Check first
Model does not know the Skill Server's actual Home, an extra directory layer, the exact SKILL.md filename, and valid metadata
Name appears but body is unread Names and descriptions support discovery; explicitly ask to read it and inspect tool-calling support and the read_file result
Invalid Skill metadata Complete YAML frontmatter with nonempty name and description
Duplicate Skill name Home and enabled plugins supplying the same name from different files; retain one clear source
Old content after an update Wrong Server, an active turn, or an SDK runtime/Agent that has not been rebuilt
A tool required by the Skill is missing A Skill supplies instructions; enable its required plugin, MCP connection, or service

For configuration and loading failures, inspect Server's runtime/logs/backend.log. See logs for location, searches, and rotation, and Home files for ownership.