Orchestrate the extraction of deep semantic context and business logic from Kyvos cubes to build domain-specific analytical skills. BOOTSTRAP MODE - Triggers: "Create a data context skill", "Set up analysis for our Kyvos cubes", "Help me create a skill for our Kyvos environment", "Generate a Kyvos data skill" → Performs schema introspection, profiles semantic models, and interviews domain experts to construct a knowledge base. ITERATION MODE - Triggers: "Add context about [domain]", "The skill needs more info about [metrics]", "Update the Kyvos skill with [cube/measure/dimension info]", "Improve the [domain] reference" → Refines existing domain models by targeting specific semantic gaps or business logic changes. Use when establishing a bridge between raw Kyvos semantic models and high-level business questions.
A meta-skill designed to profile Kyvos semantic models, extract company specific business knowledge, and synthesize domain-specific analytical capabilities. It treats the Kyvos cube not just as a table, but as a semantic layer requiring both Business Context and Column Context to be fully leveraged.
Kyvos cubes are powerful, denormalized semantic structures that flatten complex joins into a single, queryable entity. While the Kyvos MCP Server handles the technical SQL generation (dialect, syntax, aggregation rules), this skill focuses on two layers of meaning:
This skill has two modes:
Objective: Initialize a comprehensive knowledge base for a set of high-value semantic models.
Leverage the MCP tools to map the technical landscape before engaging stakeholders.
kyvos_list_semantic_models to identify available semantic domains.kyvos_list_semantic_model_columns to retrieve the flat structure (measures and dimensions).kyvos_sql_generation_prompt for the target cubes.
Engage the domain expert to layer meaning on top of the technical schema.
1. Domain & Scope Definition
"I've analyzed the
[Cube_Name]schema. It appears to cover[Subject]. To structure the domain knowledge correctly:
- What is the primary Business Domain this cube serves? (e.g., 'Global Supply Chain', 'Executive Finance')
- What are the Strategic KPIs driven by this model?"
2. Column Context & Dictionary (Crucial)
"Let's define the key columns found in the schema:
- Ambiguity Check: I see
[Order Date]and[Ship Date]. Which one drives revenue recognition?- Status Codes: For the
[Status]dimension, what do values like 'X' or '99' actually mean?- Measure Logic: Is
[Sales_Amount]pre-tax or post-tax? Does it include returns?"
3. Dimensionality & Hierarchies
"The schema lists
[Dim_A]and[Dim_B].
- In practice, what are the primary Drill-Down Paths analysts use?
- Are there 'Virtual Hierarchies' that aren't explicitly defined but logically exist (e.g., Product Category -> SKU)?"
4. The "Knowledge" Layer
"Every dataset has unwritten rules.
- Are there Standard Exclusions? (e.g., 'Exclude internal test accounts', 'Ignore transactions before 2020')
- Are there Data Quality caveats we should document? (e.g., 'Region X reporting is delayed by 2 days')"
5. Analytical Patterns
"How is this data typically consumed?
- Trend Analysis: Is this mostly for MoM/YoY comparisons?
- Cohort Analysis: Do we track entities over time?
- Snapshotting: Is this a point-in-time view?"
Synthesize the findings into a structured "Domain Knowledge Graph" (represented as files).
Structure:
[company]-kyvos-analyst/
├── SKILL.md
└── references/
├── domains/ # Domain-Centric Documentation
│ ├── [business_domain_1].md # e.g., "revenue_operations.md"
│ ├── [business_domain_2].md # e.g., "customer_experience.md"
│ └── [business_domain_3].md
└── common-patterns.md # Cross-domain analytical patterns
Templates:
references/skill-template.mdreferences/domain-template.md (Focus on mapping Business Concepts → Cube Objects)Step 1: Semantic Verification
"I have modeled the
[Domain]context. Let's validate it against a real-world scenario. Ask me a complex business question, and I will demonstrate how I map it to the Kyvos schema using the new reference files."
Step 2: Refinement Adjust the domain mappings based on the test results.
Step 3: Packaging Deliver the finalized skill package.
Objective: User has an existing Kyvos skill but needs to add more context.
[domain].md file with the missing business logic or concept mapping.domains/[subject].md)Create a Business-to-Technical Map that captures both high-level context and low-level column details:
Focus on Intent-Based Patterns: