Custom asset attribute management skill
Use natural language to instruct code agents, such as Qoder and CodeX, to query the definitions of custom attributes available for a specific asset type, and to bulk write, overwrite, or clear attribute values for assets. This document outlines the features, prerequisites, usage examples, and execution results of this SKILL, and includes an appendix with a list of input items for reference.
Features
The Custom Asset Attribute Management SKILL lets you use natural language to query the definitions and value requirements of custom attributes for specific asset types, like tables and fields. You can also use this SKILL to bulk write, overwrite, or clear attribute values for those assets. A typical use case is writing back an asset profile after a data development or governance workflow is complete.
Use cases:
-
Query the available custom attributes for a specific asset type, such as a table or field, along with their input methods and valid values.
-
Bulk write processing or governance results (such as owner, data security level, listing description, and external links) back to the custom attributes of tables or fields.
-
Write back an asset profile after a task is complete, or clear the attribute values for specific assets.
Limitations: Attribute writes use overwrite semantics. The new value completely replaces the old value instead of being appended. Passing an empty value clears the attribute. Each bulk write operation supports up to 50 assets. If you exceed this limit, submit the requests in batches. For drop-down attributes, you can only enter one of the permitted enumerated values from the attribute definition. Overwrite operations are not automatically rolled back. To preserve the original value, query and save it before writing.
Prerequisites
-
You must have the necessary permissions to query and manage custom asset attributes.
-
You must have the identifiers of the target assets and the attribute information that you want to write. Before writing, query the available attribute definitions for the asset type to confirm the attribute codes and valid values.
Usage examples
You can describe your requirements to the agent by using natural language. The following are example instructions that you can copy and use directly:
-
"Show me all available custom attributes for table-type assets."
-
"Bulk write two attributes to these tables in the order database: set the owner to 'Data Warehouse Team' and the data security level to 'Confidential'."
-
"After the task finishes, write back the owner and listing description to the custom attributes of this batch of newly processed tables."
-
"Clear the listing description attribute for these tables."
Interaction steps:
-
After you submit an instruction, if it involves a write operation, the agent typically queries the available attribute definitions for the target asset type to confirm the attribute codes and valid values.
-
The agent confirms the list of assets, the attributes to be written and their corresponding values, and whether any clear operations are included.
-
Before writing, the agent typically confirms the write plan with you. The plan includes the affected assets, attributes, attribute values, and any clear operations.
-
After you confirm, the agent bulk writes the attribute values and reports the result for each asset individually.
Execution results
After the write operation completes, you receive the following results:
-
Response content: The system returns overall statistics (total number of assets, successes, and failures) and the individual write result for each asset. For failed items, a reason for the failure is provided.
-
Completion status: For assets that were written successfully, their custom attribute values are overwritten with the new values. Passing an empty value clears the attribute. A single write failure does not affect other operations.
-
View and verify: Log on to Dataphin and view the custom attributes of the corresponding table or field in the asset catalog. You can also check the attribute values on the Asset Details page to confirm they were written correctly.
Appendix: Inputs
The following table lists information items for managing custom asset attributes. This list is for reference only. The agent automatically identifies the necessary information from your instructions and prompts you if anything is missing. You do not need to provide information for items that are generated by the system.
|
Parameter |
Required |
Description |
Example |
|
tenant ID |
Yes |
The 19-digit ID of the tenant for the operation. |
1234567890123456789 |
|
asset type |
Yes |
The type of the target asset, such as table or field. |
table |
|
asset identifier |
Required for write operations |
The unique identifier (GUID) of the asset to which you want to write attributes. |
odps.tenant.project.table_name |
|
attribute code |
Required for write operations |
The custom attribute to be written. This is obtained from the attribute definition query results. |
data_security_level |
|
attribute value |
Required for write operations |
The attribute value to write. For drop-down attributes, you must provide a permitted enumerated value. An empty value clears the attribute. |
Confidential |