add-attribute-to-type

Add a new attribute to an existing NovaDB object type and update its create and detail forms.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adding a new attribute to an existing NovaDB object type and ensuring it appears consistently across the create form and all detail forms can be tedious and error-prone when done manually. This Skill automates the read-create-update sequence required to create an attribute definition and append it to form content while preserving existing field order and metadata.

Core Features & Use Cases

  • Read current type and forms: Fetches the object type to locate create and detail form IDs using attributes 5001 and 5002.
  • Create attribute definition: Builds a localized attribute definition (names, data type, constraints) and creates it via the API.
  • Update forms safely: Reads form content (attribute 5053), appends the new attribute as individual CmsValue entries with proper sortReverse ordering, and writes the complete list back.
  • Use case: Add a new searchable or display field to an existing content type during a schema migration or feature rollout without breaking existing forms.

Quick Start

Add a new attribute named summary to the article type on branch main and return the created attribute definition and the form ID it was added to.

Frequently Asked Questions about add-attribute-to-type

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

FAQPage Schema
How do I add a new attribute to an existing NovaDB object type form?

To add a new attribute to a NovaDB object type form, the Skill reads the current type and forms, creates the attribute definition, and updates all associated create and detail forms while preserving existing field order and metadata.

What happens to existing form fields when I append a new attribute to a type?

When appending a new attribute, existing form fields are preserved by reading the current form content and incrementing the sortReverse ordering for the new entries without overwriting existing data.

Can I add a new field to a NovaDB type if a create form is already deployed?

Yes, you can add a new field to a type with an existing create form. The Skill applies during schema updates or migrations by fetching the deployed form IDs and appending the new attribute safely.

What is the best way to update CMS forms during a schema migration?

The best way to update CMS forms during a schema migration is automating the read-create-update sequence to propagate new attributes across all UI forms, eliminating manual form updates and reducing errors.

Does adding an attribute to a NovaDB object type require the target type to already exist?

Yes, adding an attribute requires the target NovaDB object type to already exist and have a create form. The Skill uses the type's existing form IDs to locate and update the appropriate forms.

Why are my new attributes not appearing on NovaDB detail forms after a schema update?

New attributes may not appear on detail forms if the form content was not updated. The Skill ensures visibility by appending the attribute as individual CmsValue entries to all associated forms via the API.