set-validation-code
OfficialAdd server-side JS validation to attributes
System Documentation
What problem does it solve?
Setting validation logic directly on attribute definitions can be error-prone and inconsistent when done manually or across environments. This Skill centralizes the process of applying JavaScript validation code (attribute 1008) to attribute definitions so input is validated server-side and consistent across branches.
Core Features & Use Cases
- Apply Validation Code: Update an existing attribute's validation script to enforce input rules at the server level.
- Structured API Usage: Uses novadb_cms_update_objects format with branch, object meta, and CmsValue entries (attribute 1008, language 0, variant 0).
- Use Case: Enforce country code formats or non-negative numeric constraints by placing concise JavaScript checks on attribute definitions.
Quick Start
Set the JavaScript validation code on the target attribute by calling novadb_cms_update_objects with the branch ID, the attribute meta.id and typeRef 10, and a values array containing attribute 1008 with the validation script.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: set-validation-code Download link: https://github.com/novadb/claude-plugins/archive/main.zip#set-validation-code Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.