script-includes

Installation
SKILL.md

Script Include Development

Overview

Script Includes are the foundation of reusable server-side code in ServiceNow. This skill covers:

  • Class-based script include architecture
  • Client-callable script includes (GlideAjax pattern)
  • Extending and inheriting from existing classes
  • Prototype patterns and object-oriented design
  • Utility libraries and helper functions
  • When to use script includes vs business rules
  • Scoped vs global considerations
  • Design patterns (Singleton, Factory, Strategy)
  • Unit testing script includes with ATF

When to use Script Includes:

  • Reusable logic needed across multiple business rules, workflows, or UI actions
  • Complex business logic that needs unit testing
Related skills
Installs
4
GitHub Stars
23
First Seen
Apr 9, 2026