script-include-patterns

Create ServiceNow Script Includes with GlideAjax and AbstractAjaxProcessor patterns.

77|23|Updated Jul 16, 2025
One-click install
npx skills add https://github.com/serac-labs/serac --skill script-include-patterns-serac-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-include-patterns
Source: https://github.com/serac-labs/serac/tree/main/packages/opencode/src/bundled-skills/script-include-patterns
Command: npx skills add https://github.com/serac-labs/serac --skill script-include-patterns-serac-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of creating Script Includes and server-side utilities for ServiceNow, providing reusable patterns to reduce boilerplate and promote best practices.

Core Features & Use Cases

  • Standard Script Include patterns for server-side utilities
  • Client Callable Script Includes using GlideAjax and AbstractAjaxProcessor
  • Scoped Script Includes for application isolation
  • Clear examples for common architectures and safe coding practices

Quick Start

Create a reusable server-side Script Include and use the pattern to add client-callable methods.

Frequently Asked Questions about script-include-patterns

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

FAQPage Schema
How do I create a reusable Script Include for ServiceNow server-side utilities?

To create a reusable Script Include for ServiceNow server-side utilities, you apply standard development patterns that define frontmatter fields like name, description, and compatibility, reducing boilerplate and promoting best practices.

What's the best way to structure a client-callable Script Include using GlideAjax?

The best way to structure a client-callable Script Include using GlideAjax is by implementing the AbstractAjaxProcessor pattern, which provides example code architectures for safe, client-callable server-side methods in ServiceNow.

How do I build Scoped Script Includes for application isolation in ServiceNow?

You build Scoped Script Includes for application isolation in ServiceNow by applying scoped development patterns that define specific frontmatter fields like compatibility and tooling to ensure safe coding practices.

Does this approach support both standard and client-callable Script Include patterns?

Yes, this approach supports both standard and client-callable Script Include patterns, providing clear examples for common architectures like AbstractAjaxProcessor and GlideAjax to handle various server-side utility requirements.

What frontmatter fields are required when automating Script Include creation?

When automating Script Include creation, the required frontmatter fields are name, description, license, compatibility, and tooling, which streamline the process and establish reusable patterns for ServiceNow development.