script-includes
OfficialReusable Script Includes for server-side code.
AuthorHappy-Technologies-LLC
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Duplicative server-side logic across multiple ServiceNow apps creates maintenance burdens and inconsistent behavior. This skill provides a structured approach to building Script Includes using class-based patterns, client-callable (GlideAjax) implementations, and inheritance to promote reuse, testability, and scalable utilities.
Core Features & Use Cases
- Class-based Script Includes: Encapsulate logic in well-defined, reusable classes with clear interfaces and lifecycle.
- Client-callable (GlideAjax): Expose server-side methods to client scripts safely, with proper security checks and parameter handling.
- Extending & Inheriting: Extend out-of-the-box Script Includes and platform classes to tailor behavior without duplicating code.
- Common Design Patterns: Singleton, Factory, and Strategy patterns to manage configuration, object creation, and task routing.
- Guidance & Best Practices: Prerequisites, naming conventions, and testing approaches to ensure maintainable code across apps.
Quick Start
Create a basic Script Include named IncidentUtils with a simple class and a few methods, then call it from a client script using GlideAjax to fetch data.
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: script-includes Download link: https://github.com/Happy-Technologies-LLC/happy-servicenow-skills/archive/main.zip#script-includes 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 471,000+ vetted skills library on demand.