relation-creation

Create and manage entity relationships in the Honeydew semantic layer.

39|1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/honeydew-ai/honeydew-ai-coding-agents-plugins --skill relation-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: relation-creation
Source: https://github.com/honeydew-ai/honeydew-ai-coding-agents-plugins/tree/main/plugins/semantic-modeling-tools/skills/relation-creation
Command: npx skills add https://github.com/honeydew-ai/honeydew-ai-coding-agents-plugins --skill relation-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of defining relationships between entities in Honeydew, ensuring accurate data connections for analysis and metric calculations.

Core Features & Use Cases

  • Guided Relation Definition: Assists in setting up join types, direction, and connection methods (field-based or expression-based).
  • Update Entity YAML: Pushes the updated entity configuration to Honeydew via MCP tools.
  • Use Case: You need to link your orders entity to your customers entity. This Skill will guide you through specifying that orders have a foreign key customer_id that matches the customer_id in the customers entity, ensuring that metrics on orders can correctly reference customer attributes.

Quick Start

Guide me through creating a many-to-one relation from the 'orders' entity to the 'customers' entity using the 'customer_id' field for connection.

Frequently Asked Questions about relation-creation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define entity relationships in a semantic layer?

To create entity relationships, you specify join types, directionality, and cross-filtering behavior. Connections can be established through field mapping or custom SQL expressions, ensuring accurate data links for metric calculations and analysis.

Can I use custom SQL expressions for join definitions instead of field mapping?

Yes, you can use custom SQL expressions for join definitions. This allows you to define complex connection methods between entities beyond simple field mapping, providing flexibility in how data relationships are structured for analysis.

How do I link two entities like orders and customers using a foreign key?

To link entities like orders and customers, you define a many-to-one relation using a foreign key such as 'customer_id'. This connects the entities so metrics on orders can correctly reference attributes from the customers entity.

Does Honeydew validate entity relations after creation?

Yes, Honeydew includes mandatory post-creation validation for entity relations. After updating the entity YAML configurations via MCP tools, the system validates the relationships to ensure they are correctly defined and functional.

What is cross-filtering behavior in entity relationship modeling?

Cross-filtering behavior in entity relationship modeling determines how filtering on one entity affects another. When defining relations in a semantic layer, you can specify this behavior to control the flow of filter context between connected entities.

How are entity relationships stored and updated in Honeydew?

Entity relationships in Honeydew are stored and updated through entity YAML configurations. The updated configurations are pushed to the semantic layer via MCP tools, ensuring the relationship definitions are persisted and available for analysis.