Create a data standard SKILL

Updated at:

You can use natural language prompts to instruct code Agents, such as Qoder and CodeX, to create a data standard under an existing standard template and standard set, and attach metadata monitoring or quality monitoring rules to it. This document describes the features, prerequisites, and usage examples. An appendix lists the required input information.

Overview

The Create a data standard SKILL lets you use natural language prompts to add a new data standard under a specified standard template and standard set. You can specify attributes such as standard code, standard name, and data type, and attach metadata monitoring or data quality monitoring rules to the standard. This helps you establish and enforce unified data standards.

Use cases:

  • Create a data standard under a standard template and standard set, such as a customer code standard or an order amount standard.

  • Attach metadata monitoring to a data standard to validate metadata compliance, such as checking if a field has a description or if naming conventions are followed. This process does not query actual table data.

  • Attach quality monitoring to a data standard to compute metrics and trigger threshold-based alerts on actual table data, such as checks for primary key uniqueness, non-null values, and value ranges.

Note

Limitations: The required configurations for metadata monitoring and quality monitoring are completely different. You must select the monitoring type before you can configure its rules. Quality monitoring offers two options: using predefined rules based on standard attributes or creating custom rules, which require a rule template and threshold condition. The values of standard attributes are constrained by the selected template (for example, by an enumeration, a code table, or a value range), and you must use values permitted by the template.

Prerequisites

  • Your account has the required administrative permissions for data standards.

  • The target standard template and standard set must exist, and you must have the required attribute values ready (such as standard code, standard name, and data type). Do not omit any attributes marked as required in the template.

Usage examples

Here are example prompts that you can copy and use directly:

  • In the Customer Information standard set, create a customer code standard based on the Basic Field standard template, with the data type set to string.

  • Attach a quality monitoring rule to the order amount standard that requires the amount to be greater than or equal to 0 and less than 10,000.

  • Add metadata monitoring to the product code standard to validate that the field has a description.

Interaction steps:

  1. After you submit a creation prompt, the Agent first confirms the target standard template and standard set with you.

  2. The Agent reads the attribute definitions from the template (such as required attributes like standard code, standard name, and data type) and populates the values based on your request.

  3. If you need monitoring, the Agent confirms the monitoring type (metadata monitoring or quality monitoring) and the specific validation rules with you.

  4. Before creating the standard, the Agent typically asks you to confirm a summary of the configuration (template, standard set, attribute values, monitoring rules, etc.).

  5. After you confirm, the Agent submits the creation request and then verifies its successful creation.

Appendix: Input information

The following table lists the information you might need when you create a data standard. In practice, the Agent automatically identifies the required information from your prompt and asks for anything that is missing. You do not need to provide items that the system generates automatically.

Item

Required

Description

Example

Tenant ID

Yes

The ID of the target Dataphin tenant. It is a 19-digit number.

1234567890123456789

Standard template

Yes

The standard template that the new data standard references. This template must already exist. Standard attribute values are entered according to the template definition.

Basic Field Standard Template

Standard set

Yes

The standard set to which the new data standard belongs. This set must already exist.

Customer Information Standard Set

Standard attribute values

Yes

The attributes to be filled in as required by the template, such as standard code, standard name, and data type. Do not omit any attributes marked as required in the template.

standard code: CUSTOMER_CODE, data type: string

Monitoring type

No

The type of monitoring to attach to the standard: metadata monitoring (validates metadata compliance) or quality monitoring (validates actual table data). This can be omitted if no monitoring is attached.

Quality monitoring

Monitoring rule

No

The specific validation rule for the attached monitoring, such as the validation field and threshold condition for quality monitoring.

Amount is greater than or equal to 0 and less than 10,000

Auto-generate standard code

No

Specifies whether the platform automatically generates the standard code based on encoding rules. If enabled, you do not need to enter the standard code manually.

Yes

Description

No

A supplementary description for the data standard.

Customer code standard

Owner

No

The owner of the data standard. If an owner is not specified, the current user is assigned by default.

—