create-attribute

Create NovaDB attribute definitions with CmsValue payloads and language handling.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/novadb/claude-plugins --skill create-attribute
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-attribute
Source: https://github.com/novadb/claude-plugins/tree/main/consulting/skills/create-attribute
Command: npx skills add https://github.com/novadb/claude-plugins --skill create-attribute

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating new attribute definitions in NovaDB requires precise CmsValue construction, correct attribute IDs, language handling, and adherence to platform constraints, which is error-prone when done manually. This Skill guides and automates the minimal, correct creation of attribute objects (typeRef=10) so attributes are created consistently and safely.

Core Features & Use Cases

  • Minimal, correct creation: Builds the required CmsObject payload with the required Name (1000, EN) and Data type (1001) and only sets optional fields when explicitly requested.
  • Support for complex types: Handles ObjRef allowed-types as separate entries with sortReverse, multi-value ordering, language-dependent names, and optional JS validation or virtualization code.
  • Practical workflows: Use when modeling schema changes, adding new properties to a branch, or automating bulk attribute creation while preserving audit comments and fetching the created object for confirmation.

Quick Start

Create an attribute named Industry (English) of type String on the current branch using only the required fields.

Frequently Asked Questions about create-attribute

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

FAQPage Schema
How do I create a new attribute definition in NovaDB?

To create a NovaDB attribute, you need a numeric branch ID, an attribute Name (1000, language 201), and a Data type (1001). The Skill builds the required CmsObject payload with typeRef=10, setting optional fields only when explicitly requested.

How does NovaDB handle ObjRef constraints when adding schema attributes?

NovaDB handles ObjRef constraints by requiring separate CmsValue entries for each allowed ObjRef type. When you add schema attributes with object references, the Skill configures these individual entries and supports sortReverse for multi-value ordering.

Can I add JavaScript validation to a NovaDB attribute schema?

Yes, you can attach optional JS validation code when defining NovaDB attribute schemas. The Skill supports adding these validations alongside configuring language-dependent names and multi-value ordering during the attribute creation process.

What is required to model multi-value attributes in NovaDB?

Modeling multi-value attributes in NovaDB requires configuring CmsValue entries with sortReverse for ordering. The Skill automates this precise CmsValue construction to ensure multi-value attributes are created consistently and safely.

Does NovaDB attribute creation support language-dependent names?

Yes, NovaDB attribute creation supports language-dependent names by setting the required Name attribute (1000) for the specified language (201). The Skill ensures correct language handling and adherence to platform constraints during schema modeling.