How Data Teams Build Skills for Agentic Analytics: 7 Practical Steps
Originally published on the nao blogIntroduction
Most data teams encounter a familiar challenge. Analytics agents generate plausible-sounding answers, yet consistency remains elusive. Rather than relying solely on prompts, treating reusable instructions as a system component offers a better path forward. This guide demonstrates how data teams can construct and operate skills for agentic analytics using an open source workflow, particularly when leveraging dbt, a modern data stack, and business users requiring daily data conversation capabilities.
Why create skills
Without skills, an analytics agent functions as a single generalist attempting to address every business question using identical logic.
This approach creates three persistent challenges for data teams:
- Inconsistent metric interpretation across business domains
- Reduced trust from business teams when answers fluctuate based on prompt phrasing
- Slower iteration cycles because every correction applies globally rather than within specific domains
Skills address these issues by converting domain logic into reusable context blocks. Instead of one universal behavior, you achieve specialized conduct by domain, complete with explicit rules and measurable performance indicators.
Skills additionally clarify intent at query execution time. Business users can invoke a particular skill directly to inform the agent which business domain the analysis addresses. This minimizes ambiguity early and enables the agent to select appropriate definitions more rapidly.
What a skill should do in an analytics agent
A skill extends beyond “improved prompting.” A skill should resolve ambiguity in core workflows:
- Identification of trusted sources and their priority order
- Scoping SQL work by model layer and business domain
- Application of context engineering rules before query generation
- Production of outputs that analysts can validate quickly
In practice, this delivers reliability improvements faster than switching models.
7 practical steps to build skills for data teams
1. Start from recurring failure patterns
Gather the last 20 to 50 unsuccessful analytics agent interactions.
Categorize them by failure type:
- Incorrect metric definition
- Inappropriate table grain
- Absent business rule
- Inadequate output format for stakeholder transition
Each repeating pattern should correspond to one skill objective.
2. Define one workflow per skill
Avoid broad skills such as “improve SQL quality.”
Adopt narrow scopes alternatively:
- Marketing performance analysis
- Finance KPI analysis
- Product funnel analysis
- Sales pipeline analysis
Narrow skills prove simpler to test and easier to rely on.
3. Encode context engineering constraints
Your skill must establish context priority explicitly:
- Employ metric and semantic definitions initially
- Utilize dbt docs and lineage secondarily
- Reference warehouse metadata tertiary
- Pose clarifying questions before making assumptions
This distinguishes deliberate retrieval from applied context engineering.
4. Add strict SQL and analysis rules
For analytics operations, incorporate guardrails preventing unsafe compromises:
- Establish grain before aggregation
- Confirm time windows and timezone assumptions
- Favor documented marts over raw layers
- Return assumptions and validation checks alongside every response
If your team employs dbt, incorporate model-layer expectations directly within the skill.
5. Add output contracts for business users
When teams engage in data conversation, output structure carries importance matching SQL quality.
A robust skill can enforce:
- Decision summary foremost
- SQL and metric logic subsequently
- Validation notes thereafter
- Next steps finally
This preserves answer usability across technical and non-technical participants.
6. Build skills by data domain (sub-agent pattern)
The most powerful implementation involves domain-specific skills:
- Marketing analytics skill
- Finance analytics skill
- Product analytics skill
- Sales analytics skill
Each domain skill functions as a concentrated sub-agent possessing distinct definitions, KPIs, and regulations.
You can coordinate this in RULES.md by specifying which domain skills remain available and determining when to deploy each one. Practically, this operates as lightweight orchestration. The agent directs itself toward the appropriate domain behavior rather than applying one universal instruction set.
7. Version and test every skill change
Approach skill modifications like code updates:
- Maintain versions in git
- Examine changes through pull requests
- Preserve before/after benchmark comparisons
- Designate explicit ownership per domain skill
This harmonizes skill operations with the remainder of your open source and data stack workflow.
How to build and test skills in nao
In nao, you can supply skills as constituent parts of your agent context, permitting the assistant to reference and apply them throughout execution.
The anticipated skill format (from nao documentation) comprises a markdown file containing:
name: your-skill-name
description: Brief description of what this Skill does and when to use it
# Your Skill Name
## Instructions
[Clear, step-by-step guidance for Claude to follow]
## Examples
[Concrete examples of using this Skill]
Recommended workflow:
- Establish or revise skill files for every domain
- Record availability and routing guidance in
RULES.md - Execute
nao testto evaluate impact on answer quality, expenditure, and velocity - Contrast findings against your baseline performance before implementing
Pertinent resources:
- Skills capability: nao docs - skills
- Evaluation framework: nao docs - nao test
This transitions skills from unchanging instructions into quantifiable infrastructure supporting agentic analytics.
Common mistakes to avoid
- Constructing one comprehensive skill addressing all workflows
- Disregarding evaluation based on measured outcomes
- Permitting the agent unrestricted source access without priority sequencing
- Delivering answers without articulating assumptions and validation verification
- Considering context engineering supplementary
Pursuing dependable data conversation amplifies hidden risk through these oversights.
Final takeaway
For data teams, advancement in analytics agent performance requires more than additional prompt refinement.
Successful outcomes emerge from domain-specific skills, transparent context engineering guidelines, and quantifiable progress tracking via nao test.
Executed effectively, every participant converses with data employing shared definitions, consistent guardrails, and unified operational standards.